Home
last modified time | relevance | path

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

12345678910>>...20

/linux/tools/testing/selftests/mm/
H A Dcow.c119 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn()
137 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn()
186 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent()
263 static void test_cow_in_parent(char *mem, size_t size, bool is_hugetlb) in test_cow_in_parent()
268 static void test_cow_in_parent_mprotect(char *mem, size_t size, bool is_hugetlb) in test_cow_in_parent_mprotect()
273 static void test_vmsplice_in_child(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_in_child()
279 static void test_vmsplice_in_child_mprotect(char *mem, size_t size, in test_vmsplice_in_child_mprotect()
286 static void do_test_vmsplice_in_parent(char *mem, size_t size, in do_test_vmsplice_in_parent()
400 static void test_vmsplice_before_fork(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_before_fork()
405 static void test_vmsplice_after_fork(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_after_fork()
[all …]
H A 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
H A Dpagemap_ioctl.c167 char *mem; in gethugetlb_mem() local
192 char *mem, *vec; in userfaultfd_tests() local
249 char *mem, *m[2]; in sanity_tests_sd() local
685 int base_tests(char *prefix, char *mem, unsigned long long mem_size, int skip) in base_tests()
1075 static void unpopulated_written_test(const char *name, char *mem, long size, in unpopulated_written_test()
1119 char *mem; in unpopulated_scan_test() local
1138 char *area, *mem; in unpopulated_thp_scan_test() local
1163 char *mem, *fmem; in sanity_tests() local
1333 char *mem, *mem2; in mprotect_tests() local
1414 static ssize_t get_dirty_pages_reset(char *mem, unsigned int count, in get_dirty_pages_reset()
[all …]
H A Duffd-wp-mremap.c68 munmap(mmap_mem, mem - mmap_mem); in alloc_one_folio() local
50 char *mmap_mem, *mem; mmap_aligned() local
129 check_uffd_wp_state(void * mem,size_t size,bool expect) check_uffd_wp_state() argument
161 void *mem = NULL; test_one_folio() local
[all...]
H A Dmemfd_secret.c65 char *mem; in test_vmsplice() local
103 char *mem; in try_process_vm_read() local
127 char *mem; in try_ptrace() local
179 char *mem; in test_remote_access() local
/linux/kernel/dma/
H A Dswiotlb.c188 static void inc_used_and_hiwater_real(struct io_tlb_mem *mem, in inc_used_and_hiwater_real() argument
202 static void dec_used_real(struct io_tlb_mem *mem, unsigned int nslots) in dec_used_real() argument
207 static void inc_used_and_hiwater_nop(struct io_tlb_mem *mem, in inc_used_and_hiwater_nop() argument
211 static void dec_used_nop(struct io_tlb_mem *mem, unsigned int nslots) in dec_used_nop() argument
218 static __always_inline void inc_used_and_hiwater(struct io_tlb_mem *mem, in inc_used_and_hiwater() argument
224 dec_used(struct io_tlb_mem * mem,unsigned int nslots) dec_used() argument
234 inc_used_and_hiwater(struct io_tlb_mem * mem,unsigned int nslots) inc_used_and_hiwater() argument
239 dec_used(struct io_tlb_mem * mem,unsigned int nslots) dec_used() argument
312 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_print_info() local
358 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_update_mem_attributes() local
386 swiotlb_init_io_tlb_pool(struct io_tlb_pool * mem,phys_addr_t start,void * vaddr,unsigned long nslabs,bool late_alloc,unsigned int nareas) swiotlb_init_io_tlb_pool() argument
423 add_mem_pool(struct io_tlb_mem * mem,struct io_tlb_pool * pool) add_mem_pool() argument
474 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_init_remap() local
549 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_init_late() local
656 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_exit() local
754 swiotlb_alloc_tlb(struct device * dev,struct io_tlb_mem * mem,size_t bytes,u64 phys_limit,gfp_t gfp,void ** vaddr) swiotlb_alloc_tlb() argument
833 swiotlb_alloc_pool(struct device * dev,struct io_tlb_mem * mem,unsigned long minslabs,unsigned long nslabs,unsigned int nareas,u64 phys_limit,gfp_t gfp) swiotlb_alloc_pool() argument
890 struct io_tlb_mem *mem = swiotlb_dyn_alloc() local
936 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; __swiotlb_find_pool() local
1017 swiotlb_bounce(struct device * dev,phys_addr_t tlb_addr,size_t size,enum dma_data_direction dir,struct io_tlb_pool * mem) swiotlb_bounce() argument
1113 wrap_area_index(struct io_tlb_pool * mem,unsigned int index) wrap_area_index() argument
1122 inc_transient_used(struct io_tlb_mem * mem,unsigned int nslots) inc_transient_used() argument
1127 dec_transient_used(struct io_tlb_mem * mem,unsigned int nslots) dec_transient_used() argument
1133 inc_transient_used(struct io_tlb_mem * mem,unsigned int nslots) inc_transient_used() argument
1136 dec_transient_used(struct io_tlb_mem * mem,unsigned int nslots) dec_transient_used() argument
1288 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_search_area() local
1335 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_find_slots() local
1417 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_find_slots() local
1473 mem_used(struct io_tlb_mem * mem) mem_used() argument
1534 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_tbl_map_single() local
1629 swiotlb_release_slots(struct device * dev,phys_addr_t tlb_addr,struct io_tlb_pool * mem) swiotlb_release_slots() argument
1821 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; is_swiotlb_active() local
1855 mem_transient_used(struct io_tlb_mem * mem) mem_transient_used() argument
1862 struct io_tlb_mem *mem = data; io_tlb_transient_used_get() local
1874 struct io_tlb_mem *mem = data; io_tlb_used_get() local
1882 struct io_tlb_mem *mem = data; io_tlb_hiwater_get() local
1890 struct io_tlb_mem *mem = data; io_tlb_hiwater_set() local
1904 swiotlb_create_debugfs_files(struct io_tlb_mem * mem,const char * dirname) swiotlb_create_debugfs_files() argument
1932 swiotlb_create_debugfs_files(struct io_tlb_mem * mem,const char * dirname) swiotlb_create_debugfs_files() argument
1943 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_alloc() local
1994 struct io_tlb_mem *mem = rmem->priv; rmem_swiotlb_device_init() local
[all...]
H A 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()
275 struct dma_coherent_mem *mem = dev_get_coherent_memory(dev); in dma_mmap_from_dev_coherent() local
[all …]
/linux/arch/powerpc/mm/book3s64/
H A 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 …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c78 struct kgd_mem *mem) in kfd_mem_is_attached()
115 uint64_t mem; in amdgpu_amdkfd_gpuvm_init_mem_limits() local
332 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo()
514 struct kgd_mem *mem) in get_pte_flags()
560 kfd_mem_dmamap_userptr(struct kgd_mem *mem, in kfd_mem_dmamap_userptr()
647 kfd_mem_dmamap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmamap_sg_bo()
702 kfd_mem_dmamap_attachment(struct kgd_mem *mem, in kfd_mem_dmamap_attachment()
721 kfd_mem_dmaunmap_userptr(struct kgd_mem *mem, in kfd_mem_dmaunmap_userptr()
770 kfd_mem_dmaunmap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmaunmap_sg_bo()
798 kfd_mem_dmaunmap_attachment(struct kgd_mem *mem, in kfd_mem_dmaunmap_attachment()
[all …]
/linux/drivers/gpu/drm/i915/
H A Dintel_memory_region.c37 static int __iopagetest(struct intel_memory_region *mem, in __iopagetest()
62 static int iopagetest(struct intel_memory_region *mem, in iopagetest()
99 static int iomemtest(struct intel_memory_region *mem, in iomemtest()
194 int intel_memory_region_reserve(struct intel_memory_region *mem, in intel_memory_region_reserve()
216 static int intel_memory_region_memtest(struct intel_memory_region *mem, in intel_memory_region_memtest()
258 struct intel_memory_region *mem; in intel_memory_region_create() local
300 void intel_memory_region_set_name(struct intel_memory_region *mem, in intel_memory_region_set_name()
324 void intel_memory_region_destroy(struct intel_memory_region *mem) in intel_memory_region_destroy()
344 struct intel_memory_region *mem = ERR_PTR(-ENODEV); in intel_memory_regions_hw_probe() local
390 struct intel_memory_region *mem = i915->mm.regions[i]; in intel_memory_regions_hw_probe() local
/linux/drivers/char/hw_random/
H A 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
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_mem.c37 nouveau_mem_map(struct nouveau_mem *mem, in nouveau_mem_map()
79 nouveau_mem_fini(struct nouveau_mem *mem) in nouveau_mem_fini()
91 struct nouveau_mem *mem = nouveau_mem(reg); in nouveau_mem_host() local
127 struct nouveau_mem *mem = nouveau_mem(reg); in nouveau_mem_vram() local
166 struct nouveau_mem *mem = nouveau_mem(reg); in nouveau_mem_del() local
177 struct nouveau_mem *mem; in nouveau_mem_new() local
/linux/drivers/pci/endpoint/
H A Dpci-epc-mem.c23 static int pci_epc_mem_get_order(struct pci_epc_mem *mem, size_t size) in pci_epc_mem_get_order()
51 struct pci_epc_mem *mem = NULL; in pci_epc_multi_mem_init() local
150 struct pci_epc_mem *mem; in pci_epc_mem_exit() local
182 struct pci_epc_mem *mem; in pci_epc_mem_alloc_addr() local
224 struct pci_epc_mem *mem; in pci_epc_get_matching_window() local
250 struct pci_epc_mem *mem; in pci_epc_mem_free_addr() local
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dmem.c35 struct page **mem; member
57 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_addr() local
73 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_dma() local
85 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_dtor() local
113 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_sgl() local
135 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_host() local
154 struct nvkm_mem *mem; in nvkm_mem_new_host() local
/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c44 void *mem; in test_mmap_cow() local
53 char *mem; in test_mmap_supported() local
85 char *mem; test_mbind() local
129 char *mem; test_numa_allocation() local
179 char *mem; test_collapse() local
235 char *mem; test_fault_sigbus() local
261 char *mem; test_mmap_not_supported() local
473 guest_code(u8 * mem,u64 size) guest_code() argument
497 u8 *mem; test_guest_memfd_guest() local
[all...]
/linux/drivers/gpu/drm/nouveau/nvif/
H A Dmem.c29 struct nvif_mem *mem) in nvif_mem_ctor_map()
42 nvif_mem_dtor(struct nvif_mem *mem) in nvif_mem_dtor()
50 struct nvif_mem *mem) in nvif_mem_ctor_type()
89 u8 page, u64 size, void *argv, u32 argc, struct nvif_mem *mem) in nvif_mem_ctor()
/linux/tools/testing/selftests/bpf/libarena/selftests/
H A Dtest_asan_buddy.bpf.c19 u8 __arena *mem; in asan_test_buddy_oob_single() local
57 __weak int asan_test_buddy_byte(u8 __arena *mem, int i, bool freed) in asan_test_buddy_byte()
76 u8 __arena *mem; in asan_test_buddy_uaf_single() local
112 volatile u8 mem[48]; member
H A Dtest_buddy.bpf.c48 void __arena *mem; in test_buddy_alloc() local
72 void __arena *mem; in test_buddy_alloc_free() local
99 u8 __arena *mem; in test_buddy_alloc_multiple() local
/linux/tools/perf/
H A Dbuiltin-mem.c52 struct perf_mem *mem = (struct perf_mem *)opt->value; in parse_record_events() local
72 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem, in __cmd_record() argument
186 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); dump_raw_samples() local
264 report_raw_events(struct perf_mem * mem) report_raw_events() argument
329 get_sort_order(struct perf_mem * mem) get_sort_order() argument
364 __cmd_report(int argc,const char ** argv,struct perf_mem * mem,const struct option * options) __cmd_report() argument
475 struct perf_mem mem = { cmd_mem() local
[all...]
/linux/drivers/spi/
H A Dspi-wpcm-fiu.c149 static int wpcm_fiu_normal_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_normal_exec()
176 static int wpcm_fiu_fast_read_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_fast_read_exec()
194 static int wpcm_fiu_4ba_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_4ba_exec()
239 static int wpcm_fiu_rdid_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_rdid_exec()
276 static int wpcm_fiu_dummy_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_dummy_exec()
321 static bool wpcm_fiu_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_supports_op()
351 static int wpcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_exec_op()
366 static int wpcm_fiu_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in wpcm_fiu_adjust_op_size()
/linux/drivers/leds/
H A Dleds-bcm6358.c40 void __iomem *mem; member
64 static unsigned long bcm6358_led_busy(void __iomem *mem) in bcm6358_led_busy()
95 void __iomem *mem, spinlock_t *lock) in bcm6358_led()
150 void __iomem *mem; in bcm6358_leds_probe() local
/linux/drivers/platform/x86/
H A Dp2sb.c66 static void p2sb_read_bar0(struct pci_dev *pdev, struct resource *mem) in p2sb_read_bar0()
180 struct resource *mem) in p2sb_read_from_cache()
196 struct resource *mem) in p2sb_read_from_dev()
229 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem) in p2sb_bar()
/linux/mm/
H A Dcma_debug.c69 static void cma_add_to_cma_mem_list(struct cma *cma, struct cma_mem *mem) in cma_add_to_cma_mem_list()
78 struct cma_mem *mem = NULL; in cma_get_entry_from_list() local
92 struct cma_mem *mem = NULL; in cma_free_mem() local
131 struct cma_mem *mem; in cma_alloc_mem() local
/linux/arch/alpha/include/uapi/asm/
H A 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
/linux/drivers/infiniband/ulp/iser/
H A Diser_memory.c123 static int iser_reg_dma(struct iser_device *device, struct iser_data_buf *mem, in iser_reg_dma()
248 struct iser_data_buf *mem, in iser_reg_sig_mr()
306 struct iser_data_buf *mem, in iser_fast_reg_mr()
358 struct iser_data_buf *mem = &task->data[dir]; in iser_reg_mem_fastreg() local

12345678910>>...20