Home
last modified time | relevance | path

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

/linux/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 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/drivers/video/fbdev/omap2/omapfb/
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()
/linux/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()
/linux/mm/
H A Dhugetlb.c472 struct file_region *rg) in copy_hugetlb_cgroup_uncharge_info() argument
475 nrg->reservation_counter = rg->reservation_counter; in copy_hugetlb_cgroup_uncharge_info()
476 nrg->css = rg->css; in copy_hugetlb_cgroup_uncharge_info()
477 if (rg->css) in copy_hugetlb_cgroup_uncharge_info()
478 css_get(rg->css); in copy_hugetlb_cgroup_uncharge_info()
517 static void put_uncharge_info(struct file_region *rg) in put_uncharge_info() argument
520 if (rg->css) in put_uncharge_info()
521 css_put(rg->css); in put_uncharge_info()
525 static bool has_same_uncharge_info(struct file_region *rg, in has_same_uncharge_info() argument
529 return rg->reservation_counter == org->reservation_counter && in has_same_uncharge_info()
[all …]
H A Dhugetlb_cgroup.c425 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument
429 if (hugetlb_cgroup_disabled() || !resv || !rg || !nr_pages) in hugetlb_cgroup_uncharge_file_region()
432 if (rg->reservation_counter && resv->pages_per_hpage && in hugetlb_cgroup_uncharge_file_region()
434 page_counter_uncharge(rg->reservation_counter, in hugetlb_cgroup_uncharge_file_region()
441 css_put(rg->css); in hugetlb_cgroup_uncharge_file_region()
/linux/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()
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3566-anbernic-rg-arc-s.dts8 #include "rk3566-anbernic-rg-arc.dtsi"
12 compatible = "anbernic,rg-arc-s", "rockchip,rk3566";
H A Drk3566-anbernic-rg-arc-d.dts8 #include "rk3566-anbernic-rg-arc.dtsi"
12 compatible = "anbernic,rg-arc-d", "rockchip,rk3566";
/linux/drivers/video/fbdev/omap/
H A Domapfb_main.c373 struct omapfb_mem_region *rg; in set_fb_fix() local
376 rg = &plane->fbdev->mem_desc.region[plane->idx]; in set_fb_fix()
377 fbi->screen_base = rg->vaddr; in set_fb_fix()
381 fix->smem_start = rg->paddr; in set_fb_fix()
382 fix->smem_len = rg->size; in set_fb_fix()
385 fix->smem_start = rg->paddr; in set_fb_fix()
386 fix->smem_len = rg->size; in set_fb_fix()
819 struct omapfb_mem_region *rg = &fbdev->mem_desc.region[plane->idx]; in omapfb_setup_mem() local
834 if (rg->size != size || rg->type != mi->type) { in omapfb_setup_mem()
836 unsigned long old_size = rg->size; in omapfb_setup_mem()
[all …]
/linux/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()
/linux/drivers/hv/
H A Dmshv_root_main.c1222 struct mshv_mem_region *rg; in mshv_partition_create_region() local
1227 hlist_for_each_entry(rg, &partition->pt_mem_regions, hnode) { in mshv_partition_create_region()
1228 if (mem->guest_pfn + nr_pages <= rg->start_gfn || in mshv_partition_create_region()
1229 rg->start_gfn + rg->nr_pages <= mem->guest_pfn) in mshv_partition_create_region()
1236 rg = mshv_region_create(mem->guest_pfn, nr_pages, in mshv_partition_create_region()
1238 if (IS_ERR(rg)) in mshv_partition_create_region()
1239 return PTR_ERR(rg); in mshv_partition_create_region()
1242 rg->mreg_type = MSHV_REGION_TYPE_MMIO; in mshv_partition_create_region()
1244 !mshv_region_movable_init(rg)) in mshv_partition_create_region()
1245 rg->mreg_type = MSHV_REGION_TYPE_MEM_PINNED; in mshv_partition_create_region()
[all …]
/linux/include/linux/
H A Dhugetlb_cgroup.h151 struct file_region *rg,
161 struct file_region *rg, in hugetlb_cgroup_uncharge_file_region() argument
/linux/drivers/dma/mediatek/
H A 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/drivers/video/fbdev/omap2/omapfb/dss/
H A 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/drivers/scsi/libsas/
H A Dsas_expander.c460 struct report_general_resp *rg; in sas_ex_general() local
491 rg = &rg_resp->rg; in sas_ex_general()
492 dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count); in sas_ex_general()
493 dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes); in sas_ex_general()
494 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in sas_ex_general()
495 dev->ex_dev.t2t_supp = rg->t2t_supp; in sas_ex_general()
496 dev->ex_dev.conf_route_table = rg->conf_route_table; in sas_ex_general()
497 dev->ex_dev.configuring = rg->configuring; in sas_ex_general()
499 rg->enclosure_logical_id, 8); in sas_ex_general()
1768 *ecc = be16_to_cpu(rg_resp->rg.change_count); in sas_get_ex_change_count()
/linux/include/uapi/linux/media/amlogic/
H A Dc3-isp-config.h40 __u16 rg; member
/linux/arch/arm/boot/dts/allwinner/
H A Dsun8i-v3s-anbernic-rg-nano.dts10 compatible = "anbernic,rg-nano", "allwinner,sun8i-v3s";
/linux/drivers/media/i2c/
H A Dalvium-csi2.h334 u8 rg:1; member
/linux/include/scsi/
H A Dsas.h704 struct report_general_resp rg; member
/linux/drivers/gpu/drm/omapdrm/
H A Domap_crtc.c386 cpr->rg = omap_crtc_s31_32_to_s2_8(ctm->matrix[1]); in omap_crtc_cpr_coefs_from_ctm()
/linux/drivers/gpu/drm/omapdrm/dss/
H A Ddispc.c1290 coef_r = FLD_VAL(coefs->rr, 31, 22) | FLD_VAL(coefs->rg, 20, 11) | in dispc_mgr_set_cpr_coef()