Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/video/omap2/omapfb/
Domapfb.h191 omapfb_get_mem_region(struct omapfb2_mem_region *rg) in omapfb_get_mem_region() argument
193 down_read_nested(&rg->lock, rg->id); in omapfb_get_mem_region()
194 atomic_inc(&rg->lock_count); in omapfb_get_mem_region()
195 return rg; in omapfb_get_mem_region()
198 static inline void omapfb_put_mem_region(struct omapfb2_mem_region *rg) in omapfb_put_mem_region() argument
200 atomic_dec(&rg->lock_count); in omapfb_put_mem_region()
201 up_read(&rg->lock); in omapfb_put_mem_region()
Domapfb-main.c504 struct omapfb2_mem_region *rg = ofbi->region; in setup_vrfb_rotation() local
505 struct vrfb *vrfb = &rg->vrfb; in setup_vrfb_rotation()
514 if (!rg->size || ofbi->rotation_type != OMAP_DSS_ROT_VRFB) in setup_vrfb_rotation()
554 omap_vrfb_setup(&rg->vrfb, rg->paddr, in setup_vrfb_rotation()
606 struct omapfb2_mem_region *rg = ofbi->region; in set_fb_fix() local
631 fix->smem_len = rg->size; in set_fb_fix()
1074 struct omapfb2_mem_region *rg = vma->vm_private_data; in mmap_user_open() local
1076 omapfb_get_mem_region(rg); in mmap_user_open()
1077 atomic_inc(&rg->map_count); in mmap_user_open()
1078 omapfb_put_mem_region(rg); in mmap_user_open()
[all …]
Domapfb-sysfs.c52 struct omapfb2_mem_region *rg; in store_rotate_type() local
70 rg = omapfb_get_mem_region(ofbi->region); in store_rotate_type()
72 if (rg->size) { in store_rotate_type()
84 omapfb_put_mem_region(rg); in store_rotate_type()
444 struct omapfb2_mem_region *rg; in store_size() local
458 rg = ofbi->region; in store_size()
460 down_write_nested(&rg->lock, rg->id); in store_size()
461 atomic_inc(&rg->lock_count); in store_size()
463 if (atomic_read(&rg->map_count)) { in store_size()
472 if (ofbi2->region != rg) in store_size()
[all …]
Domapfb-ioctl.c214 struct omapfb2_mem_region *rg; in omapfb_setup_mem() local
223 rg = ofbi->region; in omapfb_setup_mem()
225 down_write_nested(&rg->lock, rg->id); in omapfb_setup_mem()
226 atomic_inc(&rg->lock_count); in omapfb_setup_mem()
228 if (atomic_read(&rg->map_count)) { in omapfb_setup_mem()
237 if (ofbi2->region != rg) in omapfb_setup_mem()
250 if (rg->size != size || rg->type != mi->type) { in omapfb_setup_mem()
259 atomic_dec(&rg->lock_count); in omapfb_setup_mem()
260 up_write(&rg->lock); in omapfb_setup_mem()
268 struct omapfb2_mem_region *rg; in omapfb_query_mem() local
[all …]
/linux-3.4.99/sound/mips/
Dad1843.c312 int lg, rg, lm, rm; in ad1843_get_gain() local
316 ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); in ad1843_get_gain()
319 rg = mask - rg; in ad1843_get_gain()
326 rg = 0; in ad1843_get_gain()
328 return lg << 0 | rg << 8; in ad1843_get_gain()
343 int rg = (newval >> 8) & mask; in ad1843_set_gain() local
345 int rm = (rg == 0) ? 1 : 0; in ad1843_set_gain()
349 rg = mask - rg; in ad1843_set_gain()
353 ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg); in ad1843_set_gain()
/linux-3.4.99/mm/
Dhugetlb.c156 struct file_region *rg, *nrg, *trg; in region_add() local
159 list_for_each_entry(rg, head, link) in region_add()
160 if (f <= rg->to) in region_add()
164 if (f > rg->from) in region_add()
165 f = rg->from; in region_add()
168 nrg = rg; in region_add()
169 list_for_each_entry_safe(rg, trg, rg->link.prev, link) { in region_add()
170 if (&rg->link == head) in region_add()
172 if (rg->from > t) in region_add()
178 if (rg->to > t) in region_add()
[all …]
/linux-3.4.99/drivers/net/wireless/ath/ath6kl/
Dhif.c147 struct ath6kl_irq_proc_registers *rg; in ath6kl_hif_poll_mboxmsg_rx() local
171 rg = &dev->irq_proc_reg; in ath6kl_hif_poll_mboxmsg_rx()
173 le32_to_cpu(rg->rx_lkahd[HTC_MAILBOX]); in ath6kl_hif_poll_mboxmsg_rx()
395 struct ath6kl_irq_proc_registers *rg; in proc_pending_irqs() local
454 rg = &dev->irq_proc_reg; in proc_pending_irqs()
455 lk_ahd = le32_to_cpu(rg->rx_lkahd[HTC_MAILBOX]); in proc_pending_irqs()
/linux-3.4.99/drivers/video/omap/
Domapfb_main.c398 struct omapfb_mem_region *rg; in set_fb_fix() local
401 rg = &plane->fbdev->mem_desc.region[plane->idx]; in set_fb_fix()
402 fbi->screen_base = rg->vaddr; in set_fb_fix()
406 fix->smem_start = rg->paddr; in set_fb_fix()
407 fix->smem_len = rg->size; in set_fb_fix()
410 fix->smem_start = rg->paddr; in set_fb_fix()
411 fix->smem_len = rg->size; in set_fb_fix()
859 struct omapfb_mem_region *rg = &fbdev->mem_desc.region[plane->idx]; in omapfb_setup_mem() local
874 if (rg->size != size || rg->type != mi->type) { in omapfb_setup_mem()
876 unsigned long old_size = rg->size; in omapfb_setup_mem()
[all …]
/linux-3.4.99/Documentation/sound/oss/
Dvwsnd256 int lg, rg;
262 rg = word >> 8 & 0xFF;
264 rg = (rg * mask + mask / 2) / 100;
266 *right = gp->min_gain + gp->gain_step * rg;
279 int lg, rg;
284 rg = (right - gp->min_gain + round) / gp->gain_step;
285 if (lg >= (1 << gp->nbits) || rg >= (1 << gp->nbits))
288 rg = (100 * rg + mask / 2) / mask;
289 word = lg | rg << 8;
/linux-3.4.99/Documentation/filesystems/
Dcoda.txt557 AArrgguummeennttss
584 AArrgguummeennttss
630 AArrgguummeennttss
672 AArrgguummeennttss
704 AArrgguummeennttss
735 AArrgguummeennttss
794 AArrgguummeennttss
836 AArrgguummeennttss
864 AArrgguummeennttss
897 AArrgguummeennttss
[all …]
/linux-3.4.99/sound/oss/
Dvwsnd.c1063 int lg, rg; in ad1843_get_gain() local
1066 ad1843_read_multi(lith, 2, gp->lfield, &lg, gp->rfield, &rg); in ad1843_get_gain()
1069 rg = mask - rg; in ad1843_get_gain()
1072 rg = (rg * 100 + (mask >> 1)) / mask; in ad1843_get_gain()
1073 return lg << 0 | rg << 8; in ad1843_get_gain()
1090 int rg = newval >> 8; in ad1843_set_gain() local
1091 if (lg < 0 || lg > 100 || rg < 0 || rg > 100) in ad1843_set_gain()
1094 rg = (rg * mask + (mask >> 1)) / 100; in ad1843_set_gain()
1097 rg = mask - rg; in ad1843_set_gain()
1099 ad1843_write_multi(lith, 2, gp->lfield, lg, gp->rfield, rg); in ad1843_set_gain()
/linux-3.4.99/drivers/scsi/libsas/
Dsas_expander.c454 struct report_general_resp *rg = &resp->rg; in ex_assign_report_general() local
456 dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count); in ex_assign_report_general()
457 dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes); in ex_assign_report_general()
458 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in ex_assign_report_general()
459 dev->ex_dev.t2t_supp = rg->t2t_supp; in ex_assign_report_general()
460 dev->ex_dev.conf_route_table = rg->conf_route_table; in ex_assign_report_general()
461 dev->ex_dev.configuring = rg->configuring; in ex_assign_report_general()
462 memcpy(dev->ex_dev.enclosure_logical_id, rg->enclosure_logical_id, 8); in ex_assign_report_general()
1804 *ecc = be16_to_cpu(rg_resp->rg.change_count); in sas_get_ex_change_count()
/linux-3.4.99/drivers/video/omap2/dss/
Dmanager.c356 info.cpr_coefs.rg, in manager_cpr_coef_show()
378 &coefs.rr, &coefs.rg, &coefs.rb, in manager_cpr_coef_store()
383 arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, in manager_cpr_coef_store()
Ddispc.c954 coef_r = FLD_VAL(coefs->rr, 31, 22) | FLD_VAL(coefs->rg, 20, 11) | in dispc_mgr_set_cpr_coef()
/linux-3.4.99/include/scsi/
Dsas.h446 struct report_general_resp rg; member
640 struct report_general_resp rg; member
/linux-3.4.99/include/video/
Domapdss.h355 s16 rr, rg, rb; member