Home
last modified time | relevance | path

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

12345678910>>...25

/linux/tools/testing/selftests/mm/
H A Dcow.c134 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() argument
152 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() argument
201 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent() argument
255 test_cow_in_parent(char * mem,size_t size) test_cow_in_parent() argument
260 test_cow_in_parent_mprotect(char * mem,size_t size) test_cow_in_parent_mprotect() argument
265 test_vmsplice_in_child(char * mem,size_t size) test_vmsplice_in_child() argument
270 test_vmsplice_in_child_mprotect(char * mem,size_t size) test_vmsplice_in_child_mprotect() argument
275 do_test_vmsplice_in_parent(char * mem,size_t size,bool before_fork) do_test_vmsplice_in_parent() argument
370 test_vmsplice_before_fork(char * mem,size_t size) test_vmsplice_before_fork() argument
375 test_vmsplice_after_fork(char * mem,size_t size) test_vmsplice_after_fork() argument
381 do_test_iouring(char * mem,size_t size,bool use_fork) do_test_iouring() argument
532 test_iouring_ro(char * mem,size_t size) test_iouring_ro() argument
537 test_iouring_fork(char * mem,size_t size) test_iouring_fork() argument
551 do_test_ro_pin(char * mem,size_t size,enum ro_pin_test test,bool fast) do_test_ro_pin() argument
681 test_ro_pin_on_shared(char * mem,size_t size) test_ro_pin_on_shared() argument
686 test_ro_fast_pin_on_shared(char * mem,size_t size) test_ro_fast_pin_on_shared() argument
691 test_ro_pin_on_ro_previously_shared(char * mem,size_t size) test_ro_pin_on_ro_previously_shared() argument
696 test_ro_fast_pin_on_ro_previously_shared(char * mem,size_t size) test_ro_fast_pin_on_ro_previously_shared() argument
701 test_ro_pin_on_ro_exclusive(char * mem,size_t size) test_ro_pin_on_ro_exclusive() argument
706 test_ro_fast_pin_on_ro_exclusive(char * mem,size_t size) test_ro_fast_pin_on_ro_exclusive() argument
715 char *mem; do_run_with_base_page() local
773 char *mem, *mmap_mem, *tmp, *mremap_mem = MAP_FAILED; do_run_with_thp() local
973 char *mem, *dummy; run_with_hugetlb() local
1192 do_test_anon_thp_collapse(char * mem,size_t size,enum anon_thp_collapse_test test) do_test_anon_thp_collapse() argument
1325 test_anon_thp_collapse_unshared(char * mem,size_t size) test_anon_thp_collapse_unshared() argument
1330 test_anon_thp_collapse_fully_shared(char * mem,size_t size) test_anon_thp_collapse_fully_shared() argument
1335 test_anon_thp_collapse_lower_shared(char * mem,size_t size) test_anon_thp_collapse_lower_shared() argument
1340 test_anon_thp_collapse_upper_shared(char * mem,size_t size) test_anon_thp_collapse_upper_shared() argument
1409 test_cow(char * mem,const char * smem,size_t size) test_cow() argument
1425 test_ro_pin(char * mem,const char * smem,size_t size) test_ro_pin() argument
1430 test_ro_fast_pin(char * mem,const char * smem,size_t size) test_ro_fast_pin() argument
1437 char *mem, *smem, tmp; run_with_zeropage() local
1467 char *mem, *smem, *mmap_mem, *mmap_smem, tmp; run_with_huge_zeropage() local
1526 char *mem, *smem, tmp; run_with_memfd() local
1570 char *mem, *smem, tmp; run_with_tmpfile() local
1623 char *mem, *smem, tmp; run_with_memfd_hugetlb() local
[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.c163 char *mem; in gethugetlb_mem() local
188 char *mem, *vec; in userfaultfd_tests() local
241 char *mem, *m[2]; in sanity_tests_sd() local
677 int base_tests(char *prefix, char *mem, int mem_size, int skip) in base_tests()
1052 char *mem, *fmem; in sanity_tests() local
1223 char *mem, *mem2; in mprotect_tests() local
1310 static ssize_t get_dirty_pages_reset(char *mem, unsigned int count, in get_dirty_pages_reset()
1344 void *thread_proc(void *mem) in thread_proc()
1388 char *mem; in transact_test() local
1479 char *mem, *map, *fmem; in main() local
H A Dmemfd_secret.c61 char *mem; in test_mlock_limit() local
90 char *mem; in test_vmsplice() local
128 char *mem; in try_process_vm_read() local
152 char *mem; in try_ptrace() local
204 char *mem; in test_remote_access() local
/linux/kernel/dma/
H A Dswiotlb.c231 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_print_info() local
260 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_update_mem_attributes() local
269 static void swiotlb_init_io_tlb_pool(struct io_tlb_pool *mem, phys_addr_t start, in swiotlb_init_io_tlb_pool()
306 static void add_mem_pool(struct io_tlb_mem *mem, struct io_tlb_pool *pool) in add_mem_pool()
357 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_init_remap() local
433 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_init_late() local
527 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_exit() local
736 struct io_tlb_mem *mem = in swiotlb_dyn_alloc() local
779 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; in __swiotlb_find_pool() local
860 enum dma_data_direction dir, struct io_tlb_pool *mem) in swiotlb_bounce()
[all …]
/linux/drivers/spi/
H A 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()
230 static bool spi_mem_internal_supports_op(struct spi_mem *mem, in spi_mem_internal_supports_op()
256 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
265 static int spi_mem_access_start(struct spi_mem *mem) in spi_mem_access_start()
292 static void spi_mem_access_end(struct spi_mem *mem) in spi_mem_access_end()
358 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
484 const char *spi_mem_get_name(struct spi_mem *mem) in spi_mem_get_name()
505 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size()
[all …]
H A Dspi-wpcm-fiu.c150 static int wpcm_fiu_normal_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_normal_exec()
177 static int wpcm_fiu_fast_read_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_fast_read_exec()
195 static int wpcm_fiu_4ba_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_4ba_exec()
240 static int wpcm_fiu_rdid_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_rdid_exec()
277 static int wpcm_fiu_dummy_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_dummy_exec()
322 static bool wpcm_fiu_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_supports_op()
352 static int wpcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_exec_op()
367 static int wpcm_fiu_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in wpcm_fiu_adjust_op_size()
/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
316 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo()
505 static uint64_t get_pte_flags(struct amdgpu_device *adev, struct kgd_mem *mem) in get_pte_flags()
551 kfd_mem_dmamap_userptr(struct kgd_mem *mem, in kfd_mem_dmamap_userptr()
644 kfd_mem_dmamap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmamap_sg_bo()
699 kfd_mem_dmamap_attachment(struct kgd_mem *mem, in kfd_mem_dmamap_attachment()
718 kfd_mem_dmaunmap_userptr(struct kgd_mem *mem, in kfd_mem_dmaunmap_userptr()
767 kfd_mem_dmaunmap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmaunmap_sg_bo()
795 kfd_mem_dmaunmap_attachment(struct kgd_mem *mem, in kfd_mem_dmaunmap_attachment()
[all …]
/linux/drivers/base/
H A 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()
257 static int memory_block_offline(struct memory_block *mem) in memory_block_offline()
309 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action()
329 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state()
349 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() local
370 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline() local
[all …]
/linux/drivers/gpu/drm/i915/
H A 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()
246 struct intel_memory_region *mem; in intel_memory_region_create() local
288 void intel_memory_region_set_name(struct intel_memory_region *mem, in intel_memory_region_set_name()
312 void intel_memory_region_destroy(struct intel_memory_region *mem) in intel_memory_region_destroy()
332 struct intel_memory_region *mem = ERR_PTR(-ENODEV); in intel_memory_regions_hw_probe() local
378 struct intel_memory_region *mem = i915->mm.regions[i]; in intel_memory_regions_hw_probe() local
H A 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()
/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
H A Dgeode-rng.c62 void __iomem *mem = priv->membase; in geode_rng_data_read() local
72 void __iomem *mem = priv->membase; in geode_rng_data_present() local
97 void __iomem *mem; in geode_rng_init() 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/gpu/drm/i915/gem/
H A Di915_gem_region.c14 struct intel_memory_region *mem) in i915_gem_object_init_memory_region()
25 struct intel_memory_region *mem = obj->mm.region; in i915_gem_object_release_memory_region() local
33 __i915_gem_object_create_region(struct intel_memory_region *mem, in __i915_gem_object_create_region()
107 i915_gem_object_create_region(struct intel_memory_region *mem, in i915_gem_object_create_region()
117 i915_gem_object_create_region_at(struct intel_memory_region *mem, in i915_gem_object_create_region_at()
/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/drivers/infiniband/sw/siw/
H A Dsiw_mem.c53 struct siw_mem *mem; in siw_mem_id2obj() local
85 struct siw_mem *mem = kzalloc(sizeof(*mem), GFP_KERNEL); in siw_mr_add_mem() local
120 struct siw_mem *mem = mr->mem, *found; in siw_mr_drop_mem() local
134 struct siw_mem *mem = container_of(ref, struct siw_mem, ref); in siw_free_mem() local
160 int siw_check_mem(struct ib_pd *pd, struct siw_mem *mem, u64 addr, in siw_check_mem()
214 int siw_check_sge(struct ib_pd *pd, struct siw_sge *sge, struct siw_mem *mem[], in siw_check_sge()
287 struct siw_mem *mem = siw_mem_id2obj(sdev, stag >> 8); in siw_invalidate_stag() local
/linux/drivers/net/ipa/
H A Dipa_mem.c34 const struct ipa_mem *mem = &ipa->mem[i]; in ipa_mem_find() local
48 const struct ipa_mem *mem = ipa_mem_find(ipa, mem_id); in ipa_mem_zero_region_add() local
78 const struct ipa_mem *mem; in ipa_mem_setup() local
218 static bool ipa_mem_valid_one(struct ipa *ipa, const struct ipa_mem *mem) in ipa_mem_valid_one()
268 const struct ipa_mem *mem = &mem_data->local[i]; in ipa_mem_valid() local
298 const struct ipa_mem *mem = &ipa->mem[i]; in ipa_mem_size_valid() local
321 const struct ipa_mem *mem; in ipa_mem_config() local
/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/perf/
H A Dbuiltin-mem.c50 struct perf_mem *mem = (struct perf_mem *)opt->value; in parse_record_events() local
70 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem, in __cmd_record()
182 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples() local
260 static int report_raw_events(struct perf_mem *mem) in report_raw_events()
325 static char *get_sort_order(struct perf_mem *mem) in get_sort_order()
360 static int __cmd_report(int argc, const char **argv, struct perf_mem *mem, in __cmd_report()
471 struct perf_mem mem = { in cmd_mem() local
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_region_lmem.c131 region_lmem_release(struct intel_memory_region *mem) in region_lmem_release()
142 region_lmem_init(struct intel_memory_region *mem) in region_lmem_init()
185 struct intel_memory_region *mem) in reserve_lowmem_region()
206 struct intel_memory_region *mem; in setup_lmem() local
/linux/mm/
H A Dcma_debug.c71 static void cma_add_to_cma_mem_list(struct cma *cma, struct cma_mem *mem) in cma_add_to_cma_mem_list()
80 struct cma_mem *mem = NULL; in cma_get_entry_from_list() local
94 struct cma_mem *mem = NULL; in cma_free_mem() local
133 struct cma_mem *mem; in cma_alloc_mem() local
/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()

12345678910>>...25