Home
last modified time | relevance | path

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

1234567

/drivers/gpu/drm/omapdrm/
Dtcm.h69 struct tcm_area *area);
70 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area);
71 s32 (*free)(struct tcm *tcm, struct tcm_area *area);
133 struct tcm_area *area) in tcm_reserve_2d() argument
137 (area == NULL || width == 0 || height == 0 || in tcm_reserve_2d()
143 area->is2d = true; in tcm_reserve_2d()
145 slot_bytes, area); in tcm_reserve_2d()
146 area->tcm = res ? NULL : tcm; in tcm_reserve_2d()
166 struct tcm_area *area) in tcm_reserve_1d() argument
170 (area == NULL || slots == 0) ? -EINVAL : in tcm_reserve_1d()
[all …]
Dtcm-sita.c163 struct tcm_area *area) in sita_reserve_1d() argument
171 area->p0.x = pos % tcm->width; in sita_reserve_1d()
172 area->p0.y = pos / tcm->width; in sita_reserve_1d()
173 area->p1.x = (pos + num_slots - 1) % tcm->width; in sita_reserve_1d()
174 area->p1.y = (pos + num_slots - 1) / tcm->width; in sita_reserve_1d()
183 struct tcm_area *area) in sita_reserve_2d() argument
193 area->p0.x = pos % tcm->width; in sita_reserve_2d()
194 area->p0.y = pos / tcm->width; in sita_reserve_2d()
195 area->p1.x = area->p0.x + w - 1; in sita_reserve_2d()
196 area->p1.y = area->p0.y + h - 1; in sita_reserve_2d()
[all …]
Domap_dmm_tiler.c351 static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area, in dmm_txn_append() argument
358 int columns = (1 + area->x1 - area->x0); in dmm_txn_append()
359 int rows = (1 + area->y1 - area->y0); in dmm_txn_append()
367 pat->area = *area; in dmm_txn_append()
370 pat->area.y0 += engine->tcm->y_offset; in dmm_txn_append()
371 pat->area.y1 += engine->tcm->y_offset; in dmm_txn_append()
466 static int fill(struct tcm_area *area, struct page **pages, in fill() argument
488 txn = dmm_txn_init(omap_dmm, area->tcm); in fill()
492 tcm_for_each_slice(slice, *area, area_s) { in fill()
519 ret = fill(&block->area, pages, npages, roll, wait); in tiler_pin()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cppcore.c86 struct nfp_cpp_area *area; member
132 struct nfp_cpp_area *area = in __release_cpp_area() local
134 struct nfp_cpp *cpp = nfp_cpp_area_cpp(area); in __release_cpp_area()
136 if (area->cpp->op->area_cleanup) in __release_cpp_area()
137 area->cpp->op->area_cleanup(area); in __release_cpp_area()
140 __resource_del(&area->resource); in __release_cpp_area()
142 kfree(area); in __release_cpp_area()
145 static void nfp_cpp_area_put(struct nfp_cpp_area *area) in nfp_cpp_area_put() argument
147 kref_put(&area->kref, __release_cpp_area); in nfp_cpp_area_put()
150 static struct nfp_cpp_area *nfp_cpp_area_get(struct nfp_cpp_area *area) in nfp_cpp_area_get() argument
[all …]
Dnfp_cpp.h219 void nfp_cpp_area_free(struct nfp_cpp_area *area);
220 int nfp_cpp_area_acquire(struct nfp_cpp_area *area);
221 int nfp_cpp_area_acquire_nonblocking(struct nfp_cpp_area *area);
222 void nfp_cpp_area_release(struct nfp_cpp_area *area);
223 void nfp_cpp_area_release_free(struct nfp_cpp_area *area);
224 int nfp_cpp_area_read(struct nfp_cpp_area *area, unsigned long offset,
226 int nfp_cpp_area_write(struct nfp_cpp_area *area, unsigned long offset,
228 size_t nfp_cpp_area_size(struct nfp_cpp_area *area);
232 struct resource *nfp_cpp_area_resource(struct nfp_cpp_area *area);
233 phys_addr_t nfp_cpp_area_phys(struct nfp_cpp_area *area);
[all …]
Dnfp6000_pcie.c753 static int nfp6000_area_init(struct nfp_cpp_area *area, u32 dest, in nfp6000_area_init() argument
756 struct nfp6000_area_priv *priv = nfp_cpp_area_priv(area); in nfp6000_area_init()
792 static void nfp6000_area_cleanup(struct nfp_cpp_area *area) in nfp6000_area_cleanup() argument
796 static void priv_area_get(struct nfp_cpp_area *area) in priv_area_get() argument
798 struct nfp6000_area_priv *priv = nfp_cpp_area_priv(area); in priv_area_get()
803 static int priv_area_put(struct nfp_cpp_area *area) in priv_area_put() argument
805 struct nfp6000_area_priv *priv = nfp_cpp_area_priv(area); in priv_area_put()
813 static int nfp6000_area_acquire(struct nfp_cpp_area *area) in nfp6000_area_acquire() argument
815 struct nfp6000_pcie *nfp = nfp_cpp_priv(nfp_cpp_area_cpp(area)); in nfp6000_area_acquire()
816 struct nfp6000_area_priv *priv = nfp_cpp_area_priv(area); in nfp6000_area_acquire()
[all …]
/drivers/net/dsa/sja1105/
Dsja1105_ethtool.c81 enum sja1105_stats_area area; member
92 .area = MAC,
99 .area = MAC,
106 .area = MAC,
113 .area = MAC,
121 .area = MAC,
128 .area = MAC,
135 .area = MAC,
142 .area = MAC,
149 .area = MAC,
[all …]
/drivers/video/fbdev/
Ddnfb.c109 static void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area);
149 void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in dnfb_copyarea() argument
157 incr = (area->dy <= area->sy) ? 1 : -1; in dnfb_copyarea()
159 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length + in dnfb_copyarea()
160 (area->sx >> 4)); in dnfb_copyarea()
161 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
164 y_delta = (info->fix.line_length * 8) - area->sx - area->width; in dnfb_copyarea()
165 x_end = area->dx + area->width - 1; in dnfb_copyarea()
166 x_word_count = (x_end >> 4) - (area->dx >> 4) + 1; in dnfb_copyarea()
167 start_mask = 0xffff0000 >> (area->dx & 0xf); in dnfb_copyarea()
[all …]
Dhgafb.c483 static void hgafb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in hgafb_copyarea() argument
489 if (area->dy <= area->sy) { in hgafb_copyarea()
490 y1 = area->sy; in hgafb_copyarea()
491 y2 = area->dy; in hgafb_copyarea()
493 for (rows = area->height; rows--; ) { in hgafb_copyarea()
494 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea()
495 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea()
496 memmove(dest, src, (area->width >> 3)); in hgafb_copyarea()
501 y1 = area->sy + area->height - 1; in hgafb_copyarea()
502 y2 = area->dy + area->height - 1; in hgafb_copyarea()
[all …]
Dwmt_ge_rops.c78 void wmt_ge_copyarea(struct fb_info *p, const struct fb_copyarea *area) in wmt_ge_copyarea() argument
92 writel(area->sx, regbase + GE_SRCAREAX_OFF); in wmt_ge_copyarea()
93 writel(area->sy, regbase + GE_SRCAREAY_OFF); in wmt_ge_copyarea()
94 writel(area->width - 1, regbase + GE_SRCAREAW_OFF); in wmt_ge_copyarea()
95 writel(area->height - 1, regbase + GE_SRCAREAH_OFF); in wmt_ge_copyarea()
100 writel(area->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_copyarea()
101 writel(area->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_copyarea()
102 writel(area->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_copyarea()
103 writel(area->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_copyarea()
Dvga16fb.c975 static void vga_8planes_copyarea(struct fb_info *info, const struct fb_copyarea *area) in vga_8planes_copyarea() argument
986 height = area->height; in vga_8planes_copyarea()
988 sx = area->sx / 4; in vga_8planes_copyarea()
989 dx = area->dx / 4; in vga_8planes_copyarea()
990 width = area->width / 4; in vga_8planes_copyarea()
992 if (area->dy < area->sy || (area->dy == area->sy && dx < sx)) { in vga_8planes_copyarea()
994 dest = info->screen_base + dx + area->dy * info->fix.line_length; in vga_8planes_copyarea()
995 src = info->screen_base + sx + area->sy * info->fix.line_length; in vga_8planes_copyarea()
1009 (area->dy + height - 1) * info->fix.line_length; in vga_8planes_copyarea()
1011 (area->sy + height - 1) * info->fix.line_length; in vga_8planes_copyarea()
[all …]
Dwmt_ge_rops.h7 const struct fb_copyarea *area);
24 const struct fb_copyarea *area) in wmt_ge_copyarea() argument
26 sys_copyarea(p, area); in wmt_ge_copyarea()
/drivers/video/fbdev/sis/
Dsis_accel.c356 void fbcon_sis_copyarea(struct fb_info *info, const struct fb_copyarea *area) in fbcon_sis_copyarea() argument
361 int width = area->width; in fbcon_sis_copyarea()
362 int height = area->height; in fbcon_sis_copyarea()
369 cfb_copyarea(info, area); in fbcon_sis_copyarea()
374 area->sx >= vxres || area->sy >= vyres || in fbcon_sis_copyarea()
375 area->dx >= vxres || area->dy >= vyres) in fbcon_sis_copyarea()
379 if((area->sx + width) > vxres) width = vxres - area->sx; in fbcon_sis_copyarea()
380 if((area->dx + width) > vxres) width = vxres - area->dx; in fbcon_sis_copyarea()
381 if((area->sy + height) > vyres) height = vyres - area->sy; in fbcon_sis_copyarea()
382 if((area->dy + height) > vyres) height = vyres - area->dy; in fbcon_sis_copyarea()
[all …]
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c43 const struct fb_copyarea *area) in mb86290fb_copyarea() argument
52 if (area->sx >= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
54 else if (area->sx >= area->dx && area->sy <= area->dy) in mb86290fb_copyarea()
56 else if (area->sx <= area->dx && area->sy >= area->dy) in mb86290fb_copyarea()
61 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea()
62 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea()
63 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
/drivers/video/fbdev/aty/
Dradeon_accel.c99 const struct fb_copyarea *area) in radeonfb_prim_copyarea() argument
104 w = area->width; h = area->height; in radeonfb_prim_copyarea()
105 dx = area->dx; dy = area->dy; in radeonfb_prim_copyarea()
106 sx = area->sx; sy = area->sy; in radeonfb_prim_copyarea()
135 void radeonfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in radeonfb_copyarea() argument
140 modded.sx = area->sx; in radeonfb_copyarea()
141 modded.sy = area->sy; in radeonfb_copyarea()
142 modded.dx = area->dx; in radeonfb_copyarea()
143 modded.dy = area->dy; in radeonfb_copyarea()
144 modded.width = area->width; in radeonfb_copyarea()
[all …]
Dmach64_accel.c199 void atyfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) in atyfb_copyarea() argument
202 u32 dy = area->dy, sy = area->sy, direction = DST_LAST_PEL; in atyfb_copyarea()
203 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea()
207 if (!area->width || !area->height) in atyfb_copyarea()
210 cfb_copyarea(info, area); in atyfb_copyarea()
222 if (area->sy < area->dy) { in atyfb_copyarea()
223 dy += area->height - 1; in atyfb_copyarea()
224 sy += area->height - 1; in atyfb_copyarea()
242 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea()
244 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.c105 static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area);
109 static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area);
292 static void matroxfb_cfb4_copyarea(struct fb_info* info, const struct fb_copyarea* area) { in matroxfb_cfb4_copyarea() argument
295 if ((area->sx | area->dx | area->width) & 1) in matroxfb_cfb4_copyarea()
296 cfb_copyarea(info, area); in matroxfb_cfb4_copyarea()
298 …info, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->… in matroxfb_cfb4_copyarea()
301 static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area) { in matroxfb_copyarea() argument
304 …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/soc/renesas/
Drcar-sysc.c397 const struct rcar_sysc_area *area = &info->areas[i]; in rcar_sysc_pd_init() local
401 if (!area->name) { in rcar_sysc_pd_init()
406 n = strlen(area->name) + 1; in rcar_sysc_pd_init()
413 memcpy(pd->name, area->name, n); in rcar_sysc_pd_init()
415 pd->ch.chan_offs = area->chan_offs; in rcar_sysc_pd_init()
416 pd->ch.chan_bit = area->chan_bit; in rcar_sysc_pd_init()
417 pd->ch.isr_bit = area->isr_bit; in rcar_sysc_pd_init()
418 pd->flags = area->flags; in rcar_sysc_pd_init()
424 domains->domains[area->isr_bit] = &pd->genpd; in rcar_sysc_pd_init()
426 if (area->parent < 0) in rcar_sysc_pd_init()
[all …]
Dr8a779a0-sysc.c405 const struct r8a779a0_sysc_area *area = &info->areas[i]; in r8a779a0_sysc_pd_init() local
409 if (!area->name) { in r8a779a0_sysc_pd_init()
414 n = strlen(area->name) + 1; in r8a779a0_sysc_pd_init()
421 memcpy(pd->name, area->name, n); in r8a779a0_sysc_pd_init()
423 pd->pdr = area->pdr; in r8a779a0_sysc_pd_init()
424 pd->flags = area->flags; in r8a779a0_sysc_pd_init()
430 domains->domains[area->pdr] = &pd->genpd; in r8a779a0_sysc_pd_init()
432 if (area->parent < 0) in r8a779a0_sysc_pd_init()
435 error = pm_genpd_add_subdomain(domains->domains[area->parent], in r8a779a0_sysc_pd_init()
439 area->name, area->parent); in r8a779a0_sysc_pd_init()
/drivers/video/fbdev/core/
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()
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/gpu/drm/i915/gem/
Di915_gem_mman.c248 struct vm_area_struct *area = vmf->vma; in vm_fault_cpu() local
249 struct i915_mmap_offset *mmo = area->vm_private_data; in vm_fault_cpu()
256 area->vm_flags & VM_WRITE)) in vm_fault_cpu()
273 err = remap_io_sg(area, in vm_fault_cpu()
274 area->vm_start, area->vm_end - area->vm_start, in vm_fault_cpu()
277 if (area->vm_flags & VM_WRITE) { in vm_fault_cpu()
292 struct vm_area_struct *area = vmf->vma; in vm_fault_gtt() local
293 struct i915_mmap_offset *mmo = area->vm_private_data; in vm_fault_gtt()
299 bool write = area->vm_flags & VM_WRITE; in vm_fault_gtt()
308 page_offset = (vmf->address - area->vm_start) >> PAGE_SHIFT; in vm_fault_gtt()
[all …]
/drivers/xen/xenbus/
Dxenbus_client.c60 struct vm_struct *area; member
703 struct vm_struct *area; in xenbus_map_ring_pv() local
707 area = get_vm_area(XEN_PAGE_SIZE * nr_grefs, VM_IOREMAP); in xenbus_map_ring_pv()
708 if (!area) in xenbus_map_ring_pv()
710 if (apply_to_page_range(&init_mm, (unsigned long)area->addr, in xenbus_map_ring_pv()
720 node->pv.area = area; in xenbus_map_ring_pv()
726 *vaddr = area->addr; in xenbus_map_ring_pv()
733 free_vm_area(area); in xenbus_map_ring_pv()
735 pr_alert("leaking VM area %p size %u page(s)", area, nr_grefs); in xenbus_map_ring_pv()
751 if (node->pv.area->addr == vaddr) { in xenbus_unmap_ring_pv()
[all …]

1234567