Home
last modified time | relevance | path

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

12345678910>>...12

/arch/powerpc/mm/book3s64/
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 …]
/arch/powerpc/include/asm/
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 …]
/arch/alpha/include/uapi/asm/
Dcompiler.h94 #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
99 #define __kernel_ldbu(mem) \ argument
102 ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
104 #define __kernel_ldwu(mem) \ argument
107 ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
109 #define __kernel_stb(val,mem) \ argument
111 stb %1,%0" : "=m"(mem) : "r"(val))
[all …]
/arch/mips/bcm47xx/
Dprom.c57 unsigned long mem; in prom_init_mem() local
81 for (mem = 1 << 20; mem < max; mem += 1 << 20) { in prom_init_mem()
83 if (off + mem >= max) { in prom_init_mem()
84 mem = max; in prom_init_mem()
88 if (!memcmp(prom_init, prom_init + mem, 32)) in prom_init_mem()
91 lowmem = mem; in prom_init_mem()
98 if (c->cputype == CPU_74K && (mem == (128 << 20))) in prom_init_mem()
99 mem -= 0x1000; in prom_init_mem()
100 add_memory_region(0, mem, BOOT_MEM_RAM); in prom_init_mem()
/arch/ia64/kernel/
Dminstate.h100 .mem.offset 0,0; st8.spill [r16]=r8,16; \
101 .mem.offset 8,0; st8.spill [r17]=r9,16; \
103 .mem.offset 0,0; st8.spill [r16]=r10,24; \
104 .mem.offset 8,0; st8.spill [r17]=r11,24; \
130 .mem.offset 0,0; st8.spill [r16]=r20,16; /* save original r1 */ \
131 .mem.offset 8,0; st8.spill [r17]=r12,16; \
134 .mem.offset 0,0; st8.spill [r16]=r13,16; \
135 .mem.offset 8,0; st8.spill [r17]=r21,16; /* save ar.fpsr */ \
138 .mem.offset 0,0; st8.spill [r16]=r15,16; \
139 .mem.offset 8,0; st8.spill [r17]=r14,16; \
[all …]
/arch/parisc/kernel/
Dkexec_file.c39 image->segment[i].mem = __pa(image->segment[i].mem); in elf_load()
49 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf_load()
54 pr_debug("Loaded initrd at 0x%lx\n", kbuf.mem); in elf_load()
55 image->arch.initrd_start = kbuf.mem; in elf_load()
56 image->arch.initrd_end = kbuf.mem + initrd_len; in elf_load()
66 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf_load()
71 pr_debug("Loaded cmdline at 0x%lx\n", kbuf.mem); in elf_load()
72 image->arch.cmdline = kbuf.mem; in elf_load()
/arch/arm/mm/
Dpmsa-v8.c79 static struct range __initdata mem[MPU_MAX_REGIONS]; variable
247 add_range(mem, ARRAY_SIZE(mem), 0, memblock.memory.regions[0].base, in pmsav8_setup()
254 subtract_range(mem, ARRAY_SIZE(mem), __pa(KERNEL_START), __pa(KERNEL_END)); in pmsav8_setup()
259 subtract_range(mem, ARRAY_SIZE(mem), CONFIG_XIP_PHYS_ADDR, __pa(_exiprom)); in pmsav8_setup()
265 subtract_range(mem, ARRAY_SIZE(mem), vectors_base, vectors_base + 2 * PAGE_SIZE); in pmsav8_setup()
269 for (i = 0; i < ARRAY_SIZE(mem); i++) in pmsav8_setup()
270 subtract_range(io, ARRAY_SIZE(io), mem[i].start, mem[i].end); in pmsav8_setup()
291 for (i = 0; i < ARRAY_SIZE(mem); i++) { in pmsav8_setup()
292 if (!mem[i].end) in pmsav8_setup()
295 err |= pmsav8_setup_ram(region++, mem[i].start, mem[i].end); in pmsav8_setup()
Dpmsa-v7.c25 static struct region __initdata mem[MPU_MAX_REGIONS]; variable
292 memset(mem, 0, sizeof(mem)); in pmsav7_adjust_lowmem_bounds()
293 num = allocate_region(mem_start, specified_mem_size, mem_max_regions, mem); in pmsav7_adjust_lowmem_bounds()
296 unsigned long subreg = mem[i].size / PMSAv7_NR_SUBREGS; in pmsav7_adjust_lowmem_bounds()
298 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
301 &mem[i].base, &mem[i].size, PMSAv7_NR_SUBREGS, &mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
452 for (i = 0; i < ARRAY_SIZE(mem); i++) { in pmsav7_setup()
453 if (!mem[i].size) in pmsav7_setup()
456 err |= mpu_setup_region(region++, mem[i].base, ilog2(mem[i].size), in pmsav7_setup()
458 mem[i].subreg, false); in pmsav7_setup()
/arch/powerpc/boot/
Dcuboot-pq2.c122 struct pci_range *mem = NULL, *mmio = NULL, in fixup_pci() local
162 mem = &pci_ranges_buf[i]; in fixup_pci()
169 if (!mem || !mmio || !io) in fixup_pci()
171 if (mem->size[1] != mmio->size[1]) in fixup_pci()
173 if (mem->size[1] & (mem->size[1] - 1)) in fixup_pci()
178 if (mem->phys_addr + mem->size[1] == mmio->phys_addr) in fixup_pci()
179 mem_base = mem; in fixup_pci()
180 else if (mmio->phys_addr + mmio->size[1] == mem->phys_addr) in fixup_pci()
186 out_be32(&pci_regs[2][0], ~(mem->size[1] + mmio->size[1] - 1)); in fixup_pci()
191 out_le32(&pci_regs[0][0], mem->pci_addr[1] >> 12); in fixup_pci()
[all …]
Dwii.c101 void *mem; in platform_fixups() local
107 mem = finddevice("/memory"); in platform_fixups()
108 if (!mem) in platform_fixups()
112 len = getprop(mem, "reg", reg, sizeof(reg)); in platform_fixups()
128 setprop(mem, "reg", reg, sizeof(reg)); in platform_fixups()
/arch/microblaze/boot/dts/
Dsystem.dts135 xlnx,max-mem-width = <0x10>;
155 xlnx,num-banks-mem = <0x1>;
158 xlnx,synch-mem-0 = <0x0>;
159 xlnx,synch-mem-1 = <0x0>;
160 xlnx,synch-mem-2 = <0x0>;
161 xlnx,synch-mem-3 = <0x0>;
166 xlnx,tavdv-ps-mem-0 = <0x1adb0>;
167 xlnx,tavdv-ps-mem-1 = <0x3a98>;
168 xlnx,tavdv-ps-mem-2 = <0x3a98>;
169 xlnx,tavdv-ps-mem-3 = <0x3a98>;
[all …]
/arch/powerpc/platforms/powernv/
Dmemtrace.c25 void *mem; member
44 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read()
53 static int check_memblock_online(struct memory_block *mem, void *arg) in check_memblock_online() argument
55 if (mem->state != MEM_ONLINE) in check_memblock_online()
61 static int change_memblock_state(struct memory_block *mem, void *arg) in change_memblock_state() argument
65 mem->state = state; in change_memblock_state()
179 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs()
181 if (!ent->mem) { in memtrace_init_debugfs()
205 static int online_mem_block(struct memory_block *mem, void *arg) in online_mem_block() argument
207 return device_online(&mem->dev); in online_mem_block()
[all …]
/arch/arm/boot/dts/
Drk3288-evb-rk808.dts45 regulator-state-mem {
56 regulator-state-mem {
66 regulator-state-mem {
77 regulator-state-mem {
89 regulator-state-mem {
101 regulator-state-mem {
112 regulator-state-mem {
124 regulator-state-mem {
136 regulator-state-mem {
148 regulator-state-mem {
[all …]
Dexynos5422-odroid-core.dtsi181 regulator-state-mem {
192 regulator-state-mem {
203 regulator-state-mem {
214 regulator-state-mem {
225 regulator-state-mem {
236 regulator-state-mem {
247 regulator-state-mem {
258 regulator-state-mem {
275 regulator-state-mem {
293 regulator-state-mem {
[all …]
/arch/powerpc/boot/dts/
Dvirtex440-ml507.dts187 xlnx,max-mem-width = <0x10>;
207 xlnx,num-banks-mem = <0x1>;
210 xlnx,synch-mem-0 = <0x0>;
211 xlnx,synch-mem-1 = <0x0>;
212 xlnx,synch-mem-2 = <0x0>;
213 xlnx,synch-mem-3 = <0x0>;
218 xlnx,tavdv-ps-mem-0 = <0x1adb0>;
219 xlnx,tavdv-ps-mem-1 = <0x3a98>;
220 xlnx,tavdv-ps-mem-2 = <0x3a98>;
221 xlnx,tavdv-ps-mem-3 = <0x3a98>;
[all …]
Dvirtex440-ml510.dts159 xlnx,max-mem-width = <0x10>;
179 xlnx,num-banks-mem = <0x1>;
182 xlnx,synch-mem-0 = <0x0>;
183 xlnx,synch-mem-1 = <0x0>;
184 xlnx,synch-mem-2 = <0x0>;
185 xlnx,synch-mem-3 = <0x0>;
190 xlnx,tavdv-ps-mem-0 = <0x1adb0>;
191 xlnx,tavdv-ps-mem-1 = <0x3a98>;
192 xlnx,tavdv-ps-mem-2 = <0x3a98>;
193 xlnx,tavdv-ps-mem-3 = <0x3a98>;
[all …]
/arch/mips/include/asm/mach-jazz/
Dfloppy.h107 unsigned long mem; in fd_dma_mem_alloc() local
109 mem = __get_dma_pages(GFP_KERNEL, get_order(size)); in fd_dma_mem_alloc()
110 if(!mem) in fd_dma_mem_alloc()
112 vdma_alloc(CPHYSADDR(mem), size); /* XXX error checking */ in fd_dma_mem_alloc()
114 return mem; in fd_dma_mem_alloc()
/arch/h8300/kernel/
Dkgdb.c35 char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) in dbg_get_reg() argument
45 *(u32 *)mem = *(u16 *)((void *)regs + in dbg_get_reg()
50 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, in dbg_get_reg()
53 memset(mem, 0, dbg_reg_def[regno].size); in dbg_get_reg()
59 int dbg_set_reg(int regno, void *mem, struct pt_regs *regs) in dbg_set_reg() argument
70 dbg_reg_def[regno].offset) = *(u32 *)mem; in dbg_set_reg()
73 memcpy((void *)regs + dbg_reg_def[regno].offset, mem, in dbg_set_reg()
/arch/arm/mach-omap2/
Dcm_common.c330 struct omap_domain_base *mem = NULL; in omap2_cm_base_init() local
340 mem = &cm_base; in omap2_cm_base_init()
343 mem = &cm2_base; in omap2_cm_base_init()
345 data->mem = ioremap(res.start, resource_size(&res)); in omap2_cm_base_init()
347 if (mem) { in omap2_cm_base_init()
348 mem->pa = res.start + data->offset; in omap2_cm_base_init()
349 mem->va = data->mem + data->offset; in omap2_cm_base_init()
350 mem->offset = data->offset; in omap2_cm_base_init()
382 ret = omap2_clk_provider_init(np, data->index, NULL, data->mem); in omap_cm_init()
/arch/mips/cavium-octeon/
Ddma-octeon.c193 struct memblock_region *mem; in plat_swiotlb_setup() local
202 for_each_memblock(memory, mem) { in plat_swiotlb_setup()
204 if (mem->base > 0x410000000ull && !OCTEON_IS_OCTEON2()) in plat_swiotlb_setup()
207 addr_size += mem->size; in plat_swiotlb_setup()
209 if (max_addr < mem->base + mem->size) in plat_swiotlb_setup()
210 max_addr = mem->base + mem->size; in plat_swiotlb_setup()
/arch/powerpc/kernel/
Dkexec_elf_64.c43 .mem = KEXEC_BUF_MEM_UNKNOWN }; in elf64_load()
61 pr_debug("Loaded purgatory at 0x%lx\n", pbuf.mem); in elf64_load()
68 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf64_load()
72 initrd_load_addr = kbuf.mem; in elf64_load()
101 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf64_load()
105 fdt_load_addr = kbuf.mem; in elf64_load()
/arch/arm64/kernel/
Dmachine_kexec.c49 kimage->segment[i].mem, in _kexec_image_info()
50 kimage->segment[i].mem + kimage->segment[i].memsz, in _kexec_image_info()
129 kimage->segment[i].mem, in kexec_segment_flush()
130 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_segment_flush()
134 __flush_dcache_area(phys_to_virt(kimage->segment[i].mem), in kexec_segment_flush()
283 __phys_to_virt(kexec_crash_image->segment[i].mem), in arch_kexec_protect_crashkres()
293 __phys_to_virt(kexec_crash_image->segment[i].mem), in arch_kexec_unprotect_crashkres()
346 if (addr >= kexec_crash_image->segment[i].mem && in crash_is_nosave()
347 addr < (kexec_crash_image->segment[i].mem + in crash_is_nosave()
Dkexec_image.c87 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in image_load()
100 kernel_segment->mem += text_offset; in image_load()
102 image->start = kernel_segment->mem; in image_load()
105 kernel_segment->mem, kbuf.bufsz, in image_load()
110 kernel_segment->mem, kernel_segment->memsz, in image_load()
/arch/mips/cavium-octeon/executive/
Dcvmx-boot-vector.c134 static void cvmx_boot_vector_init(void *mem) in cvmx_boot_vector_init() argument
139 memset(mem, 0, VECTOR_TABLE_SIZE); in cvmx_boot_vector_init()
140 kseg0_mem = cvmx_ptr_to_phys(mem) | 0x8000000000000000ull; in cvmx_boot_vector_init()
/arch/powerpc/kvm/
Dbook3s_64_vio_hv.c125 struct mm_iommu_table_group_mem_t *mem; in kvmppc_rm_tce_validate() local
128 mem = mm_iommu_lookup_rm(stt->kvm->mm, ua, 1ULL << shift); in kvmppc_rm_tce_validate()
129 if (!mem) in kvmppc_rm_tce_validate()
132 if (mm_iommu_ua_to_hpa_rm(mem, ua, shift, &hpa)) in kvmppc_rm_tce_validate()
263 struct mm_iommu_table_group_mem_t *mem = NULL; in kvmppc_rm_tce_iommu_mapped_dec() local
271 mem = mm_iommu_lookup_rm(kvm->mm, be64_to_cpu(*pua), pgsize); in kvmppc_rm_tce_iommu_mapped_dec()
272 if (!mem) in kvmppc_rm_tce_iommu_mapped_dec()
275 mm_iommu_mapped_dec(mem); in kvmppc_rm_tce_iommu_mapped_dec()
330 struct mm_iommu_table_group_mem_t *mem; in kvmppc_rm_tce_iommu_do_map() local
336 mem = mm_iommu_lookup_rm(kvm->mm, ua, 1ULL << tbl->it_page_shift); in kvmppc_rm_tce_iommu_do_map()
[all …]

12345678910>>...12