Home
last modified time | relevance | path

Searched refs:rg (Results 1 – 25 of 75) sorted by relevance

123

/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-mt7621.c67 mtk_gpio_w32(struct mtk_gc *rg, u32 offset, u32 val) in mtk_gpio_w32() argument
69 struct gpio_chip *gc = &rg->chip; in mtk_gpio_w32()
72 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_w32()
77 mtk_gpio_r32(struct mtk_gc *rg, u32 offset) in mtk_gpio_r32() argument
79 struct gpio_chip *gc = &rg->chip; in mtk_gpio_r32()
82 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_r32()
90 struct mtk_gc *rg = to_mediatek_gpio(gc); in mediatek_gpio_irq_handler() local
95 pending = mtk_gpio_r32(rg, GPIO_REG_STAT); in mediatek_gpio_irq_handler()
101 mtk_gpio_w32(rg, GPIO_REG_STAT, BIT(bit)); in mediatek_gpio_irq_handler()
112 struct mtk_gc *rg = to_mediatek_gpio(gc); in mediatek_gpio_irq_unmask() local
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/
H A Dphl_regulation.c39 static void _convert_ch2g(struct rtw_regulation *rg, u32 *ch_cnt, in _convert_ch2g() argument
69 struct rtw_regulation *rg, const struct freq_plan *f) in _chnlplan_update_2g() argument
91 rg->ch_idx2g = f->ch_idx; in _chnlplan_update_2g()
92 rg->regulation_2g = f->regulation; in _chnlplan_update_2g()
94 plan = &rg->chplan[FREQ_GROUP_2GHZ]; in _chnlplan_update_2g()
98 _convert_ch2g(rg, &plan->cnt, plan->ch, ch, passive); in _chnlplan_update_2g()
167 static void _convert_ch5g(u8 band_5g, struct rtw_regulation *rg, in _convert_ch5g() argument
205 struct rtw_regulation *rg, const struct freq_plan *f) in _chnlplan_update_5g() argument
230 rg->ch_idx5g = f->ch_idx; in _chnlplan_update_5g()
231 rg->regulation_5g = f->regulation; in _chnlplan_update_5g()
[all …]
H A Dphl_regulation_6g.c70 static void _convert_ch6g(u8 unii_6g, struct rtw_regulation *rg, in _convert_ch6g() argument
107 static void _update_psc_group(struct rtw_regulation *rg) in _update_psc_group() argument
111 &rg->chplan[FREQ_GROUP_6GHZ_PSC]; in _update_psc_group()
118 src = &rg->chplan[group]; in _update_psc_group()
134 static bool _chnlplan_update_6g(struct rtw_regulation *rg, in _chnlplan_update_6g() argument
158 rg->ch_idx6g = ch_idx; in _chnlplan_update_6g()
159 rg->regulation_6g = regulation; in _chnlplan_update_6g()
163 plan = &rg->chplan[group]; in _chnlplan_update_6g()
167 _convert_ch6g((u8)(i + 5), rg, &plan->cnt, plan->ch, in _chnlplan_update_6g()
172 _update_psc_group(rg); in _chnlplan_update_6g()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/
H A Dphl_regulation.c39 static void _convert_ch2g(struct rtw_regulation *rg, u32 *ch_cnt, in _convert_ch2g() argument
69 struct rtw_regulation *rg, const struct freq_plan *f) in _chnlplan_update_2g() argument
91 rg->ch_idx2g = f->ch_idx; in _chnlplan_update_2g()
92 rg->regulation_2g = f->regulation; in _chnlplan_update_2g()
94 plan = &rg->chplan[FREQ_GROUP_2GHZ]; in _chnlplan_update_2g()
98 _convert_ch2g(rg, &plan->cnt, plan->ch, ch, passive); in _chnlplan_update_2g()
167 static void _convert_ch5g(u8 band_5g, struct rtw_regulation *rg, in _convert_ch5g() argument
205 struct rtw_regulation *rg, const struct freq_plan *f) in _chnlplan_update_5g() argument
230 rg->ch_idx5g = f->ch_idx; in _chnlplan_update_5g()
231 rg->regulation_5g = f->regulation; in _chnlplan_update_5g()
[all …]
H A Dphl_regulation_6g.c70 static void _convert_ch6g(u8 unii_6g, struct rtw_regulation *rg, in _convert_ch6g() argument
107 static void _update_psc_group(struct rtw_regulation *rg) in _update_psc_group() argument
111 &rg->chplan[FREQ_GROUP_6GHZ_PSC]; in _update_psc_group()
118 src = &rg->chplan[group]; in _update_psc_group()
134 static bool _chnlplan_update_6g(struct rtw_regulation *rg, in _chnlplan_update_6g() argument
158 rg->ch_idx6g = ch_idx; in _chnlplan_update_6g()
159 rg->regulation_6g = regulation; in _chnlplan_update_6g()
163 plan = &rg->chplan[group]; in _chnlplan_update_6g()
167 _convert_ch6g((u8)(i + 5), rg, &plan->cnt, plan->ch, in _chnlplan_update_6g()
172 _update_psc_group(rg); in _chnlplan_update_6g()
[all …]
/OK3568_Linux_fs/u-boot/drivers/dma/
H A Dti-edma3.c92 struct edma3_slot_layout *rg; in edma3_set_dest() local
94 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_dest()
96 opt = __raw_readl(&rg->opt); in edma3_set_dest()
104 __raw_writel(opt, &rg->opt); in edma3_set_dest()
105 __raw_writel(dst, &rg->dst); in edma3_set_dest()
123 struct edma3_slot_layout *rg; in edma3_set_dest_index() local
125 rg = (struct edma3_slot_layout *)(base + EDMA3_SL_BASE(slot)); in edma3_set_dest_index()
127 src_dst_bidx = __raw_readl(&rg->src_dst_bidx); in edma3_set_dest_index()
128 src_dst_cidx = __raw_readl(&rg->src_dst_cidx); in edma3_set_dest_index()
131 &rg->src_dst_bidx); in edma3_set_dest_index()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/arm/display/include/
H A Dmalidp_utils.h32 static inline void set_range(struct malidp_range *rg, u32 start, u32 end) in set_range() argument
34 rg->start = start; in set_range()
35 rg->end = end; in set_range()
38 static inline bool in_range(struct malidp_range *rg, u32 v) in in_range() argument
40 return (v >= rg->start) && (v <= rg->end); in in_range()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap2/omapfb/
H A Domapfb-main.c493 struct omapfb2_mem_region *rg = ofbi->region; in setup_vrfb_rotation() local
494 struct vrfb *vrfb = &rg->vrfb; in setup_vrfb_rotation()
503 if (!rg->size || ofbi->rotation_type != OMAP_DSS_ROT_VRFB) in setup_vrfb_rotation()
543 omap_vrfb_setup(&rg->vrfb, rg->paddr, in setup_vrfb_rotation()
595 struct omapfb2_mem_region *rg = ofbi->region; in set_fb_fix() local
620 fix->smem_len = rg->size; in set_fb_fix()
1068 struct omapfb2_mem_region *rg = vma->vm_private_data; in mmap_user_open() local
1070 omapfb_get_mem_region(rg); in mmap_user_open()
1071 atomic_inc(&rg->map_count); in mmap_user_open()
1072 omapfb_put_mem_region(rg); in mmap_user_open()
[all …]
H A Domapfb.h183 omapfb_get_mem_region(struct omapfb2_mem_region *rg) in omapfb_get_mem_region() argument
185 down_read_nested(&rg->lock, rg->id); in omapfb_get_mem_region()
186 atomic_inc(&rg->lock_count); in omapfb_get_mem_region()
187 return rg; in omapfb_get_mem_region()
190 static inline void omapfb_put_mem_region(struct omapfb2_mem_region *rg) in omapfb_put_mem_region() argument
192 atomic_dec(&rg->lock_count); in omapfb_put_mem_region()
193 up_read(&rg->lock); in omapfb_put_mem_region()
H A Domapfb-sysfs.c41 struct omapfb2_mem_region *rg; in store_rotate_type() local
58 rg = omapfb_get_mem_region(ofbi->region); in store_rotate_type()
60 if (rg->size) { in store_rotate_type()
72 omapfb_put_mem_region(rg); in store_rotate_type()
428 struct omapfb2_mem_region *rg; in store_size() local
444 rg = ofbi->region; in store_size()
446 down_write_nested(&rg->lock, rg->id); in store_size()
447 atomic_inc(&rg->lock_count); in store_size()
449 if (atomic_read(&rg->map_count)) { in store_size()
458 if (ofbi2->region != rg) in store_size()
[all …]
H A Domapfb-ioctl.c207 struct omapfb2_mem_region *rg; in omapfb_setup_mem() local
219 rg = ofbi->region; in omapfb_setup_mem()
221 down_write_nested(&rg->lock, rg->id); in omapfb_setup_mem()
222 atomic_inc(&rg->lock_count); in omapfb_setup_mem()
224 if (rg->size == size && rg->type == mi->type) in omapfb_setup_mem()
227 if (atomic_read(&rg->map_count)) { in omapfb_setup_mem()
236 if (ofbi2->region != rg) in omapfb_setup_mem()
256 atomic_dec(&rg->lock_count); in omapfb_setup_mem()
257 up_write(&rg->lock); in omapfb_setup_mem()
265 struct omapfb2_mem_region *rg; in omapfb_query_mem() local
[all …]
/OK3568_Linux_fs/external/xserver/xkb/
H A DxkbPrKeyEv.c92 XkbRadioGroupPtr rg; in XkbProcessKeyboardEvent() local
97 rg = &xkbi->radioGroups[ndx]; in XkbProcessKeyboardEvent()
98 if (rg->currentDown == event->detail.key) { in XkbProcessKeyboardEvent()
102 rg->currentDown = 0; in XkbProcessKeyboardEvent()
106 if (rg->currentDown != 0) { in XkbProcessKeyboardEvent()
110 event->detail.key = rg->currentDown; in XkbProcessKeyboardEvent()
115 rg->currentDown = key; in XkbProcessKeyboardEvent()
/OK3568_Linux_fs/kernel/sound/mips/
H A Dad1843.c298 int lg, rg, lm, rm; in ad1843_get_gain() local
302 ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); in ad1843_get_gain()
305 rg = mask - rg; in ad1843_get_gain()
312 rg = 0; in ad1843_get_gain()
314 return lg << 0 | rg << 8; in ad1843_get_gain()
329 int rg = (newval >> 8) & mask; in ad1843_set_gain() local
331 int rm = (rg == 0) ? 1 : 0; in ad1843_set_gain()
335 rg = mask - rg; in ad1843_set_gain()
339 ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg); in ad1843_set_gain()
/OK3568_Linux_fs/kernel/mm/
H A Dhugetlb.c266 struct file_region *rg) in copy_hugetlb_cgroup_uncharge_info() argument
269 nrg->reservation_counter = rg->reservation_counter; in copy_hugetlb_cgroup_uncharge_info()
270 nrg->css = rg->css; in copy_hugetlb_cgroup_uncharge_info()
271 if (rg->css) in copy_hugetlb_cgroup_uncharge_info()
272 css_get(rg->css); in copy_hugetlb_cgroup_uncharge_info()
311 static void put_uncharge_info(struct file_region *rg) in put_uncharge_info() argument
314 if (rg->css) in put_uncharge_info()
315 css_put(rg->css); in put_uncharge_info()
319 static bool has_same_uncharge_info(struct file_region *rg, in has_same_uncharge_info() argument
323 return rg && org && in has_same_uncharge_info()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/core/
H A Dvsx_utils.hpp101 #define VSX_REDIRECT_1RG(rt, rg, fnm, fn2) \ argument
102 VSX_FINLINE(rt) fnm(const rg& a) { return fn2(a); }
104 #define VSX_REDIRECT_2RG(rt, rg, fnm, fn2) \ argument
105 VSX_FINLINE(rt) fnm(const rg& a, const rg& b) { return fn2(a, b); }
113 #define VSX_IMPL_1RG(rt, rto, rg, rgo, opc, fnm) \ argument
114 VSX_FINLINE(rt) fnm(const rg& a) \
117 #define VSX_IMPL_1VRG(rt, rg, opc, fnm) \ argument
118 VSX_FINLINE(rt) fnm(const rg& a) \
121 #define VSX_IMPL_2VRG_F(rt, rg, fopc, fnm) \ argument
122 VSX_FINLINE(rt) fnm(const rg& a, const rg& b) \
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/
H A Dvsx_utils.hpp101 #define VSX_REDIRECT_1RG(rt, rg, fnm, fn2) \ argument
102 VSX_FINLINE(rt) fnm(const rg& a) { return fn2(a); }
104 #define VSX_REDIRECT_2RG(rt, rg, fnm, fn2) \ argument
105 VSX_FINLINE(rt) fnm(const rg& a, const rg& b) { return fn2(a, b); }
113 #define VSX_IMPL_1RG(rt, rto, rg, rgo, opc, fnm) \ argument
114 VSX_FINLINE(rt) fnm(const rg& a) \
117 #define VSX_IMPL_1VRG(rt, rg, opc, fnm) \ argument
118 VSX_FINLINE(rt) fnm(const rg& a) \
121 #define VSX_IMPL_2VRG_F(rt, rg, fopc, fnm) \ argument
122 VSX_FINLINE(rt) fnm(const rg& a, const rg& b) \
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/core/
H A Dvsx_utils.hpp101 #define VSX_REDIRECT_1RG(rt, rg, fnm, fn2) \ argument
102 VSX_FINLINE(rt) fnm(const rg& a) { return fn2(a); }
104 #define VSX_REDIRECT_2RG(rt, rg, fnm, fn2) \ argument
105 VSX_FINLINE(rt) fnm(const rg& a, const rg& b) { return fn2(a, b); }
113 #define VSX_IMPL_1RG(rt, rto, rg, rgo, opc, fnm) \ argument
114 VSX_FINLINE(rt) fnm(const rg& a) \
117 #define VSX_IMPL_1VRG(rt, rg, opc, fnm) \ argument
118 VSX_FINLINE(rt) fnm(const rg& a) \
121 #define VSX_IMPL_2VRG_F(rt, rg, fopc, fnm) \ argument
122 VSX_FINLINE(rt) fnm(const rg& a, const rg& b) \
[all …]
/OK3568_Linux_fs/kernel/drivers/clocksource/
H A Dtimer-keystone.c48 static inline u32 keystone_timer_readl(unsigned long rg) in keystone_timer_readl() argument
50 return readl_relaxed(timer.base + rg); in keystone_timer_readl()
53 static inline void keystone_timer_writel(u32 val, unsigned long rg) in keystone_timer_writel() argument
55 writel_relaxed(val, timer.base + rg); in keystone_timer_writel()
/OK3568_Linux_fs/kernel/drivers/power/reset/
H A Dkeystone-reset.c80 unsigned int rg; in rsctrl_probe() local
144 rg = rsmux_offset + val * 4; in rsctrl_probe()
146 ret = regmap_update_bits(devctrl_regs, rg, RSMUX_OMODE_MASK, in rsctrl_probe()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap/
H A Domapfb_main.c371 struct omapfb_mem_region *rg; in set_fb_fix() local
374 rg = &plane->fbdev->mem_desc.region[plane->idx]; in set_fb_fix()
375 fbi->screen_base = rg->vaddr; in set_fb_fix()
379 fix->smem_start = rg->paddr; in set_fb_fix()
380 fix->smem_len = rg->size; in set_fb_fix()
383 fix->smem_start = rg->paddr; in set_fb_fix()
384 fix->smem_len = rg->size; in set_fb_fix()
812 struct omapfb_mem_region *rg = &fbdev->mem_desc.region[plane->idx]; in omapfb_setup_mem() local
827 if (rg->size != size || rg->type != mi->type) { in omapfb_setup_mem()
829 unsigned long old_size = rg->size; in omapfb_setup_mem()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath6kl/
H A Dhif.c144 struct ath6kl_irq_proc_registers *rg; in ath6kl_hif_poll_mboxmsg_rx() local
168 rg = &dev->irq_proc_reg; in ath6kl_hif_poll_mboxmsg_rx()
170 le32_to_cpu(rg->rx_lkahd[HTC_MAILBOX]); in ath6kl_hif_poll_mboxmsg_rx()
390 struct ath6kl_irq_proc_registers *rg; in proc_pending_irqs() local
451 rg = &dev->irq_proc_reg; in proc_pending_irqs()
452 lk_ahd = le32_to_cpu(rg->rx_lkahd[HTC_MAILBOX]); in proc_pending_irqs()
/OK3568_Linux_fs/buildroot/package/ripgrep/
H A Dripgrep.mk41 $(INSTALL) -D -m 0755 $(@D)/$(RIPGREP_BIN_DIR)/rg \
42 $(TARGET_DIR)/usr/bin/rg
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/
H A Dtftp-0.42-tftpboot.patch54 @@ -30,5 +30,5 @@ rg \\ / # Convert backslashes to slash
55 rg \# @ # Convert hash marks to @ signs
56 rg /../ /..no../ # Convert /../ to /..no../
/OK3568_Linux_fs/buildroot/package/bctoolbox/
H A D0001-Fix-Libs.private-flags-for-mbedtls.patch11 So sent back the fix already suggested by Jörg Krause in
14 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
/OK3568_Linux_fs/buildroot/package/alsa-lib/
H A D0001-Don-t-use-fork-on-noMMU-platforms.patch10 [Jörg: update patch for 1.1.6]
11 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>

123