/arch/powerpc/mm/book3s64/ |
D | iommu_api.c | 60 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/ |
D | io-defs.h | 5 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/ |
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 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/ |
D | prom.c | 58 unsigned long mem; in prom_init_mem() local 82 for (mem = 1 << 20; mem < max; mem += 1 << 20) { in prom_init_mem() 84 if (off + mem >= max) { in prom_init_mem() 85 mem = max; in prom_init_mem() 89 if (!memcmp((void *)prom_init, (void *)prom_init + mem, 32)) in prom_init_mem() 92 lowmem = mem; in prom_init_mem() 99 if (c->cputype == CPU_74K && (mem == (128 << 20))) in prom_init_mem() 100 mem -= 0x1000; in prom_init_mem() 101 memblock_add(0, mem); in prom_init_mem()
|
/arch/ia64/kernel/ |
D | minstate.h | 100 .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/ |
D | kexec_file.c | 39 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/ |
D | pmsa-v8.c | 79 static struct range __initdata mem[MPU_MAX_REGIONS]; variable 248 add_range(mem, ARRAY_SIZE(mem), 0, memblock.memory.regions[0].base, in pmsav8_setup() 255 subtract_range(mem, ARRAY_SIZE(mem), __pa(KERNEL_START), __pa(KERNEL_END)); in pmsav8_setup() 260 subtract_range(mem, ARRAY_SIZE(mem), CONFIG_XIP_PHYS_ADDR, __pa(_exiprom)); in pmsav8_setup() 266 subtract_range(mem, ARRAY_SIZE(mem), vectors_base, vectors_base + 2 * PAGE_SIZE); in pmsav8_setup() 270 for (i = 0; i < ARRAY_SIZE(mem); i++) in pmsav8_setup() 271 subtract_range(io, ARRAY_SIZE(io), mem[i].start, mem[i].end); in pmsav8_setup() 292 for (i = 0; i < ARRAY_SIZE(mem); i++) { in pmsav8_setup() 293 if (!mem[i].end) in pmsav8_setup() 296 err |= pmsav8_setup_ram(region++, mem[i].start, mem[i].end); in pmsav8_setup()
|
D | pmsa-v7.c | 25 static struct region __initdata mem[MPU_MAX_REGIONS]; variable 293 memset(mem, 0, sizeof(mem)); in pmsav7_adjust_lowmem_bounds() 294 num = allocate_region(mem_start, specified_mem_size, mem_max_regions, mem); in pmsav7_adjust_lowmem_bounds() 297 unsigned long subreg = mem[i].size / PMSAv7_NR_SUBREGS; in pmsav7_adjust_lowmem_bounds() 299 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds() 302 &mem[i].base, &mem[i].size, PMSAv7_NR_SUBREGS, &mem[i].subreg); in pmsav7_adjust_lowmem_bounds() 453 for (i = 0; i < ARRAY_SIZE(mem); i++) { in pmsav7_setup() 454 if (!mem[i].size) in pmsav7_setup() 457 err |= mpu_setup_region(region++, mem[i].base, ilog2(mem[i].size), in pmsav7_setup() 459 mem[i].subreg, false); in pmsav7_setup()
|
/arch/powerpc/boot/ |
D | cuboot-pq2.c | 122 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 …]
|
D | wii.c | 101 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/ |
D | system.dts | 135 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/ |
D | memtrace.c | 25 void *mem; member 45 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read() 54 static int check_memblock_online(struct memory_block *mem, void *arg) in check_memblock_online() argument 56 if (mem->state != MEM_ONLINE) in check_memblock_online() 62 static int change_memblock_state(struct memory_block *mem, void *arg) in change_memblock_state() argument 66 mem->state = state; in change_memblock_state() 202 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 204 if (!ent->mem) { in memtrace_init_debugfs() 223 static int online_mem_block(struct memory_block *mem, void *arg) in online_mem_block() argument 225 return device_online(&mem->dev); in online_mem_block() [all …]
|
/arch/arm/boot/dts/ |
D | rk3288-evb-rk808.dts | 46 regulator-state-mem { 57 regulator-state-mem { 67 regulator-state-mem { 78 regulator-state-mem { 90 regulator-state-mem { 102 regulator-state-mem { 113 regulator-state-mem { 125 regulator-state-mem { 137 regulator-state-mem { 149 regulator-state-mem { [all …]
|
D | rk3288-vmarc-som.dtsi | 83 regulator-state-mem { 95 regulator-state-mem { 104 regulator-state-mem { 115 regulator-state-mem { 127 regulator-state-mem { 138 regulator-state-mem { 150 regulator-state-mem { 162 regulator-state-mem { 173 regulator-state-mem { 185 regulator-state-mem { [all …]
|
D | rk3036-kylin.dts | 146 regulator-state-mem { 157 regulator-state-mem { 167 regulator-state-mem { 178 regulator-state-mem { 190 regulator-state-mem { 202 regulator-state-mem { 213 regulator-state-mem { 225 regulator-state-mem { 237 regulator-state-mem { 249 regulator-state-mem { [all …]
|
/arch/mips/include/asm/mach-jazz/ |
D | floppy.h | 106 unsigned long mem; in fd_dma_mem_alloc() local 108 mem = __get_dma_pages(GFP_KERNEL, get_order(size)); in fd_dma_mem_alloc() 109 if(!mem) in fd_dma_mem_alloc() 111 vdma_alloc(CPHYSADDR(mem), size); /* XXX error checking */ in fd_dma_mem_alloc() 113 return mem; in fd_dma_mem_alloc()
|
/arch/h8300/kernel/ |
D | kgdb.c | 35 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/arm64/kernel/ |
D | kexec_image.c | 83 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in image_load() 101 ret = load_other_segments(image, kernel_segment->mem, in image_load() 112 kbuf.buf_min = kernel_segment->mem + kernel_segment->memsz; in image_load() 113 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in image_load() 122 kernel_segment->mem += text_offset; in image_load() 124 image->start = kernel_segment->mem; in image_load() 127 kernel_segment->mem, kbuf.bufsz, in image_load()
|
D | machine_kexec.c | 49 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() 272 __phys_to_virt(kexec_crash_image->segment[i].mem), in arch_kexec_protect_crashkres() 282 __phys_to_virt(kexec_crash_image->segment[i].mem), in arch_kexec_unprotect_crashkres() 335 if (addr >= kexec_crash_image->segment[i].mem && in crash_is_nosave() 336 addr < (kexec_crash_image->segment[i].mem + in crash_is_nosave()
|
/arch/arm/mach-omap2/ |
D | cm_common.c | 330 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/m68k/kernel/ |
D | sys_m68k.c | 464 unsigned long __user * mem) in sys_atomic_cmpxchg_32() argument 478 pgd = pgd_offset(mm, (unsigned long)mem); in sys_atomic_cmpxchg_32() 481 p4d = p4d_offset(pgd, (unsigned long)mem); in sys_atomic_cmpxchg_32() 484 pud = pud_offset(p4d, (unsigned long)mem); in sys_atomic_cmpxchg_32() 487 pmd = pmd_offset(pud, (unsigned long)mem); in sys_atomic_cmpxchg_32() 490 pte = pte_offset_map_lock(mm, pmd, (unsigned long)mem, &ptl); in sys_atomic_cmpxchg_32() 501 __get_user(mem_value, mem); in sys_atomic_cmpxchg_32() 503 __put_user(newval, mem); in sys_atomic_cmpxchg_32() 521 if (do_page_fault(fp, (unsigned long)mem, 3)) in sys_atomic_cmpxchg_32() 545 unsigned long __user * mem) in sys_atomic_cmpxchg_32() argument [all …]
|
/arch/powerpc/kexec/ |
D | elf_64.c | 44 .mem = KEXEC_BUF_MEM_UNKNOWN }; in elf64_load() 70 pr_debug("Loaded purgatory at 0x%lx\n", pbuf.mem); in elf64_load() 96 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf64_load() 100 initrd_load_addr = kbuf.mem; in elf64_load() 130 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in elf64_load() 134 fdt_load_addr = kbuf.mem; in elf64_load()
|
/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 121 struct mm_iommu_table_group_mem_t *mem; in kvmppc_rm_tce_validate() local 124 mem = mm_iommu_lookup_rm(stt->kvm->mm, ua, 1ULL << shift); in kvmppc_rm_tce_validate() 125 if (!mem) in kvmppc_rm_tce_validate() 128 if (mm_iommu_ua_to_hpa_rm(mem, ua, shift, &hpa)) in kvmppc_rm_tce_validate() 268 struct mm_iommu_table_group_mem_t *mem = NULL; in kvmppc_rm_tce_iommu_mapped_dec() local 276 mem = mm_iommu_lookup_rm(kvm->mm, be64_to_cpu(*pua), pgsize); in kvmppc_rm_tce_iommu_mapped_dec() 277 if (!mem) in kvmppc_rm_tce_iommu_mapped_dec() 280 mm_iommu_mapped_dec(mem); in kvmppc_rm_tce_iommu_mapped_dec() 337 struct mm_iommu_table_group_mem_t *mem; in kvmppc_rm_tce_iommu_do_map() local 343 mem = mm_iommu_lookup_rm(kvm->mm, ua, 1ULL << tbl->it_page_shift); in kvmppc_rm_tce_iommu_do_map() [all …]
|
/arch/mips/cavium-octeon/executive/ |
D | cvmx-boot-vector.c | 134 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/arm64/boot/dts/rockchip/ |
D | rk3399-evb.dts | 202 regulator-state-mem { 215 regulator-state-mem { 224 regulator-state-mem { 235 regulator-state-mem { 247 regulator-state-mem { 258 regulator-state-mem { 269 regulator-state-mem { 281 regulator-state-mem { 293 regulator-state-mem { 304 regulator-state-mem { [all …]
|