Home
last modified time | relevance | path

Searched full:area (Results 1 – 25 of 2125) sorted by relevance

12345678910>>...85

/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_cppcore.c57 * @waitq: area wait queue
86 struct nfp_cpp_area *area; member
93 struct mutex mutex; /* Lock for the area's refcount */
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
[all …]
H A Dnfp_cpp.h36 /* Max size of area it should be safe to request */
215 void nfp_cpp_area_free(struct nfp_cpp_area *area);
216 int nfp_cpp_area_acquire(struct nfp_cpp_area *area);
217 int nfp_cpp_area_acquire_nonblocking(struct nfp_cpp_area *area);
218 void nfp_cpp_area_release(struct nfp_cpp_area *area);
219 void nfp_cpp_area_release_free(struct nfp_cpp_area *area);
220 int nfp_cpp_area_read(struct nfp_cpp_area *area, unsigned long offset,
222 int nfp_cpp_area_write(struct nfp_cpp_area *area, unsigned long offset,
224 size_t nfp_cpp_area_size(struct nfp_cpp_area *area);
228 struct resource *nfp_cpp_area_resource(struct nfp_cpp_area *area);
[all …]
/linux/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. Not
[all …]
H A Dtcm-sita.c56 /* found a long enough free area */ in r2l_b2t_1d()
122 /* assume the area is free until we find an overlap */ in l2r_t2b()
125 /* check subsequent rows to see if complete area is free */ in l2r_t2b()
146 /* set area as in-use. iterate over rows */ in l2r_t2b()
155 struct tcm_area *area) in sita_reserve_1d() argument
163 area->p0.x = pos % tcm->width; in sita_reserve_1d()
164 area->p0.y = pos / tcm->width; in sita_reserve_1d()
165 area->p1.x = (pos + num_slots - 1) % tcm->width; in sita_reserve_1d()
166 area->p1.y = (pos + num_slots - 1) / tcm->width; in sita_reserve_1d()
175 struct tcm_area *area) in sita_reserve_2d() argument
[all …]
/linux/drivers/iommu/iommufd/
H A Dio_pagetable.c25 struct iopt_area *area; member
40 iter->area = iopt_area_iter_first(iopt, iova, iova); in iopt_area_contig_init()
41 if (!iter->area) in iopt_area_contig_init()
43 if (!iter->area->pages) { in iopt_area_contig_init()
44 iter->area = NULL; in iopt_area_contig_init()
47 return iter->area; in iopt_area_contig_init()
54 if (!iter->area) in iopt_area_contig_next()
56 last_iova = iopt_area_last_iova(iter->area); in iopt_area_contig_next()
61 iter->area = iopt_area_iter_next(iter->area, iter->cur_iova, in iopt_area_contig_next()
63 if (!iter->area) in iopt_area_contig_next()
[all …]
/linux/drivers/net/dsa/sja1105/
H A 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 …]
/linux/io_uring/
H A Dzcrx.c48 struct io_zcrx_area *area = io_zcrx_iov_to_area(niov); in io_zcrx_iov_page() local
51 lockdep_assert(!area->mem.is_dmabuf); in io_zcrx_iov_page()
53 niov_pages_shift = area->ifq->niov_shift - PAGE_SHIFT; in io_zcrx_iov_page()
54 return area->mem.pages[net_iov_idx(niov) << niov_pages_shift]; in io_zcrx_iov_page()
58 struct io_zcrx_area *area) in io_populate_area_dma() argument
61 struct sg_table *sgt = area->mem.sgt; in io_populate_area_dma()
72 while (sg_len && niov_idx < area->nia.num_niovs) { in io_populate_area_dma()
73 struct net_iov *niov = &area->nia.niovs[niov_idx]; in io_populate_area_dma()
83 if (WARN_ON_ONCE(niov_idx != area->nia.num_niovs)) in io_populate_area_dma()
253 struct io_zcrx_area *area) in io_zcrx_unmap_area() argument
[all …]
/linux/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: Work area descriptor as returned from rtas_work_area_alloc().
[all …]
/linux/lib/
H A Dlogic_iomem.c154 struct logic_iomem_area *area = get_area(addr); in iounmap() local
156 if (!area) { in iounmap()
161 if (area->ops->unmap) in iounmap()
162 area->ops->unmap(area->priv); in iounmap()
165 area->ops = NULL; in iounmap()
166 area->priv = NULL; in iounmap()
221 struct logic_iomem_area *area = get_area(addr); \
223 if (!area) \
226 return (u ## sz) area->ops->read(area->priv, \
234 struct logic_iomem_area *area = get_area(addr); \
[all …]
/linux/arch/x86/xen/
H A Dgrant-table.c26 struct vm_struct *area; member
40 *__shared = shared = gnttab_shared_vm_area.area->addr; in arch_gnttab_map_shared()
62 *__shared = shared = gnttab_status_vm_area.area->addr; in arch_gnttab_map_status()
81 if (shared == gnttab_status_vm_area.area->addr) in arch_gnttab_unmap()
96 struct gnttab_vm_area *area = data; in gnttab_apply() local
98 area->ptes[area->idx++] = pte; in gnttab_apply()
102 static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) in arch_gnttab_valloc() argument
104 area->ptes = kmalloc_array(nr_frames, sizeof(*area->ptes), GFP_KERNEL); in arch_gnttab_valloc()
105 if (area->ptes == NULL) in arch_gnttab_valloc()
107 area->area = get_vm_area(PAGE_SIZE * nr_frames, VM_IOREMAP); in arch_gnttab_valloc()
[all …]
/linux/sound/core/
H A Dmemalloc.c28 int (*mmap)(struct snd_dma_buffer *dmab, struct vm_area_struct *area);
49 * snd_dma_alloc_dir_pages - allocate the buffer area according to the given
79 dmab->area = __snd_dma_alloc_pages(dmab, size); in snd_dma_alloc_dir_pages()
80 if (!dmab->area) in snd_dma_alloc_dir_pages()
88 * snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
115 if (! dmab->area) in snd_dma_alloc_pages_fallback()
187 * @area: VM area information
192 struct vm_area_struct *area) in snd_dma_buffer_mmap() argument
200 return ops->mmap(dmab, area); in snd_dma_buffer_mmap()
258 return virt_to_page(dmab->area + offset); in snd_sgbuf_get_page()
[all …]
/linux/arch/arm/mach-omap2/
H A Dfb.c33 DEFINE_RES_MEM_NAMED(0x70000000u, 0x4000000, "vrfb-area-0"),
34 DEFINE_RES_MEM_NAMED(0x74000000u, 0x4000000, "vrfb-area-1"),
35 DEFINE_RES_MEM_NAMED(0x78000000u, 0x4000000, "vrfb-area-2"),
36 DEFINE_RES_MEM_NAMED(0x7c000000u, 0x4000000, "vrfb-area-3"),
41 DEFINE_RES_MEM_NAMED(0x70000000u, 0x4000000, "vrfb-area-0"),
42 DEFINE_RES_MEM_NAMED(0x74000000u, 0x4000000, "vrfb-area-1"),
43 DEFINE_RES_MEM_NAMED(0x78000000u, 0x4000000, "vrfb-area-2"),
44 DEFINE_RES_MEM_NAMED(0x7c000000u, 0x4000000, "vrfb-area-3"),
45 DEFINE_RES_MEM_NAMED(0xe0000000u, 0x4000000, "vrfb-area-4"),
46 DEFINE_RES_MEM_NAMED(0xe4000000u, 0x4000000, "vrfb-area-5"),
[all …]
/linux/drivers/video/fbdev/
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) in dnfb_copyarea() argument
159 incr = (area->dy <= area->sy) ? 1 : -1; in dnfb_copyarea()
161 src = (ushort *)(info->screen_base + area->sy * info->fix.line_length + in dnfb_copyarea()
162 (area->sx >> 4)); in dnfb_copyarea()
163 dest = area->dy * (info->fix.line_length >> 1) + (area->dx >> 4); in dnfb_copyarea()
166 y_delta = (info->fix.line_length * 8) - area->sx - area->width; in dnfb_copyarea()
167 x_end = area->dx + area->width - 1; in dnfb_copyarea()
168 x_word_count = (x_end >> 4) - (area->dx >> 4) + 1; in dnfb_copyarea()
169 start_mask = 0xffff0000 >> (area->dx & 0xf); in dnfb_copyarea()
[all …]
/linux/kernel/
H A Dkcov.c56 /* The lock protects mode, size, area and t. */
62 void *area; member
67 /* Size of remote area (in long's). */
137 struct kcov_remote_area *area; in kcov_remote_area_get() local
141 area = list_entry(pos, struct kcov_remote_area, list); in kcov_remote_area_get()
142 if (area->size == size) { in kcov_remote_area_get()
143 list_del(&area->list); in kcov_remote_area_get()
144 return area; in kcov_remote_area_get()
151 static void kcov_remote_area_put(struct kcov_remote_area *area, in kcov_remote_area_put() argument
154 INIT_LIST_HEAD(&area->list); in kcov_remote_area_put()
[all …]
/linux/drivers/soc/fsl/qe/
H A Dtsa.c349 static void tsa_cpm1_init_entries_area(struct tsa *tsa, struct tsa_entries_area *area, in tsa_cpm1_init_entries_area() argument
362 area->entries_start = tsa->si_ram; in tsa_cpm1_init_entries_area()
363 area->entries_next = area->entries_start + half; in tsa_cpm1_init_entries_area()
364 area->last_entry = NULL; in tsa_cpm1_init_entries_area()
367 area->entries_start = tsa->si_ram + half; in tsa_cpm1_init_entries_area()
368 area->entries_next = area->entries_start + half; in tsa_cpm1_init_entries_area()
369 area->last_entry = NULL; in tsa_cpm1_init_entries_area()
376 area->entries_start = tsa->si_ram; in tsa_cpm1_init_entries_area()
377 area->entries_next = area->entries_start + quarter; in tsa_cpm1_init_entries_area()
378 area->last_entry = NULL; in tsa_cpm1_init_entries_area()
[all …]
/linux/mm/
H A Dvmalloc.c337 struct vm_struct *area; in ioremap_page_range() local
339 area = find_vm_area((void *)addr); in ioremap_page_range()
340 if (!area || !(area->flags & VM_IOREMAP)) { in ioremap_page_range()
344 if (addr != (unsigned long)area->addr || in ioremap_page_range()
345 (void *)end != area->addr + get_vm_area_size(area)) { in ioremap_page_range()
347 addr, end, (long)area->addr, in ioremap_page_range()
348 (long)area->addr + get_vm_area_size(area)); in ioremap_page_range()
499 * @addr: start of the VM area to unmap
500 * @end: end of the VM area to unmap (non-inclusive)
686 * @addr: start of the VM area to map
[all …]
H A Dexecmem.c68 struct vm_struct *area; in execmem_vmap() local
70 area = __get_vm_area_node(size, range->alignment, PAGE_SHIFT, VM_ALLOC, in execmem_vmap()
73 if (!area && range->fallback_start) in execmem_vmap()
74 area = __get_vm_area_node(size, range->alignment, PAGE_SHIFT, VM_ALLOC, in execmem_vmap()
78 return area; in execmem_vmap()
163 void *area; in execmem_cache_clean() local
166 mas_for_each(&mas, area, ULONG_MAX) { in execmem_cache_clean()
171 struct vm_struct *vm = find_vm_area(area); in execmem_cache_clean()
175 vfree(area); in execmem_cache_clean()
189 void *area = NULL; in execmem_cache_add_locked() local
[all …]
/linux/arch/x86/mm/
H A Dmem_encrypt_boot.S36 /* Set up a one page stack in the non-encrypted memory area */
42 movq %rdi, %r10 /* Encrypted area */
43 movq %rsi, %r11 /* Decrypted area */
44 movq %rdx, %r12 /* Area length */
53 movq %r10, %rdi /* Encrypted area */
54 movq %r11, %rsi /* Decrypted area */
56 movq %r12, %rcx /* Area length */
80 * routine is defined here and then copied to an area outside
88 * RCX - length of area
93 * The area will be encrypted by copying from the non-encrypted
[all …]
/linux/drivers/md/
H A Ddm-snap-persistent.c116 void *area; member
119 * An area of zeros used to clear the next area.
124 * An area used for header. The header can be written
131 * Used to keep track of which metadata area the data in
158 * metadata area.
179 * a single metadata area. in alloc_area()
181 ps->area = vmalloc(len); in alloc_area()
182 if (!ps->area) in alloc_area()
199 vfree(ps->area); in alloc_area()
207 vfree(ps->area); in free_area()
[all …]
/linux/drivers/video/fbdev/sis/
H A 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 …]
/linux/kernel/dma/
H A Dremap.c11 struct vm_struct *area = find_vm_area(cpu_addr); in dma_common_find_pages() local
13 if (!area || !(area->flags & VM_DMA_COHERENT)) in dma_common_find_pages()
15 WARN(area->flags != VM_DMA_COHERENT, in dma_common_find_pages()
16 "unexpected flags in area: %p\n", cpu_addr); in dma_common_find_pages()
17 return area->pages; in dma_common_find_pages()
64 struct vm_struct *area = find_vm_area(cpu_addr); in dma_common_free_remap() local
66 if (!area || !(area->flags & VM_DMA_COHERENT)) { in dma_common_free_remap()
67 WARN(1, "trying to free invalid coherent area: %p\n", cpu_addr); in dma_common_free_remap()
/linux/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; in __rtas_work_area_alloc() local
107 area = mempool_alloc(&rwa_state.descriptor_pool, GFP_KERNEL); in __rtas_work_area_alloc()
108 area->buf = (char *)addr; in __rtas_work_area_alloc()
109 area->size = size; in __rtas_work_area_alloc()
111 return area; in __rtas_work_area_alloc()
114 void __ref rtas_work_area_free(struct rtas_work_area *area) in rtas_work_area_free() argument
[all …]
/linux/drivers/pmdomain/renesas/
H A Drcar-sysc.h16 #define PD_CPU BIT(0) /* Area contains main CPU core */
17 #define PD_SCU BIT(1) /* Area contains SCU and L2 cache */
18 #define PD_NO_CR BIT(2) /* Area lacks PWR{ON,OFF}CR registers */
19 #define PD_OFF_DELAY BIT(3) /* Area is subject to power-off delay quirk */
21 #define PD_CPU_CR PD_CPU /* CPU area has CR (R-Car H1) */
22 #define PD_CPU_NOCR PD_CPU | PD_NO_CR /* CPU area lacks CR (R-Car Gen2/3) */
23 #define PD_ALWAYS_ON PD_NO_CR /* Always-on area */
27 * Description of a Power Area
32 u16 chan_offs; /* Offset of PWRSR register for this area */
41 * SoC-specific Power Area Description
/linux/Documentation/arch/s390/
H A D3270.rst201 The driver defines three areas on the 3270 screen: the log area, the
202 input area, and the status area.
204 The log area takes up all but the bottom two lines of the screen. The
206 down. When it fills, the status area changes from "Linux Running" to
210 The input area extends from the beginning of the second-to-last screen
211 line to the start of the status area. You type commands in this area
214 The status area initializes to "Linux Running" to give you a warm
215 fuzzy feeling. When the log area fills up and output awaits, it
219 the input area to toggle between "Linux More..." and "Linux Holding",
231 Other things you may do when the log area fills up are: hit PA2 to
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-integrity.rst41 Accesses to the on-disk metadata area containing checksums (aka tags) are
42 buffered using dm-bufio. When an access to any given metadata area
43 occurs, each unique metadata area gets its own buffer(s). The buffer size
44 is capped at the size of the metadata area, but may be smaller, thereby
45 requiring multiple buffers to represent the full metadata area. A smaller
47 metadata area for small reads/writes. The metadata is still read even in
194 Use a smaller padding of the tag area that is more
223 bytes, it will take 128 KiB of tags to track a full data area, requiring
224 256 sectors of metadata per data area. With the default buffer_sectors of
225 128, that means there will be 2 buffers per metadata area, or 2 buffers
[all …]

12345678910>>...85