rg 48 drivers/clocksource/timer-keystone.c static inline u32 keystone_timer_readl(unsigned long rg) rg 50 drivers/clocksource/timer-keystone.c return readl_relaxed(timer.base + rg); rg 53 drivers/clocksource/timer-keystone.c static inline void keystone_timer_writel(u32 val, unsigned long rg) rg 55 drivers/clocksource/timer-keystone.c writel_relaxed(val, timer.base + rg); rg 223 drivers/dma/mediatek/mtk-uart-apdma.c unsigned int len, wg, rg; rg 235 drivers/dma/mediatek/mtk-uart-apdma.c rg = mtk_uart_apdma_read(c, VFF_RPT); rg 237 drivers/dma/mediatek/mtk-uart-apdma.c cnt = (wg & VFF_RING_SIZE) - (rg & VFF_RING_SIZE); rg 243 drivers/dma/mediatek/mtk-uart-apdma.c if ((rg ^ wg) & VFF_RING_WRAP) rg 67 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(struct mtk_gc *rg, u32 offset, u32 val) rg 69 drivers/gpio/gpio-mt7621.c struct gpio_chip *gc = &rg->chip; rg 72 drivers/gpio/gpio-mt7621.c offset = (rg->bank * GPIO_BANK_STRIDE) + offset; rg 77 drivers/gpio/gpio-mt7621.c mtk_gpio_r32(struct mtk_gc *rg, u32 offset) rg 79 drivers/gpio/gpio-mt7621.c struct gpio_chip *gc = &rg->chip; rg 82 drivers/gpio/gpio-mt7621.c offset = (rg->bank * GPIO_BANK_STRIDE) + offset; rg 90 drivers/gpio/gpio-mt7621.c struct mtk_gc *rg = to_mediatek_gpio(gc); rg 95 drivers/gpio/gpio-mt7621.c pending = mtk_gpio_r32(rg, GPIO_REG_STAT); rg 101 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_STAT, BIT(bit)); rg 112 drivers/gpio/gpio-mt7621.c struct mtk_gc *rg = to_mediatek_gpio(gc); rg 117 drivers/gpio/gpio-mt7621.c spin_lock_irqsave(&rg->lock, flags); rg 118 drivers/gpio/gpio-mt7621.c rise = mtk_gpio_r32(rg, GPIO_REG_REDGE); rg 119 drivers/gpio/gpio-mt7621.c fall = mtk_gpio_r32(rg, GPIO_REG_FEDGE); rg 120 drivers/gpio/gpio-mt7621.c high = mtk_gpio_r32(rg, GPIO_REG_HLVL); rg 121 drivers/gpio/gpio-mt7621.c low = mtk_gpio_r32(rg, GPIO_REG_LLVL); rg 122 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_REDGE, rise | (BIT(pin) & rg->rising)); rg 123 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_FEDGE, fall | (BIT(pin) & rg->falling)); rg 124 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_HLVL, high | (BIT(pin) & rg->hlevel)); rg 125 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_LLVL, low | (BIT(pin) & rg->llevel)); rg 126 drivers/gpio/gpio-mt7621.c spin_unlock_irqrestore(&rg->lock, flags); rg 133 drivers/gpio/gpio-mt7621.c struct mtk_gc *rg = to_mediatek_gpio(gc); rg 138 drivers/gpio/gpio-mt7621.c spin_lock_irqsave(&rg->lock, flags); rg 139 drivers/gpio/gpio-mt7621.c rise = mtk_gpio_r32(rg, GPIO_REG_REDGE); rg 140 drivers/gpio/gpio-mt7621.c fall = mtk_gpio_r32(rg, GPIO_REG_FEDGE); rg 141 drivers/gpio/gpio-mt7621.c high = mtk_gpio_r32(rg, GPIO_REG_HLVL); rg 142 drivers/gpio/gpio-mt7621.c low = mtk_gpio_r32(rg, GPIO_REG_LLVL); rg 143 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_FEDGE, fall & ~BIT(pin)); rg 144 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_REDGE, rise & ~BIT(pin)); rg 145 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_HLVL, high & ~BIT(pin)); rg 146 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_LLVL, low & ~BIT(pin)); rg 147 drivers/gpio/gpio-mt7621.c spin_unlock_irqrestore(&rg->lock, flags); rg 154 drivers/gpio/gpio-mt7621.c struct mtk_gc *rg = to_mediatek_gpio(gc); rg 159 drivers/gpio/gpio-mt7621.c if ((rg->rising | rg->falling | rg 160 drivers/gpio/gpio-mt7621.c rg->hlevel | rg->llevel) & mask) rg 166 drivers/gpio/gpio-mt7621.c rg->rising &= ~mask; rg 167 drivers/gpio/gpio-mt7621.c rg->falling &= ~mask; rg 168 drivers/gpio/gpio-mt7621.c rg->hlevel &= ~mask; rg 169 drivers/gpio/gpio-mt7621.c rg->llevel &= ~mask; rg 173 drivers/gpio/gpio-mt7621.c rg->rising |= mask; rg 174 drivers/gpio/gpio-mt7621.c rg->falling |= mask; rg 177 drivers/gpio/gpio-mt7621.c rg->rising |= mask; rg 180 drivers/gpio/gpio-mt7621.c rg->falling |= mask; rg 183 drivers/gpio/gpio-mt7621.c rg->hlevel |= mask; rg 186 drivers/gpio/gpio-mt7621.c rg->llevel |= mask; rg 198 drivers/gpio/gpio-mt7621.c struct mtk_gc *rg = to_mediatek_gpio(chip); rg 200 drivers/gpio/gpio-mt7621.c if (rg->bank != gpio / MTK_BANK_WIDTH) rg 214 drivers/gpio/gpio-mt7621.c struct mtk_gc *rg; rg 218 drivers/gpio/gpio-mt7621.c rg = &mtk->gc_map[bank]; rg 219 drivers/gpio/gpio-mt7621.c memset(rg, 0, sizeof(*rg)); rg 221 drivers/gpio/gpio-mt7621.c spin_lock_init(&rg->lock); rg 222 drivers/gpio/gpio-mt7621.c rg->chip.of_node = node; rg 223 drivers/gpio/gpio-mt7621.c rg->bank = bank; rg 225 drivers/gpio/gpio-mt7621.c dat = mtk->base + GPIO_REG_DATA + (rg->bank * GPIO_BANK_STRIDE); rg 226 drivers/gpio/gpio-mt7621.c set = mtk->base + GPIO_REG_DSET + (rg->bank * GPIO_BANK_STRIDE); rg 227 drivers/gpio/gpio-mt7621.c ctrl = mtk->base + GPIO_REG_DCLR + (rg->bank * GPIO_BANK_STRIDE); rg 228 drivers/gpio/gpio-mt7621.c diro = mtk->base + GPIO_REG_CTRL + (rg->bank * GPIO_BANK_STRIDE); rg 230 drivers/gpio/gpio-mt7621.c ret = bgpio_init(&rg->chip, dev, 4, rg 237 drivers/gpio/gpio-mt7621.c rg->chip.of_gpio_n_cells = 2; rg 238 drivers/gpio/gpio-mt7621.c rg->chip.of_xlate = mediatek_gpio_xlate; rg 239 drivers/gpio/gpio-mt7621.c rg->chip.label = devm_kasprintf(dev, GFP_KERNEL, "%s-bank%d", rg 241 drivers/gpio/gpio-mt7621.c if (!rg->chip.label) rg 244 drivers/gpio/gpio-mt7621.c rg->irq_chip.name = dev_name(dev); rg 245 drivers/gpio/gpio-mt7621.c rg->irq_chip.parent_device = dev; rg 246 drivers/gpio/gpio-mt7621.c rg->irq_chip.irq_unmask = mediatek_gpio_irq_unmask; rg 247 drivers/gpio/gpio-mt7621.c rg->irq_chip.irq_mask = mediatek_gpio_irq_mask; rg 248 drivers/gpio/gpio-mt7621.c rg->irq_chip.irq_mask_ack = mediatek_gpio_irq_mask; rg 249 drivers/gpio/gpio-mt7621.c rg->irq_chip.irq_set_type = mediatek_gpio_irq_type; rg 261 drivers/gpio/gpio-mt7621.c rg->chip.label, &rg->chip); rg 269 drivers/gpio/gpio-mt7621.c girq = &rg->chip.irq; rg 270 drivers/gpio/gpio-mt7621.c girq->chip = &rg->irq_chip; rg 279 drivers/gpio/gpio-mt7621.c ret = devm_gpiochip_add_data(dev, &rg->chip, mtk); rg 282 drivers/gpio/gpio-mt7621.c rg->chip.ngpio, ret); rg 287 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_POL, 0); rg 289 drivers/gpio/gpio-mt7621.c dev_info(dev, "registering %d gpios\n", rg->chip.ngpio); rg 35 drivers/gpu/drm/arm/display/include/malidp_utils.h static inline void set_range(struct malidp_range *rg, u32 start, u32 end) rg 37 drivers/gpu/drm/arm/display/include/malidp_utils.h rg->start = start; rg 38 drivers/gpu/drm/arm/display/include/malidp_utils.h rg->end = end; rg 41 drivers/gpu/drm/arm/display/include/malidp_utils.h static inline bool in_range(struct malidp_range *rg, u32 v) rg 43 drivers/gpu/drm/arm/display/include/malidp_utils.h return (v >= rg->start) && (v <= rg->end); rg 1320 drivers/gpu/drm/omapdrm/dss/dispc.c coef_r = FLD_VAL(coefs->rr, 31, 22) | FLD_VAL(coefs->rg, 20, 11) | rg 224 drivers/gpu/drm/omapdrm/dss/omapdss.h s16 rr, rg, rb; rg 144 drivers/net/wireless/ath/ath6kl/hif.c struct ath6kl_irq_proc_registers *rg; rg 168 drivers/net/wireless/ath/ath6kl/hif.c rg = &dev->irq_proc_reg; rg 170 drivers/net/wireless/ath/ath6kl/hif.c le32_to_cpu(rg->rx_lkahd[HTC_MAILBOX]); rg 390 drivers/net/wireless/ath/ath6kl/hif.c struct ath6kl_irq_proc_registers *rg; rg 451 drivers/net/wireless/ath/ath6kl/hif.c rg = &dev->irq_proc_reg; rg 452 drivers/net/wireless/ath/ath6kl/hif.c lk_ahd = le32_to_cpu(rg->rx_lkahd[HTC_MAILBOX]); rg 80 drivers/power/reset/keystone-reset.c unsigned int rg; rg 144 drivers/power/reset/keystone-reset.c rg = rsmux_offset + val * 4; rg 146 drivers/power/reset/keystone-reset.c ret = regmap_update_bits(devctrl_regs, rg, RSMUX_OMODE_MASK, rg 452 drivers/scsi/libsas/sas_expander.c struct report_general_resp *rg = &resp->rg; rg 454 drivers/scsi/libsas/sas_expander.c dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count); rg 455 drivers/scsi/libsas/sas_expander.c dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes); rg 456 drivers/scsi/libsas/sas_expander.c dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); rg 457 drivers/scsi/libsas/sas_expander.c dev->ex_dev.t2t_supp = rg->t2t_supp; rg 458 drivers/scsi/libsas/sas_expander.c dev->ex_dev.conf_route_table = rg->conf_route_table; rg 459 drivers/scsi/libsas/sas_expander.c dev->ex_dev.configuring = rg->configuring; rg 460 drivers/scsi/libsas/sas_expander.c memcpy(dev->ex_dev.enclosure_logical_id, rg->enclosure_logical_id, 8); rg 1802 drivers/scsi/libsas/sas_expander.c *ecc = be16_to_cpu(rg_resp->rg.change_count); rg 255 drivers/thermal/tegra/soctherm.c #define THERMCTL_LVL_REG(rg, lv) ((rg) + ((lv) * THERMCTL_LVL_REGS_SIZE)) rg 375 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_mem_region *rg; rg 378 drivers/video/fbdev/omap/omapfb_main.c rg = &plane->fbdev->mem_desc.region[plane->idx]; rg 379 drivers/video/fbdev/omap/omapfb_main.c fbi->screen_base = rg->vaddr; rg 383 drivers/video/fbdev/omap/omapfb_main.c fix->smem_start = rg->paddr; rg 384 drivers/video/fbdev/omap/omapfb_main.c fix->smem_len = rg->size; rg 387 drivers/video/fbdev/omap/omapfb_main.c fix->smem_start = rg->paddr; rg 388 drivers/video/fbdev/omap/omapfb_main.c fix->smem_len = rg->size; rg 816 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_mem_region *rg = &fbdev->mem_desc.region[plane->idx]; rg 831 drivers/video/fbdev/omap/omapfb_main.c if (rg->size != size || rg->type != mi->type) { rg 833 drivers/video/fbdev/omap/omapfb_main.c unsigned long old_size = rg->size; rg 834 drivers/video/fbdev/omap/omapfb_main.c u8 old_type = rg->type; rg 837 drivers/video/fbdev/omap/omapfb_main.c rg->size = size; rg 838 drivers/video/fbdev/omap/omapfb_main.c rg->type = mi->type; rg 859 drivers/video/fbdev/omap/omapfb_main.c rg->size = old_size; rg 860 drivers/video/fbdev/omap/omapfb_main.c rg->type = old_type; rg 863 drivers/video/fbdev/omap/omapfb_main.c rg->paddr = paddr; rg 892 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_mem_region *rg; rg 894 drivers/video/fbdev/omap/omapfb_main.c rg = &fbdev->mem_desc.region[plane->idx]; rg 896 drivers/video/fbdev/omap/omapfb_main.c mi->size = rg->size; rg 897 drivers/video/fbdev/omap/omapfb_main.c mi->type = rg->type; rg 1097 drivers/video/fbdev/omap2/omapfb/dss/dispc.c coef_r = FLD_VAL(coefs->rr, 31, 22) | FLD_VAL(coefs->rg, 20, 11) | rg 364 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c info.cpr_coefs.rg, rg 386 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c &coefs.rr, &coefs.rg, &coefs.rb, rg 391 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, rg 207 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_mem_region *rg; rg 219 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c rg = ofbi->region; rg 221 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c down_write_nested(&rg->lock, rg->id); rg 222 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c atomic_inc(&rg->lock_count); rg 224 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (rg->size == size && rg->type == mi->type) rg 227 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (atomic_read(&rg->map_count)) { rg 236 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (ofbi2->region != rg) rg 256 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c atomic_dec(&rg->lock_count); rg 257 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c up_write(&rg->lock); rg 265 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb2_mem_region *rg; rg 267 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c rg = omapfb_get_mem_region(ofbi->region); rg 270 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mi->size = rg->size; rg 271 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mi->type = rg->type; rg 273 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c omapfb_put_mem_region(rg); rg 493 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg = ofbi->region; rg 494 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct vrfb *vrfb = &rg->vrfb; rg 503 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (!rg->size || ofbi->rotation_type != OMAP_DSS_ROT_VRFB) rg 543 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omap_vrfb_setup(&rg->vrfb, rg->paddr, rg 595 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg = ofbi->region; rg 620 drivers/video/fbdev/omap2/omapfb/omapfb-main.c fix->smem_len = rg->size; rg 1068 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg = vma->vm_private_data; rg 1070 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_get_mem_region(rg); rg 1071 drivers/video/fbdev/omap2/omapfb/omapfb-main.c atomic_inc(&rg->map_count); rg 1072 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_put_mem_region(rg); rg 1077 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg = vma->vm_private_data; rg 1079 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_get_mem_region(rg); rg 1080 drivers/video/fbdev/omap2/omapfb/omapfb-main.c atomic_dec(&rg->map_count); rg 1081 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_put_mem_region(rg); rg 1093 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg; rg 1098 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg = omapfb_get_mem_region(ofbi->region); rg 1108 drivers/video/fbdev/omap2/omapfb/omapfb-main.c vma->vm_private_data = rg; rg 1115 drivers/video/fbdev/omap2/omapfb/omapfb-main.c atomic_inc(&rg->map_count); rg 1117 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omapfb_put_mem_region(rg); rg 1305 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg; rg 1307 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg = ofbi->region; rg 1309 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (rg->token == NULL) rg 1312 drivers/video/fbdev/omap2/omapfb/omapfb-main.c WARN_ON(atomic_read(&rg->map_count)); rg 1316 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (rg->vrfb.vaddr[0]) { rg 1317 drivers/video/fbdev/omap2/omapfb/omapfb-main.c iounmap(rg->vrfb.vaddr[0]); rg 1318 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->vrfb.vaddr[0] = NULL; rg 1321 drivers/video/fbdev/omap2/omapfb/omapfb-main.c omap_vrfb_release_ctx(&rg->vrfb); rg 1324 drivers/video/fbdev/omap2/omapfb/omapfb-main.c dma_free_attrs(fbdev->dev, rg->size, rg->token, rg->dma_handle, rg 1325 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->attrs); rg 1327 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->token = NULL; rg 1328 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->vaddr = NULL; rg 1329 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->paddr = 0; rg 1330 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->alloc = 0; rg 1331 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->size = 0; rg 1361 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg; rg 1367 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg = ofbi->region; rg 1369 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->paddr = 0; rg 1370 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->vaddr = NULL; rg 1371 drivers/video/fbdev/omap2/omapfb/omapfb-main.c memset(&rg->vrfb, 0, sizeof rg->vrfb); rg 1372 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->size = 0; rg 1373 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->type = 0; rg 1374 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->alloc = false; rg 1375 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->map = false; rg 1398 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = omap_vrfb_request_ctx(&rg->vrfb); rg 1407 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->attrs = attrs; rg 1408 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->token = token; rg 1409 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->dma_handle = dma_handle; rg 1411 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->paddr = (unsigned long)dma_handle; rg 1412 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->vaddr = (void __iomem *)token; rg 1413 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->size = size; rg 1414 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->alloc = 1; rg 1557 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg; rg 1558 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg = ofbi->region; rg 1562 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->paddr, rg 1563 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->vaddr, rg 1564 drivers/video/fbdev/omap2/omapfb/omapfb-main.c rg->size); rg 1588 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb2_mem_region *rg = ofbi->region; rg 1589 drivers/video/fbdev/omap2/omapfb/omapfb-main.c unsigned long old_size = rg->size; rg 1590 drivers/video/fbdev/omap2/omapfb/omapfb-main.c unsigned long old_paddr = rg->paddr; rg 1591 drivers/video/fbdev/omap2/omapfb/omapfb-main.c int old_type = rg->type; rg 1615 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (rg->size == 0) rg 41 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb2_mem_region *rg; rg 58 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c rg = omapfb_get_mem_region(ofbi->region); rg 60 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c if (rg->size) { rg 72 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c omapfb_put_mem_region(rg); rg 428 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c struct omapfb2_mem_region *rg; rg 444 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c rg = ofbi->region; rg 446 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c down_write_nested(&rg->lock, rg->id); rg 447 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c atomic_inc(&rg->lock_count); rg 449 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c if (atomic_read(&rg->map_count)) { rg 458 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c if (ofbi2->region != rg) rg 481 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c atomic_dec(&rg->lock_count); rg 482 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c up_write(&rg->lock); rg 183 drivers/video/fbdev/omap2/omapfb/omapfb.h omapfb_get_mem_region(struct omapfb2_mem_region *rg) rg 185 drivers/video/fbdev/omap2/omapfb/omapfb.h down_read_nested(&rg->lock, rg->id); rg 186 drivers/video/fbdev/omap2/omapfb/omapfb.h atomic_inc(&rg->lock_count); rg 187 drivers/video/fbdev/omap2/omapfb/omapfb.h return rg; rg 190 drivers/video/fbdev/omap2/omapfb/omapfb.h static inline void omapfb_put_mem_region(struct omapfb2_mem_region *rg) rg 192 drivers/video/fbdev/omap2/omapfb/omapfb.h atomic_dec(&rg->lock_count); rg 193 drivers/video/fbdev/omap2/omapfb/omapfb.h up_read(&rg->lock); rg 469 include/scsi/sas.h struct report_general_resp rg; rg 700 include/scsi/sas.h struct report_general_resp rg; rg 289 include/video/omapfb_dss.h s16 rr, rg, rb; rg 265 mm/hugetlb.c struct file_region *rg, *nrg, *trg; rg 270 mm/hugetlb.c list_for_each_entry(rg, head, link) rg 271 mm/hugetlb.c if (f <= rg->to) rg 280 mm/hugetlb.c if (&rg->link == head || t < rg->from) { rg 290 mm/hugetlb.c list_add(&nrg->link, rg->link.prev); rg 297 mm/hugetlb.c if (f > rg->from) rg 298 mm/hugetlb.c f = rg->from; rg 301 mm/hugetlb.c nrg = rg; rg 302 mm/hugetlb.c list_for_each_entry_safe(rg, trg, rg->link.prev, link) { rg 303 mm/hugetlb.c if (&rg->link == head) rg 305 mm/hugetlb.c if (rg->from > t) rg 311 mm/hugetlb.c if (rg->to > t) rg 312 mm/hugetlb.c t = rg->to; rg 313 mm/hugetlb.c if (rg != nrg) { rg 318 mm/hugetlb.c add -= (rg->to - rg->from); rg 319 mm/hugetlb.c list_del(&rg->link); rg 320 mm/hugetlb.c kfree(rg); rg 361 mm/hugetlb.c struct file_region *rg, *nrg = NULL; rg 394 mm/hugetlb.c list_for_each_entry(rg, head, link) rg 395 mm/hugetlb.c if (f <= rg->to) rg 401 mm/hugetlb.c if (&rg->link == head || t < rg->from) { rg 415 mm/hugetlb.c list_add(&nrg->link, rg->link.prev); rg 421 mm/hugetlb.c if (f > rg->from) rg 422 mm/hugetlb.c f = rg->from; rg 426 mm/hugetlb.c list_for_each_entry(rg, rg->link.prev, link) { rg 427 mm/hugetlb.c if (&rg->link == head) rg 429 mm/hugetlb.c if (rg->from > t) rg 435 mm/hugetlb.c if (rg->to > t) { rg 436 mm/hugetlb.c chg += rg->to - t; rg 437 mm/hugetlb.c t = rg->to; rg 439 mm/hugetlb.c chg -= rg->to - rg->from; rg 488 mm/hugetlb.c struct file_region *rg, *trg; rg 494 mm/hugetlb.c list_for_each_entry_safe(rg, trg, head, link) { rg 502 mm/hugetlb.c if (rg->to <= f && (rg->to != rg->from || rg->to != f)) rg 505 mm/hugetlb.c if (rg->from >= t) rg 508 mm/hugetlb.c if (f > rg->from && t < rg->to) { /* Must split region */ rg 534 mm/hugetlb.c nrg->to = rg->to; rg 538 mm/hugetlb.c rg->to = f; rg 540 mm/hugetlb.c list_add(&nrg->link, &rg->link); rg 545 mm/hugetlb.c if (f <= rg->from && t >= rg->to) { /* Remove entire region */ rg 546 mm/hugetlb.c del += rg->to - rg->from; rg 547 mm/hugetlb.c list_del(&rg->link); rg 548 mm/hugetlb.c kfree(rg); rg 552 mm/hugetlb.c if (f <= rg->from) { /* Trim beginning of region */ rg 553 mm/hugetlb.c del += t - rg->from; rg 554 mm/hugetlb.c rg->from = t; rg 556 mm/hugetlb.c del += rg->to - f; rg 557 mm/hugetlb.c rg->to = f; rg 595 mm/hugetlb.c struct file_region *rg; rg 600 mm/hugetlb.c list_for_each_entry(rg, head, link) { rg 604 mm/hugetlb.c if (rg->to <= f) rg 606 mm/hugetlb.c if (rg->from >= t) rg 609 mm/hugetlb.c seg_from = max(rg->from, f); rg 610 mm/hugetlb.c seg_to = min(rg->to, t); rg 702 mm/hugetlb.c struct file_region *rg = kmalloc(sizeof(*rg), GFP_KERNEL); rg 704 mm/hugetlb.c if (!resv_map || !rg) { rg 706 mm/hugetlb.c kfree(rg); rg 717 mm/hugetlb.c list_add(&rg->link, &resv_map->region_cache); rg 727 mm/hugetlb.c struct file_region *rg, *trg; rg 733 mm/hugetlb.c list_for_each_entry_safe(rg, trg, head, link) { rg 734 mm/hugetlb.c list_del(&rg->link); rg 735 mm/hugetlb.c kfree(rg); rg 298 sound/mips/ad1843.c int lg, rg, lm, rm; rg 302 sound/mips/ad1843.c ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); rg 305 sound/mips/ad1843.c rg = mask - rg; rg 312 sound/mips/ad1843.c rg = 0; rg 314 sound/mips/ad1843.c return lg << 0 | rg << 8; rg 329 sound/mips/ad1843.c int rg = (newval >> 8) & mask; rg 331 sound/mips/ad1843.c int rm = (rg == 0) ? 1 : 0; rg 335 sound/mips/ad1843.c rg = mask - rg; rg 339 sound/mips/ad1843.c ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg);