/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-mt7621.c | 67 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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/include/ |
D | malidp_utils.h | 32 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()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb.h | 183 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()
|
D | omapfb-main.c | 493 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 …]
|
D | omapfb-sysfs.c | 41 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 …]
|
D | omapfb-ioctl.c | 207 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 …]
|
/kernel/linux/linux-5.10/sound/mips/ |
D | ad1843.c | 298 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()
|
/kernel/linux/linux-5.10/mm/ |
D | hugetlb.c | 267 struct file_region *rg) in copy_hugetlb_cgroup_uncharge_info() argument 270 nrg->reservation_counter = rg->reservation_counter; in copy_hugetlb_cgroup_uncharge_info() 271 nrg->css = rg->css; in copy_hugetlb_cgroup_uncharge_info() 272 if (rg->css) in copy_hugetlb_cgroup_uncharge_info() 273 css_get(rg->css); in copy_hugetlb_cgroup_uncharge_info() 312 static void put_uncharge_info(struct file_region *rg) in put_uncharge_info() argument 315 if (rg->css) in put_uncharge_info() 316 css_put(rg->css); in put_uncharge_info() 320 static bool has_same_uncharge_info(struct file_region *rg, in has_same_uncharge_info() argument 324 return rg && org && in has_same_uncharge_info() [all …]
|
D | hugetlb_cgroup.c | 393 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument 397 if (hugetlb_cgroup_disabled() || !resv || !rg || !nr_pages) in hugetlb_cgroup_uncharge_file_region() 400 if (rg->reservation_counter && resv->pages_per_hpage && nr_pages > 0 && in hugetlb_cgroup_uncharge_file_region() 402 page_counter_uncharge(rg->reservation_counter, in hugetlb_cgroup_uncharge_file_region() 409 css_put(rg->css); in hugetlb_cgroup_uncharge_file_region()
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
D | timer-keystone.c | 48 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()
|
/kernel/linux/linux-5.10/drivers/power/reset/ |
D | keystone-reset.c | 80 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
D | hif.c | 144 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()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap/ |
D | omapfb_main.c | 371 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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | hugetlb_cgroup.h | 152 struct file_region *rg, 162 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument
|
/kernel/linux/linux-5.10/drivers/dma/mediatek/ |
D | mtk-uart-apdma.c | 215 unsigned int len, wg, rg; in mtk_uart_apdma_rx_handler() local 227 rg = mtk_uart_apdma_read(c, VFF_RPT); in mtk_uart_apdma_rx_handler() 229 cnt = (wg & VFF_RING_SIZE) - (rg & VFF_RING_SIZE); in mtk_uart_apdma_rx_handler() 235 if ((rg ^ wg) & VFF_RING_WRAP) in mtk_uart_apdma_rx_handler()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
D | manager-sysfs.c | 364 info.cpr_coefs.rg, in manager_cpr_coef_show() 386 &coefs.rr, &coefs.rg, &coefs.rb, in manager_cpr_coef_store() 391 arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, in manager_cpr_coef_store()
|
D | dispc.c | 1064 coef_r = FLD_VAL(coefs->rr, 31, 22) | FLD_VAL(coefs->rg, 20, 11) | in dispc_mgr_set_cpr_coef()
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
D | sas_expander.c | 452 struct report_general_resp *rg = &resp->rg; in ex_assign_report_general() local 454 dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count); in ex_assign_report_general() 455 dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes); in ex_assign_report_general() 456 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in ex_assign_report_general() 457 dev->ex_dev.t2t_supp = rg->t2t_supp; in ex_assign_report_general() 458 dev->ex_dev.conf_route_table = rg->conf_route_table; in ex_assign_report_general() 459 dev->ex_dev.configuring = rg->configuring; in ex_assign_report_general() 460 memcpy(dev->ex_dev.enclosure_logical_id, rg->enclosure_logical_id, 8); in ex_assign_report_general() 1802 *ecc = be16_to_cpu(rg_resp->rg.change_count); in sas_get_ex_change_count()
|
/kernel/linux/linux-5.10/include/scsi/ |
D | sas.h | 469 struct report_general_resp rg; member 700 struct report_general_resp rg; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
D | omapdss.h | 224 s16 rr, rg, rb; member
|
D | dispc.c | 1309 coef_r = FLD_VAL(coefs->rr, 31, 22) | FLD_VAL(coefs->rg, 20, 11) | in dispc_mgr_set_cpr_coef()
|
/kernel/linux/linux-5.10/include/video/ |
D | omapfb_dss.h | 289 s16 rr, rg, rb; member
|
/kernel/linux/linux-5.10/drivers/thermal/tegra/ |
D | soctherm.c | 255 #define THERMCTL_LVL_REG(rg, lv) ((rg) + ((lv) * THERMCTL_LVL_REGS_SIZE)) argument
|