Home
last modified time | relevance | path

Searched defs:mem (Results 1 – 25 of 1437) sorted by relevance

12345678910>>...58

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Dintel_memory_region.c34 intel_memory_region_free_pages(struct intel_memory_region *mem, in intel_memory_region_free_pages()
50 __intel_memory_region_put_pages_buddy(struct intel_memory_region *mem, in __intel_memory_region_put_pages_buddy()
69 __intel_memory_region_get_pages_buddy(struct intel_memory_region *mem, in __intel_memory_region_get_pages_buddy()
134 __intel_memory_region_get_block_buddy(struct intel_memory_region *mem, in __intel_memory_region_get_block_buddy()
151 int intel_memory_region_init_buddy(struct intel_memory_region *mem) in intel_memory_region_init_buddy()
157 void intel_memory_region_release_buddy(struct intel_memory_region *mem) in intel_memory_region_release_buddy()
170 struct intel_memory_region *mem; in intel_memory_region_create() local
205 void intel_memory_region_set_name(struct intel_memory_region *mem, in intel_memory_region_set_name()
217 struct intel_memory_region *mem = in __intel_memory_region_destroy() local
229 intel_memory_region_get(struct intel_memory_region *mem) in intel_memory_region_get()
[all …]
Dintel_region_lmem.c12 static int init_fake_lmem_bar(struct intel_memory_region *mem) in init_fake_lmem_bar()
52 static void release_fake_lmem_bar(struct intel_memory_region *mem) in release_fake_lmem_bar()
67 region_lmem_release(struct intel_memory_region *mem) in region_lmem_release()
75 region_lmem_init(struct intel_memory_region *mem) in region_lmem_init()
108 struct intel_memory_region *mem; in intel_setup_fake_lmem() local
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
Dcow.c100 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn()
118 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn()
167 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent()
221 static void test_cow_in_parent(char *mem, size_t size) in test_cow_in_parent()
226 static void test_cow_in_parent_mprotect(char *mem, size_t size) in test_cow_in_parent_mprotect()
231 static void test_vmsplice_in_child(char *mem, size_t size) in test_vmsplice_in_child()
236 static void test_vmsplice_in_child_mprotect(char *mem, size_t size) in test_vmsplice_in_child_mprotect()
241 static void do_test_vmsplice_in_parent(char *mem, size_t size, in do_test_vmsplice_in_parent()
336 static void test_vmsplice_before_fork(char *mem, size_t size) in test_vmsplice_before_fork()
341 static void test_vmsplice_after_fork(char *mem, size_t size) in test_vmsplice_after_fork()
[all …]
Dmkdirty.c41 static void do_test_write_sigsegv(char *mem) in do_test_write_sigsegv()
65 char *mem, *mmap_mem; in mmap_thp_range() local
89 char *mem; in test_ptrace_write() local
124 char *mem, *mmap_mem; in test_ptrace_write_thp() local
160 char *mem; in test_page_migration() local
192 char *mem, *mmap_mem; in test_page_migration_thp() local
231 char *mem, *mmap_mem; in test_pte_mapped_thp() local
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/isp_param/src/
Disp_param.c27 enum ia_css_isp_memories mem, in ia_css_isp_param_set_mem_init()
38 enum ia_css_isp_memories mem, in ia_css_isp_param_set_css_mem_init()
49 enum ia_css_isp_memories mem, in ia_css_isp_param_set_isp_mem_init()
61 enum ia_css_isp_memories mem) in ia_css_isp_param_get_mem_init()
70 enum ia_css_isp_memories mem) in ia_css_isp_param_get_css_mem_init()
79 enum ia_css_isp_memories mem) in ia_css_isp_param_get_isp_mem_init()
90 unsigned int pclass, mem; in ia_css_init_memory_interface() local
111 unsigned int mem, pclass; in ia_css_isp_param_allocate_isp_parameters() local
154 unsigned int mem, pclass; in ia_css_isp_param_destroy_isp_parameters() local
189 unsigned int mem; in ia_css_isp_param_copy_isp_mem_if_to_ddr() local
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/isp_param/src/
Disp_param.c27 enum ia_css_isp_memories mem, in ia_css_isp_param_set_mem_init()
38 enum ia_css_isp_memories mem, in ia_css_isp_param_set_css_mem_init()
49 enum ia_css_isp_memories mem, in ia_css_isp_param_set_isp_mem_init()
61 enum ia_css_isp_memories mem) in ia_css_isp_param_get_mem_init()
70 enum ia_css_isp_memories mem) in ia_css_isp_param_get_css_mem_init()
79 enum ia_css_isp_memories mem) in ia_css_isp_param_get_isp_mem_init()
90 unsigned int pclass, mem; in ia_css_init_memory_interface() local
111 unsigned int mem, pclass; in ia_css_isp_param_allocate_isp_parameters() local
154 unsigned int mem, pclass; in ia_css_isp_param_destroy_isp_parameters() local
188 unsigned int mem; in ia_css_isp_param_copy_isp_mem_if_to_ddr() local
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Diommu_api.c60 struct mm_iommu_table_group_mem_t *mem, *mem2; in mm_iommu_do_alloc() local
201 static void mm_iommu_unpin(struct mm_iommu_table_group_mem_t *mem) in mm_iommu_unpin()
226 static void mm_iommu_do_free(struct mm_iommu_table_group_mem_t *mem) in mm_iommu_do_free()
236 struct mm_iommu_table_group_mem_t *mem = container_of(head, in mm_iommu_free() local
242 static void mm_iommu_release(struct mm_iommu_table_group_mem_t *mem) in mm_iommu_release()
248 long mm_iommu_put(struct mm_struct *mm, struct mm_iommu_table_group_mem_t *mem) in mm_iommu_put()
290 struct mm_iommu_table_group_mem_t *mem, *ret = NULL; in mm_iommu_lookup() local
308 struct mm_iommu_table_group_mem_t *mem, *ret = NULL; in mm_iommu_lookup_rm() local
326 struct mm_iommu_table_group_mem_t *mem, *ret = NULL; in mm_iommu_get() local
344 long mm_iommu_ua_to_hpa(struct mm_iommu_table_group_mem_t *mem, in mm_iommu_ua_to_hpa()
[all …]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c38 struct videobuf_dma_contig_memory *mem, in __videobuf_dc_alloc()
55 struct videobuf_dma_contig_memory *mem) in __videobuf_dc_free()
83 struct videobuf_dma_contig_memory *mem; in videobuf_vm_close() local
140 static void videobuf_dma_contig_user_put(struct videobuf_dma_contig_memory *mem) in videobuf_dma_contig_user_put()
156 static int videobuf_dma_contig_user_get(struct videobuf_dma_contig_memory *mem, in videobuf_dma_contig_user_get()
210 struct videobuf_dma_contig_memory *mem; in __videobuf_alloc() local
225 struct videobuf_dma_contig_memory *mem = buf->priv; in __videobuf_to_vaddr() local
237 struct videobuf_dma_contig_memory *mem = vb->priv; in __videobuf_iolock() local
276 struct videobuf_dma_contig_memory *mem; in __videobuf_mmap_mapper() local
358 struct videobuf_dma_contig_memory *mem = buf->priv; in videobuf_to_dma_contig() local
[all …]
/kernel/linux/linux-6.6/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c38 struct videobuf_dma_contig_memory *mem, in __videobuf_dc_alloc()
55 struct videobuf_dma_contig_memory *mem) in __videobuf_dc_free()
83 struct videobuf_dma_contig_memory *mem; in videobuf_vm_close() local
140 static void videobuf_dma_contig_user_put(struct videobuf_dma_contig_memory *mem) in videobuf_dma_contig_user_put()
156 static int videobuf_dma_contig_user_get(struct videobuf_dma_contig_memory *mem, in videobuf_dma_contig_user_get()
210 struct videobuf_dma_contig_memory *mem; in __videobuf_alloc() local
225 struct videobuf_dma_contig_memory *mem = buf->priv; in __videobuf_to_vaddr() local
237 struct videobuf_dma_contig_memory *mem = vb->priv; in __videobuf_iolock() local
276 struct videobuf_dma_contig_memory *mem; in __videobuf_mmap_mapper() local
358 struct videobuf_dma_contig_memory *mem = buf->priv; in videobuf_to_dma_contig() local
[all …]
/kernel/linux/linux-6.6/drivers/spi/
Dspi-mem.c104 static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx) in spi_check_buswidth_req()
142 static bool spi_mem_check_buswidth(struct spi_mem *mem, in spi_mem_check_buswidth()
164 bool spi_mem_default_supports_op(struct spi_mem *mem, in spi_mem_default_supports_op()
227 static bool spi_mem_internal_supports_op(struct spi_mem *mem, in spi_mem_internal_supports_op()
253 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
262 static int spi_mem_access_start(struct spi_mem *mem) in spi_mem_access_start()
289 static void spi_mem_access_end(struct spi_mem *mem) in spi_mem_access_end()
312 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
434 const char *spi_mem_get_name(struct spi_mem *mem) in spi_mem_get_name()
455 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/
Diommu_api.c60 struct mm_iommu_table_group_mem_t *mem, *mem2; in mm_iommu_do_alloc() local
202 static void mm_iommu_unpin(struct mm_iommu_table_group_mem_t *mem) in mm_iommu_unpin()
227 static void mm_iommu_do_free(struct mm_iommu_table_group_mem_t *mem) in mm_iommu_do_free()
237 struct mm_iommu_table_group_mem_t *mem = container_of(head, in mm_iommu_free() local
243 static void mm_iommu_release(struct mm_iommu_table_group_mem_t *mem) in mm_iommu_release()
249 long mm_iommu_put(struct mm_struct *mm, struct mm_iommu_table_group_mem_t *mem) in mm_iommu_put()
291 struct mm_iommu_table_group_mem_t *mem, *ret = NULL; in mm_iommu_lookup() local
311 struct mm_iommu_table_group_mem_t *mem, *ret = NULL; in mm_iommu_get() local
330 long mm_iommu_ua_to_hpa(struct mm_iommu_table_group_mem_t *mem, in mm_iommu_ua_to_hpa()
357 struct mm_iommu_table_group_mem_t *mem; in mm_iommu_is_devmem() local
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mem.c102 static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx) in spi_check_buswidth_req()
140 bool spi_mem_default_supports_op(struct spi_mem *mem, in spi_mem_default_supports_op()
196 static bool spi_mem_internal_supports_op(struct spi_mem *mem, in spi_mem_internal_supports_op()
222 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
231 static int spi_mem_access_start(struct spi_mem *mem) in spi_mem_access_start()
259 static void spi_mem_access_end(struct spi_mem *mem) in spi_mem_access_end()
282 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
403 const char *spi_mem_get_name(struct spi_mem *mem) in spi_mem_get_name()
424 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size()
504 spi_mem_dirmap_create(struct spi_mem *mem, in spi_mem_dirmap_create()
[all …]
/kernel/linux/linux-5.10/kernel/dma/
Dcoherent.c33 struct dma_coherent_mem * mem) in dma_get_device_base()
42 struct dma_coherent_mem **mem) in dma_init_coherent_memory()
87 static void _dma_release_coherent_memory(struct dma_coherent_mem *mem) in _dma_release_coherent_memory()
98 struct dma_coherent_mem *mem) in dma_assign_coherent_memory()
130 struct dma_coherent_mem *mem; in dma_declare_coherent_memory() local
152 struct dma_coherent_mem *mem, in __dma_alloc_from_coherent()
200 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_alloc_from_dev_coherent() local
219 static int __dma_release_from_coherent(struct dma_coherent_mem *mem, in __dma_release_from_coherent()
249 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_release_from_dev_coherent() local
263 static int __dma_mmap_from_coherent(struct dma_coherent_mem *mem, in __dma_mmap_from_coherent()
[all …]
/kernel/linux/linux-6.6/kernel/dma/
Dcoherent.c31 struct dma_coherent_mem * mem) in dma_get_device_base()
77 static void _dma_release_coherent_memory(struct dma_coherent_mem *mem) in _dma_release_coherent_memory()
88 struct dma_coherent_mem *mem) in dma_assign_coherent_memory()
120 struct dma_coherent_mem *mem; in dma_declare_coherent_memory() local
142 struct dma_coherent_mem *mem, in __dma_alloc_from_coherent()
190 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_alloc_from_dev_coherent() local
199 static int __dma_release_from_coherent(struct dma_coherent_mem *mem, in __dma_release_from_coherent()
229 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_release_from_dev_coherent() local
234 static int __dma_mmap_from_coherent(struct dma_coherent_mem *mem, in __dma_mmap_from_coherent()
274 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_mmap_from_dev_coherent() local
[all …]
Dswiotlb.c228 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_print_info() local
257 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_update_mem_attributes() local
266 static void swiotlb_init_io_tlb_pool(struct io_tlb_pool *mem, phys_addr_t start, in swiotlb_init_io_tlb_pool()
302 static void add_mem_pool(struct io_tlb_mem *mem, struct io_tlb_pool *pool) in add_mem_pool()
353 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_init_remap() local
429 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_init_late() local
523 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_exit() local
732 struct io_tlb_mem *mem = in swiotlb_dyn_alloc() local
773 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; in swiotlb_find_pool() local
838 struct io_tlb_pool *mem = swiotlb_find_pool(dev, tlb_addr); in swiotlb_bounce() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_mr.c27 int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) in mem_check_range()
50 static void rxe_mem_init(int access, struct rxe_mem *mem) in rxe_mem_init()
64 struct rxe_mem *mem = container_of(arg, typeof(*mem), pelem); in rxe_mem_cleanup() local
77 static int rxe_mem_alloc(struct rxe_mem *mem, int num_buf) in rxe_mem_alloc()
116 int access, struct rxe_mem *mem) in rxe_mem_init_dma()
128 struct rxe_mem *mem) in rxe_mem_init_user()
206 int max_pages, struct rxe_mem *mem) in rxe_mem_init_fast()
231 struct rxe_mem *mem, in lookup_iova()
270 void *iova_to_vaddr(struct rxe_mem *mem, u64 iova, int length) in iova_to_vaddr()
311 int rxe_mem_copy(struct rxe_mem *mem, u64 iova, void *addr, int length, in rxe_mem_copy()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c77 struct kgd_mem *mem) in kfd_mem_is_attached()
114 uint64_t mem; in amdgpu_amdkfd_gpuvm_init_mem_limits() local
307 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo()
464 static uint64_t get_pte_flags(struct amdgpu_device *adev, struct kgd_mem *mem) in get_pte_flags()
510 kfd_mem_dmamap_userptr(struct kgd_mem *mem, in kfd_mem_dmamap_userptr()
603 kfd_mem_dmamap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmamap_sg_bo()
658 kfd_mem_dmamap_attachment(struct kgd_mem *mem, in kfd_mem_dmamap_attachment()
677 kfd_mem_dmaunmap_userptr(struct kgd_mem *mem, in kfd_mem_dmaunmap_userptr()
726 kfd_mem_dmaunmap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmaunmap_sg_bo()
754 kfd_mem_dmaunmap_attachment(struct kgd_mem *mem, in kfd_mem_dmaunmap_attachment()
[all …]
/kernel/linux/linux-6.6/drivers/base/
Dmemory.c107 struct memory_block *mem = to_memory_block(dev); in memory_block_release() local
123 struct memory_block *mem = to_memory_block(dev); in phys_index_show() local
144 struct memory_block *mem = to_memory_block(dev); in state_show() local
177 static inline unsigned long memblk_nr_poison(struct memory_block *mem) in memblk_nr_poison()
186 static int memory_block_online(struct memory_block *mem) in memory_block_online()
242 static int memory_block_offline(struct memory_block *mem) in memory_block_offline()
288 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action()
308 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state()
328 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() local
349 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline() local
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
Dintel_region_ttm.c54 int intel_region_to_ttm_type(const struct intel_memory_region *mem) in intel_region_to_ttm_type()
82 int intel_region_ttm_init(struct intel_memory_region *mem) in intel_region_ttm_init()
108 int intel_region_ttm_fini(struct intel_memory_region *mem) in intel_region_ttm_fini()
163 intel_region_ttm_resource_to_rsgt(struct intel_memory_region *mem, in intel_region_ttm_resource_to_rsgt()
198 intel_region_ttm_resource_alloc(struct intel_memory_region *mem, in intel_region_ttm_resource_alloc()
255 void intel_region_ttm_resource_free(struct intel_memory_region *mem, in intel_region_ttm_resource_free()
Dintel_memory_region.c36 static int __iopagetest(struct intel_memory_region *mem, in __iopagetest()
61 static int iopagetest(struct intel_memory_region *mem, in iopagetest()
98 static int iomemtest(struct intel_memory_region *mem, in iomemtest()
182 int intel_memory_region_reserve(struct intel_memory_region *mem, in intel_memory_region_reserve()
204 static int intel_memory_region_memtest(struct intel_memory_region *mem, in intel_memory_region_memtest()
230 struct intel_memory_region *mem; in intel_memory_region_create() local
270 void intel_memory_region_set_name(struct intel_memory_region *mem, in intel_memory_region_set_name()
294 void intel_memory_region_destroy(struct intel_memory_region *mem) in intel_memory_region_destroy()
314 struct intel_memory_region *mem = ERR_PTR(-ENODEV); in intel_memory_regions_hw_probe() local
/kernel/linux/linux-5.10/drivers/char/hw_random/
Dintel-rng.c155 static inline u8 hwstatus_get(void __iomem *mem) in hwstatus_get()
160 static inline u8 hwstatus_set(void __iomem *mem, in hwstatus_set()
169 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_present() local
184 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_read() local
193 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_init() local
212 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_cleanup() local
233 void __iomem *mem; member
333 void __iomem *mem; in mod_init() local
408 void __iomem *mem = (void __iomem *)intel_rng.priv; in mod_exit() local
/kernel/linux/linux-6.6/drivers/char/hw_random/
Dintel-rng.c155 static inline u8 hwstatus_get(void __iomem *mem) in hwstatus_get()
160 static inline u8 hwstatus_set(void __iomem *mem, in hwstatus_set()
169 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_present() local
184 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_read() local
193 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_init() local
212 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_cleanup() local
233 void __iomem *mem; member
333 void __iomem *mem; in intel_rng_mod_init() local
408 void __iomem *mem = (void __iomem *)intel_rng.priv; in intel_rng_mod_exit() local
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_mem.c36 nouveau_mem_map(struct nouveau_mem *mem, in nouveau_mem_map()
85 nouveau_mem_fini(struct nouveau_mem *mem) in nouveau_mem_fini()
97 struct nouveau_mem *mem = nouveau_mem(reg); in nouveau_mem_host() local
135 struct nouveau_mem *mem = nouveau_mem(reg); in nouveau_mem_vram() local
178 struct nouveau_mem *mem = nouveau_mem(reg); in nouveau_mem_del() local
190 struct nouveau_mem *mem; in nouveau_mem_new() local
/kernel/linux/linux-5.10/drivers/base/
Dmemory.c101 struct memory_block *mem = to_memory_block(dev); in memory_block_release() local
118 struct memory_block *mem = to_memory_block(dev); in phys_index_show() local
142 struct memory_block *mem = to_memory_block(dev); in state_show() local
202 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state()
224 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() local
245 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline() local
257 struct memory_block *mem = to_memory_block(dev); in state_store() local
302 struct memory_block *mem = to_memory_block(dev); in phys_device_show() local
326 struct memory_block *mem = to_memory_block(dev); in valid_zones_show() local
504 struct memory_block *mem; in find_memory_block_by_id() local
[all …]
/kernel/linux/linux-6.6/arch/alpha/include/uapi/asm/
Dcompiler.h94 #define __kernel_ldbu(mem) (mem) argument
95 #define __kernel_ldwu(mem) (mem) argument
96 #define __kernel_stb(val,mem) ((mem) = (val)) argument
97 #define __kernel_stw(val,mem) ((mem) = (val)) argument
99 #define __kernel_ldbu(mem) \ argument
104 #define __kernel_ldwu(mem) \ argument
109 #define __kernel_stb(val,mem) \ argument
112 #define __kernel_stw(val,mem) \ argument

12345678910>>...58