/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
D | tcm.h | 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); 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 …]
|
D | tcm-sita.c | 163 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_cppcore.c | 86 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 …]
|
D | nfp_cpp.h | 219 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 …]
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
D | grant-table.c | 26 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 …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
D | ras.c | 109 struct ptcal_area *area; in cbe_ptcal_enable_on_node() local 116 area = kmalloc(sizeof(*area), GFP_KERNEL); in cbe_ptcal_enable_on_node() 117 if (!area) in cbe_ptcal_enable_on_node() 120 area->nid = nid; in cbe_ptcal_enable_on_node() 121 area->order = order; in cbe_ptcal_enable_on_node() 122 area->pages = __alloc_pages_node(area->nid, in cbe_ptcal_enable_on_node() 124 area->order); in cbe_ptcal_enable_on_node() 126 if (!area->pages) { in cbe_ptcal_enable_on_node() 128 __func__, area->nid); in cbe_ptcal_enable_on_node() 137 addr = __pa(page_address(area->pages)) + (PAGE_SIZE >> 1); in cbe_ptcal_enable_on_node() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | dnfb.c | 109 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 …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/sis/ |
D | sis_accel.c | 356 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 …]
|
/kernel/linux/linux-5.10/mm/ |
D | vmalloc.c | 2061 struct vm_struct *area; in __get_vm_area_node() local 2073 area = kzalloc_node(sizeof(*area), gfp_mask & GFP_RECLAIM_MASK, node); in __get_vm_area_node() 2074 if (unlikely(!area)) in __get_vm_area_node() 2082 kfree(area); in __get_vm_area_node() 2088 setup_vmalloc_vm(area, va, flags, caller); in __get_vm_area_node() 2090 return area; in __get_vm_area_node() 2181 static inline void set_area_direct_map(const struct vm_struct *area, in set_area_direct_map() argument 2186 for (i = 0; i < area->nr_pages; i++) in set_area_direct_map() 2187 if (page_address(area->pages[i])) in set_area_direct_map() 2188 set_direct_map(area->pages[i]); in set_area_direct_map() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | kcov.c | 60 void *area; member 132 struct kcov_remote_area *area; in kcov_remote_area_get() local 136 area = list_entry(pos, struct kcov_remote_area, list); in kcov_remote_area_get() 137 if (area->size == size) { in kcov_remote_area_get() 138 list_del(&area->list); in kcov_remote_area_get() 139 return area; in kcov_remote_area_get() 146 static void kcov_remote_area_put(struct kcov_remote_area *area, in kcov_remote_area_put() argument 149 INIT_LIST_HEAD(&area->list); in kcov_remote_area_put() 150 area->size = size; in kcov_remote_area_put() 151 list_add(&area->list, &kcov_remote_areas); in kcov_remote_area_put() [all …]
|
/kernel/linux/linux-5.10/sound/core/ |
D | memalloc.c | 35 dmab->area = dma_alloc_coherent(dmab->dev.dev, size, &dmab->addr, in snd_malloc_dev_pages() 38 if (dmab->area && dmab->dev.type == SNDRV_DMA_TYPE_DEV_UC) in snd_malloc_dev_pages() 39 set_memory_wc((unsigned long)dmab->area, in snd_malloc_dev_pages() 49 set_memory_wb((unsigned long)dmab->area, in snd_free_dev_pages() 52 dma_free_coherent(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); in snd_free_dev_pages() 68 dmab->area = NULL; in snd_malloc_dev_iram() 80 dmab->area = gen_pool_dma_alloc_align(pool, size, &dmab->addr, in snd_malloc_dev_iram() 92 if (pool && dmab->area) in snd_free_dev_iram() 93 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_free_dev_iram() 139 dmab->area = NULL; in snd_dma_alloc_pages() [all …]
|
D | sgbuf.c | 28 vunmap(dmab->area); in snd_free_sgbuf_pages() 29 dmab->area = NULL; in snd_free_sgbuf_pages() 38 tmpb.area = sgbuf->table[i].buf; in snd_free_sgbuf_pages() 66 dmab->area = NULL; in snd_malloc_sgbuf_pages() 108 table->buf = tmpb.area; in snd_malloc_sgbuf_pages() 113 *pgtable++ = virt_to_page(tmpb.area); in snd_malloc_sgbuf_pages() 114 tmpb.area += PAGE_SIZE; in snd_malloc_sgbuf_pages() 124 dmab->area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, prot); in snd_malloc_sgbuf_pages() 125 if (! dmab->area) in snd_malloc_sgbuf_pages() 129 return dmab->area; in snd_malloc_sgbuf_pages()
|
/kernel/linux/linux-5.10/sound/core/oss/ |
D | mulaw.c | 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode() 189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode() 190 src_step = src_channels[channel].area.step / 8; in mulaw_decode() 191 dst_step = dst_channels[channel].area.step / 8; in mulaw_decode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() 234 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_encode() 235 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_encode() 236 src_step = src_channels[channel].area.step / 8; in mulaw_encode() 237 dst_step = dst_channels[channel].area.step / 8; in mulaw_encode() [all …]
|
D | rate.c | 85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 90 src = (signed short *)src_channels[channel].area.addr + in resample_expand() 91 src_channels[channel].area.first / 8 / 2; in resample_expand() 92 dst = (signed short *)dst_channels[channel].area.addr + in resample_expand() 93 dst_channels[channel].area.first / 8 / 2; in resample_expand() 94 src_step = src_channels[channel].area.step / 8 / 2; in resample_expand() 95 dst_step = dst_channels[channel].area.step / 8 / 2; in resample_expand() 144 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_shrink() 149 src = (signed short *)src_channels[channel].area.addr + in resample_shrink() 150 src_channels[channel].area.first / 8 / 2; in resample_shrink() [all …]
|
D | copy.c | 41 if (snd_BUG_ON(src_channels->area.first % 8 || in copy_transfer() 42 src_channels->area.step % 8)) in copy_transfer() 44 if (snd_BUG_ON(dst_channels->area.first % 8 || in copy_transfer() 45 dst_channels->area.step % 8)) in copy_transfer() 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
|
D | linear.c | 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert() 76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert() 77 src_step = src_channels[channel].area.step / 8; in convert() 78 dst_step = dst_channels[channel].area.step / 8; in convert() 101 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in linear_transfer() 102 src_channels[channel].area.step % 8)) in linear_transfer() 104 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in linear_transfer() 105 dst_channels[channel].area.step % 8)) in linear_transfer()
|
/kernel/liteos_m/components/security/syscall/ |
D | pthread_syscall.c | 93 int *area = NULL; in SysSchedGetArea() local 100 area = (int *)OsGetUserTaskCB(tid)->userArea; in SysSchedGetArea() 102 return area; in SysSchedGetArea() 105 int SysSetThreadArea(const char *area) in SysSetThreadArea() argument 111 OsGetUserTaskCB(runTask->taskID)->userArea = (unsigned long)(uintptr_t)area; in SysSetThreadArea() 119 char *area = NULL; in SysGetThreadArea() local 123 area = (char *)OsGetUserTaskCB(runTask->taskID)->userArea; in SysGetThreadArea() 125 return area; in SysGetThreadArea()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/mb862xx/ |
D | mb862xxfb_accel.c | 43 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()
|
/kernel/linux/linux-5.10/kernel/dma/ |
D | remap.c | 11 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 return area->pages; in dma_common_find_pages() 62 struct vm_struct *area = find_vm_area(cpu_addr); in dma_common_free_remap() local 64 if (!area || area->flags != VM_DMA_COHERENT) { in dma_common_free_remap()
|
/kernel/linux/linux-5.10/arch/m68k/mm/ |
D | kmap.c | 112 struct vm_struct **p, *tmp, *area; in get_io_area() local 114 area = kmalloc(sizeof(*area), GFP_KERNEL); in get_io_area() 115 if (!area) in get_io_area() 122 kfree(area); in get_io_area() 127 area->addr = (void *)addr; in get_io_area() 128 area->size = size + IO_SIZE; in get_io_area() 129 area->next = *p; in get_io_area() 130 *p = area; in get_io_area() 131 return area; in get_io_area() 161 struct vm_struct *area; in __ioremap() local [all …]
|
/kernel/linux/linux-5.10/Documentation/xtensa/ |
D | mmu.rst | 64 6. The IO area covers the entire 256MB segment of parent-bus-address; the 83 | VMALLOC area | VMALLOC_START 0xc0000000 128MB - 64KB 87 | remap area 1 | 90 | remap area 2 | 93 | KMAP area | PKMAP_BASE PTRS_PER_PTE * 98 | Atomic KMAP area | FIXADDR_START KM_TYPE_NR * 126 | VMALLOC area | VMALLOC_START 0xa0000000 128MB - 64KB 130 | remap area 1 | 133 | remap area 2 | 136 | KMAP area | PKMAP_BASE PTRS_PER_PTE * [all …]
|
/kernel/linux/linux-5.10/kernel/events/ |
D | uprobes.c | 1442 static int xol_add_vma(struct mm_struct *mm, struct xol_area *area) in xol_add_vma() argument 1455 if (!area->vaddr) { in xol_add_vma() 1457 area->vaddr = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE, in xol_add_vma() 1459 if (IS_ERR_VALUE(area->vaddr)) { in xol_add_vma() 1460 ret = area->vaddr; in xol_add_vma() 1465 vma = _install_special_mapping(mm, area->vaddr, PAGE_SIZE, in xol_add_vma() 1467 &area->xol_mapping); in xol_add_vma() 1475 smp_store_release(&mm->uprobes_state.xol_area, area); /* ^^^ */ in xol_add_vma() 1486 struct xol_area *area; in __create_xol_area() local 1488 area = kmalloc(sizeof(*area), GFP_KERNEL); in __create_xol_area() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/ |
D | radeon_accel.c | 99 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 …]
|
/kernel/linux/linux-5.10/arch/sh/boards/mach-sdk7786/ |
D | fpga.c | 26 unsigned long area; in sdk7786_fpga_probe() local 34 for (area = PA_AREA0; area < PA_AREA7; area += SZ_64M) { in sdk7786_fpga_probe() 35 base = ioremap(area + FPGA_REGS_OFFSET, FPGA_REGS_SIZE); in sdk7786_fpga_probe()
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-snap-persistent.c | 113 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 …]
|