Home
last modified time | relevance | path

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

123456

/drivers/gpu/drm/omapdrm/
Dtcm.h72 struct tcm_area *area);
73 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area);
74 s32 (*free) (struct tcm *tcm, struct tcm_area *area);
132 u16 align, struct tcm_area *area) in tcm_reserve_2d() argument
136 (area == NULL || width == 0 || height == 0 || in tcm_reserve_2d()
142 area->is2d = true; in tcm_reserve_2d()
143 res = tcm->reserve_2d(tcm, height, width, align, area); in tcm_reserve_2d()
144 area->tcm = res ? NULL : tcm; in tcm_reserve_2d()
164 struct tcm_area *area) in tcm_reserve_1d() argument
168 (area == NULL || slots == 0) ? -EINVAL : in tcm_reserve_1d()
[all …]
Dtcm-sita.c35 struct tcm_area *area);
36 static s32 sita_reserve_1d(struct tcm *tcm, u32 slots, struct tcm_area *area);
37 static s32 sita_free(struct tcm *tcm, struct tcm_area *area);
44 struct tcm_area *area);
47 struct tcm_area *field, struct tcm_area *area);
50 struct tcm_area *field, struct tcm_area *area);
53 struct tcm_area *field, struct tcm_area *area);
68 static void get_neighbor_stats(struct tcm *tcm, struct tcm_area *area,
72 struct tcm_area *area, struct tcm_area *parent);
84 struct tcm_area area = {0}; in sita_init() local
[all …]
Domap_dmm_tiler.c199 static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area, in dmm_txn_append() argument
206 int columns = (1 + area->x1 - area->x0); in dmm_txn_append()
207 int rows = (1 + area->y1 - area->y0); in dmm_txn_append()
215 pat->area = *area; in dmm_txn_append()
218 pat->area.y0 += engine->tcm->y_offset; in dmm_txn_append()
219 pat->area.y1 += engine->tcm->y_offset; in dmm_txn_append()
295 static int fill(struct tcm_area *area, struct page **pages, in fill() argument
302 txn = dmm_txn_init(omap_dmm, area->tcm); in fill()
306 tcm_for_each_slice(slice, *area, area_s) { in fill()
333 ret = fill(&block->area, pages, npages, roll, wait); in tiler_pin()
[all …]
/drivers/video/
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.c477 static void hgafb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in hgafb_copyarea() argument
483 if (area->dy <= area->sy) { in hgafb_copyarea()
484 y1 = area->sy; in hgafb_copyarea()
485 y2 = area->dy; in hgafb_copyarea()
487 for (rows = area->height; rows--; ) { in hgafb_copyarea()
488 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea()
489 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea()
490 memmove(dest, src, (area->width >> 3)); in hgafb_copyarea()
495 y1 = area->sy + area->height - 1; in hgafb_copyarea()
496 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()
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 …]
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.c205 const struct fb_copyarea *area) in unifb_prim_copyarea() argument
207 int awidth = area->width; in unifb_prim_copyarea()
208 int aheight = area->height; in unifb_prim_copyarea()
213 int src_x0 = area->sx; in unifb_prim_copyarea()
214 int dst_x0 = area->dx; in unifb_prim_copyarea()
215 int src_y0 = area->sy; in unifb_prim_copyarea()
216 int dst_y0 = area->dy; in unifb_prim_copyarea()
283 static void unifb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in unifb_copyarea() argument
287 modded.sx = area->sx; in unifb_copyarea()
288 modded.sy = area->sy; in unifb_copyarea()
[all …]
Dcg6.c36 static void cg6_copyarea(struct fb_info *info, const struct fb_copyarea *area);
355 static void cg6_copyarea(struct fb_info *info, const struct fb_copyarea *area) in cg6_copyarea() argument
373 sbus_writel(area->sy, &fbc->y0); in cg6_copyarea()
374 sbus_writel(area->sx, &fbc->x0); in cg6_copyarea()
375 sbus_writel(area->sy + area->height - 1, &fbc->y1); in cg6_copyarea()
376 sbus_writel(area->sx + area->width - 1, &fbc->x1); in cg6_copyarea()
377 sbus_writel(area->dy, &fbc->y2); in cg6_copyarea()
378 sbus_writel(area->dx, &fbc->x2); in cg6_copyarea()
379 sbus_writel(area->dy + area->height - 1, &fbc->y3); in cg6_copyarea()
380 sbus_writel(area->dx + area->width - 1, &fbc->x3); in cg6_copyarea()
Dsyscopyarea.c315 void sys_copyarea(struct fb_info *p, const struct fb_copyarea *area) in sys_copyarea() argument
317 u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy; in sys_copyarea()
318 u32 height = area->height, width = area->width; in sys_copyarea()
/drivers/video/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/iommu/
Domap-iovmm.c286 struct iovm_struct *area; in omap_find_iovm_area() local
289 area = __find_iovm_area(obj, da); in omap_find_iovm_area()
292 return area; in omap_find_iovm_area()
375 static void free_iovm_area(struct omap_iommu *obj, struct iovm_struct *area) in free_iovm_area() argument
379 BUG_ON(!obj || !area); in free_iovm_area()
381 bytes = area->da_end - area->da_start; in free_iovm_area()
384 __func__, area->da_start, area->da_end, bytes, area->flags); in free_iovm_area()
386 list_del(&area->list); in free_iovm_area()
387 kmem_cache_free(iovm_area_cachep, area); in free_iovm_area()
402 struct iovm_struct *area; in omap_da_to_va() local
[all …]
/drivers/video/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/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.c195 void atyfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in atyfb_copyarea() argument
198 u32 dy = area->dy, sy = area->sy, direction = DST_LAST_PEL; in atyfb_copyarea()
199 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea()
203 if (!area->width || !area->height) in atyfb_copyarea()
206 cfb_copyarea(info, area); in atyfb_copyarea()
218 if (area->sy < area->dy) { in atyfb_copyarea()
219 dy += area->height - 1; in atyfb_copyarea()
220 sy += area->height - 1; in atyfb_copyarea()
237 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea()
239 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
/drivers/video/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);
277 static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area) { in matroxfb_cfb4_copyarea() argument
280 if ((area->sx | area->dx | area->width) & 1) in matroxfb_cfb4_copyarea()
281 cfb_copyarea(info, area); in matroxfb_cfb4_copyarea()
283 …info, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->… in matroxfb_cfb4_copyarea()
286 static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area) { in matroxfb_copyarea() argument
289 …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/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/md/
Ddm-snap-persistent.c109 void *area; member
174 ps->area = vmalloc(len); in alloc_area()
175 if (!ps->area) in alloc_area()
192 vfree(ps->area); in alloc_area()
200 if (ps->area) in free_area()
201 vfree(ps->area); in free_area()
202 ps->area = NULL; in free_area()
230 static int chunk_io(struct pstore *ps, void *area, chunk_t chunk, int rw, in chunk_io() argument
241 .mem.ptr.vma = area, in chunk_io()
267 static chunk_t area_location(struct pstore *ps, chunk_t area) in area_location() argument
[all …]
/drivers/mtd/onenand/
Domap2.c281 static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) in omap2_onenand_bufferram_offset() argument
286 if (area == ONENAND_DATARAM) in omap2_onenand_bufferram_offset()
288 if (area == ONENAND_SPARERAM) in omap2_onenand_bufferram_offset()
297 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram() argument
310 bram_offset = omap2_onenand_bufferram_offset(mtd, area) + area + offset; in omap3_onenand_read_bufferram()
375 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram() argument
387 bram_offset = omap2_onenand_bufferram_offset(mtd, area) + area + offset; in omap3_onenand_write_bufferram()
448 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram() argument
455 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram() argument
466 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_read_bufferram() argument
[all …]
/drivers/mtd/maps/
Dplat-ram.c47 struct resource *area; member
105 if (info->area) { in platram_remove()
106 release_resource(info->area); in platram_remove()
107 kfree(info->area); in platram_remove()
176 info->area = request_mem_region(res->start, info->map.size, pdev->name); in platram_probe()
177 if (info->area == NULL) { in platram_probe()
/drivers/xen/xenbus/
Dxenbus_client.c54 struct vm_struct *area; /* PV */ member
477 struct vm_struct *area; in xenbus_map_ring_valloc_pv() local
486 area = alloc_vm_area(PAGE_SIZE, &pte); in xenbus_map_ring_valloc_pv()
487 if (!area) { in xenbus_map_ring_valloc_pv()
497 free_vm_area(area); in xenbus_map_ring_valloc_pv()
506 node->area = area; in xenbus_map_ring_valloc_pv()
512 *vaddr = area->addr; in xenbus_map_ring_valloc_pv()
618 if (node->area->addr == vaddr) { in xenbus_unmap_ring_vfree_pv()
641 free_vm_area(node->area); in xenbus_unmap_ring_vfree_pv()
/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()

123456