Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/gpio/
Dgpio-mt7621.c66 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/
Dsm3-neon-core.S47 #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/
Di915_hwmon.c61 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/
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 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/
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()
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 …]
Domapfb-sysfs.c42 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 …]
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 …]
/linux-6.6.21/sound/mips/
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()
/linux-6.6.21/drivers/dma/dw-edma/
Ddw-edma-pcie.c41 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/
Dhugetlb.c454 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 …]
Dhugetlb_cgroup.c436 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/
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()
/linux-6.6.21/drivers/power/reset/
Dkeystone-reset.c82 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/
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()
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/
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()
/linux-6.6.21/include/linux/
Dhugetlb_cgroup.h162 struct file_region *rg,
172 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument
/linux-6.6.21/drivers/dma/mediatek/
Dmtk-uart-apdma.c214 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/
Dsas_expander.c439 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/
Dmanager-sysfs.c365 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/
Domapdss.h144 s16 rr, rg, rb; member
/linux-6.6.21/include/scsi/
Dsas.h704 struct report_general_resp rg; member
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_switch.c4834 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/
Domapfb_dss.h289 s16 rr, rg, rb; member
/linux-6.6.21/drivers/gpu/drm/omapdrm/
Domap_crtc.c385 cpr->rg = omap_crtc_s31_32_to_s2_8(ctm->matrix[1]); in omap_crtc_cpr_coefs_from_ctm()

12