Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 149) sorted by relevance

123456

/drivers/gpu/drm/omapdrm/
Dtcm.h71 struct tcm_area *area);
72 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area);
73 s32 (*free)(struct tcm *tcm, struct tcm_area *area);
135 struct tcm_area *area) in tcm_reserve_2d() argument
139 (area == NULL || width == 0 || height == 0 || in tcm_reserve_2d()
145 area->is2d = true; in tcm_reserve_2d()
147 slot_bytes, area); in tcm_reserve_2d()
148 area->tcm = res ? NULL : tcm; in tcm_reserve_2d()
168 struct tcm_area *area) in tcm_reserve_1d() argument
172 (area == NULL || slots == 0) ? -EINVAL : in tcm_reserve_1d()
[all …]
Dtcm-sita.c165 struct tcm_area *area) in sita_reserve_1d() argument
173 area->p0.x = pos % tcm->width; in sita_reserve_1d()
174 area->p0.y = pos / tcm->width; in sita_reserve_1d()
175 area->p1.x = (pos + num_slots - 1) % tcm->width; in sita_reserve_1d()
176 area->p1.y = (pos + num_slots - 1) / tcm->width; in sita_reserve_1d()
185 struct tcm_area *area) in sita_reserve_2d() argument
195 area->p0.x = pos % tcm->width; in sita_reserve_2d()
196 area->p0.y = pos / tcm->width; in sita_reserve_2d()
197 area->p1.x = area->p0.x + w - 1; in sita_reserve_2d()
198 area->p1.y = area->p0.y + h - 1; in sita_reserve_2d()
[all …]
Domap_dmm_tiler.c216 static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area, in dmm_txn_append() argument
223 int columns = (1 + area->x1 - area->x0); in dmm_txn_append()
224 int rows = (1 + area->y1 - area->y0); in dmm_txn_append()
232 pat->area = *area; in dmm_txn_append()
235 pat->area.y0 += engine->tcm->y_offset; in dmm_txn_append()
236 pat->area.y1 += engine->tcm->y_offset; in dmm_txn_append()
320 static int fill(struct tcm_area *area, struct page **pages, in fill() argument
342 txn = dmm_txn_init(omap_dmm, area->tcm); in fill()
346 tcm_for_each_slice(slice, *area, area_s) { in fill()
373 ret = fill(&block->area, pages, npages, roll, wait); in tiler_pin()
[all …]
/drivers/video/fbdev/
Ddnfb.c108 static void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area);
148 void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in dnfb_copyarea() argument
156 incr = (area->dy <= area->sy) ? 1 : -1; in dnfb_copyarea()
158 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length + in dnfb_copyarea()
159 (area->sx >> 4)); in dnfb_copyarea()
160 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
163 y_delta = (info->fix.line_length * 8) - area->sx - area->width; in dnfb_copyarea()
164 x_end = area->dx + area->width - 1; in dnfb_copyarea()
165 x_word_count = (x_end >> 4) - (area->dx >> 4) + 1; in dnfb_copyarea()
166 start_mask = 0xffff0000 >> (area->dx & 0xf); in dnfb_copyarea()
[all …]
Dhgafb.c476 static void hgafb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in hgafb_copyarea() argument
482 if (area->dy <= area->sy) { in hgafb_copyarea()
483 y1 = area->sy; in hgafb_copyarea()
484 y2 = area->dy; in hgafb_copyarea()
486 for (rows = area->height; rows--; ) { in hgafb_copyarea()
487 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea()
488 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea()
489 memmove(dest, src, (area->width >> 3)); in hgafb_copyarea()
494 y1 = area->sy + area->height - 1; in hgafb_copyarea()
495 y2 = area->dy + area->height - 1; in hgafb_copyarea()
[all …]
Dwmt_ge_rops.c85 void wmt_ge_copyarea(struct fb_info *p, const struct fb_copyarea *area) in wmt_ge_copyarea() argument
99 writel(area->sx, regbase + GE_SRCAREAX_OFF); in wmt_ge_copyarea()
100 writel(area->sy, regbase + GE_SRCAREAY_OFF); in wmt_ge_copyarea()
101 writel(area->width - 1, regbase + GE_SRCAREAW_OFF); in wmt_ge_copyarea()
102 writel(area->height - 1, regbase + GE_SRCAREAH_OFF); in wmt_ge_copyarea()
107 writel(area->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_copyarea()
108 writel(area->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_copyarea()
109 writel(area->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_copyarea()
110 writel(area->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_copyarea()
Dvga16fb.c956 static void vga_8planes_copyarea(struct fb_info *info, const struct fb_copyarea *area) in vga_8planes_copyarea() argument
967 height = area->height; in vga_8planes_copyarea()
969 sx = area->sx / 4; in vga_8planes_copyarea()
970 dx = area->dx / 4; in vga_8planes_copyarea()
971 width = area->width / 4; in vga_8planes_copyarea()
973 if (area->dy < area->sy || (area->dy == area->sy && dx < sx)) { in vga_8planes_copyarea()
975 dest = info->screen_base + dx + area->dy * info->fix.line_length; in vga_8planes_copyarea()
976 src = info->screen_base + sx + area->sy * info->fix.line_length; in vga_8planes_copyarea()
990 (area->dy + height - 1) * info->fix.line_length; in vga_8planes_copyarea()
992 (area->sy + height - 1) * info->fix.line_length; in vga_8planes_copyarea()
[all …]
Dwmt_ge_rops.h6 const struct fb_copyarea *area);
23 const struct fb_copyarea *area) in wmt_ge_copyarea() argument
25 sys_copyarea(p, area); in wmt_ge_copyarea()
Dfb-puv3.c207 const struct fb_copyarea *area) in unifb_prim_copyarea() argument
209 int awidth = area->width; in unifb_prim_copyarea()
210 int aheight = area->height; in unifb_prim_copyarea()
215 int src_x0 = area->sx; in unifb_prim_copyarea()
216 int dst_x0 = area->dx; in unifb_prim_copyarea()
217 int src_y0 = area->sy; in unifb_prim_copyarea()
218 int dst_y0 = area->dy; in unifb_prim_copyarea()
285 static void unifb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in unifb_copyarea() argument
289 modded.sx = area->sx; in unifb_copyarea()
290 modded.sy = area->sy; in unifb_copyarea()
[all …]
/drivers/video/fbdev/sis/
Dsis_accel.c369 void fbcon_sis_copyarea(struct fb_info *info, const struct fb_copyarea *area) in fbcon_sis_copyarea() argument
374 int width = area->width; in fbcon_sis_copyarea()
375 int height = area->height; in fbcon_sis_copyarea()
382 cfb_copyarea(info, area); in fbcon_sis_copyarea()
387 area->sx >= vxres || area->sy >= vyres || in fbcon_sis_copyarea()
388 area->dx >= vxres || area->dy >= vyres) in fbcon_sis_copyarea()
392 if((area->sx + width) > vxres) width = vxres - area->sx; in fbcon_sis_copyarea()
393 if((area->dx + width) > vxres) width = vxres - area->dx; in fbcon_sis_copyarea()
394 if((area->sy + height) > vyres) height = vyres - area->sy; in fbcon_sis_copyarea()
395 if((area->dy + height) > vyres) height = vyres - area->dy; in fbcon_sis_copyarea()
[all …]
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c47 const struct fb_copyarea *area) in mb86290fb_copyarea() argument
56 if (area->sx >= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
58 else if (area->sx >= area->dx && area->sy <= area->dy) in mb86290fb_copyarea()
60 else if (area->sx <= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
65 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea()
66 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
67 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
/drivers/video/fbdev/aty/
Dradeon_accel.c98 const struct fb_copyarea *area) in radeonfb_prim_copyarea() argument
103 w = area->width; h = area->height; in radeonfb_prim_copyarea()
104 dx = area->dx; dy = area->dy; in radeonfb_prim_copyarea()
105 sx = area->sx; sy = area->sy; in radeonfb_prim_copyarea()
134 void radeonfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in radeonfb_copyarea() argument
139 modded.sx = area->sx; in radeonfb_copyarea()
140 modded.sy = area->sy; in radeonfb_copyarea()
141 modded.dx = area->dx; in radeonfb_copyarea()
142 modded.dy = area->dy; in radeonfb_copyarea()
143 modded.width = area->width; in radeonfb_copyarea()
[all …]
Dmach64_accel.c196 void atyfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in atyfb_copyarea() argument
199 u32 dy = area->dy, sy = area->sy, direction = DST_LAST_PEL; in atyfb_copyarea()
200 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea()
204 if (!area->width || !area->height) in atyfb_copyarea()
207 cfb_copyarea(info, area); in atyfb_copyarea()
219 if (area->sy < area->dy) { in atyfb_copyarea()
220 dy += area->height - 1; in atyfb_copyarea()
221 sy += area->height - 1; in atyfb_copyarea()
238 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea()
240 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
/drivers/md/
Ddm-snap-persistent.c113 void *area; member
178 ps->area = vmalloc(len); in alloc_area()
179 if (!ps->area) in alloc_area()
196 vfree(ps->area); in alloc_area()
204 vfree(ps->area); in free_area()
205 ps->area = NULL; in free_area()
229 static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, int op, in chunk_io() argument
241 .mem.ptr.vma = area, in chunk_io()
268 static chunk_t area_location(struct pstore *ps, chunk_t area) in area_location() argument
270 return NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area); in area_location()
[all …]
/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c104 static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area);
108 static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area);
291 static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area) { in matroxfb_cfb4_copyarea() argument
294 if ((area->sx | area->dx | area->width) & 1) in matroxfb_cfb4_copyarea()
295 cfb_copyarea(info, area); in matroxfb_cfb4_copyarea()
297 …info, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->… in matroxfb_cfb4_copyarea()
300 static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area) { in matroxfb_copyarea() argument
303 …el_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->heigh… in matroxfb_copyarea()
/drivers/block/paride/
DTransition-notes23 consider the following area:
49 1) at any time at most one thread of execution can be in that area or
60 (1) can become not true if some thread enters that area while another is there.
62 In the first case the thread was already in the area. In the second,
66 area.
67 c) pi_do_claimed() is called by pd.c only from the area.
68 d) ps_tq_int() can enter the area only when the thread is holding
71 e) do_pd_{read,write}* could be called only from the area. The only
77 f) pi_wake_up() can enter the area only when the thread is holding
82 Indeed, pd_busy is reset only in the area and thread that resets
[all …]
/drivers/base/
Ddma-mapping.c284 struct vm_struct *area; in dma_common_pages_remap() local
286 area = get_vm_area_caller(size, vm_flags, caller); in dma_common_pages_remap()
287 if (!area) in dma_common_pages_remap()
290 area->pages = pages; in dma_common_pages_remap()
292 if (map_vm_area(area, prot, pages)) { in dma_common_pages_remap()
293 vunmap(area->addr); in dma_common_pages_remap()
297 return area->addr; in dma_common_pages_remap()
333 struct vm_struct *area = find_vm_area(cpu_addr); in dma_common_free_remap() local
335 if (!area || (area->flags & vm_flags) != vm_flags) { in dma_common_free_remap()
/drivers/video/console/
Dtileblit.c22 struct fb_tilearea area; in tile_bmove() local
24 area.sx = sx; in tile_bmove()
25 area.sy = sy; in tile_bmove()
26 area.dx = dx; in tile_bmove()
27 area.dy = dy; in tile_bmove()
28 area.height = height; in tile_bmove()
29 area.width = width; in tile_bmove()
31 info->tileops->fb_tilecopy(info, &area); in tile_bmove()
/drivers/video/fbdev/core/
Dsvgalib.c218 void svga_tilecopy(struct fb_info *info, struct fb_tilearea *area) in svga_tilecopy() argument
227 if ((area->sy > area->dy) || in svga_tilecopy()
228 ((area->sy == area->dy) && (area->sx > area->dx))) { in svga_tilecopy()
229 src = fb + area->sx * colstride + area->sy * rowstride; in svga_tilecopy()
230 dst = fb + area->dx * colstride + area->dy * rowstride; in svga_tilecopy()
232 src = fb + (area->sx + area->width - 1) * colstride in svga_tilecopy()
233 + (area->sy + area->height - 1) * rowstride; in svga_tilecopy()
234 dst = fb + (area->dx + area->width - 1) * colstride in svga_tilecopy()
235 + (area->dy + area->height - 1) * rowstride; in svga_tilecopy()
241 for (dy = 0; dy < area->height; dy++) { in svga_tilecopy()
[all …]
/drivers/soc/renesas/
Drcar-sysc.c371 const struct rcar_sysc_area *area = &info->areas[i]; in rcar_sysc_pd_init() local
374 pd = kzalloc(sizeof(*pd) + strlen(area->name) + 1, GFP_KERNEL); in rcar_sysc_pd_init()
380 strcpy(pd->name, area->name); in rcar_sysc_pd_init()
382 pd->ch.chan_offs = area->chan_offs; in rcar_sysc_pd_init()
383 pd->ch.chan_bit = area->chan_bit; in rcar_sysc_pd_init()
384 pd->ch.isr_bit = area->isr_bit; in rcar_sysc_pd_init()
385 pd->flags = area->flags; in rcar_sysc_pd_init()
388 if (area->parent >= 0) in rcar_sysc_pd_init()
389 pm_genpd_add_subdomain(domains->domains[area->parent], in rcar_sysc_pd_init()
392 domains->domains[area->isr_bit] = &pd->genpd; in rcar_sysc_pd_init()
/drivers/mtd/onenand/
Domap2.c280 static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) in omap2_onenand_bufferram_offset() argument
285 if (area == ONENAND_DATARAM) in omap2_onenand_bufferram_offset()
287 if (area == ONENAND_SPARERAM) in omap2_onenand_bufferram_offset()
296 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram() argument
309 bram_offset = omap2_onenand_bufferram_offset(mtd, area) + area + offset; in omap3_onenand_read_bufferram()
374 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram() argument
386 bram_offset = omap2_onenand_bufferram_offset(mtd, area) + area + offset; in omap3_onenand_write_bufferram()
447 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram() argument
454 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram() argument
465 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_read_bufferram() argument
[all …]
/drivers/mtd/maps/
Dplat-ram.c46 struct resource *area; member
102 if (info->area) { in platram_remove()
103 release_resource(info->area); in platram_remove()
104 kfree(info->area); in platram_remove()
172 info->area = request_mem_region(res->start, info->map.size, pdev->name); in platram_probe()
173 if (info->area == NULL) { in platram_probe()
/drivers/uwb/
Dwhc-rc.c67 unsigned long area; member
224 whcrc->area = umc_dev->resource.start; in whcrc_setup_rc_umc()
227 if (request_mem_region(whcrc->area, whcrc->rc_len, KBUILD_MODNAME) == NULL) { in whcrc_setup_rc_umc()
229 whcrc->rc_len, whcrc->area, result); in whcrc_setup_rc_umc()
233 whcrc->rc_base = ioremap_nocache(whcrc->area, whcrc->rc_len); in whcrc_setup_rc_umc()
236 whcrc->rc_len, whcrc->area, result); in whcrc_setup_rc_umc()
272 release_mem_region(whcrc->area, whcrc->rc_len); in whcrc_setup_rc_umc()
292 release_mem_region(whcrc->area, whcrc->rc_len); in whcrc_release_rc_umc()
/drivers/xen/xenbus/
Dxenbus_client.c60 struct vm_struct *area; member
547 struct vm_struct *area; in xenbus_map_ring_valloc_pv() local
563 area = alloc_vm_area(XEN_PAGE_SIZE * nr_grefs, ptes); in xenbus_map_ring_valloc_pv()
564 if (!area) { in xenbus_map_ring_valloc_pv()
580 node->pv.area = area; in xenbus_map_ring_valloc_pv()
586 *vaddr = area->addr; in xenbus_map_ring_valloc_pv()
591 free_vm_area(area); in xenbus_map_ring_valloc_pv()
593 pr_alert("leaking VM area %p size %u page(s)", area, nr_grefs); in xenbus_map_ring_valloc_pv()
758 if (node->pv.area->addr == vaddr) { in xenbus_unmap_ring_vfree_pv()
801 free_vm_area(node->pv.area); in xenbus_unmap_ring_vfree_pv()
[all …]
/drivers/lightnvm/
Dgennvm.c164 struct gen_area *area, *prev, *next; in gen_get_area() local
171 area = kmalloc(sizeof(struct gen_area), GFP_KERNEL); in gen_get_area()
172 if (!area) in gen_get_area()
189 kfree(area); in gen_get_area()
193 area->begin = *lba = begin; in gen_get_area()
194 area->end = begin + len; in gen_get_area()
197 list_add(&area->list, &prev->list); in gen_get_area()
199 list_add(&area->list, &gn->area_list); in gen_get_area()
208 struct gen_area *area; in gen_put_area() local
211 list_for_each_entry(area, &gn->area_list, list) { in gen_put_area()
[all …]

123456