/linux-6.6.21/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 | 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 185 area->p0.x = pos % tcm->width; in sita_reserve_2d() 186 area->p0.y = pos / tcm->width; in sita_reserve_2d() 187 area->p1.x = area->p0.x + w - 1; in sita_reserve_2d() 188 area->p1.y = area->p0.y + h - 1; in sita_reserve_2d() [all …]
|
/linux-6.6.21/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 | 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); 229 phys_addr_t nfp_cpp_area_phys(struct nfp_cpp_area *area); [all …]
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_ethtool.c | 81 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-6.6.21/drivers/iommu/iommufd/ |
D | io_pagetable.c | 24 struct iopt_area *area; member 39 iter->area = iopt_area_iter_first(iopt, iova, iova); in iopt_area_contig_init() 40 if (!iter->area) in iopt_area_contig_init() 42 if (!iter->area->pages) { in iopt_area_contig_init() 43 iter->area = NULL; in iopt_area_contig_init() 46 return iter->area; in iopt_area_contig_init() 53 if (!iter->area) in iopt_area_contig_next() 55 last_iova = iopt_area_last_iova(iter->area); in iopt_area_contig_next() 60 iter->area = iopt_area_iter_next(iter->area, iter->cur_iova, in iopt_area_contig_next() 62 if (!iter->area) in iopt_area_contig_next() [all …]
|
D | io_pagetable.h | 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 static inline unsigned long iopt_area_index(struct iopt_area *area) in iopt_area_index() argument 73 return area->pages_node.start; in iopt_area_index() 76 static inline unsigned long iopt_area_last_index(struct iopt_area *area) in iopt_area_last_index() argument 78 return area->pages_node.last; in iopt_area_last_index() 81 static inline unsigned long iopt_area_iova(struct iopt_area *area) in iopt_area_iova() argument [all …]
|
D | pages.c | 197 static unsigned long iopt_area_index_to_iova(struct iopt_area *area, in iopt_area_index_to_iova() argument 201 WARN_ON(index < iopt_area_index(area) || in iopt_area_index_to_iova() 202 index > iopt_area_last_index(area)); in iopt_area_index_to_iova() 203 index -= iopt_area_index(area); in iopt_area_index_to_iova() 205 return iopt_area_iova(area); in iopt_area_index_to_iova() 206 return iopt_area_iova(area) - area->page_offset + index * PAGE_SIZE; in iopt_area_index_to_iova() 209 static unsigned long iopt_area_index_to_iova_last(struct iopt_area *area, in iopt_area_index_to_iova_last() argument 213 WARN_ON(index < iopt_area_index(area) || in iopt_area_index_to_iova_last() 214 index > iopt_area_last_index(area)); in iopt_area_index_to_iova_last() 215 if (index == iopt_area_last_index(area)) in iopt_area_index_to_iova_last() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/lib/ |
D | logic_iomem.c | 154 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-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/sound/core/ |
D | memalloc.c | 73 dmab->area = __snd_dma_alloc_pages(dmab, size); in snd_dma_alloc_dir_pages() 74 if (!dmab->area) in snd_dma_alloc_dir_pages() 109 if (! dmab->area) in snd_dma_alloc_pages_fallback() 186 struct vm_area_struct *area) in snd_dma_buffer_mmap() argument 194 return ops->mmap(dmab, area); in snd_dma_buffer_mmap() 252 return virt_to_page(dmab->area + offset); in snd_sgbuf_get_page() 327 do_free_pages(dmab->area, dmab->bytes, false); in snd_dma_continuous_free() 331 struct vm_area_struct *area) in snd_dma_continuous_mmap() argument 333 return remap_pfn_range(area, area->vm_start, in snd_dma_continuous_mmap() 335 area->vm_end - area->vm_start, in snd_dma_continuous_mmap() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/kernel/ |
D | kcov.c | 61 void *area; member 136 struct kcov_remote_area *area; in kcov_remote_area_get() local 140 area = list_entry(pos, struct kcov_remote_area, list); in kcov_remote_area_get() 141 if (area->size == size) { in kcov_remote_area_get() 142 list_del(&area->list); in kcov_remote_area_get() 143 return area; in kcov_remote_area_get() 150 static void kcov_remote_area_put(struct kcov_remote_area *area, in kcov_remote_area_put() argument 153 INIT_LIST_HEAD(&area->list); in kcov_remote_area_put() 154 area->size = size; in kcov_remote_area_put() 155 list_add(&area->list, &kcov_remote_areas); in kcov_remote_area_put() [all …]
|
/linux-6.6.21/mm/ |
D | vmalloc.c | 2576 struct vm_struct *area; in __get_vm_area_node() local 2588 area = kzalloc_node(sizeof(*area), gfp_mask & GFP_RECLAIM_MASK, node); in __get_vm_area_node() 2589 if (unlikely(!area)) in __get_vm_area_node() 2597 kfree(area); in __get_vm_area_node() 2601 setup_vmalloc_vm(area, va, flags, caller); in __get_vm_area_node() 2612 area->addr = kasan_unpoison_vmalloc(area->addr, requested_size, in __get_vm_area_node() 2615 return area; in __get_vm_area_node() 2709 static inline void set_area_direct_map(const struct vm_struct *area, in set_area_direct_map() argument 2715 for (i = 0; i < area->nr_pages; i++) in set_area_direct_map() 2716 if (page_address(area->pages[i])) in set_area_direct_map() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | rtas-work-area.h | 68 void rtas_work_area_free(struct rtas_work_area *area); 70 static inline char *rtas_work_area_raw_buf(const struct rtas_work_area *area) in rtas_work_area_raw_buf() argument 72 return area->buf; in rtas_work_area_raw_buf() 75 static inline size_t rtas_work_area_size(const struct rtas_work_area *area) in rtas_work_area_size() argument 77 return area->size; in rtas_work_area_size() 80 static inline phys_addr_t rtas_work_area_phys(const struct rtas_work_area *area) in rtas_work_area_phys() argument 82 return __pa(area->buf); in rtas_work_area_phys()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 448 struct mlxsw_thermal_area *area, u8 module) in mlxsw_thermal_module_init() argument 452 module_tz = &area->tz_module_arr[module]; in mlxsw_thermal_module_init() 457 module_tz->slot_index = area->slot_index; in mlxsw_thermal_module_init() 479 struct mlxsw_thermal_area *area) in mlxsw_thermal_modules_init() argument 485 mlxsw_reg_mgpir_pack(mgpir_pl, area->slot_index); in mlxsw_thermal_modules_init() 491 &area->tz_module_num, NULL); in mlxsw_thermal_modules_init() 494 if (!area->tz_module_num) in mlxsw_thermal_modules_init() 497 area->tz_module_arr = kcalloc(area->tz_module_num, in mlxsw_thermal_modules_init() 498 sizeof(*area->tz_module_arr), in mlxsw_thermal_modules_init() 500 if (!area->tz_module_arr) in mlxsw_thermal_modules_init() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/soc/fsl/qe/ |
D | tsa.c | 232 static void tsa_init_entries_area(struct tsa *tsa, struct tsa_entries_area *area, in tsa_init_entries_area() argument 245 area->entries_start = tsa->si_ram; in tsa_init_entries_area() 246 area->entries_next = area->entries_start + half; in tsa_init_entries_area() 247 area->last_entry = NULL; in tsa_init_entries_area() 250 area->entries_start = tsa->si_ram + half; in tsa_init_entries_area() 251 area->entries_next = area->entries_start + half; in tsa_init_entries_area() 252 area->last_entry = NULL; in tsa_init_entries_area() 259 area->entries_start = tsa->si_ram; in tsa_init_entries_area() 260 area->entries_next = area->entries_start + quarter; in tsa_init_entries_area() 261 area->last_entry = NULL; in tsa_init_entries_area() [all …]
|
/linux-6.6.21/drivers/video/fbdev/mb862xx/ |
D | mb862xxfb_accel.c | 41 const struct fb_copyarea *area) in mb86290fb_copyarea() argument 50 if (area->sx >= area->dx && area->sy >= area->dy) in mb86290fb_copyarea() 52 else 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() 59 cmd[3] = (area->sy << 16) | area->sx; in mb86290fb_copyarea() 60 cmd[4] = (area->dy << 16) | area->dx; in mb86290fb_copyarea() 61 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
|
/linux-6.6.21/arch/powerpc/platforms/pseries/ |
D | rtas-work-area.c | 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 117 rtas_work_area_free_early(area); in rtas_work_area_free() 121 gen_pool_free(rwa_state.gen_pool, (unsigned long)area->buf, area->size); in rtas_work_area_free() 122 mempool_free(area, &rwa_state.descriptor_pool); in rtas_work_area_free()
|
/linux-6.6.21/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()
|
/linux-6.6.21/arch/m68k/mm/ |
D | kmap.c | 111 struct vm_struct **p, *tmp, *area; in get_io_area() local 113 area = kmalloc(sizeof(*area), GFP_KERNEL); in get_io_area() 114 if (!area) in get_io_area() 121 kfree(area); in get_io_area() 126 area->addr = (void *)addr; in get_io_area() 127 area->size = size + IO_SIZE; in get_io_area() 128 area->next = *p; in get_io_area() 129 *p = area; in get_io_area() 130 return area; in get_io_area() 160 struct vm_struct *area; in __ioremap() local [all …]
|