| /linux/tools/testing/selftests/mm/ |
| H A D | cow.c | 107 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() 125 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() 174 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent() 251 static void test_cow_in_parent(char *mem, size_t size, bool is_hugetlb) in test_cow_in_parent() 256 static void test_cow_in_parent_mprotect(char *mem, size_t size, bool is_hugetlb) in test_cow_in_parent_mprotect() 261 static void test_vmsplice_in_child(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_in_child() 267 static void test_vmsplice_in_child_mprotect(char *mem, size_t size, in test_vmsplice_in_child_mprotect() 274 static void do_test_vmsplice_in_parent(char *mem, size_t size, in do_test_vmsplice_in_parent() 388 static void test_vmsplice_before_fork(char *mem, size_t size, bool is_hugetlb) in test_vmsplice_before_fork() 393 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 | 164 char *mem; in gethugetlb_mem() local 189 char *mem, *vec; in userfaultfd_tests() local 244 char *mem, *m[2]; in sanity_tests_sd() local 680 int base_tests(char *prefix, char *mem, unsigned long long mem_size, int skip) in base_tests() 1057 char *mem, *fmem; in sanity_tests() local 1228 char *mem, *mem2; in mprotect_tests() local 1315 static ssize_t get_dirty_pages_reset(char *mem, unsigned int count, in get_dirty_pages_reset() 1351 void *thread_proc(void *mem) in thread_proc() 1396 char *mem; in transact_test() local 1489 char *mmap_mem, *mem; in zeropfn_tests() local [all …]
|
| 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
|
| H A D | uffd-wp-mremap.c | 50 char *mmap_mem, *mem; in mmap_aligned() local 68 char *mem, *addr; in alloc_one_folio() local 129 static bool check_uffd_wp_state(void *mem, size_t size, bool expect) in check_uffd_wp_state() 161 void *mem = NULL; in test_one_folio() local
|
| /linux/kernel/dma/ |
| H A D | swiotlb.c | 229 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_print_info() local 258 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_update_mem_attributes() local 267 static void swiotlb_init_io_tlb_pool(struct io_tlb_pool *mem, phys_addr_t start, in swiotlb_init_io_tlb_pool() 304 static void add_mem_pool(struct io_tlb_mem *mem, struct io_tlb_pool *pool) in add_mem_pool() 355 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_init_remap() local 431 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_init_late() local 525 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_exit() local 734 struct io_tlb_mem *mem = in swiotlb_dyn_alloc() local 777 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; in __swiotlb_find_pool() local 858 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/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 | 94 struct memory_block *mem = to_memory_block(dev); in memory_block_release() local 161 struct memory_block *mem = to_memory_block(dev); in phys_index_show() local 182 struct memory_block *mem = to_memory_block(dev); in state_show() local 215 static inline unsigned long memblk_nr_poison(struct memory_block *mem) in memblk_nr_poison() 224 static int memory_block_online(struct memory_block *mem) in memory_block_online() 280 static int memory_block_offline(struct memory_block *mem) in memory_block_offline() 326 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action() 346 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state() 366 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() local 387 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline() local [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_amdkfd_gpuvm.c | 78 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/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/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/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 44 void *mem; in test_mmap_cow() local 53 char *mem; in test_mmap_supported() local 85 char *mem; in test_mbind() local 129 char *mem; in test_numa_allocation() local 177 char *mem; in test_fault_sigbus() local 203 char *mem; in test_mmap_not_supported() local 409 static void guest_code(uint8_t *mem, uint64_t size) in guest_code() 433 uint8_t *mem; in test_guest_memfd_guest() 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/tools/perf/ |
| H A D | builtin-mem.c | 52 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() 186 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples() local 264 static int report_raw_events(struct perf_mem *mem) in report_raw_events() 329 static char *get_sort_order(struct perf_mem *mem) in get_sort_order() 364 static int __cmd_report(int argc, const char **argv, struct perf_mem *mem, in __cmd_report() 475 struct perf_mem mem = { in cmd_mem() local
|
| /linux/drivers/spi/ |
| 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/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/remoteproc/ |
| H A D | rcar_rproc.c | 23 struct rproc_mem_entry *mem) in rcar_rproc_mem_alloc() 43 struct rproc_mem_entry *mem) in rcar_rproc_mem_release() 55 struct rproc_mem_entry *mem; in rcar_rproc_prepare() local
|
| /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
|