Searched refs:area (Results 1 - 25 of 317) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/omapdrm/
H A Dtcm.h48 /* 1d or 2d area */
50 bool is2d; /* whether area is 1d or 2d */
69 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);
85 * area pointer is NULL
111 * Reserves a 2D area in the container.
114 * @param height Height(in pages) of area to be reserved.
115 * @param width Width(in pages) of area to be reserved.
116 * @param align Alignment requirement for top-left corner of area
131 tcm_reserve_2d(struct tcm *tcm, u16 width, u16 height, u16 align, s16 offset, u16 slot_bytes, struct tcm_area *area) argument
165 tcm_reserve_1d(struct tcm *tcm, u32 slots, struct tcm_area *area) argument
195 tcm_free(struct tcm_area *area) argument
243 tcm_area_is_valid(struct tcm_area *area) argument
276 __tcm_area_width(struct tcm_area *area) argument
282 __tcm_area_height(struct tcm_area *area) argument
288 __tcm_sizeof(struct tcm_area *area) argument
[all...]
H A Dtcm-sita.c56 /* found a long enough free area */
122 /* assume the area is free until we find an overlap */
125 /* check subsequent rows to see if complete area is free */
146 /* set area as in-use. iterate over rows */
155 struct tcm_area *area)
163 area->p0.x = pos % tcm->width;
164 area->p0.y = pos / tcm->width;
165 area->p1.x = (pos + num_slots - 1) % tcm->width;
166 area->p1.y = (pos + num_slots - 1) / tcm->width;
175 struct tcm_area *area)
154 sita_reserve_1d(struct tcm *tcm, u32 num_slots, struct tcm_area *area) argument
173 sita_reserve_2d(struct tcm *tcm, u16 h, u16 w, u16 align, s16 offset, u16 slot_bytes, struct tcm_area *area) argument
200 sita_free(struct tcm *tcm, struct tcm_area *area) argument
[all...]
/linux-master/arch/um/kernel/
H A Ddtb.c16 void *area; local
18 area = uml_load_file(dtb, &size);
19 if (area) {
20 if (!early_init_dt_scan(area)) {
22 memblock_free(area, size);
H A Dinitrd.c21 void *area; local
26 area = uml_load_file(initrd, &size);
27 if (!area)
30 initrd_start = (unsigned long) area;
H A Dload_file.c34 void *area; local
51 area = memblock_alloc(*size, SMP_CACHE_BYTES);
52 if (!area)
55 if (__uml_load_file(filename, area, *size)) {
56 memblock_free(area, *size);
60 return area;
/linux-master/drivers/iommu/iommufd/
H A Dio_pagetable.h20 * populated in the page table. Each area is fully populated with pages.
25 * up or tearing down the area. When observed under the write side of the
26 * domain_rwsem a NULL pages must mean the area is still being setup and no
30 * for this area. It is locked by the pages->mutex. This simplifies the locking
45 /* How many bytes into the first page the area starts */
62 int iopt_area_fill_domains(struct iopt_area *area, struct iopt_pages *pages);
63 void iopt_area_unfill_domains(struct iopt_area *area, struct iopt_pages *pages);
65 int iopt_area_fill_domain(struct iopt_area *area, struct iommu_domain *domain);
66 void iopt_area_unfill_domain(struct iopt_area *area, struct iopt_pages *pages,
68 void iopt_area_unmap_domain(struct iopt_area *area,
71 iopt_area_index(struct iopt_area *area) argument
76 iopt_area_last_index(struct iopt_area *area) argument
81 iopt_area_iova(struct iopt_area *area) argument
86 iopt_area_last_iova(struct iopt_area *area) argument
91 iopt_area_length(struct iopt_area *area) argument
101 iopt_area_start_byte(struct iopt_area *area, unsigned long iova) argument
111 iopt_area_iova_to_index(struct iopt_area *area, unsigned long iova) argument
150 struct iopt_area *area; member in struct:iopt_area_contig_iter
[all...]
H A Dio_pagetable.c25 struct iopt_area *area; member in struct:iopt_pages_list
40 iter->area = iopt_area_iter_first(iopt, iova, iova);
41 if (!iter->area)
43 if (!iter->area->pages) {
44 iter->area = NULL;
47 return iter->area;
54 if (!iter->area)
56 last_iova = iopt_area_last_iova(iter->area);
61 iter->area = iopt_area_iter_next(iter->area, ite
190 iopt_insert_area(struct io_pagetable *iopt, struct iopt_area *area, struct iopt_pages *pages, unsigned long iova, unsigned long start_byte, unsigned long length, int iommu_prot) argument
227 struct iopt_area *area; local
296 iopt_abort_area(struct iopt_area *area) argument
439 struct iopt_area *area; local
551 struct iopt_area *area; local
604 struct iopt_area *area; local
643 struct iopt_area *area; local
871 struct iopt_area *area; local
932 struct iopt_area *area; local
988 struct iopt_area *area; local
1168 iopt_area_split(struct iopt_area *area, unsigned long iova) argument
1279 struct iopt_area *area; local
[all...]
H A Dpages.c193 * index is the number of PAGE_SIZE units from the start of the area's
194 * iopt_pages. If the iova is sub page-size then the area has an iova that
197 static unsigned long iopt_area_index_to_iova(struct iopt_area *area, argument
201 WARN_ON(index < iopt_area_index(area) ||
202 index > iopt_area_last_index(area));
203 index -= iopt_area_index(area);
205 return iopt_area_iova(area);
206 return iopt_area_iova(area) - area->page_offset + index * PAGE_SIZE;
209 static unsigned long iopt_area_index_to_iova_last(struct iopt_area *area, argument
237 iopt_area_unmap_domain_range(struct iopt_area *area, struct iommu_domain *domain, unsigned long start_index, unsigned long last_index) argument
375 batch_from_domain(struct pfn_batch *batch, struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index, unsigned long last_index) argument
402 raw_pages_from_domain(struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index, unsigned long last_index, struct page **out_pages) argument
426 batch_from_domain_continue(struct pfn_batch *batch, struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index, unsigned long last_index) argument
475 batch_to_domain(struct pfn_batch *batch, struct iommu_domain *domain, struct iopt_area *area, unsigned long start_index) argument
980 struct iopt_area *area; local
1197 iopt_area_unpin_domain(struct pfn_batch *batch, struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long start_index, unsigned long last_index, unsigned long *unmapped_end_index, unsigned long real_last_index) argument
1257 __iopt_area_unfill_domain(struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long last_index) argument
1309 iopt_area_unfill_partial_domain(struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain, unsigned long end_index) argument
1326 iopt_area_unmap_domain(struct iopt_area *area, struct iommu_domain *domain) argument
1342 iopt_area_unfill_domain(struct iopt_area *area, struct iopt_pages *pages, struct iommu_domain *domain) argument
1357 iopt_area_fill_domain(struct iopt_area *area, struct iommu_domain *domain) argument
1408 iopt_area_fill_domains(struct iopt_area *area, struct iopt_pages *pages) argument
1492 iopt_area_unfill_domains(struct iopt_area *area, struct iopt_pages *pages) argument
1617 struct iopt_area *area; local
1915 iopt_area_add_access(struct iopt_area *area, unsigned long start_index, unsigned long last_index, struct page **out_pages, unsigned int flags) argument
1971 iopt_area_remove_access(struct iopt_area *area, unsigned long start_index, unsigned long last_index) argument
[all...]
/linux-master/arch/powerpc/include/asm/
H A Drtas-work-area.h12 * struct rtas_work_area - RTAS work area descriptor.
14 * Descriptor for a "work area" in PAPR terminology that satisfies
29 * rtas_work_area_alloc() - Acquire a work area of the requested size.
35 * "work area" in PAPR. Although callers are allowed to block while
36 * holding a work area, the amount of memory reserved for this purpose
38 * is to release any allocated work area before returning from a
43 * allocating more than one work area simultaneously in a single task
47 * Return: A &struct rtas_work_area descriptor for the allocated work area.
63 * rtas_work_area_free() - Release a work area.
64 * @area
70 rtas_work_area_raw_buf(const struct rtas_work_area *area) argument
75 rtas_work_area_size(const struct rtas_work_area *area) argument
80 rtas_work_area_phys(const struct rtas_work_area *area) argument
[all...]
/linux-master/arch/x86/xen/
H A Dgrant-table.c26 struct vm_struct *area; member in struct:gnttab_vm_area
40 *__shared = shared = gnttab_shared_vm_area.area->addr;
62 *__shared = shared = gnttab_status_vm_area.area->addr;
81 if (shared == gnttab_status_vm_area.area->addr)
96 struct gnttab_vm_area *area = data; local
98 area->ptes[area->idx++] = pte;
102 static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) argument
104 area->ptes = kmalloc_array(nr_frames, sizeof(*area
121 arch_gnttab_vfree(struct gnttab_vm_area *area) argument
[all...]
/linux-master/drivers/video/fbdev/
H A Dwmt_ge_rops.h7 const struct fb_copyarea *area);
24 const struct fb_copyarea *area)
26 sys_copyarea(p, area);
23 wmt_ge_copyarea(struct fb_info *p, const struct fb_copyarea *area) argument
H A Ddnfb.c109 static void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area);
151 void dnfb_copyarea(struct fb_info *info, const struct fb_copyarea *area) argument
159 incr = (area->dy <= area->sy) ? 1 : -1;
161 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length +
162 (area->sx >> 4));
163 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4);
166 y_delta = (info->fix.line_length * 8) - area->sx - area
[all...]
/linux-master/drivers/net/dsa/sja1105/
H A Dsja1105_ethtool.c81 enum sja1105_stats_area area; member in struct:sja1105_port_counter
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
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_cppcore.c57 * @waitq: area wait queue
86 struct nfp_cpp_area *area; member in struct:nfp_cpp_area_cache
93 struct mutex mutex; /* Lock for the area's refcount */
132 struct nfp_cpp_area *area = local
134 struct nfp_cpp *cpp = nfp_cpp_area_cpp(area);
136 if (area->cpp->op->area_cleanup)
137 area->cpp->op->area_cleanup(area);
140 __resource_del(&area->resource);
142 kfree(area);
145 nfp_cpp_area_put(struct nfp_cpp_area *area) argument
150 nfp_cpp_area_get(struct nfp_cpp_area *area) argument
180 struct nfp_cpp_area *area = container_of(res, local
288 struct nfp_cpp_area *area; local
383 struct nfp_cpp_area *area; local
403 nfp_cpp_area_free(struct nfp_cpp_area *area) argument
410 nfp_cpp_area_acquire_try(struct nfp_cpp_area *area, int *status) argument
417 __nfp_cpp_area_acquire(struct nfp_cpp_area *area) argument
451 nfp_cpp_area_acquire(struct nfp_cpp_area *area) argument
473 nfp_cpp_area_acquire_nonblocking(struct nfp_cpp_area *area) argument
500 nfp_cpp_area_release(struct nfp_cpp_area *area) argument
522 nfp_cpp_area_release_free(struct nfp_cpp_area *area) argument
542 nfp_cpp_area_read(struct nfp_cpp_area *area, unsigned long offset, void *kernel_vaddr, size_t length) argument
563 nfp_cpp_area_write(struct nfp_cpp_area *area, unsigned long offset, const void *kernel_vaddr, size_t length) argument
622 nfp_cpp_area_resource(struct nfp_cpp_area *area) argument
640 nfp_cpp_area_phys(struct nfp_cpp_area *area) argument
661 nfp_cpp_area_iomem(struct nfp_cpp_area *area) argument
679 nfp_cpp_area_readl(struct nfp_cpp_area *area, unsigned long offset, u32 *value) argument
701 nfp_cpp_area_writel(struct nfp_cpp_area *area, unsigned long offset, u32 value) argument
721 nfp_cpp_area_readq(struct nfp_cpp_area *area, unsigned long offset, u64 *value) argument
743 nfp_cpp_area_writeq(struct nfp_cpp_area *area, unsigned long offset, u64 value) argument
766 nfp_cpp_area_fill(struct nfp_cpp_area *area, unsigned long offset, u32 value, size_t length) argument
795 struct nfp_cpp_area *area; local
921 struct nfp_cpp_area *area; local
990 struct nfp_cpp_area *area; local
[all...]
/linux-master/arch/sh/boards/mach-sdk7786/
H A Dfpga.c26 unsigned long area; local
31 * The possible range is anywhere from area 0 through 6, area 7
34 for (area = PA_AREA0; area < PA_AREA7; area += SZ_64M) {
35 base = ioremap(area + FPGA_REGS_OFFSET, FPGA_REGS_SIZE);
37 /* Failed to remap this area, move along. */
H A Dsram.c21 unsigned int area; local
32 * FPGA_SEL determines the area mapping
34 area = (data & LCLASR_FPGA_SEL_MASK) >> LCLASR_FPGA_SEL_SHIFT;
35 if (unlikely(area == LCLASR_AREA_MASK)) {
41 * The memory itself occupies a 2KiB range at the top of the area
44 phys = (area << 26) + SZ_64M - SZ_4K;
57 "(area %d) to pool.\n",
58 SZ_2K >> 10, phys, phys + SZ_2K - 1, area);
/linux-master/kernel/dma/
H A Dremap.c11 struct vm_struct *area = find_vm_area(cpu_addr); local
13 if (!area || area->flags != VM_DMA_COHERENT)
15 return area->pages;
62 struct vm_struct *area = find_vm_area(cpu_addr); local
64 if (!area || area->flags != VM_DMA_COHERENT) {
65 WARN(1, "trying to free invalid coherent area: %p\n", cpu_addr);
/linux-master/arch/powerpc/platforms/cell/
H A Dras.c109 struct ptcal_area *area; local
116 area = kmalloc(sizeof(*area), GFP_KERNEL);
117 if (!area)
120 area->nid = nid;
121 area->order = order;
122 area->pages = __alloc_pages_node(area->nid,
124 area->order);
126 if (!area
208 struct ptcal_area *area, *tmp; local
[all...]
/linux-master/lib/
H A Dlogic_iomem.c154 struct logic_iomem_area *area = get_area(addr); local
156 if (!area) {
161 if (area->ops->unmap)
162 area->ops->unmap(area->priv);
165 area->ops = NULL;
166 area->priv = NULL;
221 struct logic_iomem_area *area = get_area(addr); \
223 if (!area) \
226 return (u ## sz) area
256 struct logic_iomem_area *area = get_area(addr); local
279 struct logic_iomem_area *area = get_area(addr); local
302 struct logic_iomem_area *area = get_area(addr); local
[all...]
/linux-master/mm/
H A Dioremap.c5 * 640k-1MB IO memory area on PC's
20 struct vm_struct *area; local
36 area = __get_vm_area_caller(size, VM_IOREMAP, IOREMAP_START,
38 if (!area)
40 vaddr = (unsigned long)area->addr;
41 area->phys_addr = phys_addr;
44 free_vm_area(area);
/linux-master/sound/core/oss/
H A Dcopy.c41 if (snd_BUG_ON(src_channels->area.first % 8 ||
42 src_channels->area.step % 8))
44 if (snd_BUG_ON(dst_channels->area.first % 8 ||
45 dst_channels->area.step % 8))
49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format);
54 snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.format);
/linux-master/drivers/video/fbdev/sis/
H A Dsis_accel.c356 void fbcon_sis_copyarea(struct fb_info *info, const struct fb_copyarea *area) argument
361 int width = area->width;
362 int height = area->height;
369 cfb_copyarea(info, area);
374 area->sx >= vxres || area->sy >= vyres ||
375 area->dx >= vxres || area->dy >= vyres)
379 if((area->sx + width) > vxres) width = vxres - area
[all...]
/linux-master/arch/loongarch/include/asm/
H A Dkfence.h21 struct vm_struct *area; local
23 area = __get_vm_area_caller(KFENCE_POOL_SIZE, VM_IOREMAP,
26 if (!area)
29 __kfence_pool = (char *)area->addr;
34 free_vm_area(area);
/linux-master/arch/powerpc/platforms/pseries/
H A Drtas-work-area.c3 #define pr_fmt(fmt) "rtas-work-area: " fmt
17 #include <asm/rtas-work-area.h>
30 * The smallest known work area size is for ibm,get-vpd's
53 * A single work area buffer and descriptor to serve requests early in
83 struct rtas_work_area *area; local
107 area = mempool_alloc(&rwa_state.descriptor_pool, GFP_KERNEL);
108 area->buf = (char *)addr;
109 area->size = size;
111 return area;
114 void __ref rtas_work_area_free(struct rtas_work_area *area) argument
[all...]
/linux-master/sound/core/
H A Dmemalloc.c43 * snd_dma_alloc_dir_pages - allocate the buffer area according to the given
73 dmab->area = __snd_dma_alloc_pages(dmab, size);
74 if (!dmab->area)
82 * snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
109 if (! dmab->area)
181 * @area: VM area information
186 struct vm_area_struct *area)
194 return ops->mmap(dmab, area);
252 return virt_to_page(dmab->area
185 snd_dma_buffer_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
330 snd_dma_continuous_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
358 snd_dma_vmalloc_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
447 snd_dma_iram_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
477 snd_dma_dev_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
505 snd_dma_wc_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
522 snd_dma_wc_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
577 snd_dma_noncontig_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
699 snd_dma_sg_wc_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
845 snd_dma_sg_fallback_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
886 snd_dma_noncoherent_mmap(struct snd_dma_buffer *dmab, struct vm_area_struct *area) argument
[all...]

Completed in 236 milliseconds

1234567891011>>