/linux/tools/testing/selftests/mm/ |
H A D | cow.c | 137 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() 155 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() 204 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent() 279 static void test_cow_in_parent(char *mem, size_t size, bool is_hugetlb) in test_cow_in_parent() 284 static void test_cow_in_parent_mprotect(char *mem, size_t size, bool is_hugetlb) in test_cow_in_parent_mprotect() 289 static void test_vmsplice_in_child(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_in_child() 295 static void test_vmsplice_in_child_mprotect(char *mem, size_t size, in test_vmsplice_in_child_mprotect() 302 static void do_test_vmsplice_in_parent(char *mem, size_t size, in do_test_vmsplice_in_parent() 414 static void test_vmsplice_before_fork(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_before_fork() 419 static void test_vmsplice_after_fork(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_after_fork() [all …]
|
H A D | mkdirty.c | 41 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 D | pagemap_ioctl.c | 163 char *mem; in gethugetlb_mem() local 188 char *mem, *vec; in userfaultfd_tests() local 243 char *mem, *m[2]; in sanity_tests_sd() local 679 int base_tests(char *prefix, char *mem, unsigned long long mem_size, int skip) in base_tests() 1056 char *mem, *fmem; in sanity_tests() local 1227 char *mem, *mem2; in mprotect_tests() local 1314 static ssize_t get_dirty_pages_reset(char *mem, unsigned int count, in get_dirty_pages_reset() 1350 void *thread_proc(void *mem) in thread_proc() 1395 char *mem; in transact_test() local 1487 char *mem, *map, *fmem; in main() local
|
H A D | memfd_secret.c | 63 char *mem; in test_mlock_limit() local 92 char *mem; in test_vmsplice() local 130 char *mem; in try_process_vm_read() local 154 char *mem; in try_ptrace() local 206 char *mem; in test_remote_access() local
|
/linux/kernel/dma/ |
H A D | swiotlb.c | 231 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 …]
|
H A D | coherent.c | 31 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 …]
|
/linux/drivers/spi/ |
H A D | spi-mem.c | 104 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() 240 static bool spi_mem_internal_supports_op(struct spi_mem *mem, in spi_mem_internal_supports_op() 266 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op() 275 static int spi_mem_access_start(struct spi_mem *mem) in spi_mem_access_start() 302 static void spi_mem_access_end(struct spi_mem *mem) in spi_mem_access_end() 368 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op() 512 const char *spi_mem_get_name(struct spi_mem *mem) in spi_mem_get_name() 533 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size() [all …]
|
H A D | spi-wpcm-fiu.c | 150 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()
|
H A D | spi-sn-f-ospi.c | 264 struct spi_mem *mem, in f_ospi_config_indir_protocol() 338 static int f_ospi_indir_prepare_op(struct f_ospi *ospi, struct spi_mem *mem, in f_ospi_indir_prepare_op() 403 static int f_ospi_indir_read(struct f_ospi *ospi, struct spi_mem *mem, in f_ospi_indir_read() 457 static int f_ospi_indir_write(struct f_ospi *ospi, struct spi_mem *mem, in f_ospi_indir_write() 504 static int f_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in f_ospi_exec_op() 528 static bool f_ospi_supports_op_width(struct spi_mem *mem, in f_ospi_supports_op_width() 554 static bool f_ospi_supports_op(struct spi_mem *mem, in f_ospi_supports_op() 569 static int f_ospi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in f_ospi_adjust_op_size()
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | iommu_api.c | 60 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/base/ |
H A D | memory.c | 107 struct memory_block *mem = to_memory_block(dev); in memory_block_release() local 174 struct memory_block *mem = to_memory_block(dev); in phys_index_show() local 195 struct memory_block *mem = to_memory_block(dev); in state_show() local 228 static inline unsigned long memblk_nr_poison(struct memory_block *mem) in memblk_nr_poison() 237 static int memory_block_online(struct memory_block *mem) in memory_block_online() 308 static int memory_block_offline(struct memory_block *mem) in memory_block_offline() 360 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action() 380 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state() 400 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() local 421 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline() local [all …]
|
/linux/drivers/char/hw_random/ |
H A D | intel-rng.c | 155 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 D | geode-rng.c | 62 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/i915/ |
H A D | intel_region_ttm.c | 54 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/gpu/drm/nouveau/ |
H A D | nouveau_mem.c | 37 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/nouveau/nvkm/subdev/mmu/ |
H A D | mem.c | 35 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 D | siw_mem.c | 29 struct siw_mem *mem; in siw_mem_id2obj() local 61 struct siw_mem *mem = kzalloc(sizeof(*mem), GFP_KERNEL); in siw_mr_add_mem() local 96 struct siw_mem *mem = mr->mem, *found; in siw_mr_drop_mem() local 110 struct siw_mem *mem = container_of(ref, struct siw_mem, ref); in siw_free_mem() local 136 int siw_check_mem(struct ib_pd *pd, struct siw_mem *mem, u64 addr, in siw_check_mem() 190 int siw_check_sge(struct ib_pd *pd, struct siw_sge *sge, struct siw_mem *mem[], in siw_check_sge() 263 struct siw_mem *mem = siw_mem_id2obj(sdev, stag >> 8); in siw_invalidate_stag() local
|
/linux/drivers/gpu/drm/nouveau/nvif/ |
H A D | mem.c | 29 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/drivers/gpu/drm/i915/gt/ |
H A D | intel_region_lmem.c | 131 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/drivers/leds/ |
H A D | leds-bcm6358.c | 40 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 D | p2sb.c | 66 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/arch/alpha/include/uapi/asm/ |
H A D | compiler.h | 94 #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 D | iser_memory.c | 123 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
|
/linux/drivers/char/agp/ |
H A D | alpha-agp.c | 65 static void alpha_core_agp_tlbflush(struct agp_memory *mem) in alpha_core_agp_tlbflush() 84 static int alpha_core_agp_insert_memory(struct agp_memory *mem, off_t pg_start, in alpha_core_agp_insert_memory() 106 static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start, in alpha_core_agp_remove_memory()
|
/linux/tools/mm/ |
H A D | thp_swap_allocator_test.c | 50 void *mem = NULL; in aligned_alloc_mem() local 65 static void random_madvise_dontneed(void *mem, size_t mem_size, in random_madvise_dontneed() 83 static void random_swapin(void *mem, size_t mem_size, in random_swapin()
|