/arch/s390/boot/ |
D | pgm_check_info.c | 33 char *p; in print_pgm_check_info() local 40 p = add_str(buf, "Kernel fault: interruption code "); in print_pgm_check_info() 41 p = add_val_as_hex(buf + strlen(buf), S390_lowcore.pgm_code); in print_pgm_check_info() 42 p = add_str(p, " ilc:"); in print_pgm_check_info() 43 *p++ = hex_asc_lo(ilc); in print_pgm_check_info() 44 add_str(p, "\n"); in print_pgm_check_info() 48 p = add_str(buf, "Kernel random base: "); in print_pgm_check_info() 49 p = add_val_as_hex(p, __kaslr_offset); in print_pgm_check_info() 50 add_str(p, "\n"); in print_pgm_check_info() 54 p = add_str(buf, "PSW : "); in print_pgm_check_info() [all …]
|
/arch/sh/include/asm/ |
D | unaligned-sh4a.h | 26 static inline u16 sh4a_get_unaligned_cpu16(const u8 *p) in sh4a_get_unaligned_cpu16() argument 29 return p[0] | p[1] << 8; in sh4a_get_unaligned_cpu16() 31 return p[0] << 8 | p[1]; in sh4a_get_unaligned_cpu16() 35 static __always_inline u32 sh4a_get_unaligned_cpu32(const u8 *p) in sh4a_get_unaligned_cpu32() argument 42 : "r" (p) in sh4a_get_unaligned_cpu32() 53 static inline u64 sh4a_get_unaligned_cpu64(const u8 *p) in sh4a_get_unaligned_cpu64() argument 56 return (u64)sh4a_get_unaligned_cpu32(p + 4) << 32 | in sh4a_get_unaligned_cpu64() 57 sh4a_get_unaligned_cpu32(p); in sh4a_get_unaligned_cpu64() 59 return (u64)sh4a_get_unaligned_cpu32(p) << 32 | in sh4a_get_unaligned_cpu64() 60 sh4a_get_unaligned_cpu32(p + 4); in sh4a_get_unaligned_cpu64() [all …]
|
/arch/c6x/include/asm/ |
D | unaligned.h | 20 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() argument 22 const u8 *_p = p; in get_unaligned_le16() 26 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument 28 const u8 *_p = p; in get_unaligned_be16() 32 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument 34 u8 *_p = p; in put_unaligned_le16() 39 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument 41 u8 *_p = p; in put_unaligned_be16() 46 static inline u32 get_unaligned32(const void *p) in get_unaligned32() argument 48 u32 val = (u32) p; in get_unaligned32() [all …]
|
/arch/mips/kvm/ |
D | entry.c | 152 static void kvm_mips_build_save_scratch(u32 **p, unsigned int tmp, in kvm_mips_build_save_scratch() argument 156 UASM_i_MFC0(p, tmp, scratch_vcpu[0], scratch_vcpu[1]); in kvm_mips_build_save_scratch() 157 UASM_i_SW(p, tmp, offsetof(struct pt_regs, cp0_epc), frame); in kvm_mips_build_save_scratch() 161 UASM_i_MFC0(p, tmp, scratch_tmp[0], scratch_tmp[1]); in kvm_mips_build_save_scratch() 162 UASM_i_SW(p, tmp, offsetof(struct pt_regs, cp0_cause), frame); in kvm_mips_build_save_scratch() 166 static void kvm_mips_build_restore_scratch(u32 **p, unsigned int tmp, in kvm_mips_build_restore_scratch() argument 173 UASM_i_LW(p, tmp, offsetof(struct pt_regs, cp0_epc), frame); in kvm_mips_build_restore_scratch() 174 UASM_i_MTC0(p, tmp, scratch_vcpu[0], scratch_vcpu[1]); in kvm_mips_build_restore_scratch() 177 UASM_i_LW(p, tmp, offsetof(struct pt_regs, cp0_cause), frame); in kvm_mips_build_restore_scratch() 178 UASM_i_MTC0(p, tmp, scratch_tmp[0], scratch_tmp[1]); in kvm_mips_build_restore_scratch() [all …]
|
/arch/arm/include/asm/ |
D | bitops.h | 36 static inline void ____atomic_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_set_bit() argument 41 p += BIT_WORD(bit); in ____atomic_set_bit() 44 *p |= mask; in ____atomic_set_bit() 48 static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_clear_bit() argument 53 p += BIT_WORD(bit); in ____atomic_clear_bit() 56 *p &= ~mask; in ____atomic_clear_bit() 60 static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_change_bit() argument 65 p += BIT_WORD(bit); in ____atomic_change_bit() 68 *p ^= mask; in ____atomic_change_bit() 73 ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_set_bit() argument [all …]
|
/arch/mips/mm/ |
D | tlbex.c | 205 static void uasm_bgezl_hazard(u32 **p, struct uasm_reloc **r, int instance) in uasm_bgezl_hazard() argument 209 uasm_il_bgezl(p, r, 0, label_tlbw_hazard_0 + instance); in uasm_bgezl_hazard() 216 static void uasm_bgezl_label(struct uasm_label **l, u32 **p, int instance) in uasm_bgezl_label() argument 220 uasm_build_label(l, *p, label_tlbw_hazard_0 + instance); in uasm_bgezl_label() 359 static struct work_registers build_get_work_registers(u32 **p) in build_get_work_registers() argument 365 UASM_i_MTC0(p, 1, c0_kscratch(), scratch_reg); in build_get_work_registers() 374 UASM_i_CPUID_MFC0(p, K0, SMP_CPUID_REG); in build_get_work_registers() 375 UASM_i_SRL_SAFE(p, K0, K0, SMP_CPUID_REGSHIFT); in build_get_work_registers() 378 UASM_i_SLL(p, K0, K0, ilog2(sizeof(struct tlb_reg_save))); in build_get_work_registers() 380 UASM_i_LA(p, K1, (long)&handler_reg_save); in build_get_work_registers() [all …]
|
D | pgtable-64.c | 18 unsigned long *p, *end; in pgd_init() local 29 p = (unsigned long *) page; in pgd_init() 30 end = p + PTRS_PER_PGD; in pgd_init() 33 p[0] = entry; in pgd_init() 34 p[1] = entry; in pgd_init() 35 p[2] = entry; in pgd_init() 36 p[3] = entry; in pgd_init() 37 p[4] = entry; in pgd_init() 38 p += 8; in pgd_init() 39 p[-3] = entry; in pgd_init() [all …]
|
/arch/parisc/lib/ |
D | io.c | 129 unsigned char *p; in insb() local 131 p = (unsigned char *)dst; in insb() 133 while (((unsigned long)p) & 0x3) { in insb() 137 *p = inb(port); in insb() 138 p++; in insb() 148 *(unsigned int *) p = w; in insb() 149 p += 4; in insb() 154 *p = inb(port); in insb() 155 p++; in insb() 170 unsigned char *p; in insw() local [all …]
|
/arch/x86/kernel/ |
D | pci-dma.c | 41 struct iommu_table_entry *p; in pci_iommu_alloc() local 46 for (p = __iommu_table; p < __iommu_table_end; p++) { in pci_iommu_alloc() 47 if (p && p->detect && p->detect() > 0) { in pci_iommu_alloc() 48 p->flags |= IOMMU_DETECTED; in pci_iommu_alloc() 49 if (p->early_init) in pci_iommu_alloc() 50 p->early_init(); in pci_iommu_alloc() 51 if (p->flags & IOMMU_FINISH_IF_DETECTED) in pci_iommu_alloc() 61 static __init int iommu_setup(char *p) in iommu_setup() argument 65 if (!p) in iommu_setup() 68 while (*p) { in iommu_setup() [all …]
|
D | pci-iommu_table.c | 15 struct iommu_table_entry *p; in find_dependents_of() local 20 for (p = start; p < finish; p++) in find_dependents_of() 21 if (p->detect == q->depend) in find_dependents_of() 22 return p; in find_dependents_of() 31 struct iommu_table_entry *p, *q, tmp; in sort_iommu_table() local 33 for (p = start; p < finish; p++) { in sort_iommu_table() 35 q = find_dependents_of(start, finish, p); in sort_iommu_table() 39 if (q > p) { in sort_iommu_table() 40 tmp = *p; in sort_iommu_table() 41 memmove(p, q, sizeof(*p)); in sort_iommu_table() [all …]
|
D | irq.c | 58 int arch_show_interrupts(struct seq_file *p, int prec) in arch_show_interrupts() argument 62 seq_printf(p, "%*s: ", prec, "NMI"); in arch_show_interrupts() 64 seq_printf(p, "%10u ", irq_stats(j)->__nmi_count); in arch_show_interrupts() 65 seq_puts(p, " Non-maskable interrupts\n"); in arch_show_interrupts() 67 seq_printf(p, "%*s: ", prec, "LOC"); in arch_show_interrupts() 69 seq_printf(p, "%10u ", irq_stats(j)->apic_timer_irqs); in arch_show_interrupts() 70 seq_puts(p, " Local timer interrupts\n"); in arch_show_interrupts() 72 seq_printf(p, "%*s: ", prec, "SPU"); in arch_show_interrupts() 74 seq_printf(p, "%10u ", irq_stats(j)->irq_spurious_count); in arch_show_interrupts() 75 seq_puts(p, " Spurious interrupts\n"); in arch_show_interrupts() [all …]
|
/arch/sparc/kernel/ |
D | central.c | 37 static int clock_board_calc_nslots(struct clock_board *p) in clock_board_calc_nslots() argument 39 u8 reg = upa_readb(p->clock_regs + CLOCK_STAT1) & 0xc0; in clock_board_calc_nslots() 50 if (p->clock_ver_reg) in clock_board_calc_nslots() 51 reg = upa_readb(p->clock_ver_reg); in clock_board_calc_nslots() 66 struct clock_board *p = kzalloc(sizeof(*p), GFP_KERNEL); in clock_board_probe() local 69 if (!p) { in clock_board_probe() 74 p->clock_freq_regs = of_ioremap(&op->resource[0], 0, in clock_board_probe() 77 if (!p->clock_freq_regs) { in clock_board_probe() 82 p->clock_regs = of_ioremap(&op->resource[1], 0, in clock_board_probe() 85 if (!p->clock_regs) { in clock_board_probe() [all …]
|
D | ebus.c | 50 static void __ebus_dma_reset(struct ebus_dma_info *p, int no_drain) in __ebus_dma_reset() argument 55 writel(EBDMA_CSR_RESET, p->regs + EBDMA_CSR); in __ebus_dma_reset() 62 val = readl(p->regs + EBDMA_CSR); in __ebus_dma_reset() 72 struct ebus_dma_info *p = dev_id; in ebus_dma_irq() local 76 spin_lock_irqsave(&p->lock, flags); in ebus_dma_irq() 77 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_irq() 78 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_irq() 79 spin_unlock_irqrestore(&p->lock, flags); in ebus_dma_irq() 82 printk(KERN_CRIT "ebus_dma(%s): DMA error!\n", p->name); in ebus_dma_irq() 83 p->callback(p, EBUS_DMA_EVENT_ERROR, p->client_cookie); in ebus_dma_irq() [all …]
|
D | chmc.c | 74 struct chmc *p; member 241 struct jbusmc_obp_mem_layout *p = _prop; in get_pin_and_dimm_str() local 247 map_val = p->map.dimm_map[dimm_map_index]; in get_pin_and_dimm_str() 249 *dimm_str_p = p->dimm_labels[base_dimm_offset + map_val]; in get_pin_and_dimm_str() 250 *pin_p = p->map.pin_map[cache_line_offset]; in get_pin_and_dimm_str() 252 struct chmc_obp_mem_layout *p = _prop; in get_pin_and_dimm_str() local 257 if (p->symmetric) in get_pin_and_dimm_str() 258 mp = &p->map[0]; in get_pin_and_dimm_str() 260 mp = &p->map[1]; in get_pin_and_dimm_str() 268 *dimm_str_p = p->dimm_labels[base_dimm_offset + map_val]; in get_pin_and_dimm_str() [all …]
|
/arch/ia64/kernel/ |
D | mca_drv.h | 43 #define peidx_head(p) (((p)->info)) argument 44 #define peidx_mid(p) (((p)->id)) argument 45 #define peidx_bottom(p) (((p)->regs)) argument 47 #define peidx_psp(p) (&(peidx_head(p)->proc_state_parameter)) argument 48 #define peidx_field_valid(p) (&(peidx_head(p)->valid)) argument 49 #define peidx_minstate_area(p) (&(peidx_bottom(p)->min_state_area)) argument 51 #define peidx_cache_check_num(p) (peidx_head(p)->valid.num_cache_check) argument 52 #define peidx_tlb_check_num(p) (peidx_head(p)->valid.num_tlb_check) argument 53 #define peidx_bus_check_num(p) (peidx_head(p)->valid.num_bus_check) argument 54 #define peidx_reg_file_check_num(p) (peidx_head(p)->valid.num_reg_file_check) argument [all …]
|
/arch/arc/kernel/ |
D | kprobes.c | 23 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() argument 26 if ((unsigned long)p->addr & 0x01) in arch_prepare_kprobe() 31 p->ainsn.is_short = is_short_instr((unsigned long)p->addr); in arch_prepare_kprobe() 32 p->opcode = *p->addr; in arch_prepare_kprobe() 37 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() argument 39 *p->addr = UNIMP_S_INSTRUCTION; in arch_arm_kprobe() 41 flush_icache_range((unsigned long)p->addr, in arch_arm_kprobe() 42 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() 45 void __kprobes arch_disarm_kprobe(struct kprobe *p) in arch_disarm_kprobe() argument 47 *p->addr = p->opcode; in arch_disarm_kprobe() [all …]
|
/arch/arm64/kvm/hyp/nvhe/ |
D | page_alloc.c | 34 struct hyp_page *p, in __find_buddy_nocheck() argument 37 phys_addr_t addr = hyp_page_to_phys(p); in __find_buddy_nocheck() 53 struct hyp_page *p, in __find_buddy_avail() argument 56 struct hyp_page *buddy = __find_buddy_nocheck(pool, p, order); in __find_buddy_avail() 66 struct hyp_page *p) in __hyp_attach_page() argument 68 unsigned int order = p->order; in __hyp_attach_page() 71 memset(hyp_page_to_virt(p), 0, PAGE_SIZE << p->order); in __hyp_attach_page() 79 p->order = HYP_NO_ORDER; in __hyp_attach_page() 81 buddy = __find_buddy_avail(pool, p, order); in __hyp_attach_page() 88 p = min(p, buddy); in __hyp_attach_page() [all …]
|
/arch/sh/kernel/ |
D | kprobes.c | 40 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() argument 42 kprobe_opcode_t opcode = *(kprobe_opcode_t *) (p->addr); in arch_prepare_kprobe() 47 p->opcode = opcode; in arch_prepare_kprobe() 52 void __kprobes arch_copy_kprobe(struct kprobe *p) in arch_copy_kprobe() argument 54 memcpy(p->ainsn.insn, p->addr, MAX_INSN_SIZE * sizeof(kprobe_opcode_t)); in arch_copy_kprobe() 55 p->opcode = *p->addr; in arch_copy_kprobe() 58 void __kprobes arch_arm_kprobe(struct kprobe *p) in arch_arm_kprobe() argument 60 *p->addr = BREAKPOINT_INSTRUCTION; in arch_arm_kprobe() 61 flush_icache_range((unsigned long)p->addr, in arch_arm_kprobe() 62 (unsigned long)p->addr + sizeof(kprobe_opcode_t)); in arch_arm_kprobe() [all …]
|
/arch/parisc/kernel/ |
D | kprobes.c | 19 int __kprobes arch_prepare_kprobe(struct kprobe *p) in arch_prepare_kprobe() argument 21 if ((unsigned long)p->addr & 3UL) in arch_prepare_kprobe() 24 p->ainsn.insn = get_insn_slot(); in arch_prepare_kprobe() 25 if (!p->ainsn.insn) in arch_prepare_kprobe() 28 memcpy(p->ainsn.insn, p->addr, in arch_prepare_kprobe() 30 p->opcode = *p->addr; in arch_prepare_kprobe() 31 flush_insn_slot(p); in arch_prepare_kprobe() 35 void __kprobes arch_remove_kprobe(struct kprobe *p) in arch_remove_kprobe() argument 37 if (!p->ainsn.insn) in arch_remove_kprobe() 40 free_insn_slot(p->ainsn.insn, 0); in arch_remove_kprobe() [all …]
|
/arch/arm/mach-s3c/include/mach/ |
D | io-s3c24xx.h | 28 #define inb(p) readb(S3C24XX_VA_ISA_BYTE + (p)) argument 29 #define inw(p) readw(S3C24XX_VA_ISA_WORD + (p)) argument 30 #define inl(p) readl(S3C24XX_VA_ISA_WORD + (p)) argument 32 #define outb(v,p) writeb((v), S3C24XX_VA_ISA_BYTE + (p)) argument 33 #define outw(v,p) writew((v), S3C24XX_VA_ISA_WORD + (p)) argument 34 #define outl(v,p) writel((v), S3C24XX_VA_ISA_WORD + (p)) argument 36 #define insb(p,d,l) readsb(S3C24XX_VA_ISA_BYTE + (p),d,l) argument 37 #define insw(p,d,l) readsw(S3C24XX_VA_ISA_WORD + (p),d,l) argument 38 #define insl(p,d,l) readsl(S3C24XX_VA_ISA_WORD + (p),d,l) argument 40 #define outsb(p,d,l) writesb(S3C24XX_VA_ISA_BYTE + (p),d,l) argument [all …]
|
/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 124 static int drc_pmem_bind(struct papr_scm_priv *p) in drc_pmem_bind() argument 140 rc = plpar_hcall(H_SCM_BIND_MEM, ret, p->drc_index, 0, in drc_pmem_bind() 141 p->blocks, BIND_ANY_ADDR, token); in drc_pmem_bind() 151 p->bound_addr = saved; in drc_pmem_bind() 152 dev_dbg(&p->pdev->dev, "bound drc 0x%x to 0x%lx\n", in drc_pmem_bind() 153 p->drc_index, (unsigned long)saved); in drc_pmem_bind() 157 static void drc_pmem_unbind(struct papr_scm_priv *p) in drc_pmem_unbind() argument 163 dev_dbg(&p->pdev->dev, "unbind drc 0x%x\n", p->drc_index); in drc_pmem_unbind() 170 p->drc_index, token); in drc_pmem_unbind() 184 dev_err(&p->pdev->dev, "unbind error: %lld\n", rc); in drc_pmem_unbind() [all …]
|
/arch/c6x/kernel/ |
D | setup.c | 94 struct cpuinfo_c6x *p; in get_cpuinfo() local 97 p = &per_cpu(cpu_data, smp_processor_id()); in get_cpuinfo() 117 p->mmu = "none"; in get_cpuinfo() 118 p->fpu = "none"; in get_cpuinfo() 119 p->cpu_voltage = "unknown"; in get_cpuinfo() 123 p->cpu_name = "C67x"; in get_cpuinfo() 124 p->fpu = "yes"; in get_cpuinfo() 127 p->cpu_name = "C62x"; in get_cpuinfo() 130 p->cpu_name = "C64x"; in get_cpuinfo() 133 p->cpu_name = "C64x"; in get_cpuinfo() [all …]
|
/arch/s390/kernel/ |
D | kprobes.c | 72 static void copy_instruction(struct kprobe *p) in copy_instruction() argument 79 len = insn_length(*p->addr >> 8); in copy_instruction() 80 memcpy(&insn, p->addr, len); in copy_instruction() 81 p->opcode = insn[0]; in copy_instruction() 91 addr = (u64)(unsigned long)p->addr; in copy_instruction() 92 new_addr = (u64)(unsigned long)p->ainsn.insn; in copy_instruction() 96 s390_kernel_write(p->ainsn.insn, &insn, len); in copy_instruction() 105 static int s390_get_insn_slot(struct kprobe *p) in s390_get_insn_slot() argument 112 p->ainsn.insn = NULL; in s390_get_insn_slot() 113 if (is_kernel_addr(p->addr)) in s390_get_insn_slot() [all …]
|
/arch/arm/mach-ixp4xx/include/mach/ |
D | io.h | 54 #define writeb(v, p) __indirect_writeb(v, p) argument 55 #define writew(v, p) __indirect_writew(v, p) argument 56 #define writel(v, p) __indirect_writel(v, p) argument 58 #define writeb_relaxed(v, p) __indirect_writeb(v, p) argument 59 #define writew_relaxed(v, p) __indirect_writew(v, p) argument 60 #define writel_relaxed(v, p) __indirect_writel(v, p) argument 62 #define writesb(p, v, l) __indirect_writesb(p, v, l) argument 63 #define writesw(p, v, l) __indirect_writesw(p, v, l) argument 64 #define writesl(p, v, l) __indirect_writesl(p, v, l) argument 66 #define readb(p) __indirect_readb(p) argument [all …]
|
/arch/csky/kernel/probes/ |
D | ftrace.c | 5 int arch_check_ftrace_location(struct kprobe *p) in arch_check_ftrace_location() argument 7 if (ftrace_location((unsigned long)p->addr)) in arch_check_ftrace_location() 8 p->flags |= KPROBE_FLAG_FTRACE; in arch_check_ftrace_location() 17 struct kprobe *p; in kprobe_ftrace_handler() local 21 p = get_kprobe((kprobe_opcode_t *)ip); in kprobe_ftrace_handler() 22 if (!p) { in kprobe_ftrace_handler() 23 p = get_kprobe((kprobe_opcode_t *)(ip - MCOUNT_INSN_SIZE)); in kprobe_ftrace_handler() 24 if (unlikely(!p) || kprobe_disabled(p)) in kprobe_ftrace_handler() 31 kprobes_inc_nmissed_count(p); in kprobe_ftrace_handler() 38 __this_cpu_write(current_kprobe, p); in kprobe_ftrace_handler() [all …]
|