/linux-6.6.21/drivers/gpio/ |
D | gpio-mt7621.c | 66 mtk_gpio_w32(struct mtk_gc *rg, u32 offset, u32 val) in mtk_gpio_w32() argument 68 struct gpio_chip *gc = &rg->chip; in mtk_gpio_w32() 71 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_w32() 76 mtk_gpio_r32(struct mtk_gc *rg, u32 offset) in mtk_gpio_r32() argument 78 struct gpio_chip *gc = &rg->chip; in mtk_gpio_r32() 81 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_r32() 89 struct mtk_gc *rg = to_mediatek_gpio(gc); in mediatek_gpio_irq_handler() local 94 pending = mtk_gpio_r32(rg, GPIO_REG_STAT); in mediatek_gpio_irq_handler() 98 mtk_gpio_w32(rg, GPIO_REG_STAT, BIT(bit)); in mediatek_gpio_irq_handler() 109 struct mtk_gc *rg = to_mediatek_gpio(gc); in mediatek_gpio_irq_unmask() local [all …]
|
/linux-6.6.21/arch/arm64/crypto/ |
D | sm3-neon-core.S | 47 #define rg w9 macro 359 ldp rg, rh, [RSTATE, #24] 401 R1(ra, rb, rc, rd, re, rf, rg, rh, k_even, KL, 0, 0, IW, _, 0) 402 R1(rd, ra, rb, rc, rh, re, rf, rg, k_odd, _, 1, 1, IW, _, 0) 403 R1(rc, rd, ra, rb, rg, rh, re, rf, k_even, KL, 2, 2, IW, _, 0) 404 R1(rb, rc, rd, ra, rf, rg, rh, re, k_odd, _, 3, 3, IW, _, 0) 407 R1(ra, rb, rc, rd, re, rf, rg, rh, k_even, KL, 4, 0, IW, _, 0) 408 R1(rd, ra, rb, rc, rh, re, rf, rg, k_odd, _, 5, 1, IW, _, 0) 409 R1(rc, rd, ra, rb, rg, rh, re, rf, k_even, KL, 6, 2, IW, SCHED_W_W0W1W2W3W4W5_1, 12) 410 R1(rb, rc, rd, ra, rf, rg, rh, re, k_odd, _, 7, 3, IW, SCHED_W_W0W1W2W3W4W5_2, 12) [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_hwmon.c | 61 struct hwm_reg rg; member 135 rgaddr = hwmon->rg.energy_status_tile; in hwm_energy() 137 rgaddr = hwmon->rg.energy_status_all; in hwm_energy() 166 r = intel_uncore_read(ddat->uncore, hwmon->rg.pkg_rapl_limit); in hwm_power1_max_interval_show() 235 hwm_locked_with_pm_intel_uncore_rmw(ddat, hwmon->rg.pkg_rapl_limit, in hwm_power1_max_interval_store() 257 return i915_mmio_reg_valid(hwmon->rg.pkg_rapl_limit) ? attr->mode : 0; in hwm_attributes_visible() 325 reg_value = intel_uncore_read(ddat->uncore, hwmon->rg.gt_perf_status); in hwm_in_read() 343 return i915_mmio_reg_valid(hwmon->rg.pkg_rapl_limit) ? 0664 : 0; in hwm_power_is_visible() 345 return i915_mmio_reg_valid(hwmon->rg.pkg_power_sku) ? 0444 : 0; in hwm_power_is_visible() 371 r = intel_uncore_read(ddat->uncore, hwmon->rg.pkg_rapl_limit); in hwm_power_max_read() [all …]
|
/linux-6.6.21/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 malidp_in_range(struct malidp_range *rg, u32 v) in malidp_in_range() argument 40 return (v >= rg->start) && (v <= rg->end); in malidp_in_range()
|
/linux-6.6.21/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 | 42 struct omapfb2_mem_region *rg; in store_rotate_type() local 59 rg = omapfb_get_mem_region(ofbi->region); in store_rotate_type() 61 if (rg->size) { in store_rotate_type() 73 omapfb_put_mem_region(rg); in store_rotate_type() 429 struct omapfb2_mem_region *rg; in store_size() local 445 rg = ofbi->region; in store_size() 447 down_write_nested(&rg->lock, rg->id); in store_size() 448 atomic_inc(&rg->lock_count); in store_size() 450 if (atomic_read(&rg->map_count)) { in store_size() 459 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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/dma/dw-edma/ |
D | dw-edma-pcie.c | 41 struct dw_edma_block rg; member 57 .rg.bar = BAR_0, 58 .rg.off = 0x00001000, /* 4 Kbytes */ 59 .rg.sz = 0x00002000, /* 8 Kbytes */ 143 pdata->rg.bar = FIELD_GET(DW_PCIE_VSEC_DMA_BAR, val); in dw_edma_pcie_get_vsec_dma_data() 156 pdata->rg.off = off; in dw_edma_pcie_get_vsec_dma_data() 185 mask = BIT(vsec_data.rg.bar); in dw_edma_pcie_probe() 233 chip->reg_base = pcim_iomap_table(pdev)[vsec_data.rg.bar]; in dw_edma_pcie_probe() 298 vsec_data.rg.bar, vsec_data.rg.off, vsec_data.rg.sz, in dw_edma_pcie_probe()
|
/linux-6.6.21/mm/ |
D | hugetlb.c | 454 struct file_region *rg) in copy_hugetlb_cgroup_uncharge_info() argument 457 nrg->reservation_counter = rg->reservation_counter; in copy_hugetlb_cgroup_uncharge_info() 458 nrg->css = rg->css; in copy_hugetlb_cgroup_uncharge_info() 459 if (rg->css) in copy_hugetlb_cgroup_uncharge_info() 460 css_get(rg->css); in copy_hugetlb_cgroup_uncharge_info() 499 static void put_uncharge_info(struct file_region *rg) in put_uncharge_info() argument 502 if (rg->css) in put_uncharge_info() 503 css_put(rg->css); in put_uncharge_info() 507 static bool has_same_uncharge_info(struct file_region *rg, in has_same_uncharge_info() argument 511 return rg->reservation_counter == org->reservation_counter && in has_same_uncharge_info() [all …]
|
D | hugetlb_cgroup.c | 436 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument 440 if (hugetlb_cgroup_disabled() || !resv || !rg || !nr_pages) in hugetlb_cgroup_uncharge_file_region() 443 if (rg->reservation_counter && resv->pages_per_hpage && in hugetlb_cgroup_uncharge_file_region() 445 page_counter_uncharge(rg->reservation_counter, in hugetlb_cgroup_uncharge_file_region() 452 css_put(rg->css); in hugetlb_cgroup_uncharge_file_region()
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/power/reset/ |
D | keystone-reset.c | 82 unsigned int rg; in rsctrl_probe() local 146 rg = rsmux_offset + val * 4; in rsctrl_probe() 148 ret = regmap_update_bits(devctrl_regs, rg, RSMUX_OMODE_MASK, in rsctrl_probe()
|
/linux-6.6.21/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() 817 struct omapfb_mem_region *rg = &fbdev->mem_desc.region[plane->idx]; in omapfb_setup_mem() local 832 if (rg->size != size || rg->type != mi->type) { in omapfb_setup_mem() 834 unsigned long old_size = rg->size; in omapfb_setup_mem() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/include/linux/ |
D | hugetlb_cgroup.h | 162 struct file_region *rg, 172 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument
|
/linux-6.6.21/drivers/dma/mediatek/ |
D | mtk-uart-apdma.c | 214 unsigned int len, wg, rg; in mtk_uart_apdma_rx_handler() local 226 rg = mtk_uart_apdma_read(c, VFF_RPT); in mtk_uart_apdma_rx_handler() 228 cnt = (wg & VFF_RING_SIZE) - (rg & VFF_RING_SIZE); in mtk_uart_apdma_rx_handler() 234 if ((rg ^ wg) & VFF_RING_WRAP) in mtk_uart_apdma_rx_handler()
|
/linux-6.6.21/drivers/scsi/libsas/ |
D | sas_expander.c | 439 struct report_general_resp *rg; in sas_ex_general() local 470 rg = &rg_resp->rg; in sas_ex_general() 471 dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count); in sas_ex_general() 472 dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes); in sas_ex_general() 473 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in sas_ex_general() 474 dev->ex_dev.t2t_supp = rg->t2t_supp; in sas_ex_general() 475 dev->ex_dev.conf_route_table = rg->conf_route_table; in sas_ex_general() 476 dev->ex_dev.configuring = rg->configuring; in sas_ex_general() 478 rg->enclosure_logical_id, 8); in sas_ex_general() 1747 *ecc = be16_to_cpu(rg_resp->rg.change_count); in sas_get_ex_change_count()
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/ |
D | manager-sysfs.c | 365 info.cpr_coefs.rg, in manager_cpr_coef_show() 387 &coefs.rr, &coefs.rg, &coefs.rb, in manager_cpr_coef_store() 392 arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, in manager_cpr_coef_store()
|
/linux-6.6.21/drivers/gpu/drm/omapdrm/dss/ |
D | omapdss.h | 144 s16 rr, rg, rb; member
|
/linux-6.6.21/include/scsi/ |
D | sas.h | 704 struct report_general_resp rg; member
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 4834 struct ice_recp_grp_entry *rg; in ice_fill_fv_word_index() local 4844 list_for_each_entry(rg, rg_list, l_entry) { in ice_fill_fv_word_index() 4847 for (i = 0; i < rg->r_group.n_val_pairs; i++) { in ice_fill_fv_word_index() 4853 pr = &rg->r_group.pairs[i]; in ice_fill_fv_word_index() 4854 mask = rg->r_group.mask[i]; in ice_fill_fv_word_index() 4862 rg->fv_idx[i] = j; in ice_fill_fv_word_index() 4863 rg->fv_mask[i] = mask; in ice_fill_fv_word_index()
|
/linux-6.6.21/include/video/ |
D | omapfb_dss.h | 289 s16 rr, rg, rb; member
|
/linux-6.6.21/drivers/gpu/drm/omapdrm/ |
D | omap_crtc.c | 385 cpr->rg = omap_crtc_s31_32_to_s2_8(ctm->matrix[1]); in omap_crtc_cpr_coefs_from_ctm()
|