| /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
|
| /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() 278 static int spi_mem_access_start(struct spi_mem *mem) in spi_mem_access_start() 305 static void spi_mem_access_end(struct spi_mem *mem) in spi_mem_access_end() 371 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op() 515 const char *spi_mem_get_name(struct spi_mem *mem) in spi_mem_get_name() 536 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/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 swiotlb_init_io_tlb_pool(struct io_tlb_pool * mem,phys_addr_t start,unsigned long nslabs,bool late_alloc,unsigned int nareas) swiotlb_init_io_tlb_pool() argument 306 add_mem_pool(struct io_tlb_mem * mem,struct io_tlb_pool * pool) add_mem_pool() argument 357 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_init_remap() local 433 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_init_late() local 527 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; swiotlb_exit() local 736 struct io_tlb_mem *mem = swiotlb_dyn_alloc() local 779 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; __swiotlb_find_pool() local 860 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 937 wrap_area_index(struct io_tlb_pool * mem,unsigned int index) wrap_area_index() argument 951 inc_used_and_hiwater(struct io_tlb_mem * mem,unsigned int nslots) inc_used_and_hiwater() argument 964 dec_used(struct io_tlb_mem * mem,unsigned int nslots) dec_used() argument 970 inc_used_and_hiwater(struct io_tlb_mem * mem,unsigned int nslots) inc_used_and_hiwater() argument 973 dec_used(struct io_tlb_mem * mem,unsigned int nslots) dec_used() argument 980 inc_transient_used(struct io_tlb_mem * mem,unsigned int nslots) inc_transient_used() argument 985 dec_transient_used(struct io_tlb_mem * mem,unsigned int nslots) dec_transient_used() argument 991 inc_transient_used(struct io_tlb_mem * mem,unsigned int nslots) inc_transient_used() argument 994 dec_transient_used(struct io_tlb_mem * mem,unsigned int nslots) dec_transient_used() argument 1145 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_search_area() local 1185 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_find_slots() local 1291 mem_used(struct io_tlb_mem * mem) mem_used() argument 1325 mem_used(struct io_tlb_mem * mem) mem_used() argument 1373 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_tbl_map_single() local 1444 swiotlb_release_slots(struct device * dev,phys_addr_t tlb_addr,struct io_tlb_pool * mem) swiotlb_release_slots() argument 1631 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; is_swiotlb_active() local 1665 mem_transient_used(struct io_tlb_mem * mem) mem_transient_used() argument 1672 struct io_tlb_mem *mem = data; io_tlb_transient_used_get() local 1684 struct io_tlb_mem *mem = data; io_tlb_used_get() local 1692 struct io_tlb_mem *mem = data; io_tlb_hiwater_get() local 1700 struct io_tlb_mem *mem = data; io_tlb_hiwater_set() local 1714 swiotlb_create_debugfs_files(struct io_tlb_mem * mem,const char * dirname) swiotlb_create_debugfs_files() argument 1742 swiotlb_create_debugfs_files(struct io_tlb_mem * mem,const char * dirname) swiotlb_create_debugfs_files() argument 1753 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; swiotlb_alloc() local 1795 struct io_tlb_mem *mem = rmem->priv; rmem_swiotlb_device_init() local [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() 295 static int memory_block_offline(struct memory_block *mem) in memory_block_offline() 347 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action() 367 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state() 387 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() local 408 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/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/tools/perf/ |
| H A D | builtin-mem.c | 51 struct perf_mem *mem = (struct perf_mem *)opt->value; in parse_record_events() local 71 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem, in __cmd_record() 185 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples() local 263 static int report_raw_events(struct perf_mem *mem) in report_raw_events() 328 static char *get_sort_order(struct perf_mem *mem) in get_sort_order() 363 static int __cmd_report(int argc, const char **argv, struct perf_mem *mem, in __cmd_report() 474 struct perf_mem mem = { in cmd_mem() local
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 43 void *mem; in test_mmap_cow() local 52 char *mem; in test_mmap_supported() local 81 char *mem; in test_fault_sigbus() local 107 char *mem; in test_mmap_not_supported() local 311 static void guest_code(uint8_t *mem, uint64_t size) in guest_code() 335 uint8_t *mem; in test_guest_memfd_guest() local
|
| /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
|