Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 1304) sorted by relevance

12345678910>>...53

/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
73 mem = kzalloc(sizeof(*mem), GFP_KERNEL); in mm_iommu_do_alloc()
74 if (!mem) { in mm_iommu_do_alloc()
80 mem->pageshift = __ffs(dev_hpa | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc()
81 mem->dev_hpa = dev_hpa; in mm_iommu_do_alloc()
84 mem->dev_hpa = MM_IOMMU_TABLE_INVALID_HPA; in mm_iommu_do_alloc()
91 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc()
92 mem->hpas = vzalloc(array_size(entries, sizeof(mem->hpas[0]))); in mm_iommu_do_alloc()
93 if (!mem->hpas) { in mm_iommu_do_alloc()
94 kfree(mem); in mm_iommu_do_alloc()
[all …]
/linux/drivers/gpu/drm/i915/
H A Dintel_memory_region.c36 static int __iopagetest(struct intel_memory_region *mem, in __iopagetest() argument
51 dev_err(mem->i915->drm.dev, in __iopagetest()
53 &mem->region, &mem->io.start, &offset, caller, in __iopagetest()
61 static int iopagetest(struct intel_memory_region *mem, in iopagetest() argument
70 va = ioremap_wc(mem->io.start + offset, PAGE_SIZE); in iopagetest()
72 dev_err(mem->i915->drm.dev, in iopagetest()
74 &mem->io.start, &offset, caller); in iopagetest()
79 err = __iopagetest(mem, va, PAGE_SIZE, val[i], offset, caller); in iopagetest()
83 err = __iopagetest(mem, va, PAGE_SIZE, ~val[i], offset, caller); in iopagetest()
98 static int iomemtest(struct intel_memory_region *mem, in iomemtest() argument
[all …]
H A Dintel_region_ttm.c54 int intel_region_to_ttm_type(const struct intel_memory_region *mem) in intel_region_to_ttm_type() argument
58 GEM_BUG_ON(mem->type != INTEL_MEMORY_LOCAL && in intel_region_to_ttm_type()
59 mem->type != INTEL_MEMORY_MOCK && in intel_region_to_ttm_type()
60 mem->type != INTEL_MEMORY_SYSTEM); in intel_region_to_ttm_type()
62 if (mem->type == INTEL_MEMORY_SYSTEM) in intel_region_to_ttm_type()
65 type = mem->instance + TTM_PL_PRIV; in intel_region_to_ttm_type()
82 int intel_region_ttm_init(struct intel_memory_region *mem) in intel_region_ttm_init() argument
84 struct ttm_device *bdev = &mem->i915->bdev; in intel_region_ttm_init()
85 int mem_type = intel_region_to_ttm_type(mem); in intel_region_ttm_init()
89 resource_size(&mem->region), in intel_region_ttm_init()
[all …]
/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
58 if (mem->pages == 1 && mem->mem) in nvkm_mem_addr()
59 return mem->dma[0]; in nvkm_mem_addr()
73 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_dma() local
75 .memory = &mem->memory, in nvkm_mem_map_dma()
77 .dma = mem->dma, in nvkm_mem_map_dma()
85 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_dtor() local
86 if (mem->mem) { in nvkm_mem_dtor()
87 while (mem->pages--) { in nvkm_mem_dtor()
[all …]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_mem.c37 nouveau_mem_map(struct nouveau_mem *mem, in nouveau_mem_map() argument
53 args.nv50.kind = mem->kind; in nouveau_mem_map()
54 args.nv50.comp = mem->comp; in nouveau_mem_map()
61 if (mem->mem.type & NVIF_MEM_VRAM) in nouveau_mem_map()
67 args.gf100.kind = mem->kind; in nouveau_mem_map()
75 return nvif_vmm_map(vmm, vma->addr, mem->mem.size, &args, argc, &mem->mem, 0); in nouveau_mem_map()
79 nouveau_mem_fini(struct nouveau_mem *mem) in nouveau_mem_fini() argument
81 nvif_vmm_put(&mem->drm->client.vmm.vmm, &mem->vma[1]); in nouveau_mem_fini()
82 nvif_vmm_put(&mem->drm->client.vmm.vmm, &mem->vma[0]); in nouveau_mem_fini()
83 mutex_lock(&mem->drm->client_mutex); in nouveau_mem_fini()
[all …]
H A Dnouveau_vmm.c31 if (vma->mem) { in nouveau_vma_unmap()
33 vma->mem = NULL; in nouveau_vma_unmap()
38 nouveau_vma_map(struct nouveau_vma *vma, struct nouveau_mem *mem) in nouveau_vma_map() argument
41 int ret = nouveau_mem_map(mem, &vma->vmm->vmm, &tmp); in nouveau_vma_map()
44 vma->mem = mem; in nouveau_vma_map()
80 struct nouveau_mem *mem = nouveau_mem(nvbo->bo.resource); in nouveau_vma_new() local
95 vma->mem = NULL; in nouveau_vma_new()
100 mem->mem.page == nvbo->page) { in nouveau_vma_new()
101 ret = nvif_vmm_get(&vmm->vmm, LAZY, false, mem->mem.page, 0, in nouveau_vma_new()
102 mem->mem.size, &tmp); in nouveau_vma_new()
[all …]
/linux/drivers/infiniband/sw/siw/
H A Dsiw_mem.c53 struct siw_mem *mem; in siw_mem_id2obj() local
56 mem = xa_load(&sdev->mem_xa, stag_index); in siw_mem_id2obj()
57 if (likely(mem && kref_get_unless_zero(&mem->ref))) { in siw_mem_id2obj()
59 return mem; in siw_mem_id2obj()
85 struct siw_mem *mem = kzalloc(sizeof(*mem), GFP_KERNEL); in siw_mr_add_mem() local
89 if (!mem) in siw_mr_add_mem()
92 mem->mem_obj = mem_obj; in siw_mr_add_mem()
93 mem->stag_valid = 0; in siw_mr_add_mem()
94 mem->sdev = sdev; in siw_mr_add_mem()
95 mem->va = start; in siw_mr_add_mem()
[all …]
/linux/tools/perf/
H A Dbuiltin-mem.c50 struct perf_mem *mem = (struct perf_mem *)opt->value; in parse_record_events() local
66 mem->operation = 0; in parse_record_events()
70 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem, in __cmd_record() argument
102 if (mem->cpu_list) in __cmd_record()
118 (mem->operation & MEM_OPERATION_LOAD) && in __cmd_record()
119 (mem->operation & MEM_OPERATION_STORE)) { in __cmd_record()
123 if (mem->operation & MEM_OPERATION_LOAD) in __cmd_record()
126 if (mem->operation & MEM_OPERATION_STORE) in __cmd_record()
135 if (mem->phys_addr) in __cmd_record()
138 if (mem->data_page_size) in __cmd_record()
[all …]
/linux/tools/testing/selftests/mm/
H A Dmkdirty.c41 static void do_test_write_sigsegv(char *mem) in do_test_write_sigsegv() argument
43 char orig = *mem; in do_test_write_sigsegv()
53 *mem = orig + 1; in do_test_write_sigsegv()
58 ksft_test_result(ret == 1 && *mem == orig, in do_test_write_sigsegv()
65 char *mem, *mmap_mem; in mmap_thp_range() local
73 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in mmap_thp_range()
75 if (madvise(mem, thpsize, MADV_HUGEPAGE)) { in mmap_thp_range()
83 return mem; in mmap_thp_range()
89 char *mem; in test_ptrace_write() local
94 mem = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE|MAP_ANON, -1, 0); in test_ptrace_write()
[all …]
H A Dpagemap_ioctl.c163 char *mem; in gethugetlb_mem() local
170 mem = shmat(*shmid, 0, 0); in gethugetlb_mem()
171 if (mem == (char *)-1) { in gethugetlb_mem()
176 mem = mmap(NULL, size, PROT_READ | PROT_WRITE, in gethugetlb_mem()
178 if (mem == MAP_FAILED) in gethugetlb_mem()
182 return mem; in gethugetlb_mem()
188 char *mem, *vec; in userfaultfd_tests() local
191 mem = mmap(NULL, mem_size, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in userfaultfd_tests()
192 if (mem == MAP_FAILED) in userfaultfd_tests()
195 wp_init(mem, mem_size); in userfaultfd_tests()
[all …]
H A Dcow.c134 static int child_memcmp_fn(char *mem, size_t size, in child_memcmp_fn() argument
141 memcpy(old, mem, size); in child_memcmp_fn()
149 return memcmp(old, mem, size); in child_memcmp_fn()
152 static int child_vmsplice_memcmp_fn(char *mem, size_t size, in child_vmsplice_memcmp_fn() argument
156 .iov_base = mem, in child_vmsplice_memcmp_fn()
168 memcpy(old, mem, size); in child_vmsplice_memcmp_fn()
181 if (munmap(mem, size) < 0) in child_vmsplice_memcmp_fn()
199 typedef int (*child_fn)(char *mem, size_t size, struct comm_pipes *comm_pipes);
201 static void do_test_cow_in_parent(char *mem, size_t size, bool do_mprotect, in do_test_cow_in_parent() argument
219 exit(fn(mem, siz in do_test_cow_in_parent()
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 Dmemfd_secret.c61 char *mem; in test_mlock_limit() local
67 mem = mmap(NULL, len, prot, mode, fd, 0); in test_mlock_limit()
68 if (mem == MAP_FAILED) { in test_mlock_limit()
72 munmap(mem, len); in test_mlock_limit()
75 mem = mmap(NULL, len, prot, mode, fd, 0); in test_mlock_limit()
76 if (mem != MAP_FAILED) { in test_mlock_limit()
78 munmap(mem, len); in test_mlock_limit()
90 char *mem; in test_vmsplice() local
97 mem = mmap(NULL, page_size, prot, mode, fd, 0); in test_vmsplice()
98 if (mem == MAP_FAILED) { in test_vmsplice()
[all …]
/linux/drivers/base/
H A Dmemory.c107 struct memory_block *mem = to_memory_block(dev); in memory_block_release() local
109 WARN_ON(mem->altmap); in memory_block_release()
110 kfree(mem); in memory_block_release()
123 struct memory_block *mem = to_memory_block(dev); in phys_index_show() local
125 return sysfs_emit(buf, "%08lx\n", memory_block_id(mem->start_section_nr)); in phys_index_show()
144 struct memory_block *mem = to_memory_block(dev); in state_show() local
151 switch (mem->state) { in state_show()
163 return sysfs_emit(buf, "ERROR-UNKNOWN-%ld\n", mem->state); in state_show()
175 static unsigned long memblk_nr_poison(struct memory_block *mem);
177 static inline unsigned long memblk_nr_poison(struct memory_block *mem) in memblk_nr_poison() argument
[all …]
/linux/kernel/dma/
H A Dswiotlb.c231 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_print_info() local
233 if (!mem->nslabs) { in swiotlb_print_info()
238 pr_info("mapped [mem %pa-%pa] (%luMB)\n", &mem->start, &mem->end, in swiotlb_print_info()
239 (mem->nslabs << IO_TLB_SHIFT) >> 20); in swiotlb_print_info()
260 struct io_tlb_pool *mem = &io_tlb_default_mem.defpool; in swiotlb_update_mem_attributes() local
263 if (!mem->nslabs || mem->late_alloc) in swiotlb_update_mem_attributes()
265 bytes = PAGE_ALIGN(mem->nslabs << IO_TLB_SHIFT); in swiotlb_update_mem_attributes()
266 set_memory_decrypted((unsigned long)mem->vaddr, bytes >> PAGE_SHIFT); in swiotlb_update_mem_attributes()
269 static void swiotlb_init_io_tlb_pool(struct io_tlb_pool *mem, phys_addr_t start, in swiotlb_init_io_tlb_pool() argument
275 mem->nslabs = nslabs; in swiotlb_init_io_tlb_pool()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c78 struct kgd_mem *mem) in kfd_mem_is_attached() argument
82 list_for_each_entry(entry, &mem->attachments, list) in kfd_mem_is_attached()
115 uint64_t mem; in amdgpu_amdkfd_gpuvm_init_mem_limits() local
121 mem = si.totalram - si.totalhigh; in amdgpu_amdkfd_gpuvm_init_mem_limits()
122 mem *= si.mem_unit; in amdgpu_amdkfd_gpuvm_init_mem_limits()
125 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 6); in amdgpu_amdkfd_gpuvm_init_mem_limits()
316 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo() argument
322 ret = amdgpu_bo_reserve(mem->bo, false); in create_dmamap_sg_bo()
326 if (mem->alloc_flags & KFD_IOC_ALLOC_MEM_FLAGS_USERPTR) in create_dmamap_sg_bo()
327 flags |= mem->bo->flags & (AMDGPU_GEM_CREATE_COHERENT | in create_dmamap_sg_bo()
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_agp_backend.c46 struct agp_memory *mem; member
54 struct agp_memory *mem; in ttm_agp_bind() local
58 if (agp_be->mem) in ttm_agp_bind()
61 mem = agp_allocate_memory(agp_be->bridge, ttm->num_pages, AGP_USER_MEMORY); in ttm_agp_bind()
62 if (unlikely(mem == NULL)) in ttm_agp_bind()
65 mem->page_count = 0; in ttm_agp_bind()
72 mem->pages[mem->page_count++] = page; in ttm_agp_bind()
74 agp_be->mem = mem; in ttm_agp_bind()
76 mem->is_flushed = 1; in ttm_agp_bind()
77 mem->type = (cached) ? AGP_USER_CACHED_MEMORY : AGP_USER_MEMORY; in ttm_agp_bind()
[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() argument
106 u32 mode = mem->spi->mode; in spi_check_buswidth_req()
142 static bool spi_mem_check_buswidth(struct spi_mem *mem, in spi_mem_check_buswidth() argument
145 if (spi_check_buswidth_req(mem, op->cmd.buswidth, true)) in spi_mem_check_buswidth()
149 spi_check_buswidth_req(mem, op->addr.buswidth, true)) in spi_mem_check_buswidth()
153 spi_check_buswidth_req(mem, op->dummy.buswidth, true)) in spi_mem_check_buswidth()
157 spi_check_buswidth_req(mem, op->data.buswidth, in spi_mem_check_buswidth()
164 bool spi_mem_default_supports_op(struct spi_mem *mem, in spi_mem_default_supports_op() argument
167 struct spi_controller *ctlr = mem->spi->controller; in spi_mem_default_supports_op()
190 return spi_mem_check_buswidth(mem, op); in spi_mem_default_supports_op()
[all …]
/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() argument
74 hlist_add_head(&mem->node, &cma->mem_head); in cma_add_to_cma_mem_list()
80 struct cma_mem *mem = NULL; in cma_get_entry_from_list() local
84 mem = hlist_entry(cma->mem_head.first, struct cma_mem, node); in cma_get_entry_from_list()
85 hlist_del_init(&mem->node); in cma_get_entry_from_list()
89 return mem; in cma_get_entry_from_list()
94 struct cma_mem *mem = NULL; in cma_free_mem() local
97 mem = cma_get_entry_from_list(cma); in cma_free_mem()
98 if (mem == NULL) in cma_free_mem()
101 if (mem->n <= count) { in cma_free_mem()
[all …]
/linux/drivers/char/hw_random/
H A Dintel-rng.c155 static inline u8 hwstatus_get(void __iomem *mem) in hwstatus_get() argument
157 return readb(mem + INTEL_RNG_HW_STATUS); in hwstatus_get()
160 static inline u8 hwstatus_set(void __iomem *mem, in hwstatus_set() argument
163 writeb(hw_status, mem + INTEL_RNG_HW_STATUS); in hwstatus_set()
164 return hwstatus_get(mem); in hwstatus_set()
169 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_present() local
173 data = !!(readb(mem + INTEL_RNG_STATUS) & in intel_rng_data_present()
184 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_read() local
186 *data = readb(mem + INTEL_RNG_DATA); in intel_rng_data_read()
193 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_init() local
[all …]
/linux/drivers/firmware/efi/
H A Dcper.c241 int cper_mem_err_location(struct cper_mem_err_compact *mem, char *msg) in cper_mem_err_location() argument
250 if (mem->validation_bits & CPER_MEM_VALID_NODE) in cper_mem_err_location()
251 n += scnprintf(msg + n, len - n, "node:%d ", mem->node); in cper_mem_err_location()
252 if (mem->validation_bits & CPER_MEM_VALID_CARD) in cper_mem_err_location()
253 n += scnprintf(msg + n, len - n, "card:%d ", mem->card); in cper_mem_err_location()
254 if (mem->validation_bits & CPER_MEM_VALID_MODULE) in cper_mem_err_location()
255 n += scnprintf(msg + n, len - n, "module:%d ", mem->module); in cper_mem_err_location()
256 if (mem->validation_bits & CPER_MEM_VALID_RANK_NUMBER) in cper_mem_err_location()
257 n += scnprintf(msg + n, len - n, "rank:%d ", mem->rank); in cper_mem_err_location()
258 if (mem->validation_bits & CPER_MEM_VALID_BANK) in cper_mem_err_location()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_vram.c147 xe->mem.vram.io_start = pci_resource_start(pdev, LMEM_BAR); in determine_lmem_bar_size()
148 xe->mem.vram.io_size = pci_resource_len(pdev, LMEM_BAR); in determine_lmem_bar_size()
149 if (!xe->mem.vram.io_size) in determine_lmem_bar_size()
153 xe->mem.vram.dpa_base = 0; in determine_lmem_bar_size()
156 xe->mem.vram.mapping = ioremap_wc(xe->mem.vram.io_start, xe->mem.vram.io_size); in determine_lmem_bar_size()
278 if (xe->mem.vram.mapping) in vram_fini()
279 iounmap(xe->mem.vram.mapping); in vram_fini()
281 xe->mem.vram.mapping = NULL; in vram_fini()
284 tile->mem.vram.mapping = NULL; in vram_fini()
320 drm_info(&xe->drm, "VISIBLE VRAM: %pa, %pa\n", &xe->mem.vram.io_start, in xe_vram_probe()
[all …]
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_region.c14 struct intel_memory_region *mem) in i915_gem_object_init_memory_region() argument
16 obj->mm.region = mem; in i915_gem_object_init_memory_region()
18 mutex_lock(&mem->objects.lock); in i915_gem_object_init_memory_region()
19 list_add(&obj->mm.region_link, &mem->objects.list); in i915_gem_object_init_memory_region()
20 mutex_unlock(&mem->objects.lock); in i915_gem_object_init_memory_region()
25 struct intel_memory_region *mem = obj->mm.region; in i915_gem_object_release_memory_region() local
27 mutex_lock(&mem->objects.lock); in i915_gem_object_release_memory_region()
29 mutex_unlock(&mem->objects.lock); in i915_gem_object_release_memory_region()
33 __i915_gem_object_create_region(struct intel_memory_region *mem, in __i915_gem_object_create_region() argument
56 if (!mem) in __i915_gem_object_create_region()
[all …]
/linux/drivers/net/ipa/
H A Dipa_qmi.c285 const struct ipa_mem *mem; in init_modem_driver_req() local
298 mem = ipa_mem_find(ipa, IPA_MEM_MODEM_HEADER); in init_modem_driver_req()
299 if (mem->size) { in init_modem_driver_req()
301 req.hdr_tbl_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
302 req.hdr_tbl_info.end = req.hdr_tbl_info.start + mem->size - 1; in init_modem_driver_req()
305 mem = ipa_mem_find(ipa, IPA_MEM_V4_ROUTE); in init_modem_driver_req()
307 req.v4_route_tbl_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
310 mem = ipa_mem_find(ipa, IPA_MEM_V6_ROUTE); in init_modem_driver_req()
312 req.v6_route_tbl_info.start = ipa->mem_offset + mem->offset; in init_modem_driver_req()
315 mem = ipa_mem_find(ipa, IPA_MEM_V4_FILTER); in init_modem_driver_req()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_util.c48 int mtk_vcodec_mem_alloc(void *priv, struct mtk_vcodec_mem *mem) in mtk_vcodec_mem_alloc() argument
66 mem->va = dma_alloc_attrs(&plat_dev->dev, mem->size, &mem->dma_addr, in mtk_vcodec_mem_alloc()
68 if (!mem->va) { in mtk_vcodec_mem_alloc()
70 __func__, mem->size); in mtk_vcodec_mem_alloc()
74 mtk_v4l2_debug(plat_dev, 3, "[%d] - va = %p dma = 0x%lx size = 0x%zx", id, mem->va, in mtk_vcodec_mem_alloc()
75 (unsigned long)mem->dma_addr, mem->size); in mtk_vcodec_mem_alloc()
81 void mtk_vcodec_mem_free(void *priv, struct mtk_vcodec_mem *mem) in mtk_vcodec_mem_free() argument
99 if (!mem->va) { in mtk_vcodec_mem_free()
101 if (mem->size) in mtk_vcodec_mem_free()
102 mtk_v4l2_err(plat_dev, "Failed to free %zu bytes", mem->size); in mtk_vcodec_mem_free()
[all …]
/linux/arch/powerpc/include/asm/
H A Dio-defs.h5 DEF_PCI_AC_RET(readb, u8, (const PCI_IO_ADDR addr), (addr), mem, addr)
6 DEF_PCI_AC_RET(readw, u16, (const PCI_IO_ADDR addr), (addr), mem, addr)
7 DEF_PCI_AC_RET(readl, u32, (const PCI_IO_ADDR addr), (addr), mem, addr)
8 DEF_PCI_AC_RET(readw_be, u16, (const PCI_IO_ADDR addr), (addr), mem, addr)
9 DEF_PCI_AC_RET(readl_be, u32, (const PCI_IO_ADDR addr), (addr), mem, addr)
10 DEF_PCI_AC_NORET(writeb, (u8 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
11 DEF_PCI_AC_NORET(writew, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
12 DEF_PCI_AC_NORET(writel, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
13 DEF_PCI_AC_NORET(writew_be, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
14 DEF_PCI_AC_NORET(writel_be, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr)
[all …]

12345678910>>...53