pc 39 arch/alpha/include/asm/extable.h #define fixup_exception(map_reg, _fixup, pc) \ pc 45 arch/alpha/include/asm/extable.h (pc) + (_fixup)->fixup.bits.nextinsn; \ pc 47 arch/alpha/include/asm/processor.h #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) pc 10 arch/alpha/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 47 arch/alpha/include/uapi/asm/ptrace.h unsigned long pc; pc 402 arch/alpha/kernel/core_lca.c vector, get_irq_regs()->pc, (unsigned int) el.c->code); pc 90 arch/alpha/kernel/irq_alpha.c printk(KERN_CRIT "PC = %016lx PS=%04lx\n", regs->pc, regs->ps); pc 156 arch/alpha/kernel/irq_alpha.c machine, vector, get_irq_regs()->pc, mchk_header->code); pc 209 arch/alpha/kernel/process.c start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) pc 211 arch/alpha/kernel/process.c regs->pc = pc; pc 325 arch/alpha/kernel/process.c dest[31] = pt->pc; pc 384 arch/alpha/kernel/process.c unsigned long pc; pc 397 arch/alpha/kernel/process.c pc = thread_saved_pc(p); pc 398 arch/alpha/kernel/process.c if (in_sched_functions(pc)) { pc 402 arch/alpha/kernel/process.c return pc; pc 100 arch/alpha/kernel/ptrace.c PT_REG( pc) pc 183 arch/alpha/kernel/ptrace.c unsigned long pc; pc 185 arch/alpha/kernel/ptrace.c pc = get_reg(child, REG_PC); pc 186 arch/alpha/kernel/ptrace.c res = read_int(child, pc, (int *) &insn); pc 201 arch/alpha/kernel/ptrace.c task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; pc 204 arch/alpha/kernel/ptrace.c = pc + 4 + displ; pc 211 arch/alpha/kernel/ptrace.c task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; pc 1135 arch/alpha/kernel/setup.c unsigned long count, va, pc; pc 1199 arch/alpha/kernel/setup.c unaligned[0].count, unaligned[0].pc, unaligned[0].va, pc 1200 arch/alpha/kernel/setup.c unaligned[1].count, unaligned[1].pc, unaligned[1].va, pc 153 arch/alpha/kernel/signal.c long i, err = __get_user(regs->pc, &sc->sc_pc); pc 222 arch/alpha/kernel/signal.c send_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *) regs->pc, 0, pc 250 arch/alpha/kernel/signal.c send_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *) regs->pc, 0, pc 279 arch/alpha/kernel/signal.c err |= __put_user(regs->pc, &sc->sc_pc); pc 359 arch/alpha/kernel/signal.c regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 367 arch/alpha/kernel/signal.c current->comm, current->pid, frame, regs->pc, regs->r26); pc 413 arch/alpha/kernel/signal.c regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 421 arch/alpha/kernel/signal.c current->comm, current->pid, frame, regs->pc, regs->r26); pc 460 arch/alpha/kernel/signal.c regs->pc -= 4; pc 506 arch/alpha/kernel/signal.c regs->pc -= 4; pc 511 arch/alpha/kernel/signal.c regs->pc -= 4; pc 532 arch/alpha/kernel/smp.c this_cpu, *pending_ipis, regs->pc)); pc 157 arch/alpha/kernel/sys_jensen.c irq, count, cc-last_cc, get_irq_regs()->pc); pc 124 arch/alpha/kernel/sys_nautilus.c printk("PC %lx RA %lx\n", regs->pc, regs->r26); pc 69 arch/alpha/kernel/traps.c regs->pc, regs->r26, regs->ps, print_tainted()); pc 70 arch/alpha/kernel/traps.c printk("pc is at %pSR\n", (void *)regs->pc); pc 109 arch/alpha/kernel/traps.c dik_show_code(unsigned int *pc) pc 116 arch/alpha/kernel/traps.c if (__get_user(insn, (unsigned int __user *)pc + i)) pc 188 arch/alpha/kernel/traps.c dik_show_code((unsigned int *)regs->pc); pc 203 arch/alpha/kernel/traps.c long (*alpha_fp_emul) (unsigned long pc) pc 208 arch/alpha/kernel/traps.c long alpha_fp_emul (unsigned long pc); pc 222 arch/alpha/kernel/traps.c si_code = alpha_fp_emul(regs->pc - 4); pc 230 arch/alpha/kernel/traps.c send_sig_fault(SIGFPE, si_code, (void __user *) regs->pc, 0, current); pc 241 arch/alpha/kernel/traps.c = (const unsigned int *) regs->pc; pc 252 arch/alpha/kernel/traps.c = (unsigned int *) regs->pc - 1; pc 268 arch/alpha/kernel/traps.c regs->pc -= 4; /* make pc point to former bpt */ pc 271 arch/alpha/kernel/traps.c send_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->pc, 0, pc 276 arch/alpha/kernel/traps.c send_sig_fault(SIGTRAP, TRAP_UNK, (void __user *) regs->pc, 0, pc 338 arch/alpha/kernel/traps.c send_sig_fault(signo, code, (void __user *) regs->pc, regs->r16, pc 354 arch/alpha/kernel/traps.c regs->pc += opDEC_fix; pc 359 arch/alpha/kernel/traps.c si_code = alpha_fp_emul(regs->pc - 4); pc 364 arch/alpha/kernel/traps.c (void __user *) regs->pc, 0, pc 390 arch/alpha/kernel/traps.c send_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)regs->pc, 0, current); pc 405 arch/alpha/kernel/traps.c force_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)regs->pc, 0); pc 424 arch/alpha/kernel/traps.c unsigned long ps, pc, gp, a0, a1, a2; pc 428 arch/alpha/kernel/traps.c unsigned long count, va, pc; pc 441 arch/alpha/kernel/traps.c unsigned long pc = regs->pc - 4; pc 447 arch/alpha/kernel/traps.c unaligned[0].pc = pc; pc 579 arch/alpha/kernel/traps.c pc, va, opcode, reg); pc 585 arch/alpha/kernel/traps.c if ((fixup = search_exception_tables(pc)) != 0) { pc 587 arch/alpha/kernel/traps.c newpc = fixup_exception(una_reg, fixup, pc); pc 590 arch/alpha/kernel/traps.c pc, newpc); pc 592 arch/alpha/kernel/traps.c regs->pc = newpc; pc 605 arch/alpha/kernel/traps.c pc, una_reg(26), regs->ps); pc 627 arch/alpha/kernel/traps.c dik_show_code((unsigned int *)pc); pc 739 arch/alpha/kernel/traps.c regs->pc - 4, va, opcode, reg); pc 756 arch/alpha/kernel/traps.c unaligned[1].pc = regs->pc - 4; pc 951 arch/alpha/kernel/traps.c regs->pc -= 4; /* make pc point to faulting insn */ pc 971 arch/alpha/kernel/traps.c regs->pc -= 4; pc 68 arch/alpha/lib/stacktrace.c seek_prologue(instr * pc) pc 70 arch/alpha/lib/stacktrace.c while (!STK_ALLOC_MATCH(*pc)) pc 71 arch/alpha/lib/stacktrace.c --pc; pc 72 arch/alpha/lib/stacktrace.c while (!BB_END(*(pc - 1))) pc 73 arch/alpha/lib/stacktrace.c --pc; pc 74 arch/alpha/lib/stacktrace.c return pc; pc 60 arch/alpha/math-emu/math.c extern long (*alpha_fp_emul) (unsigned long pc); pc 63 arch/alpha/math-emu/math.c static long (*save_emul) (unsigned long pc); pc 101 arch/alpha/math-emu/math.c alpha_fp_emul (unsigned long pc) pc 112 arch/alpha/math-emu/math.c get_user(insn, (__u32 __user *)pc); pc 335 arch/alpha/math-emu/math.c insn, pc); pc 342 arch/alpha/math-emu/math.c unsigned long trigger_pc = regs->pc - 4; pc 394 arch/alpha/math-emu/math.c regs->pc = trigger_pc + 4; pc 99 arch/alpha/mm/fault.c __get_user(insn, (unsigned int __user *)regs->pc); pc 103 arch/alpha/mm/fault.c regs->pc += 4; pc 197 arch/alpha/mm/fault.c if ((fixup = search_exception_tables(regs->pc)) != 0) { pc 199 arch/alpha/mm/fault.c newpc = fixup_exception(dpf_reg, fixup, regs->pc); pc 200 arch/alpha/mm/fault.c regs->pc = newpc; pc 132 arch/alpha/oprofile/op_model_ev67.c op_add_pm(unsigned long pc, int kern, unsigned long counter, pc 139 arch/alpha/oprofile/op_model_ev67.c oprofile_add_pc(pc, kern, fake_counter); pc 197 arch/alpha/oprofile/op_model_ev67.c oprofile_add_pc(regs->pc, kern, which); pc 199 arch/alpha/oprofile/op_model_ev67.c op_add_pm(regs->pc, kern, which, pc 107 arch/arc/include/asm/disasm.h int disasm_next_pc(unsigned long pc, struct pt_regs *regs, struct callee_regs pc 93 arch/arc/include/asm/processor.h extern void start_thread(struct pt_regs * regs, unsigned long pc, pc 58 arch/arc/include/asm/smp.h void (*cpu_kick)(int cpu, unsigned long pc); pc 500 arch/arc/kernel/disasm.c int __kprobes disasm_next_pc(unsigned long pc, struct pt_regs *regs, pc 507 arch/arc/kernel/disasm.c disasm_instr(pc, &instr, 0, regs, cregs); pc 509 arch/arc/kernel/disasm.c *next_pc = pc + instr.instr_len; pc 267 arch/arc/kernel/process.c void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long usp) pc 270 arch/arc/kernel/process.c regs->ret = pc; pc 137 arch/arc/kernel/smp.c static void arc_default_smp_cpu_kick(int cpu, unsigned long pc) pc 118 arch/arc/kernel/unwind.c unsigned long pc; pc 156 arch/arc/kernel/unwind.c static struct unwind_table *find_table(unsigned long pc) pc 161 arch/arc/kernel/unwind.c if ((pc >= table->core.pc pc 162 arch/arc/kernel/unwind.c && pc < table->core.pc + table->core.range) pc 163 arch/arc/kernel/unwind.c || (pc >= table->init.pc pc 164 arch/arc/kernel/unwind.c && pc < table->init.pc + table->init.range)) pc 193 arch/arc/kernel/unwind.c table->core.pc = (unsigned long)core_start; pc 195 arch/arc/kernel/unwind.c table->init.pc = (unsigned long)init_start; pc 394 arch/arc/kernel/unwind.c module->name, table->core.pc, table->core.range); pc 421 arch/arc/kernel/unwind.c table->init.pc = 0; pc 445 arch/arc/kernel/unwind.c table->init.pc = 0; pc 904 arch/arc/kernel/unwind.c unsigned long pc = UNW_PC(frame) - frame->call_frame; pc 932 arch/arc/kernel/unwind.c table = find_table(pc); pc 971 arch/arc/kernel/unwind.c if (pc < startLoc) pc 982 arch/arc/kernel/unwind.c && pc >= startLoc) pc 1008 arch/arc/kernel/unwind.c if (pc >= endLoc) { pc 1145 arch/arc/kernel/unwind.c if (!processCFI(ptr, end, pc, ptrType, &state) pc 84 arch/arc/plat-eznps/smp.c static void __init eznps_smp_wakeup_cpu(int cpu, unsigned long pc) pc 452 arch/arm/include/asm/assembler.h mov\c pc, \reg pc 457 arch/arm/include/asm/assembler.h mov\c pc, \reg pc 16 arch/arm/include/asm/insn.h __arm_gen_branch(unsigned long pc, unsigned long addr, bool link); pc 19 arch/arm/include/asm/insn.h arm_gen_branch(unsigned long pc, unsigned long addr) pc 21 arch/arm/include/asm/insn.h return __arm_gen_branch(pc, addr, false); pc 25 arch/arm/include/asm/insn.h arm_gen_branch_link(unsigned long pc, unsigned long addr) pc 27 arch/arm/include/asm/insn.h return __arm_gen_branch(pc, addr, true); pc 156 arch/arm/include/asm/kvm_host.h unsigned long pc; pc 27 arch/arm/include/asm/proc-fns.h void (*_data_abort)(unsigned long pc); pc 51 arch/arm/include/asm/processor.h #define start_thread(regs,pc,sp) \ pc 73 arch/arm/include/asm/processor.h if (elf_hwcap & HWCAP_THUMB && pc & 1) \ pc 76 arch/arm/include/asm/processor.h regs->ARM_pc = pc & ~1; /* pc */ \ pc 15 arch/arm/include/asm/stacktrace.h unsigned long pc; pc 24 arch/arm/include/asm/stacktrace.h frame->pc = regs->ARM_pc; pc 38 arch/arm/include/asm/thread_info.h __u32 pc; pc 95 arch/arm/include/asm/thread_info.h ((unsigned long)(task_thread_info(tsk)->cpu_context.pc)) pc 74 arch/arm/kernel/ftrace.c static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr) pc 76 arch/arm/kernel/ftrace.c return arm_gen_branch_link(pc, addr); pc 79 arch/arm/kernel/ftrace.c static int ftrace_modify_code(unsigned long pc, unsigned long old, pc 93 arch/arm/kernel/ftrace.c if (probe_kernel_read(&replaced, (void *)pc, MCOUNT_INSN_SIZE)) pc 100 arch/arm/kernel/ftrace.c if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) pc 103 arch/arm/kernel/ftrace.c flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); pc 110 arch/arm/kernel/ftrace.c unsigned long pc; pc 114 arch/arm/kernel/ftrace.c pc = (unsigned long)&ftrace_call; pc 115 arch/arm/kernel/ftrace.c new = ftrace_call_replace(pc, (unsigned long)func); pc 117 arch/arm/kernel/ftrace.c ret = ftrace_modify_code(pc, 0, new, false); pc 121 arch/arm/kernel/ftrace.c pc = (unsigned long)&ftrace_regs_call; pc 122 arch/arm/kernel/ftrace.c new = ftrace_call_replace(pc, (unsigned long)func); pc 124 arch/arm/kernel/ftrace.c ret = ftrace_modify_code(pc, 0, new, false); pc 209 arch/arm/kernel/ftrace.c unsigned long pc = (unsigned long) callsite; pc 210 arch/arm/kernel/ftrace.c unsigned long branch = arm_gen_branch(pc, caller_fn); pc 215 arch/arm/kernel/ftrace.c return ftrace_modify_code(pc, old, new, true); pc 757 arch/arm/kernel/hw_breakpoint.c static void watchpoint_single_step_handler(unsigned long pc) pc 781 arch/arm/kernel/hw_breakpoint.c if (info->trigger != pc) pc 7 arch/arm/kernel/insn.c __arm_gen_branch_thumb2(unsigned long pc, unsigned long addr, bool link) pc 13 arch/arm/kernel/insn.c offset = (long)addr - (long)(pc + 4); pc 37 arch/arm/kernel/insn.c __arm_gen_branch_arm(unsigned long pc, unsigned long addr, bool link) pc 45 arch/arm/kernel/insn.c offset = (long)addr - (long)(pc + 8); pc 57 arch/arm/kernel/insn.c __arm_gen_branch(unsigned long pc, unsigned long addr, bool link) pc 60 arch/arm/kernel/insn.c return __arm_gen_branch_thumb2(pc, addr, link); pc 62 arch/arm/kernel/insn.c return __arm_gen_branch_arm(pc, addr, link); pc 100 arch/arm/kernel/kgdb.c gdb_regs[_PC] = ti->cpu_context.pc; pc 103 arch/arm/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 105 arch/arm/kernel/kgdb.c regs->ARM_pc = pc; pc 94 arch/arm/kernel/perf_callchain.c perf_callchain_store(entry, fr->pc); pc 256 arch/arm/kernel/process.c thread->cpu_context.pc = (unsigned long)ret_from_fork; pc 309 arch/arm/kernel/process.c frame.pc = thread_saved_pc(p); pc 316 arch/arm/kernel/process.c if (!in_sched_functions(frame.pc)) pc 317 arch/arm/kernel/process.c return frame.pc; pc 85 arch/arm/kernel/ptrace.c REG_OFFSET_NAME(pc), pc 26 arch/arm/kernel/return_address.c data->addr = (void *)frame->pc; pc 46 arch/arm/kernel/return_address.c frame.pc = (unsigned long)return_address; pc 44 arch/arm/kernel/stacktrace.c frame->pc = *(unsigned long *)(fp - 4); pc 77 arch/arm/kernel/stacktrace.c unsigned long addr = frame->pc; pc 91 arch/arm/kernel/stacktrace.c if (!in_entry_text(frame->pc)) pc 124 arch/arm/kernel/stacktrace.c frame.pc = thread_saved_pc(tsk); pc 132 arch/arm/kernel/stacktrace.c frame.pc = (unsigned long)__save_stack_trace; pc 150 arch/arm/kernel/stacktrace.c frame.pc = regs->ARM_pc; pc 55 arch/arm/kernel/time.c } while (in_lock_functions(frame.pc)); pc 57 arch/arm/kernel/time.c return frame.pc; pc 380 arch/arm/kernel/traps.c int is_valid_bugaddr(unsigned long pc) pc 390 arch/arm/kernel/traps.c if (probe_kernel_address((unsigned *)pc, bkpt)) pc 439 arch/arm/kernel/traps.c void __user *pc; pc 441 arch/arm/kernel/traps.c pc = (void __user *)instruction_pointer(regs); pc 446 arch/arm/kernel/traps.c instr = __mem_to_opcode_thumb16(((u16 *)pc)[0]); pc 449 arch/arm/kernel/traps.c inst2 = __mem_to_opcode_thumb16(((u16 *)pc)[1]); pc 454 arch/arm/kernel/traps.c instr = __mem_to_opcode_arm(*(u32 *) pc); pc 456 arch/arm/kernel/traps.c if (get_user(instr, (u16 __user *)pc)) pc 461 arch/arm/kernel/traps.c if (get_user(instr2, (u16 __user *)pc+1)) pc 467 arch/arm/kernel/traps.c if (get_user(instr, (u32 __user *)pc)) pc 479 arch/arm/kernel/traps.c current->comm, task_pid_nr(current), pc); pc 485 arch/arm/kernel/traps.c SIGILL, ILL_ILLOPC, pc, 0, 6); pc 386 arch/arm/kernel/unwind.c frame->pc, frame->lr, frame->sp); pc 388 arch/arm/kernel/unwind.c if (!kernel_text_address(frame->pc)) pc 391 arch/arm/kernel/unwind.c idx = unwind_find_idx(frame->pc); pc 393 arch/arm/kernel/unwind.c pr_warn("unwind: Index not found %08lx\n", frame->pc); pc 447 arch/arm/kernel/unwind.c if (frame->pc == ctrl.vrs[PC]) pc 453 arch/arm/kernel/unwind.c frame->pc = ctrl.vrs[PC]; pc 471 arch/arm/kernel/unwind.c frame.pc = regs->ARM_lr; pc 476 arch/arm/kernel/unwind.c frame.pc = (unsigned long)unwind_backtrace; pc 486 arch/arm/kernel/unwind.c frame.pc = thread_saved_pc(tsk); pc 491 arch/arm/kernel/unwind.c unsigned long where = frame.pc; pc 496 arch/arm/kernel/unwind.c dump_backtrace_entry(where, frame.pc, frame.sp - 4); pc 66 arch/arm/kvm/reset.c unsigned long target_pc = vcpu->arch.reset_state.pc; pc 67 arch/arm/oprofile/common.c oprofile_add_trace(frame->pc); pc 72 arch/arm/probes/kprobes/actions-arm.c unsigned long pc = regs->ARM_pc + 4; pc 79 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? pc pc 101 arch/arm/probes/kprobes/actions-arm.c unsigned long pc = regs->ARM_pc + 4; pc 107 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? pc pc 158 arch/arm/probes/kprobes/actions-arm.c unsigned long pc = regs->ARM_pc + 4; pc 165 arch/arm/probes/kprobes/actions-arm.c register unsigned long rnv asm("r2") = (rn == 15) ? pc pc 167 arch/arm/probes/kprobes/actions-arm.c register unsigned long rmv asm("r3") = (rm == 15) ? pc pc 27 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc; pc 31 arch/arm/probes/kprobes/actions-thumb.c unsigned long rnv = (rn == 15) ? pc : regs->uregs[rn]; pc 40 arch/arm/probes/kprobes/actions-thumb.c regs->ARM_pc = pc + 2 * halfwords; pc 56 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc; pc 64 arch/arm/probes/kprobes/actions-thumb.c regs->ARM_pc = pc + (offset * 2); pc 81 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc; pc 98 arch/arm/probes/kprobes/actions-thumb.c pc &= ~3; pc 102 arch/arm/probes/kprobes/actions-thumb.c regs->ARM_pc = pc + (offset * 2); pc 161 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc & ~3; pc 168 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = (rn == 15) ? pc pc 241 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc; pc 245 arch/arm/probes/kprobes/actions-thumb.c register unsigned long rnv asm("r2") = pc & ~3; pc 309 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc + 2; pc 311 arch/arm/probes/kprobes/actions-thumb.c unsigned long rmv = (rm == 15) ? pc : regs->uregs[rm]; pc 373 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc + 2; pc 374 arch/arm/probes/kprobes/actions-thumb.c regs->ARM_pc = pc + (i >> 3) + (imm5 >> 2); pc 415 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc + 2; pc 418 arch/arm/probes/kprobes/actions-thumb.c regs->ARM_pc = pc + (offset * 2); pc 435 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc + 2; pc 438 arch/arm/probes/kprobes/actions-thumb.c regs->ARM_pc = pc + (offset * 2); pc 484 arch/arm/probes/kprobes/actions-thumb.c unsigned long pc = regs->ARM_pc + 2; pc 492 arch/arm/probes/kprobes/actions-thumb.c rdnv = (rdn == 15) ? pc : regs->uregs[rdn]; pc 493 arch/arm/probes/kprobes/actions-thumb.c rmv = (rm == 15) ? pc : regs->uregs[rm]; pc 577 arch/arm/probes/kprobes/actions-thumb.c register unsigned long pc asm("r8"); pc 585 arch/arm/probes/kprobes/actions-thumb.c : "=r" (pc) pc 591 arch/arm/probes/kprobes/actions-thumb.c bx_write_pc(pc, regs); pc 1305 arch/arm/probes/kprobes/test-core.c static unsigned long next_instruction(unsigned long pc) pc 1308 arch/arm/probes/kprobes/test-core.c if ((pc & 1) && pc 1309 arch/arm/probes/kprobes/test-core.c !is_wide_instruction(__mem_to_opcode_thumb16(*(u16 *)(pc - 1)))) pc 1310 arch/arm/probes/kprobes/test-core.c return pc + 2; pc 1313 arch/arm/probes/kprobes/test-core.c return pc + 4; pc 365 arch/arm64/include/asm/insn.h u32 aarch64_insn_gen_branch_imm(unsigned long pc, unsigned long addr, pc 367 arch/arm64/include/asm/insn.h u32 aarch64_insn_gen_comp_branch_imm(unsigned long pc, unsigned long addr, pc 371 arch/arm64/include/asm/insn.h u32 aarch64_insn_gen_cond_branch_imm(unsigned long pc, unsigned long addr, pc 404 arch/arm64/include/asm/insn.h u32 aarch64_insn_gen_adr(unsigned long pc, unsigned long addr, pc 112 arch/arm64/include/asm/kvm_emulate.h return (unsigned long *)&vcpu_gp_regs(vcpu)->regs.pc; pc 238 arch/arm64/include/asm/kvm_host.h unsigned long pc; pc 62 arch/arm64/include/asm/module.h struct plt_entry get_plt_entry(u64 dst, void *pc); pc 220 arch/arm64/include/asm/perf_event.h (regs)->pc = (__ip); \ pc 15 arch/arm64/include/asm/preempt.h static inline void preempt_count_set(u64 pc) pc 18 arch/arm64/include/asm/preempt.h WRITE_ONCE(current_thread_info()->preempt.count, pc); pc 46 arch/arm64/include/asm/preempt.h u32 pc = READ_ONCE(current_thread_info()->preempt.count); pc 47 arch/arm64/include/asm/preempt.h pc += val; pc 48 arch/arm64/include/asm/preempt.h WRITE_ONCE(current_thread_info()->preempt.count, pc); pc 53 arch/arm64/include/asm/preempt.h u32 pc = READ_ONCE(current_thread_info()->preempt.count); pc 54 arch/arm64/include/asm/preempt.h pc -= val; pc 55 arch/arm64/include/asm/preempt.h WRITE_ONCE(current_thread_info()->preempt.count, pc); pc 61 arch/arm64/include/asm/preempt.h u64 pc = READ_ONCE(ti->preempt_count); pc 64 arch/arm64/include/asm/preempt.h WRITE_ONCE(ti->preempt.count, --pc); pc 73 arch/arm64/include/asm/preempt.h return !pc || !READ_ONCE(ti->preempt_count); pc 78 arch/arm64/include/asm/preempt.h u64 pc = READ_ONCE(current_thread_info()->preempt_count); pc 79 arch/arm64/include/asm/preempt.h return pc == preempt_offset; pc 122 arch/arm64/include/asm/processor.h unsigned long pc; pc 185 arch/arm64/include/asm/processor.h static inline void start_thread_common(struct pt_regs *regs, unsigned long pc) pc 189 arch/arm64/include/asm/processor.h regs->pc = pc; pc 205 arch/arm64/include/asm/processor.h static inline void start_thread(struct pt_regs *regs, unsigned long pc, pc 208 arch/arm64/include/asm/processor.h start_thread_common(regs, pc); pc 218 arch/arm64/include/asm/processor.h static inline void compat_start_thread(struct pt_regs *regs, unsigned long pc, pc 221 arch/arm64/include/asm/processor.h start_thread_common(regs, pc); pc 223 arch/arm64/include/asm/processor.h if (pc & 1) pc 257 arch/arm64/include/asm/processor.h #define KSTK_EIP(tsk) ((unsigned long)task_pt_regs(tsk)->pc) pc 166 arch/arm64/include/asm/ptrace.h u64 pc; pc 261 arch/arm64/include/asm/ptrace.h case offsetof(struct pt_regs, pc) >> 3: pc 262 arch/arm64/include/asm/ptrace.h val = regs->pc; pc 338 arch/arm64/include/asm/ptrace.h return regs->pc; pc 343 arch/arm64/include/asm/ptrace.h regs->pc = val; pc 24 arch/arm64/include/asm/sdei.h unsigned long pc, unsigned long pstate); pc 29 arch/arm64/include/asm/sdei.h unsigned long pc, pc 55 arch/arm64/include/asm/stacktrace.h unsigned long pc; pc 163 arch/arm64/include/asm/stacktrace.h unsigned long fp, unsigned long pc) pc 166 arch/arm64/include/asm/stacktrace.h frame->pc = pc; pc 47 arch/arm64/include/asm/thread_info.h ((unsigned long)(tsk->thread.cpu_context.pc)) pc 78 arch/arm64/include/uapi/asm/ptrace.h __u64 pc; pc 33 arch/arm64/include/uapi/asm/sigcontext.h __u64 pc; pc 44 arch/arm64/kernel/alternative.c static bool branch_insn_requires_update(struct alt_instr *alt, unsigned long pc) pc 48 arch/arm64/kernel/alternative.c if (kernel_text_address(pc)) pc 52 arch/arm64/kernel/alternative.c if (pc >= replptr && pc <= (replptr + alt->alt_len)) pc 377 arch/arm64/kernel/armv8_deprecated.c perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, regs->pc); pc 421 arch/arm64/kernel/armv8_deprecated.c trace_instruction_emulation("swpb", regs->pc); pc 423 arch/arm64/kernel/armv8_deprecated.c trace_instruction_emulation("swp", regs->pc); pc 426 arch/arm64/kernel/armv8_deprecated.c current->comm, (unsigned long)current->pid, regs->pc); pc 462 arch/arm64/kernel/armv8_deprecated.c perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, regs->pc); pc 486 arch/arm64/kernel/armv8_deprecated.c "mcr p15, 0, Rt, c7, c10, 5 ; dmb", regs->pc); pc 490 arch/arm64/kernel/armv8_deprecated.c "mcr p15, 0, Rt, c7, c10, 4 ; dsb", regs->pc); pc 501 arch/arm64/kernel/armv8_deprecated.c "mcr p15, 0, Rt, c7, c5, 4 ; isb", regs->pc); pc 507 arch/arm64/kernel/armv8_deprecated.c current->comm, (unsigned long)current->pid, regs->pc); pc 563 arch/arm64/kernel/armv8_deprecated.c perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, regs->pc); pc 573 arch/arm64/kernel/armv8_deprecated.c trace_instruction_emulation(insn, regs->pc); pc 575 arch/arm64/kernel/armv8_deprecated.c current->comm, (unsigned long)current->pid, regs->pc); pc 62 arch/arm64/kernel/asm-offsets.c DEFINE(S_PC, offsetof(struct pt_regs, pc)); pc 345 arch/arm64/kernel/debug-monitors.c void __user *pc = (void __user *)instruction_pointer(regs); pc 353 arch/arm64/kernel/debug-monitors.c get_user(instr, (__le16 __user *)pc); pc 357 arch/arm64/kernel/debug-monitors.c get_user(instr, (__le16 __user *)(pc + 2)); pc 366 arch/arm64/kernel/debug-monitors.c get_user(instr, (__le32 __user *)pc); pc 929 arch/arm64/kernel/fpsimd.c force_signal_inject(SIGILL, ILL_ILLOPC, regs->pc); pc 24 arch/arm64/kernel/ftrace.c static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, pc 38 arch/arm64/kernel/ftrace.c if (aarch64_insn_read((void *)pc, &replaced)) pc 44 arch/arm64/kernel/ftrace.c if (aarch64_insn_patch_text_nosync((void *)pc, new)) pc 55 arch/arm64/kernel/ftrace.c unsigned long pc; pc 58 arch/arm64/kernel/ftrace.c pc = (unsigned long)&ftrace_call; pc 59 arch/arm64/kernel/ftrace.c new = aarch64_insn_gen_branch_imm(pc, (unsigned long)func, pc 62 arch/arm64/kernel/ftrace.c return ftrace_modify_code(pc, 0, new, false); pc 70 arch/arm64/kernel/ftrace.c unsigned long pc = rec->ip; pc 72 arch/arm64/kernel/ftrace.c long offset = (long)pc - (long)addr; pc 90 arch/arm64/kernel/ftrace.c mod = __module_text_address(pc); pc 142 arch/arm64/kernel/ftrace.c new = aarch64_insn_gen_branch_imm(pc, addr, AARCH64_INSN_BRANCH_LINK); pc 144 arch/arm64/kernel/ftrace.c return ftrace_modify_code(pc, old, new, true); pc 153 arch/arm64/kernel/ftrace.c unsigned long pc = rec->ip; pc 156 arch/arm64/kernel/ftrace.c long offset = (long)pc - (long)addr; pc 169 arch/arm64/kernel/ftrace.c mod = __module_text_address(pc); pc 183 arch/arm64/kernel/ftrace.c if (aarch64_insn_read((void *)pc, &replaced)) pc 187 arch/arm64/kernel/ftrace.c !within_module(pc + aarch64_get_branch_offset(replaced), pc 196 arch/arm64/kernel/ftrace.c old = aarch64_insn_gen_branch_imm(pc, addr, pc 202 arch/arm64/kernel/ftrace.c return ftrace_modify_code(pc, old, new, validate); pc 253 arch/arm64/kernel/ftrace.c unsigned long pc = (unsigned long)&ftrace_graph_call; pc 256 arch/arm64/kernel/ftrace.c branch = aarch64_insn_gen_branch_imm(pc, pc 262 arch/arm64/kernel/ftrace.c return ftrace_modify_code(pc, nop, branch, true); pc 264 arch/arm64/kernel/ftrace.c return ftrace_modify_code(pc, branch, nop, true); pc 451 arch/arm64/kernel/insn.c static inline long branch_imm_common(unsigned long pc, unsigned long addr, pc 456 arch/arm64/kernel/insn.c if ((pc & 0x3) || (addr & 0x3)) { pc 461 arch/arm64/kernel/insn.c offset = ((long)addr - (long)pc); pc 471 arch/arm64/kernel/insn.c u32 __kprobes aarch64_insn_gen_branch_imm(unsigned long pc, unsigned long addr, pc 482 arch/arm64/kernel/insn.c offset = branch_imm_common(pc, addr, SZ_128M); pc 502 arch/arm64/kernel/insn.c u32 aarch64_insn_gen_comp_branch_imm(unsigned long pc, unsigned long addr, pc 510 arch/arm64/kernel/insn.c offset = branch_imm_common(pc, addr, SZ_1M); pc 543 arch/arm64/kernel/insn.c u32 aarch64_insn_gen_cond_branch_imm(unsigned long pc, unsigned long addr, pc 549 arch/arm64/kernel/insn.c offset = branch_imm_common(pc, addr, SZ_1M); pc 1271 arch/arm64/kernel/insn.c u32 aarch64_insn_gen_adr(unsigned long pc, unsigned long addr, pc 1281 arch/arm64/kernel/insn.c offset = addr - pc; pc 1285 arch/arm64/kernel/insn.c offset = (addr - ALIGN_DOWN(pc, SZ_4K)) >> 12; pc 55 arch/arm64/kernel/kgdb.c { "pc", 8, offsetof(struct pt_regs, pc)}, pc 148 arch/arm64/kernel/kgdb.c gdb_regs[32] = cpu_context->pc; pc 151 arch/arm64/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 153 arch/arm64/kernel/kgdb.c regs->pc = pc; pc 168 arch/arm64/kernel/kgdb.c kgdb_arch_set_pc(regs, regs->pc + 4); pc 11 arch/arm64/kernel/module-plts.c static struct plt_entry __get_adrp_add_pair(u64 dst, u64 pc, pc 16 arch/arm64/kernel/module-plts.c adrp = aarch64_insn_gen_adr(pc, dst, reg, AARCH64_INSN_ADR_TYPE_ADRP); pc 24 arch/arm64/kernel/module-plts.c struct plt_entry get_plt_entry(u64 dst, void *pc) pc 33 arch/arm64/kernel/module-plts.c plt = __get_adrp_add_pair(dst, (u64)pc, AARCH64_INSN_REG_16); pc 110 arch/arm64/kernel/perf_callchain.c perf_callchain_store(entry, regs->pc); pc 143 arch/arm64/kernel/perf_callchain.c perf_callchain_store(entry, frame->pc); pc 157 arch/arm64/kernel/perf_callchain.c start_backtrace(&frame, regs->regs[29], regs->pc); pc 33 arch/arm64/kernel/perf_regs.c return regs->pc; pc 264 arch/arm64/kernel/process.c printk("pc : %pS\n", (void *)regs->pc); pc 267 arch/arm64/kernel/process.c printk("pc : %016llx\n", regs->pc); pc 418 arch/arm64/kernel/process.c p->thread.cpu_context.pc = (unsigned long)ret_from_fork; pc 549 arch/arm64/kernel/process.c if (!in_sched_functions(frame.pc)) { pc 550 arch/arm64/kernel/process.c ret = frame.pc; pc 91 arch/arm64/kernel/ptrace.c REG_OFFSET_NAME(pc), pc 1264 arch/arm64/kernel/ptrace.c reg = task_pt_regs(target)->pc; pc 1333 arch/arm64/kernel/ptrace.c newregs.pc = reg; pc 26 arch/arm64/kernel/return_address.c data->addr = (void *)frame->pc; pc 497 arch/arm64/kernel/signal.c __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); pc 619 arch/arm64/kernel/signal.c __put_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); pc 731 arch/arm64/kernel/signal.c regs->pc = (unsigned long)ka->sa.sa_handler; pc 839 arch/arm64/kernel/signal.c continue_addr = regs->pc; pc 858 arch/arm64/kernel/signal.c regs->pc = restart_addr; pc 873 arch/arm64/kernel/signal.c if (regs->pc == restart_addr && pc 879 arch/arm64/kernel/signal.c regs->pc = continue_addr; pc 890 arch/arm64/kernel/signal.c if (syscall && regs->pc == restart_addr) { pc 213 arch/arm64/kernel/signal32.c __get_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); pc 382 arch/arm64/kernel/signal32.c regs->pc = handler; pc 408 arch/arm64/kernel/signal32.c __put_user_error(regs->pc, &sf->uc.uc_mcontext.arm_pc, err); pc 83 arch/arm64/kernel/stacktrace.c frame->pc = READ_ONCE_NOCHECK(*(unsigned long *)(fp + 8)); pc 89 arch/arm64/kernel/stacktrace.c (frame->pc == (unsigned long)return_to_handler)) { pc 100 arch/arm64/kernel/stacktrace.c frame->pc = ret_stack->ret; pc 110 arch/arm64/kernel/stacktrace.c if (!frame->fp && !frame->pc) pc 143 arch/arm64/kernel/stacktrace.c unsigned long addr = frame->pc; pc 166 arch/arm64/kernel/stacktrace.c start_backtrace(&frame, regs->regs[29], regs->pc); pc 38 arch/arm64/kernel/time.c if (!in_lock_functions(regs->pc)) pc 39 arch/arm64/kernel/time.c return regs->pc; pc 41 arch/arm64/kernel/time.c start_backtrace(&frame, regs->regs[29], regs->pc); pc 47 arch/arm64/kernel/time.c } while (in_lock_functions(frame.pc)); pc 49 arch/arm64/kernel/time.c return frame.pc; pc 121 arch/arm64/kernel/traps.c dump_backtrace_entry(frame.pc); pc 131 arch/arm64/kernel/traps.c dump_backtrace_entry(regs->pc); pc 227 arch/arm64/kernel/traps.c print_vma_addr(KERN_CONT " in ", regs->pc); pc 273 arch/arm64/kernel/traps.c regs->pc += size; pc 310 arch/arm64/kernel/traps.c void __user *pc = (void __user *)instruction_pointer(regs); pc 314 arch/arm64/kernel/traps.c if (probe_kernel_address((__force __le32 *)pc, instr_le)) pc 320 arch/arm64/kernel/traps.c if (get_user(instr_le, (__le16 __user *)pc)) pc 326 arch/arm64/kernel/traps.c if (get_user(instr_le, (__le16 __user *)(pc + 2))) pc 334 arch/arm64/kernel/traps.c if (get_user(instr_le, (__le32 __user *)pc)) pc 406 arch/arm64/kernel/traps.c force_signal_inject(SIGILL, ILL_ILLOPC, regs->pc); pc 458 arch/arm64/kernel/traps.c force_signal_inject(SIGILL, ILL_ILLOPC, regs->pc); pc 511 arch/arm64/kernel/traps.c force_signal_inject(SIGILL, ILL_ILLOPC, regs->pc); pc 807 arch/arm64/kernel/traps.c void __user *pc = (void __user *)instruction_pointer(regs); pc 812 arch/arm64/kernel/traps.c arm64_force_sig_fault(SIGILL, ILL_ILLOPC, pc, pc 958 arch/arm64/kernel/traps.c switch (report_bug(regs->pc, regs)) { pc 994 arch/arm64/kernel/traps.c u64 pc = regs->pc; pc 996 arch/arm64/kernel/traps.c kasan_report(addr, size, write, pc); pc 70 arch/arm64/kvm/guest.c case KVM_REG_ARM_CORE_REG(regs.pc): pc 71 arch/arm64/kvm/hyp/sysreg-sr.c ctxt->gp_regs.regs.pc = read_sysreg_el2(SYS_ELR); pc 163 arch/arm64/kvm/hyp/sysreg-sr.c write_sysreg_el2(ctxt->gp_regs.regs.pc, SYS_ELR); pc 30 arch/arm64/kvm/regmap.c REG_OFFSET(pc) pc 45 arch/arm64/kvm/regmap.c REG_OFFSET(pc) pc 57 arch/arm64/kvm/regmap.c REG_OFFSET(pc) pc 69 arch/arm64/kvm/regmap.c REG_OFFSET(pc) pc 81 arch/arm64/kvm/regmap.c REG_OFFSET(pc) pc 93 arch/arm64/kvm/regmap.c REG_OFFSET(pc) pc 312 arch/arm64/kvm/reset.c unsigned long target_pc = vcpu->arch.reset_state.pc; pc 15 arch/arm64/mm/extable.c regs->pc = (unsigned long)&fixup->fixup + fixup->fixup; pc 491 arch/arm64/mm/fault.c if (!search_exception_tables(regs->pc)) pc 504 arch/arm64/mm/fault.c if (!user_mode(regs) && !search_exception_tables(regs->pc)) pc 515 arch/arm64/mm/fault.c if (!user_mode(regs) && !search_exception_tables(regs->pc)) { pc 907 arch/arm64/mm/fault.c unsigned long pc = instruction_pointer(regs); pc 914 arch/arm64/mm/fault.c if (user_mode(regs) && !is_ttbr0_addr(pc)) pc 919 arch/arm64/mm/fault.c inf->sig, inf->code, (void __user *)pc, esr); pc 49 arch/c6x/include/asm/processor.h unsigned long pc; /* kernel pc */ pc 73 arch/c6x/include/asm/processor.h extern void start_thread(struct pt_regs *regs, unsigned int pc, pc 98 arch/c6x/include/asm/processor.h #define KSTK_EIP(task) (task_pt_regs(task)->pc) pc 22 arch/c6x/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 123 arch/c6x/include/uapi/asm/ptrace.h REG_PAIR(pc, csr); pc 90 arch/c6x/kernel/asm-offsets.c OFFSET(THREAD_PC, thread_struct, pc); pc 86 arch/c6x/kernel/process.c void start_thread(struct pt_regs *regs, unsigned int pc, unsigned long usp) pc 98 arch/c6x/kernel/process.c regs->pc = pc; pc 119 arch/c6x/kernel/process.c p->thread.pc = (unsigned long) ret_from_kernel_thread; pc 127 arch/c6x/kernel/process.c p->thread.pc = (unsigned long) ret_from_fork; pc 133 arch/c6x/kernel/process.c p->thread.wchan = p->thread.pc; pc 55 arch/c6x/kernel/signal.c COPY(csr); COPY(pc); pc 120 arch/c6x/kernel/signal.c COPY(csr); COPY(pc); pc 192 arch/c6x/kernel/signal.c regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 227 arch/c6x/kernel/signal.c regs->pc -= 4; pc 258 arch/c6x/kernel/signal.c regs->pc -= 4; pc 292 arch/c6x/kernel/signal.c regs->pc -= 4; pc 298 arch/c6x/kernel/signal.c regs->pc -= 4; pc 32 arch/c6x/kernel/traps.c pr_err("PC: %08lx SP: %08lx\n", regs->pc, regs->sp); pc 247 arch/c6x/kernel/traps.c except_info->kernel_str, regs->pc, pc 266 arch/c6x/kernel/traps.c pr_err("IEXCEPT: PC[0x%lx]\n", regs->pc); pc 272 arch/c6x/kernel/traps.c if (*(unsigned int *)regs->pc == BKPT_OPCODE) { pc 296 arch/c6x/kernel/traps.c pr_err("EEXCEPT: PC[0x%lx]\n", regs->pc); pc 283 arch/csky/abiv1/alignment.c regs->pc += 2; pc 7 arch/csky/abiv1/inc/abi/elf.h pr_reg[0] = regs->pc; \ pc 63 arch/csky/abiv2/fpu.c regs->pc += 4; pc 85 arch/csky/abiv2/fpu.c regs->pc += 4; pc 122 arch/csky/abiv2/fpu.c force_sig_fault(sig, code, (void __user *)regs->pc); pc 8 arch/csky/abiv2/inc/abi/elf.h pr_reg[0] = regs->pc; \ pc 10 arch/csky/include/asm/perf_event.h (regs)->pc = (__ip); \ pc 66 arch/csky/include/asm/processor.h (_regs)->pc = (_pc); \ pc 95 arch/csky/include/asm/processor.h #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) pc 22 arch/csky/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 12 arch/csky/include/uapi/asm/ptrace.h unsigned long pc; pc 35 arch/csky/kernel/asm-offsets.c DEFINE(PT_PC, offsetof(struct pt_regs, pc)); pc 40 arch/csky/kernel/ftrace.c static inline void make_jbsr(unsigned long callee, unsigned long pc, pc 47 arch/csky/kernel/ftrace.c offset = (long) callee - (long) pc; pc 96 arch/csky/kernel/perf_callchain.c perf_callchain_store(entry, regs->pc); pc 261 arch/csky/kernel/ptrace.c pr_info("PC: 0x%08lx (%pS)\n", (long)fp->pc, (void *)fp->pc); pc 296 arch/csky/kernel/ptrace.c tp = ((unsigned char *) fp->pc) - 0x20; pc 164 arch/csky/kernel/signal.c regs->pc = (unsigned long)ksig->ka.sa.sa_handler; pc 198 arch/csky/kernel/signal.c regs->pc -= TRAP0_SIZE; pc 230 arch/csky/kernel/signal.c regs->pc -= TRAP0_SIZE; pc 235 arch/csky/kernel/signal.c regs->pc -= TRAP0_SIZE; pc 96 arch/csky/kernel/traps.c if ((regs->pc == prev_pc) && prev_pc != 0) { pc 99 arch/csky/kernel/traps.c prev_pc = regs->pc; pc 109 arch/csky/kernel/traps.c force_sig_fault(SIGSEGV, 0, (void __user *)regs->pc); pc 33 arch/csky/mm/fault.c regs->pc = fixup->nextinsn; pc 200 arch/csky/mm/fault.c "address 0x%08lx, pc: 0x%08lx\n", address, regs->pc); pc 82 arch/h8300/include/asm/processor.h (_regs)->pc = (_pc); \ pc 91 arch/h8300/include/asm/processor.h (_regs)->pc = (_pc); \ pc 115 arch/h8300/include/asm/processor.h eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ pc 24 arch/h8300/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 43 arch/h8300/include/asm/user.h long pc; pc 39 arch/h8300/include/uapi/asm/ptrace.h unsigned long pc; pc 57 arch/h8300/kernel/asm-offsets.c DEFINE(LRET, offsetof(struct pt_regs, pc) - sizeof(long)); pc 26 arch/h8300/kernel/kgdb.c { "pc", GDB_SIZEOF_REG, offsetof(struct pt_regs, pc) }, pc 81 arch/h8300/kernel/kgdb.c regs->pc &= 0x00ffffff; pc 84 arch/h8300/kernel/kgdb.c if (*(u16 *)(regs->pc) == *(u16 *)&arch_kgdb_ops.gdb_bpt_instr) pc 85 arch/h8300/kernel/kgdb.c regs->pc += BREAK_INSTR_SIZE; pc 86 arch/h8300/kernel/kgdb.c regs->pc |= regs->ccr << 24; pc 96 arch/h8300/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 98 arch/h8300/kernel/kgdb.c regs->pc = pc; pc 114 arch/h8300/kernel/kgdb.c regs->pc = addr; pc 93 arch/h8300/kernel/process.c regs->pc, regs->ccr); pc 135 arch/h8300/kernel/process.c unsigned long fp, pc; pc 148 arch/h8300/kernel/process.c pc = ((unsigned long *)fp)[1]; pc 149 arch/h8300/kernel/process.c if (!in_sched_functions(pc)) pc 150 arch/h8300/kernel/process.c return pc; pc 32 arch/h8300/kernel/ptrace.c PT_REG(orig_er0), PT_REG(ccr), PT_REG(pc), pc 164 arch/h8300/kernel/ptrace_h.c char *fetch_p, unsigned short *pc, pc 173 arch/h8300/kernel/ptrace_h.c return (unsigned short *)pc + op->length; pc 175 arch/h8300/kernel/ptrace_h.c addr = *(unsigned long *)pc; pc 178 arch/h8300/kernel/ptrace_h.c addr = *pc & 0xff; pc 191 arch/h8300/kernel/ptrace_h.c regno = (*pc >> 4) & 0x07; pc 199 arch/h8300/kernel/ptrace_h.c pc = (unsigned short *)((unsigned long)pc + pc 201 arch/h8300/kernel/ptrace_h.c return pc+1; /* skip myself */ pc 204 arch/h8300/kernel/ptrace_h.c pc = (unsigned short *)((unsigned long)pc + pc 205 arch/h8300/kernel/ptrace_h.c ((signed short)(*(pc+1)))); pc 206 arch/h8300/kernel/ptrace_h.c return pc+2; /* skip myself */ pc 212 arch/h8300/kernel/ptrace_h.c static unsigned short *nextpc(struct task_struct *child, unsigned short *pc) pc 221 arch/h8300/kernel/ptrace_h.c fetch_p = (unsigned char *)pc; pc 230 arch/h8300/kernel/ptrace_h.c return decode(child, op, fetch_p, pc, inst); pc 91 arch/h8300/kernel/signal.c COPY(pc); pc 146 arch/h8300/kernel/signal.c err |= __put_user(regs->pc, &sc->sc_pc); pc 201 arch/h8300/kernel/signal.c regs->pc = (unsigned long)ksig->ka.sa.sa_handler; pc 222 arch/h8300/kernel/signal.c regs->pc -= 2; pc 235 arch/h8300/kernel/signal.c regs->pc -= 2; pc 78 arch/h8300/kernel/traps.c tp = ((unsigned char *) fp->pc) - 0x20; pc 108 arch/h8300/kernel/traps.c report_bug(fp->pc, fp); pc 41 arch/h8300/mm/fault.c regs->sr, regs->pc, address, error_code); pc 145 arch/hexagon/include/asm/elf.h DEST.pc = pt_elr(REGS); \ pc 56 arch/hexagon/include/uapi/asm/user.h unsigned long pc; pc 100 arch/hexagon/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 102 arch/hexagon/kernel/kgdb.c instruction_pointer(regs) = pc; pc 28 arch/hexagon/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) pc 34 arch/hexagon/kernel/process.c pt_set_elr(regs, pc); pc 135 arch/hexagon/kernel/process.c unsigned long fp, pc; pc 147 arch/hexagon/kernel/process.c pc = ((unsigned long *)fp)[1]; pc 148 arch/hexagon/kernel/process.c if (!in_sched_functions(pc)) pc 149 arch/hexagon/kernel/process.c return pc; pc 76 arch/hexagon/kernel/ptrace.c ONEXT(&pt_elr(regs), pc); pc 125 arch/hexagon/kernel/ptrace.c INEXT(&pt_elr(regs), pc); pc 58 arch/hexagon/kernel/signal.c tmp = pt_elr(regs); err |= __put_user(tmp, &sc->sc_regs.pc); pc 88 arch/hexagon/kernel/signal.c err |= __get_user(tmp, &sc->sc_regs.pc); pt_set_elr(regs, tmp); pc 446 arch/ia64/include/asm/pal.h pc : 1, /* Perf cntrs valid */ pc 694 arch/ia64/include/asm/pal.h #define pmci_proc_perf_counters_valid pme_processor.pc pc 35 arch/ia64/oprofile/backtrace.c static __inline__ int in_ivt_code(unsigned long pc) pc 38 arch/ia64/oprofile/backtrace.c return (pc >= (u_long)ia64_ivt && pc < (u_long)ia64_ivt+32768); pc 75 arch/ia64/oprofile/backtrace.c u_long pc, sp; pc 94 arch/ia64/oprofile/backtrace.c unw_get_ip(&bt->frame, &pc); pc 95 arch/ia64/oprofile/backtrace.c oprofile_add_trace(pc); pc 127 arch/m68k/fpsp040/fpsp.h .set CU_SAVEPC,LV-92 | micro-pc for CU (1 byte) pc 94 arch/m68k/include/asm/elf.h pr_reg[18] = regs->pc; \ pc 111 arch/m68k/include/asm/processor.h static inline void start_thread(struct pt_regs * regs, unsigned long pc, pc 114 arch/m68k/include/asm/processor.h regs->pc = pc; pc 135 arch/m68k/include/asm/processor.h eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ pc 15 arch/m68k/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 217 arch/m68k/include/asm/traps.h unsigned long pc; /* pc of faulted instr */ pc 48 arch/m68k/include/asm/user.h long pc; pc 46 arch/m68k/include/uapi/asm/ptrace.h unsigned long pc; pc 49 arch/m68k/include/uapi/asm/ptrace.h unsigned long pc; pc 56 arch/m68k/kernel/asm-offsets.c DEFINE(PT_OFF_PC, offsetof(struct pt_regs, pc)); pc 63 arch/m68k/kernel/asm-offsets.c DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4); pc 81 arch/m68k/kernel/process.c regs->format, regs->vector, regs->pc, regs->sr, pc 249 arch/m68k/kernel/process.c unsigned long fp, pc; pc 261 arch/m68k/kernel/process.c pc = ((unsigned long *)fp)[1]; pc 262 arch/m68k/kernel/process.c if (!in_sched_functions(pc)) pc 263 arch/m68k/kernel/process.c return pc; pc 69 arch/m68k/kernel/ptrace.c [18] = PT_REG(pc), pc 97 arch/m68k/kernel/signal.c fixup = search_exception_tables(regs->pc); pc 106 arch/m68k/kernel/signal.c tregs->pc = fixup->fixup; pc 715 arch/m68k/kernel/signal.c regs->pc = context.sc_pc; pc 764 arch/m68k/kernel/signal.c err |= __get_user(regs->pc, &gregs[16]); pc 842 arch/m68k/kernel/signal.c sc->sc_pc = regs->pc; pc 871 arch/m68k/kernel/signal.c err |= __put_user(regs->pc, &gregs[16]); pc 937 arch/m68k/kernel/signal.c regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 957 arch/m68k/kernel/signal.c tregs->pc = regs->pc; pc 1021 arch/m68k/kernel/signal.c regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 1041 arch/m68k/kernel/signal.c tregs->pc = regs->pc; pc 1060 arch/m68k/kernel/signal.c regs->pc -= 2; pc 1075 arch/m68k/kernel/signal.c regs->pc -= 2; pc 135 arch/m68k/kernel/traps.c unsigned long fslw = fp->un.fmt4.pc; /* is really FSLW for access error */ pc 173 arch/m68k/kernel/traps.c pr_err("pc=%#lx, fa=%#lx\n", fp->ptregs.pc, pc 386 arch/m68k/kernel/traps.c fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 pc 388 arch/m68k/kernel/traps.c fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); pc 393 arch/m68k/kernel/traps.c space_names[ssw & DFC], fp->ptregs.pc); pc 417 arch/m68k/kernel/traps.c fp->ptregs.pc); pc 420 arch/m68k/kernel/traps.c if((fp->ptregs.pc >= (unsigned long)&_sun3_map_test_start) && pc 421 arch/m68k/kernel/traps.c (fp->ptregs.pc <= (unsigned long)&_sun3_map_test_end)) { pc 429 arch/m68k/kernel/traps.c space_names[ssw & DFC], fp->ptregs.pc); pc 464 arch/m68k/kernel/traps.c fp->ptregs.pc); pc 485 arch/m68k/kernel/traps.c addr = fp->ptregs.pc + 4; pc 517 arch/m68k/kernel/traps.c fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 pc 519 arch/m68k/kernel/traps.c fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); pc 524 arch/m68k/kernel/traps.c space_names[ssw & DFC], fp->ptregs.pc); pc 557 arch/m68k/kernel/traps.c space_names[ssw & DFC], fp->ptregs.pc); pc 572 arch/m68k/kernel/traps.c fp->ptregs.pc); pc 583 arch/m68k/kernel/traps.c fp->ptregs.pc, ssw); pc 620 arch/m68k/kernel/traps.c pr_err("Instruction fault at %#010lx\n", fp->ptregs.pc); pc 630 arch/m68k/kernel/traps.c addr = fp->ptregs.pc + 4; pc 660 arch/m68k/kernel/traps.c addr, fp->ptregs.pc); pc 719 arch/m68k/kernel/traps.c addr = fp->ptregs.pc; pc 723 arch/m68k/kernel/traps.c addr = fp->ptregs.pc + sizeof(long); pc 855 arch/m68k/kernel/traps.c pr_info("PC: [<%08lx>] %pS\n", regs->pc, (void *)regs->pc); pc 878 arch/m68k/kernel/traps.c fp->un.fmt4.effaddr, fp->un.fmt4.pc); pc 881 arch/m68k/kernel/traps.c fp->un.fmt4.effaddr, fp->un.fmt4.pc); pc 923 arch/m68k/kernel/traps.c cp = (u16 *)regs->pc; pc 993 arch/m68k/kernel/traps.c fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2); pc 997 arch/m68k/kernel/traps.c fp->ptregs.pc + 4 : fp->un.fmtb.baddr); pc 1002 arch/m68k/kernel/traps.c fp->ptregs.pc); pc 1112 arch/m68k/kernel/traps.c addr = (void __user *) fp->ptregs.pc; pc 74 arch/m68k/math-emu/fp_decode.h jmp ([0f:w,%pc,%d0*4]) pc 86 arch/m68k/math-emu/fp_decode.h jmp ([0f:w,%pc,%d0*4]) pc 116 arch/m68k/math-emu/fp_decode.h jmp ([0f:w,%pc,%d0*4]) pc 170 arch/m68k/math-emu/fp_decode.h jmp ([0f:w,%pc,%d0*4]) pc 180 arch/m68k/math-emu/fp_decode.h jmp ([0f:w,%pc,%d0*4]) pc 196 arch/m68k/math-emu/fp_decode.h | test if %pc is the base register for the indirect addr mode pc 202 arch/m68k/math-emu/fp_decode.h | test if %pc is the base register for one of the extended modes pc 77 arch/m68k/mm/fault.c regs->sr, regs->pc, address, error_code, mm ? mm->pgd : NULL); pc 102 arch/m68k/mm/mcfmmu.c regs->pc + (extension_word * sizeof(long)); pc 30 arch/microblaze/include/asm/processor.h void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp); pc 123 arch/microblaze/include/asm/processor.h # define task_pc(task) (task_regs(task)->pc) pc 17 arch/microblaze/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 50 arch/microblaze/include/uapi/asm/ptrace.h microblaze_reg_t pc; pc 29 arch/microblaze/kernel/asm-offsets.c DEFINE(PT_PC, offsetof(struct pt_regs, pc)); pc 73 arch/microblaze/kernel/exceptions.c addr = regs->pc; pc 79 arch/microblaze/kernel/exceptions.c (unsigned int) regs->pc, (unsigned int) regs->esr); pc 89 arch/microblaze/kernel/kgdb.c if (*(u32 *) (regs->pc) == *(u32 *) (&arch_kgdb_ops.gdb_bpt_instr)) pc 90 arch/microblaze/kernel/kgdb.c regs->pc += BREAK_INSTR_SIZE; pc 110 arch/microblaze/kernel/kgdb.c regs->pc = ip; pc 125 arch/microblaze/kernel/kgdb.c regs->pc = address; pc 45 arch/microblaze/kernel/process.c regs->r29, regs->r30, regs->r31, regs->pc); pc 129 arch/microblaze/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp) pc 131 arch/microblaze/kernel/process.c regs->pc = pc; pc 75 arch/microblaze/kernel/signal.c COPY(pc); COPY(ear); COPY(esr); COPY(fsr); pc 136 arch/microblaze/kernel/signal.c COPY(pc); COPY(ear); COPY(esr); COPY(fsr); pc 230 arch/microblaze/kernel/signal.c regs->pc = (unsigned long)ksig->ka.sa.sa_handler; pc 234 arch/microblaze/kernel/signal.c current->comm, current->pid, frame, regs->pc); pc 260 arch/microblaze/kernel/signal.c regs->pc -= 4; pc 296 arch/microblaze/kernel/signal.c pr_info("do signal2: %lx %lx %ld [%lx]\n", regs->pc, regs->r1, pc 77 arch/microblaze/kernel/unwind.c static unsigned long *find_frame_creation(unsigned long *pc) pc 86 arch/microblaze/kernel/unwind.c for (i = 0; i < 1000; i++, pc--) { pc 90 arch/microblaze/kernel/unwind.c if (!kernel_text_address((unsigned long) pc)) pc 93 arch/microblaze/kernel/unwind.c instr = *pc; pc 102 arch/microblaze/kernel/unwind.c frame_size, pc); pc 106 arch/microblaze/kernel/unwind.c pr_debug(" Found frame creation at 0x%p, size %d\n", pc, pc 108 arch/microblaze/kernel/unwind.c return pc; pc 125 arch/microblaze/kernel/unwind.c static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, pc 133 arch/microblaze/kernel/unwind.c if (pc != (unsigned long) &_switch_to) pc 134 arch/microblaze/kernel/unwind.c prologue = find_frame_creation((unsigned long *)pc); pc 155 arch/microblaze/kernel/unwind.c unsigned long pc, unsigned long fp, pc 164 arch/microblaze/kernel/unwind.c static inline void unwind_trap(struct task_struct *task, unsigned long pc, pc 170 arch/microblaze/kernel/unwind.c static inline void unwind_trap(struct task_struct *task, unsigned long pc, pc 174 arch/microblaze/kernel/unwind.c microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace); pc 189 arch/microblaze/kernel/unwind.c unsigned long pc, unsigned long fp, pc 195 arch/microblaze/kernel/unwind.c pr_debug(" Unwinding with PC=%p, FP=%p\n", (void *)pc, (void *)fp); pc 196 arch/microblaze/kernel/unwind.c if (!pc || !fp || (pc & 3) || (fp & 3)) { pc 200 arch/microblaze/kernel/unwind.c for (; pc != 0;) { pc 202 arch/microblaze/kernel/unwind.c unsigned long return_to = pc + 2 * sizeof(unsigned long); pc 232 arch/microblaze/kernel/unwind.c unwind_trap(task, pc, fp, trace); pc 236 arch/microblaze/kernel/unwind.c pc -= ofs; pc 243 arch/microblaze/kernel/unwind.c trace->entries[trace->nr_entries++] = pc; pc 250 arch/microblaze/kernel/unwind.c if (unlikely(pc == task_pt_regs(task)->pc)) { pc 252 arch/microblaze/kernel/unwind.c (void *) pc, pc 257 arch/microblaze/kernel/unwind.c print_ip_sym(pc); pc 261 arch/microblaze/kernel/unwind.c if (!kernel_text_address(pc)) pc 264 arch/microblaze/kernel/unwind.c if (lookup_prev_stack_frame(fp, pc, leaf_return, &next_fp, pc 267 arch/microblaze/kernel/unwind.c pc = next_pc & ~3; pc 291 arch/microblaze/kernel/unwind.c microblaze_unwind_inner(task, regs->pc, regs->r1, pc 305 arch/microblaze/kernel/unwind.c unsigned long pc, fp; pc 313 arch/microblaze/kernel/unwind.c : "=r" (pc) pc 317 arch/microblaze/kernel/unwind.c microblaze_unwind_inner(current, pc, fp, 0, trace); pc 50 arch/microblaze/mm/fault.c if (get_user(inst, (unsigned int __user *)regs->pc)) pc 72 arch/microblaze/mm/fault.c fixup = search_exception_tables(regs->pc); pc 74 arch/microblaze/mm/fault.c regs->pc = fixup->fixup; pc 141 arch/microblaze/mm/fault.c if (kernel_mode(regs) && !search_exception_tables(regs->pc)) pc 398 arch/mips/alchemy/common/clock.c struct clk_hw *pc, *bpc, *free; pc 412 arch/mips/alchemy/common/clock.c pc = clk_hw_get_parent_by_index(hw, j); pc 413 arch/mips/alchemy/common/clock.c if (!pc) pc 420 arch/mips/alchemy/common/clock.c if (!clk_hw_is_prepared(pc)) { pc 422 arch/mips/alchemy/common/clock.c free = pc; pc 425 arch/mips/alchemy/common/clock.c pr = clk_hw_get_rate(pc); pc 439 arch/mips/alchemy/common/clock.c bpc = pc; pc 75 arch/mips/dec/kn01-berr.c unsigned int __user *pc = (unsigned int __user *)regs->cp0_epc + pc 100 arch/mips/dec/kn01-berr.c __get_user(insn.word, pc); pc 104 arch/mips/dec/kn01-berr.c vaddr = (long)pc; pc 11 arch/mips/include/asm/amon.h int amon_cpu_start(int cpu, unsigned long pc, unsigned long sp, pc 337 arch/mips/include/asm/kvm_host.h unsigned long pc; pc 963 arch/mips/include/asm/kvm_host.h unsigned long epc = msk_isa16_mode(vcpu->pc); pc 9 arch/mips/include/asm/mips-boards/launch.h unsigned long pc; pc 852 arch/mips/include/asm/octeon/cvmx-pow-defs.h uint64_t pc:28; pc 860 arch/mips/include/asm/octeon/cvmx-pow-defs.h uint64_t pc:28; pc 373 arch/mips/include/asm/processor.h extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp); pc 13 arch/mips/include/asm/smp-cps.h unsigned long pc; pc 12 arch/mips/include/asm/stacktrace.h unsigned long pc, unsigned long *ra); pc 15 arch/mips/include/asm/stacktrace.h unsigned long pc, pc 20 arch/mips/include/asm/stacktrace.h unsigned long *sp, unsigned long pc, unsigned long *ra) pc 91 arch/mips/include/asm/switch_to.h void __user *pc; \ pc 94 arch/mips/include/asm/switch_to.h pc = (void __user *)task_pt_regs(next)->cp0_epc; \ pc 96 arch/mips/include/asm/switch_to.h force_fcr31_sig(fcr31, pc, next); \ pc 39 arch/mips/include/uapi/asm/kvm.h __u64 pc; pc 400 arch/mips/kernel/asm-offsets.c OFFSET(VPEBOOTCFG_PC, vpe_boot_config, pc); pc 290 arch/mips/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 292 arch/mips/kernel/kgdb.c regs->cp0_epc = pc; pc 48 arch/mips/kernel/perf_event.c unsigned long pc = regs->cp0_epc; pc 50 arch/mips/kernel/perf_event.c if (raw_show_trace || !__kernel_text_address(pc)) { pc 59 arch/mips/kernel/perf_event.c perf_callchain_store(entry, pc); pc 62 arch/mips/kernel/perf_event.c pc = unwind_stack(current, &sp, pc, &ra); pc 63 arch/mips/kernel/perf_event.c } while (pc); pc 149 arch/mips/kernel/pm-cps.c vpe_cfg->pc = (unsigned long)mips_cps_pm_restore; pc 67 arch/mips/kernel/process.c void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) pc 80 arch/mips/kernel/process.c regs->cp0_epc = pc; pc 200 arch/mips/kernel/process.c #define J_TARGET(pc,target) \ pc 201 arch/mips/kernel/process.c (((unsigned long)(pc) & 0xf0000000) | ((target) << 2)) pc 510 arch/mips/kernel/process.c unsigned long pc, pc 554 arch/mips/kernel/process.c pc = regs->cp0_epc; pc 555 arch/mips/kernel/process.c if (!user_mode(regs) && __kernel_text_address(pc)) { pc 558 arch/mips/kernel/process.c return pc; pc 562 arch/mips/kernel/process.c if (!kallsyms_lookup_size_offset(pc, &size, &ofs)) pc 568 arch/mips/kernel/process.c pc = *ra; pc 570 arch/mips/kernel/process.c return pc; pc 573 arch/mips/kernel/process.c info.func = (void *)(pc - ofs); pc 589 arch/mips/kernel/process.c pc = pc != *ra ? *ra : 0; pc 591 arch/mips/kernel/process.c pc = ((unsigned long *)(*sp))[info.pc_offset]; pc 595 arch/mips/kernel/process.c return __kernel_text_address(pc) ? pc : 0; pc 601 arch/mips/kernel/process.c unsigned long pc, unsigned long *ra) pc 616 arch/mips/kernel/process.c return unwind_stack_by_address(stack_page, sp, pc, ra); pc 625 arch/mips/kernel/process.c unsigned long pc = 0; pc 636 arch/mips/kernel/process.c pc = thread_saved_pc(task); pc 641 arch/mips/kernel/process.c while (in_sched_functions(pc)) pc 642 arch/mips/kernel/process.c pc = unwind_stack(task, &sp, pc, &ra); pc 646 arch/mips/kernel/process.c return pc; pc 73 arch/mips/kernel/smp-cmp.c unsigned long pc = (unsigned long)&smp_bootstrap; pc 85 arch/mips/kernel/smp-cmp.c amon_cpu_start(cpu, pc, sp, (unsigned long)gp, a0); pc 308 arch/mips/kernel/smp-cps.c vpe_cfg->pc = (unsigned long)&smp_bootstrap; pc 43 arch/mips/kernel/stacktrace.c unsigned long pc = regs->cp0_epc; pc 45 arch/mips/kernel/stacktrace.c if (raw_show_trace || !__kernel_text_address(pc)) { pc 54 arch/mips/kernel/stacktrace.c if (savesched || !in_sched_functions(pc)) { pc 58 arch/mips/kernel/stacktrace.c trace->entries[trace->nr_entries++] = pc; pc 62 arch/mips/kernel/stacktrace.c pc = unwind_stack(tsk, &sp, pc, &ra); pc 63 arch/mips/kernel/stacktrace.c } while (pc); pc 145 arch/mips/kernel/traps.c unsigned long pc = regs->cp0_epc; pc 150 arch/mips/kernel/traps.c if (raw_show_trace || user_mode(regs) || !__kernel_text_address(pc)) { pc 156 arch/mips/kernel/traps.c print_ip_sym(pc); pc 157 arch/mips/kernel/traps.c pc = unwind_stack(task, &sp, pc, &ra); pc 158 arch/mips/kernel/traps.c } while (pc); pc 231 arch/mips/kernel/traps.c static void show_code(unsigned int __user *pc) pc 238 arch/mips/kernel/traps.c if ((unsigned long)pc & 1) pc 239 arch/mips/kernel/traps.c pc16 = (unsigned short __user *)((unsigned long)pc & ~1); pc 242 arch/mips/kernel/traps.c if (pc16 ? __get_user(insn, pc16 + i) : __get_user(insn, pc + i)) { pc 884 arch/mips/kernel/unaligned.c void __user *addr, unsigned int __user *pc) pc 892 arch/mips/kernel/unaligned.c origpc = (unsigned long)pc; pc 900 arch/mips/kernel/unaligned.c __get_user(insn.word, pc); pc 2293 arch/mips/kernel/unaligned.c unsigned int __user *pc; pc 2355 arch/mips/kernel/unaligned.c pc = (unsigned int __user *)exception_epc(regs); pc 2360 arch/mips/kernel/unaligned.c emulate_load_store_insn(regs, (void __user *)regs->cp0_badvaddr, pc); pc 249 arch/mips/kvm/emulate.c err = kvm_compute_return_epc(vcpu, vcpu->arch.pc, pc 250 arch/mips/kvm/emulate.c &vcpu->arch.pc); pc 254 arch/mips/kvm/emulate.c vcpu->arch.pc += 4; pc 257 arch/mips/kvm/emulate.c kvm_debug("update_pc(): New PC: %#lx\n", vcpu->arch.pc); pc 953 arch/mips/kvm/emulate.c vcpu->arch.pc = kvm_read_c0_guest_errorepc(cop0); pc 955 arch/mips/kvm/emulate.c kvm_debug("[%#lx] ERET to %#lx\n", vcpu->arch.pc, pc 958 arch/mips/kvm/emulate.c vcpu->arch.pc = kvm_read_c0_guest_epc(cop0); pc 962 arch/mips/kvm/emulate.c vcpu->arch.pc); pc 971 arch/mips/kvm/emulate.c kvm_debug("[%#lx] !!!WAIT!!! (%#lx)\n", vcpu->arch.pc, pc 1033 arch/mips/kvm/emulate.c unsigned long pc = vcpu->arch.pc; pc 1039 arch/mips/kvm/emulate.c kvm_debug("[%#lx] TLBR Index %#x out of range\n", pc, index); pc 1107 arch/mips/kvm/emulate.c unsigned long pc = vcpu->arch.pc; pc 1112 arch/mips/kvm/emulate.c pc, index, kvm_read_c0_guest_entryhi(cop0), pc 1129 arch/mips/kvm/emulate.c pc, index, kvm_read_c0_guest_entryhi(cop0), pc 1142 arch/mips/kvm/emulate.c unsigned long pc = vcpu->arch.pc; pc 1156 arch/mips/kvm/emulate.c pc, index, kvm_read_c0_guest_entryhi(cop0), pc 1167 arch/mips/kvm/emulate.c unsigned long pc = vcpu->arch.pc; pc 1174 arch/mips/kvm/emulate.c kvm_debug("[%#lx] COP0_TLBP (entryhi: %#lx), index: %d\n", pc, entryhi, pc 1277 arch/mips/kvm/emulate.c curr_pc = vcpu->arch.pc; pc 1530 arch/mips/kvm/emulate.c vcpu->arch.pc, rt, rd, sel); pc 1547 arch/mips/kvm/emulate.c vcpu->arch.pc); pc 1551 arch/mips/kvm/emulate.c vcpu->arch.pc); pc 1577 arch/mips/kvm/emulate.c vcpu->arch.pc, inst.c0r_format.rs); pc 1586 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 1612 arch/mips/kvm/emulate.c curr_pc = vcpu->arch.pc; pc 1631 arch/mips/kvm/emulate.c vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, pc 1641 arch/mips/kvm/emulate.c vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, pc 1650 arch/mips/kvm/emulate.c vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, pc 1659 arch/mips/kvm/emulate.c vcpu->arch.pc, vcpu->arch.host_cp0_badvaddr, pc 1676 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 1696 arch/mips/kvm/emulate.c curr_pc = vcpu->arch.pc; pc 1700 arch/mips/kvm/emulate.c vcpu->arch.io_pc = vcpu->arch.pc; pc 1701 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 1782 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 1788 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 1813 arch/mips/kvm/emulate.c curr_pc = vcpu->arch.pc; pc 1839 arch/mips/kvm/emulate.c vcpu->arch.pc, vcpu->arch.gprs[31], cache, op, base, pc 1923 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 2012 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2020 arch/mips/kvm/emulate.c kvm_debug("Delivering SYSCALL @ pc %#lx\n", arch->pc); pc 2026 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2048 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2057 arch/mips/kvm/emulate.c arch->pc); pc 2060 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x0; pc 2064 arch/mips/kvm/emulate.c arch->pc); pc 2066 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2093 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2102 arch/mips/kvm/emulate.c arch->pc); pc 2105 arch/mips/kvm/emulate.c arch->pc); pc 2109 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2134 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2143 arch/mips/kvm/emulate.c arch->pc); pc 2146 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x0; pc 2149 arch/mips/kvm/emulate.c arch->pc); pc 2150 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2176 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2185 arch/mips/kvm/emulate.c arch->pc); pc 2188 arch/mips/kvm/emulate.c arch->pc); pc 2192 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2217 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2226 arch/mips/kvm/emulate.c arch->pc); pc 2229 arch/mips/kvm/emulate.c arch->pc); pc 2232 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2255 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2265 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2285 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2293 arch/mips/kvm/emulate.c kvm_debug("Delivering RI @ pc %#lx\n", arch->pc); pc 2299 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2320 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2328 arch/mips/kvm/emulate.c kvm_debug("Delivering BP @ pc %#lx\n", arch->pc); pc 2334 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2355 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2363 arch/mips/kvm/emulate.c kvm_debug("Delivering TRAP @ pc %#lx\n", arch->pc); pc 2369 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2390 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2398 arch/mips/kvm/emulate.c kvm_debug("Delivering MSAFPE @ pc %#lx\n", arch->pc); pc 2404 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2425 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2433 arch/mips/kvm/emulate.c kvm_debug("Delivering FPE @ pc %#lx\n", arch->pc); pc 2439 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2460 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2468 arch/mips/kvm/emulate.c kvm_debug("Delivering MSADIS @ pc %#lx\n", arch->pc); pc 2474 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 2499 arch/mips/kvm/emulate.c curr_pc = vcpu->arch.pc; pc 2573 arch/mips/kvm/emulate.c vcpu->arch.pc = curr_pc; pc 2590 arch/mips/kvm/emulate.c vcpu->arch.pc = vcpu->arch.io_pc; pc 2635 arch/mips/kvm/emulate.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 2647 arch/mips/kvm/emulate.c arch->pc = kvm_mips_guest_exception_base(vcpu) + 0x180; pc 305 arch/mips/kvm/entry.c UASM_i_LW(&p, T0, offsetof(struct kvm_vcpu_arch, pc), K1); pc 641 arch/mips/kvm/entry.c UASM_i_SW(&p, K0, offsetof(struct kvm_vcpu_arch, pc), K1); pc 22 arch/mips/kvm/hypcall.c kvm_debug("[%#lx] HYPCALL %#03x\n", vcpu->arch.pc, code); pc 169 arch/mips/kvm/interrupt.c kvm_write_c0_guest_epc(cop0, arch->pc); pc 177 arch/mips/kvm/interrupt.c kvm_debug("Delivering INT @ pc %#lx\n", arch->pc); pc 186 arch/mips/kvm/interrupt.c arch->pc = kvm_mips_guest_exception_base(vcpu); pc 188 arch/mips/kvm/interrupt.c arch->pc += 0x200; pc 190 arch/mips/kvm/interrupt.c arch->pc += 0x180; pc 668 arch/mips/kvm/mips.c v = (long)vcpu->arch.pc; pc 802 arch/mips/kvm/mips.c vcpu->arch.pc = v; pc 1159 arch/mips/kvm/mips.c kvm_debug("\tpc = 0x%08lx\n", vcpu->arch.pc); pc 1192 arch/mips/kvm/mips.c vcpu->arch.pc = regs->pc; pc 1209 arch/mips/kvm/mips.c regs->pc = vcpu->arch.pc; pc 1285 arch/mips/kvm/mips.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 1676 arch/mips/kvm/mips.c unsigned long pc; pc 1689 arch/mips/kvm/mips.c pc = instruction_pointer(regs); pc 1693 arch/mips/kvm/mips.c if (pc != (unsigned long)&__kvm_restore_fcsr + 4) pc 1699 arch/mips/kvm/mips.c pc < (unsigned long)&__kvm_restore_msacsr + 4 || pc 1700 arch/mips/kvm/mips.c pc > (unsigned long)&__kvm_restore_msacsr + 8) pc 1091 arch/mips/kvm/mmu.c kvm_debug("@ %#lx tlb_lo0: 0x%08lx tlb_lo1: 0x%08lx\n", vcpu->arch.pc, pc 34 arch/mips/kvm/trace.h __field(unsigned long, pc) pc 38 arch/mips/kvm/trace.h __entry->pc = vcpu->arch.pc; pc 42 arch/mips/kvm/trace.h __entry->pc) pc 119 arch/mips/kvm/trace.h __field(unsigned long, pc) pc 124 arch/mips/kvm/trace.h __entry->pc = vcpu->arch.pc; pc 131 arch/mips/kvm/trace.h __entry->pc) pc 257 arch/mips/kvm/trace.h __field(unsigned long, pc) pc 263 arch/mips/kvm/trace.h __entry->pc = vcpu->arch.pc; pc 273 arch/mips/kvm/trace.h __entry->pc) pc 281 arch/mips/kvm/trace.h __field(unsigned long, pc) pc 287 arch/mips/kvm/trace.h __entry->pc = vcpu->arch.pc; pc 293 arch/mips/kvm/trace.h __entry->pc, pc 318 arch/mips/kvm/trace.h __field(unsigned long, pc) pc 326 arch/mips/kvm/trace.h __entry->pc = vcpu->arch.pc; pc 334 arch/mips/kvm/trace.h __entry->pc, pc 46 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 71 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 192 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 252 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 324 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 344 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 363 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 381 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 399 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 417 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *)vcpu->arch.pc; pc 435 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *)vcpu->arch.pc; pc 453 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *)vcpu->arch.pc; pc 478 arch/mips/kvm/trap_emul.c u32 __user *opc = (u32 __user *) vcpu->arch.pc; pc 693 arch/mips/kvm/trap_emul.c vcpu->arch.pc = KVM_GUEST_CKSEG1ADDR(0x1fc00000); pc 690 arch/mips/kvm/vz.c opc = (u32 *)vcpu->arch.pc; pc 844 arch/mips/kvm/vz.c u32 *opc = (u32 *) vcpu->arch.pc; pc 915 arch/mips/kvm/vz.c curr_pc = vcpu->arch.pc; pc 1057 arch/mips/kvm/vz.c vcpu->arch.pc = curr_pc; pc 1078 arch/mips/kvm/vz.c curr_pc = vcpu->arch.pc; pc 1127 arch/mips/kvm/vz.c vcpu->arch.pc = curr_pc; pc 1366 arch/mips/kvm/vz.c curr_pc = vcpu->arch.pc; pc 1373 arch/mips/kvm/vz.c vcpu->arch.pc = curr_pc; pc 1400 arch/mips/kvm/vz.c u32 *opc = (u32 *) vcpu->arch.pc; pc 1539 arch/mips/kvm/vz.c u32 *opc = (u32 *) vcpu->arch.pc; pc 1586 arch/mips/kvm/vz.c u32 *opc = (u32 *) vcpu->arch.pc; pc 3101 arch/mips/kvm/vz.c vcpu->arch.pc = CKSEG1ADDR(0x1fc00000); pc 42 arch/mips/mti-malta/malta-amon.c unsigned long pc, unsigned long sp, pc 58 arch/mips/mti-malta/malta-amon.c launch->pc = pc; pc 15 arch/mips/oprofile/backtrace.c unsigned long pc; pc 80 arch/mips/oprofile/backtrace.c if (old_frame->pc == 0 || old_frame->sp == 0 || old_frame->ra == 0) pc 83 arch/mips/oprofile/backtrace.c for (addr = new_frame.pc; (addr + max_instr_check > new_frame.pc) pc 126 arch/mips/oprofile/backtrace.c new_frame.pc = old_frame->ra; pc 155 arch/mips/oprofile/backtrace.c while (depth-- && frame->pc) { pc 156 arch/mips/oprofile/backtrace.c frame->pc = unwind_stack_by_address(low_addr, pc 158 arch/mips/oprofile/backtrace.c frame->pc, pc 168 arch/mips/oprofile/backtrace.c .pc = regs->cp0_epc, pc 28 arch/nds32/include/asm/processor.h unsigned long pc; pc 62 arch/nds32/include/asm/processor.h #define start_thread(regs,pc,stack) \ pc 68 arch/nds32/include/asm/processor.h regs->ipc = pc; \ pc 35 arch/nds32/include/asm/thread_info.h #define thread_saved_pc(tsk) ((unsigned long)(tsk->thread.cpu_context.pc)) pc 140 arch/nds32/kernel/ftrace.c static int __ftrace_modify_code(unsigned long pc, unsigned long *old_insn, pc 146 arch/nds32/kernel/ftrace.c if (probe_kernel_read(orig_insn, (void *)pc, MCOUNT_INSN_SIZE)) pc 152 arch/nds32/kernel/ftrace.c if (probe_kernel_write((void *)pc, new_insn, MCOUNT_INSN_SIZE)) pc 158 arch/nds32/kernel/ftrace.c static int ftrace_modify_code(unsigned long pc, unsigned long *old_insn, pc 163 arch/nds32/kernel/ftrace.c ret = __ftrace_modify_code(pc, old_insn, new_insn, validate); pc 167 arch/nds32/kernel/ftrace.c flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); pc 174 arch/nds32/kernel/ftrace.c unsigned long pc = (unsigned long)&ftrace_call; pc 181 arch/nds32/kernel/ftrace.c return ftrace_modify_code(pc, old_insn, new_insn, false); pc 186 arch/nds32/kernel/ftrace.c unsigned long pc = rec->ip; pc 192 arch/nds32/kernel/ftrace.c return ftrace_modify_code(pc, nop_insn, call_insn, true); pc 198 arch/nds32/kernel/ftrace.c unsigned long pc = rec->ip; pc 204 arch/nds32/kernel/ftrace.c return ftrace_modify_code(pc, call_insn, nop_insn, true); pc 259 arch/nds32/kernel/ftrace.c unsigned long pc = (unsigned long)&ftrace_graph_call; pc 266 arch/nds32/kernel/ftrace.c return ftrace_modify_code(pc, nop_insn, call_insn, true); pc 268 arch/nds32/kernel/ftrace.c return ftrace_modify_code(pc, call_insn, nop_insn, true); pc 176 arch/nds32/kernel/process.c p->thread.cpu_context.pc = (unsigned long)ret_from_fork; pc 370 arch/nds32/math-emu/fpuemu.c unsigned char *pc = (void *)&insn; pc 377 arch/nds32/math-emu/fpuemu.c *pc++ = c; pc 62 arch/nios2/include/asm/processor.h extern void start_thread(struct pt_regs *regs, unsigned long pc, pc 104 arch/nios2/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 106 arch/nios2/kernel/kgdb.c regs->ea = pc; pc 222 arch/nios2/kernel/process.c unsigned long fp, pc; pc 235 arch/nios2/kernel/process.c pc = ((unsigned long *)fp)[1]; pc 236 arch/nios2/kernel/process.c if (!in_sched_functions(pc)) pc 237 arch/nios2/kernel/process.c return pc; pc 247 arch/nios2/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) pc 251 arch/nios2/kernel/process.c regs->ea = pc; pc 70 arch/openrisc/include/asm/processor.h #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) pc 56 arch/openrisc/include/asm/ptrace.h long pc; pc 69 arch/openrisc/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 30 arch/openrisc/include/uapi/asm/ptrace.h unsigned long pc; pc 213 arch/openrisc/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) pc 219 arch/openrisc/kernel/process.c regs->pc = pc; pc 269 arch/openrisc/kernel/process.c dest[32] = regs->pc; pc 62 arch/openrisc/kernel/ptrace.c ®s->pc, 4*32, 4*33); pc 93 arch/openrisc/kernel/ptrace.c ®s->pc, 4*32, 4*33); pc 53 arch/openrisc/kernel/signal.c err |= __copy_from_user(®s->pc, &sc->regs.pc, sizeof(unsigned long)); pc 115 arch/openrisc/kernel/signal.c err |= __copy_to_user(&sc->regs.pc, ®s->pc, sizeof(unsigned long)); pc 193 arch/openrisc/kernel/signal.c regs->pc = (unsigned long)ksig->ka.sa.sa_handler; /* what we enter NOW */ pc 236 arch/openrisc/kernel/signal.c continue_addr = regs->pc; pc 253 arch/openrisc/kernel/signal.c regs->pc = restart_addr; pc 265 arch/openrisc/kernel/signal.c if (unlikely(restart) && regs->pc == restart_addr) { pc 272 arch/openrisc/kernel/signal.c regs->pc = continue_addr; pc 283 arch/openrisc/kernel/signal.c if (unlikely(restart) && regs->pc == restart_addr) { pc 284 arch/openrisc/kernel/signal.c regs->pc = continue_addr; pc 77 arch/openrisc/kernel/traps.c smp_processor_id(), regs->pc, regs->sr, regs->sp); pc 109 arch/openrisc/kernel/traps.c if (regs->pc < PAGE_OFFSET) pc 114 arch/openrisc/kernel/traps.c if (__get_user(c, &((unsigned char *)regs->pc)[i])) { pc 139 arch/openrisc/kernel/traps.c 0, regs->pc, regs->sr, regs->sp); pc 195 arch/openrisc/kernel/traps.c c = ((unsigned char *)(__pa(regs->pc)))[i]; pc 249 arch/openrisc/kernel/traps.c regs->pc += 4; pc 283 arch/openrisc/kernel/traps.c insn = *((unsigned int *)regs->pc); pc 308 arch/openrisc/kernel/traps.c jmp = *((unsigned int *)regs->pc); pc 316 arch/openrisc/kernel/traps.c regs->pc += displacement; pc 319 arch/openrisc/kernel/traps.c regs->pc += displacement; pc 320 arch/openrisc/kernel/traps.c regs->gpr[9] = regs->pc + 8; pc 324 arch/openrisc/kernel/traps.c regs->pc += 8; pc 326 arch/openrisc/kernel/traps.c regs->pc += displacement; pc 330 arch/openrisc/kernel/traps.c regs->pc += displacement; pc 332 arch/openrisc/kernel/traps.c regs->pc += 8; pc 335 arch/openrisc/kernel/traps.c regs->pc = regs->gpr[rb]; pc 338 arch/openrisc/kernel/traps.c regs->pc = regs->gpr[rb]; pc 339 arch/openrisc/kernel/traps.c regs->gpr[9] = regs->pc + 8; pc 345 arch/openrisc/kernel/traps.c regs->pc += 4; pc 359 arch/openrisc/kernel/traps.c orig_pc = regs->pc; pc 379 arch/openrisc/kernel/traps.c regs->pc = entry->fixup; pc 401 arch/openrisc/kernel/traps.c orig_pc = regs->pc; pc 426 arch/openrisc/kernel/traps.c regs->pc = entry->fixup; pc 232 arch/openrisc/mm/fault.c if ((entry = search_exception_tables(regs->pc)) != NULL) { pc 234 arch/openrisc/mm/fault.c regs->pc = entry->fixup; pc 253 arch/parisc/include/asm/processor.h elf_addr_t pc = (elf_addr_t)new_pc | 3; \ pc 258 arch/parisc/include/asm/processor.h regs->iaoq[0] = pc; \ pc 259 arch/parisc/include/asm/processor.h regs->iaoq[1] = pc + 4; \ pc 272 arch/parisc/include/asm/processor.h regs->gr[31] = pc; \ pc 126 arch/parisc/kernel/time.c unsigned long pc = instruction_pointer(regs); pc 129 arch/parisc/kernel/time.c pc -= 4; pc 132 arch/parisc/kernel/time.c if (in_lock_functions(pc)) pc 133 arch/parisc/kernel/time.c pc = regs->gr[2]; pc 136 arch/parisc/kernel/time.c return pc; pc 206 arch/parisc/kernel/unwind.c static int unwind_special(struct unwind_frame_info *info, unsigned long pc, int frame_size) pc 224 arch/parisc/kernel/unwind.c if (pc == (unsigned long) &handle_interruption) { pc 232 arch/parisc/kernel/unwind.c if (pc == (unsigned long) &ret_from_kernel_thread || pc 233 arch/parisc/kernel/unwind.c pc == (unsigned long) &syscall_exit) { pc 238 arch/parisc/kernel/unwind.c if (pc == (unsigned long) &intr_return) { pc 249 arch/parisc/kernel/unwind.c if (pc == (unsigned long) &_switch_to_ret) { pc 256 arch/parisc/kernel/unwind.c if (pc == (unsigned long) &_call_on_stack) { pc 144 arch/powerpc/include/asm/kvm_book3s_asm.h ulong pc; pc 37 arch/powerpc/include/uapi/asm/kvm.h __u64 pc; pc 620 arch/powerpc/kernel/asm-offsets.c SVCPU_FIELD(SVCPU_PC, pc); pc 372 arch/powerpc/kernel/kgdb.c void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) pc 374 arch/powerpc/kernel/kgdb.c regs->nip = pc; pc 1221 arch/powerpc/kernel/process.c unsigned long pc = regs->nip - (NR_INSN_TO_PRINT * 3 / 4 * sizeof(int)); pc 1236 arch/powerpc/kernel/process.c pc = (unsigned long)phys_to_virt(pc); pc 1239 arch/powerpc/kernel/process.c if (!__kernel_text_address(pc) || pc 1240 arch/powerpc/kernel/process.c probe_kernel_address((const void *)pc, instr)) { pc 1243 arch/powerpc/kernel/process.c if (regs->nip == pc) pc 1249 arch/powerpc/kernel/process.c pc += sizeof(int); pc 1257 arch/powerpc/kernel/process.c unsigned long pc; pc 1262 arch/powerpc/kernel/process.c pc = regs->nip - (NR_INSN_TO_PRINT * 3 / 4 * sizeof(int)); pc 1268 arch/powerpc/kernel/process.c if (!__access_ok(pc, NR_INSN_TO_PRINT * sizeof(int), USER_DS)) { pc 1281 arch/powerpc/kernel/process.c for (i = 0; i < 8 && n; i++, n--, pc += sizeof(int)) { pc 1284 arch/powerpc/kernel/process.c if (probe_kernel_address((const void *)pc, instr)) { pc 1288 arch/powerpc/kernel/process.c seq_buf_printf(&s, regs->nip == pc ? "<%08x> " : "%08x ", instr); pc 485 arch/powerpc/kernel/time.c unsigned long pc = instruction_pointer(regs); pc 487 arch/powerpc/kernel/time.c if (in_lock_functions(pc)) pc 490 arch/powerpc/kernel/time.c return pc; pc 80 arch/powerpc/kvm/book3s.c ulong pc = kvmppc_get_pc(vcpu); pc 82 arch/powerpc/kvm/book3s.c if ((pc & SPLIT_HACK_MASK) == SPLIT_HACK_OFFS) pc 83 arch/powerpc/kvm/book3s.c kvmppc_set_pc(vcpu, pc & ~SPLIT_HACK_MASK); pc 485 arch/powerpc/kvm/book3s.c ulong pc = kvmppc_get_pc(vcpu); pc 489 arch/powerpc/kvm/book3s.c pc -= 4; pc 491 arch/powerpc/kvm/book3s.c r = kvmppc_ld(vcpu, &pc, sizeof(u32), inst, false); pc 541 arch/powerpc/kvm/book3s.c regs->pc = kvmppc_get_pc(vcpu); pc 569 arch/powerpc/kvm/book3s.c kvmppc_set_pc(vcpu, regs->pc); pc 75 arch/powerpc/kvm/book3s_pr.c ulong pc = kvmppc_get_pc(vcpu); pc 86 arch/powerpc/kvm/book3s_pr.c if (pc & SPLIT_HACK_MASK) pc 90 arch/powerpc/kvm/book3s_pr.c kvmppc_set_pc(vcpu, pc | SPLIT_HACK_OFFS); pc 171 arch/powerpc/kvm/book3s_pr.c svcpu->pc = vcpu->arch.regs.nip; pc 253 arch/powerpc/kvm/book3s_pr.c vcpu->arch.regs.nip = svcpu->pc; pc 1435 arch/powerpc/kvm/booke.c regs->pc = vcpu->arch.regs.nip; pc 1466 arch/powerpc/kvm/booke.c vcpu->arch.regs.nip = regs->pc; pc 19 arch/powerpc/kvm/trace.h __field( unsigned long, pc ) pc 25 arch/powerpc/kvm/trace.h __entry->pc = _pc; pc 30 arch/powerpc/kvm/trace.h __entry->inst, __entry->pc, __entry->emulate) pc 44 arch/powerpc/kvm/trace_booke.h __field( unsigned long, pc ) pc 52 arch/powerpc/kvm/trace_booke.h __entry->pc = kvmppc_get_pc(vcpu); pc 65 arch/powerpc/kvm/trace_booke.h __entry->pc, pc 227 arch/powerpc/kvm/trace_hv.h __field(unsigned long, pc) pc 234 arch/powerpc/kvm/trace_hv.h __entry->pc = kvmppc_get_pc(vcpu); pc 241 arch/powerpc/kvm/trace_hv.h __entry->pc, pc 252 arch/powerpc/kvm/trace_hv.h __field(unsigned long, pc) pc 261 arch/powerpc/kvm/trace_hv.h __entry->pc = kvmppc_get_pc(vcpu); pc 268 arch/powerpc/kvm/trace_hv.h __entry->pc, __entry->msr, __entry->ceded pc 18 arch/powerpc/kvm/trace_pr.h __field( unsigned long, pc ) pc 23 arch/powerpc/kvm/trace_pr.h __entry->pc = kvmppc_get_pc(vcpu); pc 26 arch/powerpc/kvm/trace_pr.h TP_printk("reentry r=%d | pc=0x%lx", __entry->r, __entry->pc) pc 223 arch/powerpc/kvm/trace_pr.h __field( unsigned long, pc ) pc 232 arch/powerpc/kvm/trace_pr.h __entry->pc = kvmppc_get_pc(vcpu); pc 247 arch/powerpc/kvm/trace_pr.h __entry->pc, pc 229 arch/powerpc/math-emu/math.c unsigned long pc = regs->nip; pc 237 arch/powerpc/math-emu/math.c if (get_user(insn, (u32 *)pc)) pc 485 arch/powerpc/mm/book3s64/slb.c unsigned long pc = KSTK_EIP(tsk); pc 488 arch/powerpc/mm/book3s64/slb.c preload_add(ti, pc); pc 171 arch/powerpc/oprofile/op_model_7450.c unsigned long pc; pc 179 arch/powerpc/oprofile/op_model_7450.c pc = mfspr(SPRN_SIAR); pc 180 arch/powerpc/oprofile/op_model_7450.c is_kernel = is_kernel_addr(pc); pc 186 arch/powerpc/oprofile/op_model_7450.c oprofile_add_ext_sample(pc, regs, i, is_kernel); pc 1600 arch/powerpc/oprofile/op_model_cell.c u64 pc; pc 1633 arch/powerpc/oprofile/op_model_cell.c pc = regs->nip; pc 1634 arch/powerpc/oprofile/op_model_cell.c is_kernel = is_kernel_addr(pc); pc 1639 arch/powerpc/oprofile/op_model_cell.c oprofile_add_ext_sample(pc, regs, i, is_kernel); pc 343 arch/powerpc/oprofile/op_model_fsl_emb.c unsigned long pc; pc 348 arch/powerpc/oprofile/op_model_fsl_emb.c pc = regs->nip; pc 349 arch/powerpc/oprofile/op_model_fsl_emb.c is_kernel = is_kernel_addr(pc); pc 355 arch/powerpc/oprofile/op_model_fsl_emb.c oprofile_add_ext_sample(pc, regs, i, is_kernel); pc 190 arch/powerpc/oprofile/op_model_pa6t.c unsigned long pc = mfspr(SPRN_PA6T_SIAR); pc 191 arch/powerpc/oprofile/op_model_pa6t.c int is_kernel = is_kernel_addr(pc); pc 208 arch/powerpc/oprofile/op_model_pa6t.c oprofile_add_ext_sample(pc, regs, i, is_kernel); pc 279 arch/powerpc/oprofile/op_model_power4.c unsigned long pc = mfspr(SPRN_SIAR); pc 285 arch/powerpc/oprofile/op_model_power4.c return pc; pc 292 arch/powerpc/oprofile/op_model_power4.c pc += 4 * (slot - 1); pc 303 arch/powerpc/oprofile/op_model_power4.c return pc; pc 307 arch/powerpc/oprofile/op_model_power4.c if (pc >= rtas.base && pc < (rtas.base + rtas.size)) pc 313 arch/powerpc/oprofile/op_model_power4.c if (pc < 0x1000000UL) pc 314 arch/powerpc/oprofile/op_model_power4.c return (unsigned long)__va(pc); pc 317 arch/powerpc/oprofile/op_model_power4.c if (!is_kernel_addr(pc)) pc 321 arch/powerpc/oprofile/op_model_power4.c return pc; pc 324 arch/powerpc/oprofile/op_model_power4.c static int get_kernel(unsigned long pc, unsigned long mmcra) pc 329 arch/powerpc/oprofile/op_model_power4.c is_kernel = is_kernel_addr(pc); pc 362 arch/powerpc/oprofile/op_model_power4.c unsigned long pc; pc 372 arch/powerpc/oprofile/op_model_power4.c pc = get_pc(regs); pc 373 arch/powerpc/oprofile/op_model_power4.c is_kernel = get_kernel(pc, mmcra); pc 398 arch/powerpc/oprofile/op_model_power4.c oprofile_add_ext_sample(pc, regs, i, pc 164 arch/powerpc/xmon/xmon.c static struct bpt *at_breakpoint(unsigned long pc); pc 165 arch/powerpc/xmon/xmon.c static struct bpt *in_breakpoint_table(unsigned long pc, unsigned long *offp); pc 177 arch/powerpc/xmon/xmon.c unsigned long pc); pc 845 arch/powerpc/xmon/xmon.c static struct bpt *at_breakpoint(unsigned long pc) pc 852 arch/powerpc/xmon/xmon.c if (bp->enabled && pc == bp->address) pc 1538 arch/powerpc/xmon/xmon.c static void get_function_bounds(unsigned long pc, unsigned long *startp, pc 1545 arch/powerpc/xmon/xmon.c if (pc == 0) pc 1550 arch/powerpc/xmon/xmon.c name = kallsyms_lookup(pc, &size, &offset, NULL, tmpstr); pc 1552 arch/powerpc/xmon/xmon.c *startp = pc - offset; pc 1553 arch/powerpc/xmon/xmon.c *endp = pc - offset + size; pc 1564 arch/powerpc/xmon/xmon.c unsigned long pc) pc 1590 arch/powerpc/xmon/xmon.c if ((pc | lr) != 0) { pc 1595 arch/powerpc/xmon/xmon.c get_function_bounds(pc, &fnstart, &fnend); pc 1615 arch/powerpc/xmon/xmon.c pc = lr = 0; pc 1634 arch/powerpc/xmon/xmon.c pc = regs.nip; pc 1636 arch/powerpc/xmon/xmon.c xmon_print_symbol(pc, " ", "\n"); pc 51 arch/riscv/include/asm/processor.h unsigned long pc, unsigned long sp); pc 20 arch/riscv/include/uapi/asm/ptrace.h unsigned long pc; pc 77 arch/riscv/kernel/perf_callchain.c bool fill_callchain(unsigned long pc, void *entry) pc 79 arch/riscv/kernel/perf_callchain.c return perf_callchain_store(entry, pc); pc 65 arch/riscv/kernel/process.c void start_thread(struct pt_regs *regs, unsigned long pc, pc 77 arch/riscv/kernel/process.c regs->sepc = pc; pc 25 arch/riscv/kernel/stacktrace.c unsigned long fp, sp, pc; pc 30 arch/riscv/kernel/stacktrace.c pc = instruction_pointer(regs); pc 35 arch/riscv/kernel/stacktrace.c pc = (unsigned long)walk_stackframe; pc 40 arch/riscv/kernel/stacktrace.c pc = task->thread.ra; pc 47 arch/riscv/kernel/stacktrace.c if (unlikely(!__kernel_text_address(pc) || fn(pc, arg))) pc 59 arch/riscv/kernel/stacktrace.c pc = ftrace_graph_ret_addr(current, NULL, frame->ra, pc 69 arch/riscv/kernel/stacktrace.c unsigned long sp, pc; pc 74 arch/riscv/kernel/stacktrace.c pc = instruction_pointer(regs); pc 78 arch/riscv/kernel/stacktrace.c pc = (unsigned long)walk_stackframe; pc 82 arch/riscv/kernel/stacktrace.c pc = task->thread.ra; pc 90 arch/riscv/kernel/stacktrace.c if (__kernel_text_address(pc) && unlikely(fn(pc, arg))) pc 92 arch/riscv/kernel/stacktrace.c pc = (*ksp++) - 0x4; pc 99 arch/riscv/kernel/stacktrace.c static bool print_trace_address(unsigned long pc, void *arg) pc 101 arch/riscv/kernel/stacktrace.c print_ip_sym(pc); pc 112 arch/riscv/kernel/stacktrace.c static bool save_wchan(unsigned long pc, void *arg) pc 114 arch/riscv/kernel/stacktrace.c if (!in_sched_functions(pc)) { pc 116 arch/riscv/kernel/stacktrace.c *p = pc; pc 124 arch/riscv/kernel/stacktrace.c unsigned long pc = 0; pc 127 arch/riscv/kernel/stacktrace.c walk_stackframe(task, NULL, save_wchan, &pc); pc 128 arch/riscv/kernel/stacktrace.c return pc; pc 134 arch/riscv/kernel/stacktrace.c static bool __save_trace(unsigned long pc, void *arg, bool nosched) pc 138 arch/riscv/kernel/stacktrace.c if (unlikely(nosched && in_sched_functions(pc))) pc 145 arch/riscv/kernel/stacktrace.c trace->entries[trace->nr_entries++] = pc; pc 149 arch/riscv/kernel/stacktrace.c static bool save_trace(unsigned long pc, void *arg) pc 151 arch/riscv/kernel/stacktrace.c return __save_trace(pc, arg, false); pc 115 arch/riscv/kernel/traps.c static inline unsigned long get_break_insn_length(unsigned long pc) pc 119 arch/riscv/kernel/traps.c if (probe_kernel_address((bug_insn_t *)pc, insn)) pc 135 arch/riscv/kernel/traps.c int is_valid_bugaddr(unsigned long pc) pc 139 arch/riscv/kernel/traps.c if (pc < VMALLOC_START) pc 141 arch/riscv/kernel/traps.c if (probe_kernel_address((bug_insn_t *)pc, insn)) pc 20 arch/s390/include/asm/preempt.h static inline void preempt_count_set(int pc) pc 27 arch/s390/include/asm/preempt.h (pc & ~PREEMPT_NEED_RESCHED); pc 86 arch/s390/include/asm/preempt.h static inline void preempt_count_set(int pc) pc 88 arch/s390/include/asm/preempt.h S390_lowcore.preempt_count = pc; pc 241 arch/s390/include/asm/vx-insn.h .byte \opc pc 308 arch/s390/include/asm/vx-insn.h MRXBOPC \m3, \opc, v1 pc 328 arch/s390/include/asm/vx-insn.h MRXBOPC \m3, \opc, v1 pc 23 arch/s390/include/uapi/asm/runtime_instr.h __u32 pc : 1; pc 1256 arch/s390/kernel/ptrace.c cb->pc == 1 && pc 59 arch/s390/kernel/runtime_instr.c cb->pc = 1; pc 63 arch/sh/drivers/pci/pci-sh5.c printk("PCI INTERRUPT (at %08llx)!\n", regs->pc); pc 275 arch/sh/include/asm/dwarf.h unsigned long pc; pc 65 arch/sh/include/asm/kexec.h newregs->pc = _THIS_IP_; pc 51 arch/sh/include/asm/kprobes.h extern int kprobe_handle_illslot(unsigned long pc); pc 54 arch/sh/include/asm/kprobes.h #define kprobe_handle_illslot(pc) (-1) pc 41 arch/sh/include/asm/mmu_context_64.h unsigned long long sr, pc; pc 63 arch/sh/include/asm/mmu_context_64.h : "=r" (sr), "=r" (pc) : "0" (sr)); pc 94 arch/sh/include/asm/processor_32.h unsigned long pc; pc 171 arch/sh/include/asm/processor_32.h #define thread_saved_pc(tsk) (tsk->thread.pc) pc 186 arch/sh/include/asm/processor_32.h #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) pc 91 arch/sh/include/asm/processor_64.h unsigned long pc; pc 129 arch/sh/include/asm/processor_64.h .pc = 0, \ pc 143 arch/sh/include/asm/processor_64.h _regs->pc = new_pc - 4; /* Compensate syscall exit */ \ pc 144 arch/sh/include/asm/processor_64.h _regs->pc |= 1; /* Set SHmedia ! */ \ pc 204 arch/sh/include/asm/processor_64.h #define thread_saved_pc(tsk) (tsk->thread.pc) pc 208 arch/sh/include/asm/processor_64.h #define KSTK_EIP(tsk) ((tsk)->thread.pc) pc 21 arch/sh/include/asm/ptrace.h return regs->pc; pc 26 arch/sh/include/asm/ptrace.h regs->pc = val; pc 131 arch/sh/include/asm/ptrace.h unsigned long pc = regs->pc; pc 133 arch/sh/include/asm/ptrace.h if (virt_addr_uncached(pc)) pc 134 arch/sh/include/asm/ptrace.h return CAC_ADDR(pc); pc 136 arch/sh/include/asm/ptrace.h return pc; pc 86 arch/sh/include/asm/switch_to_32.h __ts2 = (u32 *)&prev->thread.pc; \ pc 90 arch/sh/include/asm/switch_to_32.h __ts7 = next->thread.pc; \ pc 47 arch/sh/include/uapi/asm/ptrace_32.h unsigned long pc; pc 6 arch/sh/include/uapi/asm/ptrace_64.h unsigned long long pc; pc 408 arch/sh/kernel/cpu/sh2a/fpu.c unsigned short insn = *(unsigned short *) regs->pc; pc 419 arch/sh/kernel/cpu/sh2a/fpu.c regs->pr = regs->pc + 4; pc 421 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 4 + ((short) ((insn & 0xfff) << 4) >> 3); pc 422 arch/sh/kernel/cpu/sh2a/fpu.c finsn = *(unsigned short *) (regs->pc + 2); pc 425 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); pc 427 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 4; pc 428 arch/sh/kernel/cpu/sh2a/fpu.c finsn = *(unsigned short *) (regs->pc + 2); pc 431 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 4; pc 433 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); pc 434 arch/sh/kernel/cpu/sh2a/fpu.c finsn = *(unsigned short *) (regs->pc + 2); pc 438 arch/sh/kernel/cpu/sh2a/fpu.c finsn = *(unsigned short *) (regs->pc + 2); pc 441 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 4 + regs->regs[nib[1]]; pc 442 arch/sh/kernel/cpu/sh2a/fpu.c finsn = *(unsigned short *) (regs->pc + 2); pc 445 arch/sh/kernel/cpu/sh2a/fpu.c finsn = *(unsigned short *) (regs->pc + 2); pc 447 arch/sh/kernel/cpu/sh2a/fpu.c nextpc = regs->pc + 2; pc 463 arch/sh/kernel/cpu/sh2a/fpu.c regs->pc = nextpc; pc 506 arch/sh/kernel/cpu/sh2a/fpu.c regs->pc = nextpc; pc 549 arch/sh/kernel/cpu/sh2a/fpu.c regs->pc = nextpc; pc 176 arch/sh/kernel/cpu/sh4/fpu.c unsigned short insn = *(unsigned short *)regs->pc; pc 187 arch/sh/kernel/cpu/sh4/fpu.c regs->pr = regs->pc + 4; /* bsr & jsr */ pc 191 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + 4 + ((short)((insn & 0xfff) << 4) >> 3); pc 192 arch/sh/kernel/cpu/sh4/fpu.c finsn = *(unsigned short *)(regs->pc + 2); pc 196 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + 4 + ((char)(insn & 0xff) << 1); pc 198 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + 4; pc 199 arch/sh/kernel/cpu/sh4/fpu.c finsn = *(unsigned short *)(regs->pc + 2); pc 203 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + 4; pc 205 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + 4 + ((char)(insn & 0xff) << 1); pc 206 arch/sh/kernel/cpu/sh4/fpu.c finsn = *(unsigned short *)(regs->pc + 2); pc 211 arch/sh/kernel/cpu/sh4/fpu.c finsn = *(unsigned short *)(regs->pc + 2); pc 215 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + 4 + regs->regs[nib[1]]; pc 216 arch/sh/kernel/cpu/sh4/fpu.c finsn = *(unsigned short *)(regs->pc + 2); pc 220 arch/sh/kernel/cpu/sh4/fpu.c finsn = *(unsigned short *)(regs->pc + 2); pc 222 arch/sh/kernel/cpu/sh4/fpu.c nextpc = regs->pc + instruction_size(insn); pc 237 arch/sh/kernel/cpu/sh4/fpu.c regs->pc = nextpc; pc 275 arch/sh/kernel/cpu/sh4/fpu.c regs->pc = nextpc; pc 319 arch/sh/kernel/cpu/sh4/fpu.c regs->pc = nextpc; pc 359 arch/sh/kernel/cpu/sh4/fpu.c regs->pc = nextpc; pc 382 arch/sh/kernel/cpu/sh4/fpu.c regs->pc = nextpc; pc 103 arch/sh/kernel/cpu/sh5/fpu.c regs->pc += 4; pc 43 arch/sh/kernel/cpu/sh5/unwind.c static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, pc 56 arch/sh/kernel/cpu/sh5/unwind.c sym = kallsyms_lookup(pc, NULL, &offset, NULL, namebuf); pc 60 arch/sh/kernel/cpu/sh5/unwind.c prologue = pc - offset; pc 217 arch/sh/kernel/cpu/sh5/unwind.c unsigned long pc, unsigned long fp) pc 227 arch/sh/kernel/cpu/sh5/unwind.c unsigned long pc, fp; pc 231 arch/sh/kernel/cpu/sh5/unwind.c pc = regs->pc & ~1; pc 239 arch/sh/kernel/cpu/sh5/unwind.c if (pc == ((unsigned long)&syscall_ret & ~1)) { pc 241 arch/sh/kernel/cpu/sh5/unwind.c unwind_nested(ops, data, pc, fp); pc 245 arch/sh/kernel/cpu/sh5/unwind.c if (pc == ((unsigned long)&ret_from_syscall & ~1)) { pc 247 arch/sh/kernel/cpu/sh5/unwind.c unwind_nested(ops, data, pc, fp); pc 253 arch/sh/kernel/cpu/sh5/unwind.c if (pc == ((unsigned long)&ret_from_exception & ~1)) { pc 255 arch/sh/kernel/cpu/sh5/unwind.c unwind_nested(ops, data, pc, fp); pc 259 arch/sh/kernel/cpu/sh5/unwind.c if (pc == ((unsigned long)&ret_from_irq & ~1)) { pc 261 arch/sh/kernel/cpu/sh5/unwind.c unwind_nested(ops, data, pc, fp); pc 265 arch/sh/kernel/cpu/sh5/unwind.c cond = ((pc >= __MEMORY_START) && (fp >= __MEMORY_START) && pc 266 arch/sh/kernel/cpu/sh5/unwind.c ((pc & 3) == 0) && ((fp & 7) == 0)); pc 268 arch/sh/kernel/cpu/sh5/unwind.c pc -= ofs; pc 270 arch/sh/kernel/cpu/sh5/unwind.c ops->address(data, pc, 1); pc 281 arch/sh/kernel/cpu/sh5/unwind.c if (lookup_prev_stack_frame(fp, pc, &next_fp, &next_pc, regs) == 0) { pc 283 arch/sh/kernel/cpu/sh5/unwind.c pc = next_pc & ~1; pc 325 arch/sh/kernel/cpu/sh5/unwind.c : "=r" (regs->pc) pc 549 arch/sh/kernel/disassemble.c unsigned short *pc = (unsigned short *)regs->pc; pc 552 arch/sh/kernel/disassemble.c if (regs->pc & 0x1) pc 560 arch/sh/kernel/disassemble.c if (__get_user(insn, pc + i)) { pc 565 arch/sh/kernel/disassemble.c printk("%s%08lx: ", (i ? " ": "->"), (unsigned long)(pc + i)); pc 566 arch/sh/kernel/disassemble.c print_sh_insn((unsigned long)(pc + i), insn); pc 347 arch/sh/kernel/dwarf.c struct dwarf_fde *dwarf_lookup_fde(unsigned long pc) pc 365 arch/sh/kernel/dwarf.c if (pc < tmp_start) { pc 368 arch/sh/kernel/dwarf.c if (pc < tmp_end) { pc 401 arch/sh/kernel/dwarf.c unsigned long pc) pc 410 arch/sh/kernel/dwarf.c while (current_insn < insn_end && frame->pc <= pc) { pc 421 arch/sh/kernel/dwarf.c frame->pc += delta; pc 449 arch/sh/kernel/dwarf.c frame->pc += delta * cie->code_alignment_factor; pc 454 arch/sh/kernel/dwarf.c frame->pc += delta * cie->code_alignment_factor; pc 459 arch/sh/kernel/dwarf.c frame->pc += delta * cie->code_alignment_factor; pc 574 arch/sh/kernel/dwarf.c struct dwarf_frame *dwarf_unwind_stack(unsigned long pc, pc 598 arch/sh/kernel/dwarf.c if (!pc || !prev) pc 599 arch/sh/kernel/dwarf.c pc = _THIS_IP_; pc 607 arch/sh/kernel/dwarf.c if (pc == (unsigned long)&return_to_handler) { pc 612 arch/sh/kernel/dwarf.c pc = ret_stack->ret; pc 634 arch/sh/kernel/dwarf.c fde = dwarf_lookup_fde(pc); pc 656 arch/sh/kernel/dwarf.c frame->pc = fde->initial_location; pc 661 arch/sh/kernel/dwarf.c frame, pc); pc 665 arch/sh/kernel/dwarf.c fde, frame, pc); pc 725 arch/sh/kernel/dwarf.c if (prev && prev->pc == (unsigned long)ret_from_irq) pc 283 arch/sh/kernel/io_trapped.c if (copy_from_user(&instruction, (void *)(regs->pc), pc 49 arch/sh/kernel/kgdb.c insn_size_t op = __raw_readw(linux_regs->pc); pc 55 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); pc 57 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 2; pc 63 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); pc 65 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4; /* Not in delay slot */ pc 71 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); pc 73 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 2; pc 79 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); pc 81 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4; /* Not in delay slot */ pc 86 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op); pc 90 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 pc 95 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 + OPCODE_BSR_DISP(op); pc 99 arch/sh/kernel/kgdb.c addr = linux_regs->pc + 4 pc 120 arch/sh/kernel/kgdb.c addr = linux_regs->pc + instruction_size(op); pc 184 arch/sh/kernel/kgdb.c { "pc", GDB_SIZEOF_REG, offsetof(struct pt_regs, pc) }, pc 243 arch/sh/kernel/kgdb.c gdb_regs[GDB_PC] = p->thread.pc; pc 268 arch/sh/kernel/kgdb.c linux_regs->pc = addr; pc 297 arch/sh/kernel/kgdb.c regs->pc = ip; pc 309 arch/sh/kernel/kgdb.c regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); pc 86 arch/sh/kernel/kprobes.c int __kprobes kprobe_handle_illslot(unsigned long pc) pc 88 arch/sh/kernel/kprobes.c struct kprobe *p = get_kprobe((kprobe_opcode_t *) pc + 1); pc 92 arch/sh/kernel/kprobes.c (unsigned int)pc + 2); pc 146 arch/sh/kernel/kprobes.c __this_cpu_write(saved_current_opcode.addr, (kprobe_opcode_t *)regs->pc); pc 162 arch/sh/kernel/kprobes.c (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); pc 167 arch/sh/kernel/kprobes.c (kprobe_opcode_t *) (regs->pc + 4 + pc 179 arch/sh/kernel/kprobes.c (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); pc 189 arch/sh/kernel/kprobes.c (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); pc 226 arch/sh/kernel/kprobes.c addr = (kprobe_opcode_t *) (regs->pc); pc 352 arch/sh/kernel/kprobes.c regs->pc = orig_ret_address; pc 428 arch/sh/kernel/kprobes.c regs->pc = (unsigned long)cur->addr; pc 458 arch/sh/kernel/kprobes.c if ((entry = search_exception_tables(regs->pc)) != NULL) { pc 459 arch/sh/kernel/kprobes.c regs->pc = entry->fixup; pc 487 arch/sh/kernel/kprobes.c addr = (kprobe_opcode_t *) (args->regs->pc); pc 35 arch/sh/kernel/perf_callchain.c perf_callchain_store(entry, regs->pc); pc 40 arch/sh/kernel/process_32.c regs->pc, regs->regs[15], regs->sr); pc 71 arch/sh/kernel/process_32.c regs->pc = new_pc; pc 142 arch/sh/kernel/process_32.c p->thread.pc = (unsigned long) ret_from_kernel_thread; pc 164 arch/sh/kernel/process_32.c p->thread.pc = (unsigned long) ret_from_fork; pc 210 arch/sh/kernel/process_32.c unsigned long pc; pc 218 arch/sh/kernel/process_32.c pc = thread_saved_pc(p); pc 221 arch/sh/kernel/process_32.c if (in_sched_functions(pc)) { pc 227 arch/sh/kernel/process_32.c return pc; pc 45 arch/sh/kernel/process_64.c ah = (regs->pc) >> 32; pc 46 arch/sh/kernel/process_64.c al = (regs->pc) & 0xffffffff; pc 398 arch/sh/kernel/process_64.c p->thread.pc = (unsigned long) ret_from_kernel_thread; pc 416 arch/sh/kernel/process_64.c p->thread.pc = (unsigned long) ret_from_fork; pc 422 arch/sh/kernel/process_64.c static int in_sh64_switch_to(unsigned long pc) pc 427 arch/sh/kernel/process_64.c return (pc >= (unsigned long) sh64_switch_to) && pc 428 arch/sh/kernel/process_64.c (pc < (unsigned long) &__sh64_switch_to_end); pc 434 arch/sh/kernel/process_64.c unsigned long pc; pc 442 arch/sh/kernel/process_64.c pc = thread_saved_pc(p); pc 445 arch/sh/kernel/process_64.c if (in_sh64_switch_to(pc)) { pc 460 arch/sh/kernel/process_64.c return pc; pc 114 arch/sh/kernel/ptrace_32.c unsigned long pc = get_stack_long(child, offsetof(struct pt_regs, pc)); pc 118 arch/sh/kernel/ptrace_32.c set_single_step(child, pc); pc 150 arch/sh/kernel/ptrace_32.c ®s->pc, pc 151 arch/sh/kernel/ptrace_32.c offsetof(struct pt_regs, pc), pc 173 arch/sh/kernel/ptrace_32.c ®s->pc, pc 174 arch/sh/kernel/ptrace_32.c offsetof(struct pt_regs, pc), pc 294 arch/sh/kernel/ptrace_32.c REG_OFFSET_NAME(pc), pc 156 arch/sh/kernel/ptrace_64.c ®s->pc, pc 189 arch/sh/kernel/ptrace_64.c ®s->pc, pc 254 arch/sh/kernel/ptrace_64.c REG_OFFSET_NAME(pc), pc 565 arch/sh/kernel/ptrace_64.c regs->pc += 4; pc 131 arch/sh/kernel/signal_32.c COPY(sr); COPY(pc); pc 235 arch/sh/kernel/signal_32.c COPY(sr); COPY(pc); pc 319 arch/sh/kernel/signal_32.c err |= __get_user(regs->pc, &funcptr->text); pc 322 arch/sh/kernel/signal_32.c regs->pc = (unsigned long)ksig->ka.sa.sa_handler; pc 328 arch/sh/kernel/signal_32.c current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); pc 389 arch/sh/kernel/signal_32.c err |= __get_user(regs->pc, &funcptr->text); pc 392 arch/sh/kernel/signal_32.c regs->pc = (unsigned long)ksig->ka.sa.sa_handler; pc 398 arch/sh/kernel/signal_32.c current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); pc 425 arch/sh/kernel/signal_32.c regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); pc 485 arch/sh/kernel/signal_32.c regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); pc 487 arch/sh/kernel/signal_32.c regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); pc 65 arch/sh/kernel/signal_64.c regs->pc -= 4; pc 109 arch/sh/kernel/signal_64.c regs->pc -= 4; pc 114 arch/sh/kernel/signal_64.c regs->pc -= 4; pc 237 arch/sh/kernel/signal_64.c COPY(pc); pc 275 arch/sh/kernel/signal_64.c regs->pc -= 4; pc 306 arch/sh/kernel/signal_64.c regs->pc -= 4; pc 350 arch/sh/kernel/signal_64.c COPY(sr); COPY(pc); pc 449 arch/sh/kernel/signal_64.c regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); pc 454 arch/sh/kernel/signal_64.c regs->pc >> 32, regs->pc & 0xffffffff, pc 530 arch/sh/kernel/signal_64.c regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); pc 534 arch/sh/kernel/signal_64.c regs->pc >> 32, regs->pc & 0xffffffff, pc 79 arch/sh/kernel/traps.c fixup = search_exception_tables(regs->pc); pc 81 arch/sh/kernel/traps.c regs->pc = fixup->fixup; pc 93 arch/sh/kernel/traps.c unsigned long bugaddr = regs->pc; pc 107 arch/sh/kernel/traps.c regs->pc += instruction_size(bugaddr); pc 138 arch/sh/kernel/traps.c regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); pc 155 arch/sh/kernel/traps.c regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); pc 223 arch/sh/kernel/traps_32.c srcu = (unsigned char __user *)regs->pc; pc 240 arch/sh/kernel/traps_32.c srcu = (unsigned char __user *)(regs->pc & ~0x3); pc 270 arch/sh/kernel/traps_32.c void __user *addr = (void __user *)(regs->pc + pc 338 arch/sh/kernel/traps_32.c regs->pc = regs->pr; pc 344 arch/sh/kernel/traps_32.c regs->pc += rm + 4; pc 350 arch/sh/kernel/traps_32.c regs->pr = regs->pc + 4; pc 351 arch/sh/kernel/traps_32.c regs->pc += rm + 4; pc 371 arch/sh/kernel/traps_32.c regs->pc = rm; pc 377 arch/sh/kernel/traps_32.c regs->pr = regs->pc + 4; pc 378 arch/sh/kernel/traps_32.c regs->pc = rm; pc 407 arch/sh/kernel/traps_32.c regs->pc += 4; /* next after slot */ pc 410 arch/sh/kernel/traps_32.c regs->pc += SH_PC_8BIT_OFFSET(instruction); pc 421 arch/sh/kernel/traps_32.c regs->pc += 4; /* next after slot */ pc 424 arch/sh/kernel/traps_32.c regs->pc += SH_PC_8BIT_OFFSET(instruction); pc 436 arch/sh/kernel/traps_32.c regs->pc += SH_PC_12BIT_OFFSET(instruction); pc 442 arch/sh/kernel/traps_32.c regs->pr = regs->pc + 4; pc 443 arch/sh/kernel/traps_32.c regs->pc += SH_PC_12BIT_OFFSET(instruction); pc 456 arch/sh/kernel/traps_32.c regs->pc += instruction_size(instruction); pc 495 arch/sh/kernel/traps_32.c if (copy_from_user(&instruction, (insn_size_t *)(regs->pc & ~1), pc 512 arch/sh/kernel/traps_32.c regs->pc += instruction_size(instruction); pc 518 arch/sh/kernel/traps_32.c if (regs->pc & 1) { pc 533 arch/sh/kernel/traps_32.c "access (PC %lx PR %lx)\n", current->comm, regs->pc, pc 540 arch/sh/kernel/traps_32.c if (regs->pc & 1) pc 544 arch/sh/kernel/traps_32.c if (copy_from_user(&instruction, (void __user *)(regs->pc), pc 576 arch/sh/kernel/traps_32.c get_user(inst, ((unsigned short *) regs->pc)); pc 619 arch/sh/kernel/traps_32.c get_user(inst, (unsigned short*)regs->pc); pc 623 arch/sh/kernel/traps_32.c regs->pc += instruction_size(inst); pc 664 arch/sh/kernel/traps_32.c regs->pr = regs->pc + 4; pc 667 arch/sh/kernel/traps_32.c regs->pc += SH_PC_8BIT_OFFSET(inst); pc 672 arch/sh/kernel/traps_32.c regs->pc += SH_PC_12BIT_OFFSET(inst); pc 677 arch/sh/kernel/traps_32.c regs->pc += regs->regs[(inst & 0x0f00) >> 8] + 4; pc 682 arch/sh/kernel/traps_32.c regs->pc = regs->regs[(inst & 0x0f00) >> 8]; pc 687 arch/sh/kernel/traps_32.c regs->pc = regs->pr; pc 700 arch/sh/kernel/traps_32.c if (kprobe_handle_illslot(regs->pc) == 0) pc 704 arch/sh/kernel/traps_32.c get_user(inst, (unsigned short *)regs->pc + 1); pc 706 arch/sh/kernel/traps_32.c get_user(inst, (unsigned short *)regs->pc); pc 33 arch/sh/kernel/traps_64.c static int read_opcode(reg_size_t pc, insn_size_t *result_opcode, int from_user_mode) pc 39 arch/sh/kernel/traps_64.c if ((pc & 3) == 1) { pc 41 arch/sh/kernel/traps_64.c aligned_pc = pc & ~3; pc 57 arch/sh/kernel/traps_64.c } else if ((pc & 1) == 0) { pc 206 arch/sh/kernel/traps_64.c width_shift, (unsigned long) regs->pc); pc 230 arch/sh/kernel/traps_64.c width_shift, (unsigned long) regs->pc); pc 273 arch/sh/kernel/traps_64.c width_shift, (unsigned long) regs->pc); pc 299 arch/sh/kernel/traps_64.c width_shift, (unsigned long) regs->pc); pc 371 arch/sh/kernel/traps_64.c width_shift, (unsigned long) regs->pc); pc 438 arch/sh/kernel/traps_64.c width_shift, (unsigned long) regs->pc); pc 465 arch/sh/kernel/traps_64.c error = read_opcode(regs->pc, &opcode, user_mode(regs)); pc 593 arch/sh/kernel/traps_64.c regs->pc += 4; /* Skip the instruction that's just been emulated */ pc 648 arch/sh/kernel/traps_64.c unsigned long pc, aligned_pc; pc 657 arch/sh/kernel/traps_64.c pc = regs->pc; pc 660 arch/sh/kernel/traps_64.c if (unlikely((pc & 3) == 0)) pc 665 arch/sh/kernel/traps_64.c aligned_pc = pc & ~3; pc 507 arch/sh/math-emu/math.c unsigned short insn = *(unsigned short *)regs->pc; pc 518 arch/sh/math-emu/math.c regs->pr = regs->pc + 4; pc 521 arch/sh/math-emu/math.c nextpc = regs->pc + 4 + ((short) ((insn & 0xfff) << 4) >> 3); pc 522 arch/sh/math-emu/math.c finsn = *(unsigned short *) (regs->pc + 2); pc 525 arch/sh/math-emu/math.c nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); pc 527 arch/sh/math-emu/math.c nextpc = regs->pc + 4; pc 528 arch/sh/math-emu/math.c finsn = *(unsigned short *) (regs->pc + 2); pc 531 arch/sh/math-emu/math.c nextpc = regs->pc + 4; pc 533 arch/sh/math-emu/math.c nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); pc 534 arch/sh/math-emu/math.c finsn = *(unsigned short *) (regs->pc + 2); pc 538 arch/sh/math-emu/math.c finsn = *(unsigned short *) (regs->pc + 2); pc 541 arch/sh/math-emu/math.c nextpc = regs->pc + 4 + regs->regs[nib[1]]; pc 542 arch/sh/math-emu/math.c finsn = *(unsigned short *) (regs->pc + 2); pc 545 arch/sh/math-emu/math.c finsn = *(unsigned short *) (regs->pc + 2); pc 547 arch/sh/math-emu/math.c nextpc = regs->pc + 2; pc 563 arch/sh/math-emu/math.c (void __user *)regs->pc); pc 566 arch/sh/math-emu/math.c regs->pc = nextpc; pc 17 arch/sh/mm/extable_32.c fixup = search_exception_tables(regs->pc); pc 19 arch/sh/mm/extable_32.c regs->pc = fixup->fixup; pc 77 arch/sh/mm/extable_64.c fixup = search_exception_tables(regs->pc); pc 79 arch/sh/mm/extable_64.c regs->pc = fixup->fixup; pc 199 arch/sh/mm/fault.c printk_address(regs->pc, 1); pc 259 arch/sparc/include/asm/hypervisor.h unsigned long pc, pc 111 arch/sparc/include/asm/oplib_64.h void prom_startcpu(int cpunode, unsigned long pc, unsigned long arg); pc 116 arch/sparc/include/asm/oplib_64.h void prom_startcpu_cpuid(int cpuid, unsigned long pc, unsigned long arg); pc 66 arch/sparc/include/asm/processor_32.h static inline void start_thread(struct pt_regs * regs, unsigned long pc, pc 72 arch/sparc/include/asm/processor_32.h regs->pc = ((pc & (~3)) - 4); pc 73 arch/sparc/include/asm/processor_32.h regs->npc = regs->pc + 4; pc 99 arch/sparc/include/asm/processor_32.h #define KSTK_EIP(tsk) ((tsk)->thread.kregs->pc) pc 97 arch/sparc/include/asm/processor_64.h #define start_thread(regs, pc, sp) \ pc 101 arch/sparc/include/asm/processor_64.h regs->tpc = ((pc & (~3)) - 4); \ pc 139 arch/sparc/include/asm/processor_64.h #define start_thread32(regs, pc, sp) \ pc 142 arch/sparc/include/asm/processor_64.h pc &= 0x00000000ffffffffUL; \ pc 145 arch/sparc/include/asm/processor_64.h regs->tpc = ((pc & (~3)) - 4); \ pc 144 arch/sparc/include/asm/ptrace.h #define instruction_pointer(regs) ((regs)->pc) pc 41 arch/sparc/include/asm/sigcontext.h unsigned int pc; pc 150 arch/sparc/include/asm/ttable.h rd %pc, %g7; \ pc 162 arch/sparc/include/asm/ttable.h rd %pc, %g7; \ pc 176 arch/sparc/include/asm/ttable.h rd %pc, %g7; \ pc 227 arch/sparc/include/asm/ttable.h rd %pc, %g7; \ pc 45 arch/sparc/include/uapi/asm/ptrace.h unsigned int pc; pc 106 arch/sparc/include/uapi/asm/ptrace.h unsigned long pc; pc 15 arch/sparc/kernel/entry.h void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, pc 18 arch/sparc/kernel/entry.h void do_priv_instruction(struct pt_regs *regs, unsigned long pc, pc 20 arch/sparc/kernel/entry.h void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, pc 22 arch/sparc/kernel/entry.h void do_fpd_trap(struct pt_regs *regs, unsigned long pc, pc 24 arch/sparc/kernel/entry.h void do_fpe_trap(struct pt_regs *regs, unsigned long pc, pc 26 arch/sparc/kernel/entry.h void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, pc 28 arch/sparc/kernel/entry.h void handle_watchpoint(struct pt_regs *regs, unsigned long pc, pc 30 arch/sparc/kernel/entry.h void handle_reg_access(struct pt_regs *regs, unsigned long pc, pc 32 arch/sparc/kernel/entry.h void handle_cp_disabled(struct pt_regs *regs, unsigned long pc, pc 34 arch/sparc/kernel/entry.h void handle_cp_exception(struct pt_regs *regs, unsigned long pc, pc 81 arch/sparc/kernel/kernel.h void handle_hw_divzero(struct pt_regs *regs, unsigned long pc, pc 41 arch/sparc/kernel/kgdb_32.c gdb_regs[GDB_PC] = regs->pc; pc 99 arch/sparc/kernel/kgdb_32.c regs->pc = gdb_regs[GDB_PC]; pc 122 arch/sparc/kernel/kgdb_32.c linux_regs->pc = addr; pc 129 arch/sparc/kernel/kgdb_32.c if (linux_regs->pc == (unsigned long) arch_kgdb_breakpoint) { pc 130 arch/sparc/kernel/kgdb_32.c linux_regs->pc = linux_regs->npc; pc 165 arch/sparc/kernel/kgdb_32.c regs->pc = ip; pc 166 arch/sparc/kernel/kgdb_32.c regs->npc = regs->pc + 4; pc 51 arch/sparc/kernel/kgdb_64.c unsigned long pc, cwp; pc 73 arch/sparc/kernel/kgdb_64.c pc = (unsigned long) &ret_from_fork; pc 75 arch/sparc/kernel/kgdb_64.c pc = (unsigned long) &switch_to_pc; pc 77 arch/sparc/kernel/kgdb_64.c gdb_regs[GDB_PC] = pc; pc 78 arch/sparc/kernel/kgdb_64.c gdb_regs[GDB_NPC] = pc + 4; pc 757 arch/sparc/kernel/pcic.c pend, (int)regs->pc, pcic_speculative); pc 762 arch/sparc/kernel/pcic.c regs->pc = regs->npc; pc 1754 arch/sparc/kernel/perf_event.c unsigned long pc; pc 1765 arch/sparc/kernel/perf_event.c pc = regs->tpc; pc 1768 arch/sparc/kernel/perf_event.c pc = sf->callers_pc; pc 1771 arch/sparc/kernel/perf_event.c perf_callchain_store(entry, pc); pc 1773 arch/sparc/kernel/perf_event.c if ((pc + 8UL) == (unsigned long) &return_to_handler) { pc 1778 arch/sparc/kernel/perf_event.c pc = ret_stack->ret; pc 1779 arch/sparc/kernel/perf_event.c perf_callchain_store(entry, pc); pc 1806 arch/sparc/kernel/perf_event.c unsigned long pc; pc 1815 arch/sparc/kernel/perf_event.c pc = sf.callers_pc; pc 1817 arch/sparc/kernel/perf_event.c perf_callchain_store(entry, pc); pc 1828 arch/sparc/kernel/perf_event.c unsigned long pc; pc 1838 arch/sparc/kernel/perf_event.c pc = sf.callers_pc & 0xffffffff; pc 1846 arch/sparc/kernel/perf_event.c pc = sf.callers_pc; pc 1849 arch/sparc/kernel/perf_event.c perf_callchain_store(entry, pc); pc 129 arch/sparc/kernel/process_32.c r->psr, r->pc, r->npc, r->y, print_tainted()); pc 130 arch/sparc/kernel/process_32.c printk("PC: <%pS>\n", (void *) r->pc); pc 153 arch/sparc/kernel/process_32.c unsigned long pc, fp; pc 172 arch/sparc/kernel/process_32.c pc = rw->ins[7]; pc 173 arch/sparc/kernel/process_32.c printk("[%08lx : ", pc); pc 174 arch/sparc/kernel/process_32.c printk("%pS ] ", (void *) pc); pc 463 arch/sparc/kernel/process_32.c unsigned long pc, fp, bias = 0; pc 480 arch/sparc/kernel/process_32.c pc = rw->ins[7]; pc 481 arch/sparc/kernel/process_32.c if (!in_sched_functions(pc)) { pc 482 arch/sparc/kernel/process_32.c ret = pc; pc 772 arch/sparc/kernel/process_64.c unsigned long pc, fp, bias = 0; pc 790 arch/sparc/kernel/process_64.c pc = rw->ins[7]; pc 791 arch/sparc/kernel/process_64.c if (!in_sched_functions(pc)) { pc 792 arch/sparc/kernel/process_64.c ret = pc; pc 96 arch/sparc/kernel/ptrace_32.c reg = regs->pc; pc 185 arch/sparc/kernel/ptrace_32.c regs->pc = reg; pc 91 arch/sparc/kernel/signal32.c unsigned int pc, npc; pc 114 arch/sparc/kernel/signal32.c if (__get_user(pc, &sf->info.si_regs.pc) || pc 118 arch/sparc/kernel/signal32.c if ((pc | npc) & 3) pc 122 arch/sparc/kernel/signal32.c pc &= 0xffffffff; pc 125 arch/sparc/kernel/signal32.c regs->tpc = pc; pc 179 arch/sparc/kernel/signal32.c unsigned int psr, pc, npc, ufp; pc 202 arch/sparc/kernel/signal32.c if (__get_user(pc, &sf->regs.pc) || pc 206 arch/sparc/kernel/signal32.c if ((pc | npc) & 3) pc 210 arch/sparc/kernel/signal32.c pc &= 0xffffffff; pc 213 arch/sparc/kernel/signal32.c regs->tpc = pc; pc 389 arch/sparc/kernel/signal32.c err = put_user(regs->tpc, &sf->info.si_regs.pc); pc 523 arch/sparc/kernel/signal32.c err = put_user(regs->tpc, &sf->regs.pc); pc 78 arch/sparc/kernel/signal_32.c unsigned long up_psr, pc, npc, ufp; pc 102 arch/sparc/kernel/signal_32.c err = __get_user(pc, &sf->info.si_regs.pc); pc 105 arch/sparc/kernel/signal_32.c if ((pc | npc) & 3) pc 146 arch/sparc/kernel/signal_32.c unsigned int psr, pc, npc, ufp; pc 163 arch/sparc/kernel/signal_32.c err = __get_user(pc, &sf->regs.pc); pc 165 arch/sparc/kernel/signal_32.c err |= ((pc | npc) & 0x03); pc 187 arch/sparc/kernel/signal_32.c regs->pc = pc; pc 299 arch/sparc/kernel/signal_32.c regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 300 arch/sparc/kernel/signal_32.c regs->npc = (regs->pc + 4); pc 346 arch/sparc/kernel/signal_32.c err = __put_user(regs->pc, &sf->regs.pc); pc 397 arch/sparc/kernel/signal_32.c regs->pc = (unsigned long) ksig->ka.sa.sa_handler; pc 398 arch/sparc/kernel/signal_32.c regs->npc = (regs->pc + 4); pc 448 arch/sparc/kernel/signal_32.c regs->pc -= 4; pc 508 arch/sparc/kernel/signal_32.c regs->pc -= 4; pc 514 arch/sparc/kernel/signal_32.c regs->pc -= 4; pc 48 arch/sparc/kernel/signal_64.c unsigned long pc, npc, tstate; pc 59 arch/sparc/kernel/signal_64.c err = __get_user(pc, &((*grp)[MC_PC])); pc 61 arch/sparc/kernel/signal_64.c if (err || ((pc | npc) & 3)) pc 76 arch/sparc/kernel/signal_64.c pc &= 0xffffffff; pc 79 arch/sparc/kernel/signal_64.c regs->tpc = pc; pc 37 arch/sparc/kernel/stacktrace.c unsigned long pc; pc 48 arch/sparc/kernel/stacktrace.c pc = regs->tpc; pc 51 arch/sparc/kernel/stacktrace.c pc = sf->callers_pc; pc 57 arch/sparc/kernel/stacktrace.c else if (!skip_sched || !in_sched_functions(pc)) { pc 58 arch/sparc/kernel/stacktrace.c trace->entries[trace->nr_entries++] = pc; pc 60 arch/sparc/kernel/stacktrace.c if ((pc + 8UL) == (unsigned long) &return_to_handler) { pc 65 arch/sparc/kernel/stacktrace.c pc = ret_stack->ret; pc 68 arch/sparc/kernel/stacktrace.c trace->entries[trace->nr_entries++] = pc; pc 152 arch/sparc/kernel/sys_sparc_32.c printk ("TRAP: Entering kernel PC=%x, nPC=%x\n", regs->pc, regs->npc); pc 154 arch/sparc/kernel/sys_sparc_32.c force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)regs->pc, 0); pc 157 arch/sparc/kernel/sys_sparc_32.c printk ("TRAP: Returning to space: PC=%x nPC=%x\n", regs->pc, regs->npc); pc 73 arch/sparc/kernel/time_32.c unsigned long pc = regs->pc; pc 75 arch/sparc/kernel/time_32.c if (in_lock_functions(pc) || pc 76 arch/sparc/kernel/time_32.c (pc >= (unsigned long) __copy_user_begin && pc 77 arch/sparc/kernel/time_32.c pc < (unsigned long) __copy_user_end) || pc 78 arch/sparc/kernel/time_32.c (pc >= (unsigned long) __bzero_begin && pc 79 arch/sparc/kernel/time_32.c pc < (unsigned long) __bzero_end)) pc 80 arch/sparc/kernel/time_32.c pc = regs->u_regs[UREG_RETPC]; pc 81 arch/sparc/kernel/time_32.c return pc; pc 59 arch/sparc/kernel/time_64.c unsigned long pc = instruction_pointer(regs); pc 61 arch/sparc/kernel/time_64.c if (in_lock_functions(pc)) pc 63 arch/sparc/kernel/time_64.c return pc; pc 35 arch/sparc/kernel/traps_32.c static void instruction_dump(unsigned long *pc) pc 39 arch/sparc/kernel/traps_32.c if((((unsigned long) pc) & 3)) pc 43 arch/sparc/kernel/traps_32.c printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>'); pc 88 arch/sparc/kernel/traps_32.c instruction_dump ((unsigned long *) regs->pc); pc 106 arch/sparc/kernel/traps_32.c (void __user *)regs->pc, type - 0x80); pc 109 arch/sparc/kernel/traps_32.c void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 116 arch/sparc/kernel/traps_32.c regs->pc, *(unsigned long *)regs->pc); pc 119 arch/sparc/kernel/traps_32.c send_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)pc, 0, current); pc 122 arch/sparc/kernel/traps_32.c void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 127 arch/sparc/kernel/traps_32.c send_sig_fault(SIGILL, ILL_PRVOPC, (void __user *)pc, 0, current); pc 132 arch/sparc/kernel/traps_32.c void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 136 arch/sparc/kernel/traps_32.c printk("KERNEL MNA at pc %08lx npc %08lx called by %08lx\n", pc, npc, pc 143 arch/sparc/kernel/traps_32.c instruction_dump ((unsigned long *) regs->pc); pc 158 arch/sparc/kernel/traps_32.c void do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 200 arch/sparc/kernel/traps_32.c void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 270 arch/sparc/kernel/traps_32.c regs->pc); pc 271 arch/sparc/kernel/traps_32.c regs->pc = regs->npc; pc 294 arch/sparc/kernel/traps_32.c send_sig_fault(SIGFPE, code, (void __user *)pc, 0, fpt); pc 303 arch/sparc/kernel/traps_32.c void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 308 arch/sparc/kernel/traps_32.c send_sig_fault(SIGEMT, EMT_TAGOVF, (void __user *)pc, 0, current); pc 311 arch/sparc/kernel/traps_32.c void handle_watchpoint(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 316 arch/sparc/kernel/traps_32.c pc, npc, psr); pc 323 arch/sparc/kernel/traps_32.c void handle_reg_access(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 328 arch/sparc/kernel/traps_32.c pc, npc, psr); pc 330 arch/sparc/kernel/traps_32.c force_sig_fault(SIGBUS, BUS_OBJERR, (void __user *)pc, 0); pc 333 arch/sparc/kernel/traps_32.c void handle_cp_disabled(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 336 arch/sparc/kernel/traps_32.c send_sig_fault(SIGILL, ILL_COPROC, (void __user *)pc, 0, current); pc 339 arch/sparc/kernel/traps_32.c void handle_cp_exception(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 344 arch/sparc/kernel/traps_32.c pc, npc, psr); pc 346 arch/sparc/kernel/traps_32.c send_sig_fault(SIGILL, ILL_COPROC, (void __user *)pc, 0, current); pc 349 arch/sparc/kernel/traps_32.c void handle_hw_divzero(struct pt_regs *regs, unsigned long pc, unsigned long npc, pc 352 arch/sparc/kernel/traps_32.c send_sig_fault(SIGFPE, FPE_INTDIV, (void __user *)pc, 0, current); pc 2425 arch/sparc/kernel/traps_64.c static void instruction_dump(unsigned int *pc) pc 2429 arch/sparc/kernel/traps_64.c if ((((unsigned long) pc) & 3)) pc 2434 arch/sparc/kernel/traps_64.c printk("%c%08x%c",i?' ':'<',pc[i],i?' ':'>'); pc 2438 arch/sparc/kernel/traps_64.c static void user_instruction_dump(unsigned int __user *pc) pc 2443 arch/sparc/kernel/traps_64.c if ((((unsigned long) pc) & 3)) pc 2446 arch/sparc/kernel/traps_64.c if (copy_from_user(buf, pc - 3, sizeof(buf))) pc 2483 arch/sparc/kernel/traps_64.c unsigned long pc; pc 2493 arch/sparc/kernel/traps_64.c pc = regs->tpc; pc 2496 arch/sparc/kernel/traps_64.c pc = sf->callers_pc; pc 2500 arch/sparc/kernel/traps_64.c printk(" [%016lx] %pS\n", pc, (void *) pc); pc 2502 arch/sparc/kernel/traps_64.c if ((pc + 8UL) == (unsigned long) &return_to_handler) { pc 2506 arch/sparc/kernel/traps_64.c pc = ret_stack->ret; pc 2507 arch/sparc/kernel/traps_64.c printk(" [%016lx] %pS\n", pc, (void *) pc); pc 2580 arch/sparc/kernel/traps_64.c unsigned long pc = regs->tpc; pc 2591 arch/sparc/kernel/traps_64.c pc = (u32)pc; pc 2592 arch/sparc/kernel/traps_64.c if (get_user(insn, (u32 __user *) pc) != -EFAULT) { pc 2616 arch/sparc/kernel/traps_64.c force_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)pc, 0); pc 200 arch/sparc/kernel/unaligned_32.c regs->pc = regs->npc; pc 217 arch/sparc/kernel/unaligned_32.c unsigned long fixup = search_extables_range(regs->pc, &g2); pc 235 arch/sparc/kernel/unaligned_32.c regs->pc = fixup; pc 236 arch/sparc/kernel/unaligned_32.c regs->npc = regs->pc + 4; pc 247 arch/sparc/kernel/unaligned_32.c regs->pc); pc 283 arch/sparc/kernel/unaligned_32.c if ((regs->pc | regs->npc) & 3) pc 599 arch/sparc/kernel/unaligned_64.c unsigned long pc = regs->tpc; pc 611 arch/sparc/kernel/unaligned_64.c pc = (u32)pc; pc 612 arch/sparc/kernel/unaligned_64.c if (get_user(insn, (u32 __user *) pc) != -EFAULT) { pc 663 arch/sparc/kernel/unaligned_64.c unsigned long pc = regs->tpc; pc 675 arch/sparc/kernel/unaligned_64.c pc = (u32)pc; pc 676 arch/sparc/kernel/unaligned_64.c if (get_user(insn, (u32 __user *) pc) != -EFAULT) { pc 806 arch/sparc/kernel/visemul.c unsigned long pc = regs->tpc; pc 814 arch/sparc/kernel/visemul.c pc = (u32)pc; pc 816 arch/sparc/kernel/visemul.c if (get_user(insn, (u32 __user *) pc)) pc 171 arch/sparc/math-emu/math_32.c printk("In do_mathemu()... pc is %08lx\n", regs->pc); pc 180 arch/sparc/math-emu/math_32.c printk("precise trap at %08lx\n", regs->pc); pc 182 arch/sparc/math-emu/math_32.c if (!get_user(insn, (u32 __user *) regs->pc)) { pc 186 arch/sparc/math-emu/math_32.c regs->pc = regs->npc; pc 169 arch/sparc/math-emu/math_64.c unsigned long pc = regs->tpc; pc 191 arch/sparc/math-emu/math_64.c pc = (u32)pc; pc 192 arch/sparc/math-emu/math_64.c if (get_user(insn, (u32 __user *) pc) != -EFAULT) { pc 58 arch/sparc/mm/fault_32.c asmlinkage int lookup_fault(unsigned long pc, unsigned long ret_pc, pc 75 arch/sparc/mm/fault_32.c insn = *((unsigned int *) pc); pc 83 arch/sparc/mm/fault_32.c insn = *((unsigned int *) pc); pc 93 arch/sparc/mm/fault_32.c regs.pc = pc; pc 94 arch/sparc/mm/fault_32.c regs.npc = pc + 4; pc 119 arch/sparc/mm/fault_32.c (void *)regs->pc, (void *)regs->u_regs[UREG_I7], pc 122 arch/sparc/mm/fault_32.c print_vma_addr(KERN_CONT " in ", regs->pc); pc 142 arch/sparc/mm/fault_32.c return regs->pc; pc 145 arch/sparc/mm/fault_32.c insn = *(unsigned int *) regs->pc; pc 147 arch/sparc/mm/fault_32.c __get_user(insn, (unsigned int *) regs->pc); pc 174 arch/sparc/mm/fault_32.c address = regs->pc; pc 297 arch/sparc/mm/fault_32.c fixup = search_extables_range(regs->pc, &g2); pc 307 arch/sparc/mm/fault_32.c regs->pc, address); pc 309 arch/sparc/mm/fault_32.c regs->pc, fixup, g2); pc 311 arch/sparc/mm/fault_32.c if ((regs->pc >= (unsigned long)__memset_start && pc 312 arch/sparc/mm/fault_32.c regs->pc < (unsigned long)__memset_end) || pc 313 arch/sparc/mm/fault_32.c (regs->pc >= (unsigned long)__csum_partial_copy_start && pc 314 arch/sparc/mm/fault_32.c regs->pc < (unsigned long)__csum_partial_copy_end)) { pc 316 arch/sparc/mm/fault_32.c regs->u_regs[UREG_I5] = regs->pc; pc 319 arch/sparc/mm/fault_32.c regs->pc = fixup; pc 320 arch/sparc/mm/fault_32.c regs->npc = regs->pc + 4; pc 3 arch/sparc/mm/mm_32.h asmlinkage int lookup_fault(unsigned long pc, unsigned long ret_pc, pc 380 arch/sparc/prom/misc_64.c void prom_startcpu(int cpunode, unsigned long pc, unsigned long arg) pc 388 arch/sparc/prom/misc_64.c args[4] = pc; pc 393 arch/sparc/prom/misc_64.c void prom_startcpu_cpuid(int cpuid, unsigned long pc, unsigned long arg) pc 401 arch/sparc/prom/misc_64.c args[4] = pc; pc 24 arch/sparc/prom/mp.c prom_startcpu(int cpunode, struct linux_prom_registers *ctable_reg, int ctx, char *pc) pc 37 arch/sparc/prom/mp.c ret = (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc); pc 30 arch/um/os-Linux/process.c unsigned long pc = ARBITRARY_ADDR; pc 47 arch/um/os-Linux/process.c pc = ARBITRARY_ADDR; pc 50 arch/um/os-Linux/process.c "%*d %*d %*d %*d %*d %lu", &pc) != 1) pc 56 arch/um/os-Linux/process.c return pc; pc 44 arch/unicore32/include/asm/processor.h #define start_thread(regs, pc, sp) \ pc 49 arch/unicore32/include/asm/processor.h regs->UCreg_pc = pc & ~1; /* pc */ \ pc 17 arch/unicore32/include/asm/stacktrace.h unsigned long pc; pc 57 arch/unicore32/include/asm/thread_info.h __u32 pc; pc 99 arch/unicore32/include/asm/thread_info.h ((unsigned long)(task_thread_info(tsk)->cpu_context.pc)) pc 232 arch/unicore32/kernel/process.c thread->cpu_context.pc = (unsigned long)ret_from_kernel_thread; pc 237 arch/unicore32/kernel/process.c thread->cpu_context.pc = (unsigned long)ret_from_fork; pc 284 arch/unicore32/kernel/process.c frame.pc = thread_saved_pc(p); pc 289 arch/unicore32/kernel/process.c if (!in_sched_functions(frame.pc)) pc 290 arch/unicore32/kernel/process.c return frame.pc; pc 49 arch/unicore32/kernel/stacktrace.c frame->pc = *(unsigned long *)(fp - 4); pc 81 arch/unicore32/kernel/stacktrace.c unsigned long addr = frame->pc; pc 108 arch/unicore32/kernel/stacktrace.c frame.pc = thread_saved_pc(tsk); pc 116 arch/unicore32/kernel/stacktrace.c frame.pc = (unsigned long)save_stack_trace_tsk; pc 1742 arch/x86/events/core.c bool pc = (config & ARCH_PERFMON_EVENTSEL_PIN_CONTROL); pc 1759 arch/x86/events/core.c if (pc) pc 3591 arch/x86/events/intel/core.c PMU_FORMAT_ATTR(pc, "config:19" ); pc 3737 arch/x86/events/intel/core.c struct intel_shared_regs *pc; pc 3739 arch/x86/events/intel/core.c pc = per_cpu(cpu_hw_events, i).shared_regs; pc 3740 arch/x86/events/intel/core.c if (pc && pc->core_id == core_id) { pc 3742 arch/x86/events/intel/core.c cpuc->shared_regs = pc; pc 3798 arch/x86/events/intel/core.c struct intel_shared_regs *pc; pc 3800 arch/x86/events/intel/core.c pc = cpuc->shared_regs; pc 3801 arch/x86/events/intel/core.c if (pc) { pc 3802 arch/x86/events/intel/core.c if (pc->core_id == -1 || --pc->refcnt == 0) pc 3803 arch/x86/events/intel/core.c kfree(pc); pc 187 arch/x86/events/intel/p6.c PMU_FORMAT_ATTR(pc, "config:19" ); pc 540 arch/x86/events/perf_event.h pc:1, pc 29 arch/x86/include/asm/preempt.h static __always_inline void preempt_count_set(int pc) pc 36 arch/x86/include/asm/preempt.h (pc & ~PREEMPT_NEED_RESCHED); pc 254 arch/x86/include/uapi/asm/kvm.h __u64 pc; pc 30 arch/x86/kernel/time.c unsigned long pc = instruction_pointer(regs); pc 32 arch/x86/kernel/time.c if (!user_mode(regs) && in_lock_functions(pc)) { pc 48 arch/x86/kernel/time.c return pc; pc 2791 arch/x86/kvm/svm.c kvm_run->debug.arch.pc = pc 2805 arch/x86/kvm/svm.c kvm_run->debug.arch.pc = svm->vmcb->save.cs.base + svm->vmcb->save.rip; pc 4687 arch/x86/kvm/vmx/vmx.c kvm_run->debug.arch.pc = vmcs_readl(GUEST_CS_BASE) + rip; pc 4906 arch/x86/kvm/vmx/vmx.c vcpu->run->debug.arch.pc = kvm_get_linear_rip(vcpu); pc 6592 arch/x86/kvm/x86.c kvm_run->debug.arch.pc = vcpu->arch.singlestep_rip; pc 6636 arch/x86/kvm/x86.c kvm_run->debug.arch.pc = eip; pc 157 arch/x86/mm/mmio-mod.c my_trace->pc = instptr; pc 159 arch/x86/mm/mmio-mod.c my_trace->pc = 0; pc 199 arch/xtensa/include/asm/processor.h (regs)->pc = (new_pc); \ pc 219 arch/xtensa/include/asm/processor.h #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) pc 53 arch/xtensa/include/asm/ptrace.h unsigned long pc; /* 4 */ pc 89 arch/xtensa/include/asm/ptrace.h # define instruction_pointer(regs) ((regs)->pc) pc 16 arch/xtensa/include/asm/stacktrace.h unsigned long pc; pc 44 arch/xtensa/include/uapi/asm/ptrace.h __u32 pc; pc 32 arch/xtensa/kernel/asm-offsets.c DEFINE(PT_PC, offsetof (struct pt_regs, pc)); pc 284 arch/xtensa/kernel/hw_breakpoint.c regs->pc == bp[i]->attr.bp_addr) pc 325 arch/xtensa/kernel/perf_event.c perf_callchain_store(entry, frame->pc); pc 302 arch/xtensa/kernel/process.c unsigned long sp, pc; pc 310 arch/xtensa/kernel/process.c pc = MAKE_PC_FROM_RA(p->thread.ra, p->thread.sp); pc 315 arch/xtensa/kernel/process.c pc == 0) pc 317 arch/xtensa/kernel/process.c if (!in_sched_functions(pc)) pc 318 arch/xtensa/kernel/process.c return pc; pc 322 arch/xtensa/kernel/process.c pc = MAKE_PC_FROM_RA(SPILL_SLOT(sp, 0), sp); pc 46 arch/xtensa/kernel/ptrace.c .pc = regs->pc, pc 86 arch/xtensa/kernel/ptrace.c regs->pc = newregs.pc; pc 288 arch/xtensa/kernel/ptrace.c tmp = regs->pc; pc 351 arch/xtensa/kernel/ptrace.c regs->pc = val; pc 46 arch/xtensa/kernel/s32c1i_selftest.c if (regs->pc == rcw_probe_pc) { /* exception on s32c1i ? */ pc 47 arch/xtensa/kernel/s32c1i_selftest.c regs->pc += 3; /* skip the s32c1i instruction */ pc 141 arch/xtensa/kernel/signal.c COPY(pc); pc 181 arch/xtensa/kernel/signal.c COPY(pc); pc 411 arch/xtensa/kernel/signal.c current->comm, current->pid, sig, frame, regs->pc); pc 454 arch/xtensa/kernel/signal.c regs->pc -= 3; pc 482 arch/xtensa/kernel/signal.c regs->pc -= 3; pc 486 arch/xtensa/kernel/signal.c regs->pc -= 3; pc 34 arch/xtensa/kernel/stacktrace.c unsigned long pc = regs->pc; pc 41 arch/xtensa/kernel/stacktrace.c frame.pc = pc; pc 44 arch/xtensa/kernel/stacktrace.c if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) pc 72 arch/xtensa/kernel/stacktrace.c pc = MAKE_PC_FROM_RA(a0, pc); pc 79 arch/xtensa/kernel/stacktrace.c frame.pc = pc; pc 82 arch/xtensa/kernel/stacktrace.c if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) pc 96 arch/xtensa/kernel/stacktrace.c pc = MAKE_PC_FROM_RA(a0, pc); pc 106 arch/xtensa/kernel/stacktrace.c frame.pc = pc; pc 109 arch/xtensa/kernel/stacktrace.c if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) pc 120 arch/xtensa/kernel/stacktrace.c unsigned long pc = regs->depc > VALID_DOUBLE_EXCEPTION_ADDRESS ? pc 121 arch/xtensa/kernel/stacktrace.c regs->depc : regs->pc; pc 138 arch/xtensa/kernel/stacktrace.c frame.pc = pc; pc 141 arch/xtensa/kernel/stacktrace.c if (kernel_text_address(pc) && kfn(&frame, data)) pc 144 arch/xtensa/kernel/stacktrace.c if (pc == (unsigned long)&common_exception_return) { pc 159 arch/xtensa/kernel/stacktrace.c pc = MAKE_PC_FROM_RA(a0, pc); pc 191 arch/xtensa/kernel/stacktrace.c frame.pc = MAKE_PC_FROM_RA(a0, a1); pc 215 arch/xtensa/kernel/stacktrace.c if (!kernel_text_address(frame->pc)) pc 218 arch/xtensa/kernel/stacktrace.c trace->entries[trace->nr_entries++] = frame->pc; pc 255 arch/xtensa/kernel/stacktrace.c if (!kernel_text_address(frame->pc)) pc 257 arch/xtensa/kernel/stacktrace.c r->addr = frame->pc; pc 189 arch/xtensa/kernel/traps.c current->comm, task_pid_nr(current), regs->pc, pc 312 arch/xtensa/kernel/traps.c current->comm, task_pid_nr(current), regs->pc); pc 336 arch/xtensa/kernel/traps.c task_pid_nr(current), regs->pc); pc 471 arch/xtensa/kernel/traps.c regs->pc, regs->ps, regs->depc, regs->excvaddr); pc 482 arch/xtensa/kernel/traps.c if (kernel_text_address(frame->pc)) pc 483 arch/xtensa/kernel/traps.c pr_cont(" [<%08lx>] %pB\n", frame->pc, (void *)frame->pc); pc 71 arch/xtensa/mm/fault.c address, exccause, regs->pc, pc 239 arch/xtensa/mm/fault.c if ((entry = search_exception_tables(regs->pc)) != NULL) { pc 241 arch/xtensa/mm/fault.c current->comm, regs->pc, entry->fixup); pc 243 arch/xtensa/mm/fault.c regs->pc = entry->fixup; pc 252 arch/xtensa/mm/fault.c address, regs->pc, regs->areg[0]); pc 16 arch/xtensa/oprofile/backtrace.c oprofile_add_trace(frame->pc); pc 1535 drivers/atm/idt77252.c u32 pc; pc 1546 drivers/atm/idt77252.c pc = readl(SAR_REG_NOW) >> 2; pc 1547 drivers/atm/idt77252.c if ((pc ^ idle) & ~(card->tst_size - 1)) { pc 123 drivers/bcma/bcma_private.h u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); pc 124 drivers/bcma/bcma_private.h void bcma_core_pci_early_init(struct bcma_drv_pci *pc); pc 125 drivers/bcma/bcma_private.h void bcma_core_pci_init(struct bcma_drv_pci *pc); pc 126 drivers/bcma/bcma_private.h void bcma_core_pci_up(struct bcma_drv_pci *pc); pc 127 drivers/bcma/bcma_private.h void bcma_core_pci_down(struct bcma_drv_pci *pc); pc 129 drivers/bcma/bcma_private.h static inline void bcma_core_pci_early_init(struct bcma_drv_pci *pc) pc 131 drivers/bcma/bcma_private.h WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); pc 133 drivers/bcma/bcma_private.h static inline void bcma_core_pci_init(struct bcma_drv_pci *pc) pc 136 drivers/bcma/bcma_private.h WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); pc 155 drivers/bcma/bcma_private.h bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc); pc 156 drivers/bcma/bcma_private.h void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); pc 158 drivers/bcma/bcma_private.h static inline bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) pc 162 drivers/bcma/bcma_private.h static inline void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) pc 20 drivers/bcma/driver_pci.c u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) pc 22 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); pc 23 drivers/bcma/driver_pci.c pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); pc 24 drivers/bcma/driver_pci.c return pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_DATA); pc 27 drivers/bcma/driver_pci.c static void bcma_pcie_write(struct bcma_drv_pci *pc, u32 address, u32 data) pc 29 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); pc 30 drivers/bcma/driver_pci.c pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); pc 31 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_DATA, data); pc 34 drivers/bcma/driver_pci.c static void bcma_pcie_mdio_set_phy(struct bcma_drv_pci *pc, u16 phy) pc 47 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_DATA, v); pc 51 drivers/bcma/driver_pci.c v = pcicore_read32(pc, BCMA_CORE_PCI_MDIO_CONTROL); pc 58 drivers/bcma/driver_pci.c static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u16 device, u8 address) pc 68 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_CONTROL, v); pc 70 drivers/bcma/driver_pci.c if (pc->core->id.rev >= 10) { pc 72 drivers/bcma/driver_pci.c bcma_pcie_mdio_set_phy(pc, device); pc 85 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_DATA, v); pc 89 drivers/bcma/driver_pci.c v = pcicore_read32(pc, BCMA_CORE_PCI_MDIO_CONTROL); pc 92 drivers/bcma/driver_pci.c ret = pcicore_read32(pc, BCMA_CORE_PCI_MDIO_DATA); pc 97 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_CONTROL, 0); pc 101 drivers/bcma/driver_pci.c static void bcma_pcie_mdio_write(struct bcma_drv_pci *pc, u16 device, pc 111 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_CONTROL, v); pc 113 drivers/bcma/driver_pci.c if (pc->core->id.rev >= 10) { pc 115 drivers/bcma/driver_pci.c bcma_pcie_mdio_set_phy(pc, device); pc 128 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_DATA, v); pc 132 drivers/bcma/driver_pci.c v = pcicore_read32(pc, BCMA_CORE_PCI_MDIO_CONTROL); pc 137 drivers/bcma/driver_pci.c pcicore_write32(pc, BCMA_CORE_PCI_MDIO_CONTROL, 0); pc 140 drivers/bcma/driver_pci.c static u16 bcma_pcie_mdio_writeread(struct bcma_drv_pci *pc, u16 device, pc 143 drivers/bcma/driver_pci.c bcma_pcie_mdio_write(pc, device, address, data); pc 144 drivers/bcma/driver_pci.c return bcma_pcie_mdio_read(pc, device, address); pc 151 drivers/bcma/driver_pci.c static void bcma_core_pci_fixcfg(struct bcma_drv_pci *pc) pc 153 drivers/bcma/driver_pci.c struct bcma_device *core = pc->core; pc 160 drivers/bcma/driver_pci.c val16 = pcicore_read16(pc, regoff); pc 165 drivers/bcma/driver_pci.c pcicore_write16(pc, regoff, val16); pc 173 drivers/bcma/driver_pci.c void bcma_core_pci_early_init(struct bcma_drv_pci *pc) pc 175 drivers/bcma/driver_pci.c if (pc->early_setup_done) pc 178 drivers/bcma/driver_pci.c pc->hostmode = bcma_core_pci_is_in_hostmode(pc); pc 179 drivers/bcma/driver_pci.c if (pc->hostmode) pc 182 drivers/bcma/driver_pci.c bcma_core_pci_fixcfg(pc); pc 185 drivers/bcma/driver_pci.c pc->early_setup_done = true; pc 192 drivers/bcma/driver_pci.c static u8 bcma_pcicore_polarity_workaround(struct bcma_drv_pci *pc) pc 196 drivers/bcma/driver_pci.c tmp = bcma_pcie_read(pc, BCMA_CORE_PCI_PLP_STATUSREG); pc 204 drivers/bcma/driver_pci.c static void bcma_pcicore_serdes_workaround(struct bcma_drv_pci *pc) pc 208 drivers/bcma/driver_pci.c bcma_pcie_mdio_write(pc, BCMA_CORE_PCI_MDIODATA_DEV_RX, pc 210 drivers/bcma/driver_pci.c bcma_pcicore_polarity_workaround(pc)); pc 211 drivers/bcma/driver_pci.c tmp = bcma_pcie_mdio_read(pc, BCMA_CORE_PCI_MDIODATA_DEV_PLL, pc 214 drivers/bcma/driver_pci.c bcma_pcie_mdio_write(pc, BCMA_CORE_PCI_MDIODATA_DEV_PLL, pc 221 drivers/bcma/driver_pci.c static void bcma_core_pci_config_fixup(struct bcma_drv_pci *pc) pc 228 drivers/bcma/driver_pci.c val16 = pcicore_read16(pc, regoff); pc 232 drivers/bcma/driver_pci.c pcicore_write16(pc, regoff, val16); pc 240 drivers/bcma/driver_pci.c static void bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc) pc 242 drivers/bcma/driver_pci.c bcma_pcicore_serdes_workaround(pc); pc 243 drivers/bcma/driver_pci.c bcma_core_pci_config_fixup(pc); pc 246 drivers/bcma/driver_pci.c void bcma_core_pci_init(struct bcma_drv_pci *pc) pc 248 drivers/bcma/driver_pci.c if (pc->setup_done) pc 251 drivers/bcma/driver_pci.c bcma_core_pci_early_init(pc); pc 253 drivers/bcma/driver_pci.c if (pc->hostmode) pc 254 drivers/bcma/driver_pci.c bcma_core_pci_hostmode_init(pc); pc 256 drivers/bcma/driver_pci.c bcma_core_pci_clientmode_init(pc); pc 261 drivers/bcma/driver_pci.c struct bcma_drv_pci *pc; pc 267 drivers/bcma/driver_pci.c pc = &bus->drv_pci[0]; pc 269 drivers/bcma/driver_pci.c if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) { pc 271 drivers/bcma/driver_pci.c bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, pc 273 drivers/bcma/driver_pci.c bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, pc 275 drivers/bcma/driver_pci.c } else if (pc->core->id.rev >= 21 && pc->core->id.rev <= 22) { pc 277 drivers/bcma/driver_pci.c bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, pc 279 drivers/bcma/driver_pci.c bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, pc 285 drivers/bcma/driver_pci.c static void bcma_core_pci_extend_L1timer(struct bcma_drv_pci *pc, bool extend) pc 289 drivers/bcma/driver_pci.c w = bcma_pcie_read(pc, BCMA_CORE_PCI_DLLP_PMTHRESHREG); pc 294 drivers/bcma/driver_pci.c bcma_pcie_write(pc, BCMA_CORE_PCI_DLLP_PMTHRESHREG, w); pc 295 drivers/bcma/driver_pci.c bcma_pcie_read(pc, BCMA_CORE_PCI_DLLP_PMTHRESHREG); pc 298 drivers/bcma/driver_pci.c void bcma_core_pci_up(struct bcma_drv_pci *pc) pc 300 drivers/bcma/driver_pci.c bcma_core_pci_extend_L1timer(pc, true); pc 303 drivers/bcma/driver_pci.c void bcma_core_pci_down(struct bcma_drv_pci *pc) pc 305 drivers/bcma/driver_pci.c bcma_core_pci_extend_L1timer(pc, false); pc 28 drivers/bcma/driver_pci_host.c bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) pc 30 drivers/bcma/driver_pci_host.c struct bcma_bus *bus = pc->core->bus; pc 39 drivers/bcma/driver_pci_host.c bcma_core_enable(pc->core, 0); pc 41 drivers/bcma/driver_pci_host.c return !mips_busprobe32(tmp, pc->core->io_addr); pc 44 drivers/bcma/driver_pci_host.c static u32 bcma_pcie_read_config(struct bcma_drv_pci *pc, u32 address) pc 46 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_CONFIG_ADDR, address); pc 47 drivers/bcma/driver_pci_host.c pcicore_read32(pc, BCMA_CORE_PCI_CONFIG_ADDR); pc 48 drivers/bcma/driver_pci_host.c return pcicore_read32(pc, BCMA_CORE_PCI_CONFIG_DATA); pc 51 drivers/bcma/driver_pci_host.c static void bcma_pcie_write_config(struct bcma_drv_pci *pc, u32 address, pc 54 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_CONFIG_ADDR, address); pc 55 drivers/bcma/driver_pci_host.c pcicore_read32(pc, BCMA_CORE_PCI_CONFIG_ADDR); pc 56 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_CONFIG_DATA, data); pc 59 drivers/bcma/driver_pci_host.c static u32 bcma_get_cfgspace_addr(struct bcma_drv_pci *pc, unsigned int dev, pc 67 drivers/bcma/driver_pci_host.c if (dev >= 2 || !(bcma_pcie_read(pc, BCMA_CORE_PCI_DLLP_LSREG) pc 73 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI1, BCMA_CORE_PCI_SBTOPCI_CFG0); pc 75 drivers/bcma/driver_pci_host.c addr = pc->host_controller->host_cfg_addr; pc 84 drivers/bcma/driver_pci_host.c static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev, pc 92 drivers/bcma/driver_pci_host.c WARN_ON(!pc->hostmode); pc 106 drivers/bcma/driver_pci_host.c val = bcma_pcie_read_config(pc, addr); pc 111 drivers/bcma/driver_pci_host.c val = pcicore_read32(pc, addr); pc 114 drivers/bcma/driver_pci_host.c addr = bcma_get_cfgspace_addr(pc, dev, func, off); pc 148 drivers/bcma/driver_pci_host.c static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev, pc 155 drivers/bcma/driver_pci_host.c u16 chipid = pc->core->bus->chipinfo.id; pc 157 drivers/bcma/driver_pci_host.c WARN_ON(!pc->hostmode); pc 171 drivers/bcma/driver_pci_host.c val = bcma_pcie_read_config(pc, addr); pc 176 drivers/bcma/driver_pci_host.c val = pcicore_read32(pc, addr); pc 179 drivers/bcma/driver_pci_host.c addr = bcma_get_cfgspace_addr(pc, dev, func, off); pc 211 drivers/bcma/driver_pci_host.c bcma_pcie_write_config(pc, addr, val); pc 213 drivers/bcma/driver_pci_host.c pcicore_write32(pc, addr, val); pc 236 drivers/bcma/driver_pci_host.c struct bcma_drv_pci *pc; pc 240 drivers/bcma/driver_pci_host.c pc = pc_host->pdev; pc 243 drivers/bcma/driver_pci_host.c err = bcma_extpci_read_config(pc, PCI_SLOT(devfn), pc 256 drivers/bcma/driver_pci_host.c struct bcma_drv_pci *pc; pc 260 drivers/bcma/driver_pci_host.c pc = pc_host->pdev; pc 263 drivers/bcma/driver_pci_host.c err = bcma_extpci_write_config(pc, PCI_SLOT(devfn), pc 271 drivers/bcma/driver_pci_host.c static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev, pc 281 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val, pc 287 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, PCI_STATUS, &byte_val, pc 293 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, PCI_CAPABILITY_LIST, &cap_ptr, pc 300 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, sizeof(u8)); pc 302 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, cap_ptr + 1, &cap_ptr, pc 306 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, pc 326 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, func, cap_data, buf, pc 340 drivers/bcma/driver_pci_host.c static void bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) pc 342 drivers/bcma/driver_pci_host.c struct bcma_bus *bus = pc->core->bus; pc 347 drivers/bcma/driver_pci_host.c cap_ptr = bcma_find_pci_capability(pc, 0, 0, PCI_CAP_ID_EXP, NULL, pc 350 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, 0, 0, root_cap, &val16, sizeof(u16)); pc 355 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, 0, 0, root_ctrl, &val16, pc 373 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, dev, 0, pc 387 drivers/bcma/driver_pci_host.c void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) pc 389 drivers/bcma/driver_pci_host.c struct bcma_bus *bus = pc->core->bus; pc 410 drivers/bcma/driver_pci_host.c pc->host_controller = pc_host; pc 414 drivers/bcma/driver_pci_host.c pc_host->pdev = pc; pc 434 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_CTL, BCMA_CORE_PCI_CTL_RST_OE); pc 436 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_CTL, BCMA_CORE_PCI_CTL_RST | pc 450 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI0, pc 456 drivers/bcma/driver_pci_host.c if (pc->core->core_unit == 0) { pc 463 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI0, pc 465 drivers/bcma/driver_pci_host.c } else if (pc->core->core_unit == 1) { pc 473 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI0, pc 477 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI0, pc 481 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI1, BCMA_CORE_PCI_SBTOPCI_CFG0); pc 484 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_SBTOPCI2, pc 495 drivers/bcma/driver_pci_host.c bcma_core_pci_enable_crs(pc); pc 500 drivers/bcma/driver_pci_host.c bcma_extpci_read_config(pc, 0, 0, BCMA_CORE_PCI_CFG_DEVCTRL, pc 504 drivers/bcma/driver_pci_host.c bcma_extpci_write_config(pc, 0, 0, BCMA_CORE_PCI_CFG_DEVCTRL, pc 510 drivers/bcma/driver_pci_host.c bcma_extpci_write_config(pc, 0, 0, PCI_COMMAND, &tmp, sizeof(tmp)); pc 513 drivers/bcma/driver_pci_host.c pcicore_write32(pc, BCMA_CORE_PCI_IMASK, BCMA_CORE_PCI_IMASK_INTA); pc 384 drivers/clk/sifive/fu540-prci.c struct __prci_clock *pc = clk_hw_to_prci_clock(hw); pc 385 drivers/clk/sifive/fu540-prci.c struct __prci_wrpll_data *pwd = pc->pwd; pc 394 drivers/clk/sifive/fu540-prci.c struct __prci_clock *pc = clk_hw_to_prci_clock(hw); pc 395 drivers/clk/sifive/fu540-prci.c struct __prci_wrpll_data *pwd = pc->pwd; pc 409 drivers/clk/sifive/fu540-prci.c struct __prci_clock *pc = clk_hw_to_prci_clock(hw); pc 410 drivers/clk/sifive/fu540-prci.c struct __prci_wrpll_data *pwd = pc->pwd; pc 411 drivers/clk/sifive/fu540-prci.c struct __prci_data *pd = pc->pd; pc 446 drivers/clk/sifive/fu540-prci.c struct __prci_clock *pc = clk_hw_to_prci_clock(hw); pc 447 drivers/clk/sifive/fu540-prci.c struct __prci_data *pd = pc->pd; pc 300 drivers/cpufreq/powernow-k7.c union powernow_acpi_control_t pc; pc 350 drivers/cpufreq/powernow-k7.c pc.val = (unsigned long) acpi_processor_perf->states[0].control; pc 357 drivers/cpufreq/powernow-k7.c pc.val = (unsigned long) state->control; pc 364 drivers/cpufreq/powernow-k7.c pc.bits.sgtc); pc 366 drivers/cpufreq/powernow-k7.c vid = pc.bits.vid; pc 367 drivers/cpufreq/powernow-k7.c fid = pc.bits.fid; pc 404 drivers/cpufreq/powernow-k7.c if (latency < pc.bits.sgtc) pc 405 drivers/cpufreq/powernow-k7.c latency = pc.bits.sgtc; pc 233 drivers/dma/imx-sdma.c u32 pc :14; pc 1016 drivers/dma/imx-sdma.c context->channel_state.pc = load_address; pc 124 drivers/dma/mediatek/mtk-cqdma.c struct mtk_cqdma_pchan *pc; pc 146 drivers/dma/mediatek/mtk-cqdma.c struct mtk_cqdma_pchan **pc; pc 169 drivers/dma/mediatek/mtk-cqdma.c static u32 mtk_dma_read(struct mtk_cqdma_pchan *pc, u32 reg) pc 171 drivers/dma/mediatek/mtk-cqdma.c return readl(pc->base + reg); pc 174 drivers/dma/mediatek/mtk-cqdma.c static void mtk_dma_write(struct mtk_cqdma_pchan *pc, u32 reg, u32 val) pc 176 drivers/dma/mediatek/mtk-cqdma.c writel_relaxed(val, pc->base + reg); pc 179 drivers/dma/mediatek/mtk-cqdma.c static void mtk_dma_rmw(struct mtk_cqdma_pchan *pc, u32 reg, pc 184 drivers/dma/mediatek/mtk-cqdma.c val = mtk_dma_read(pc, reg); pc 187 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_write(pc, reg, val); pc 190 drivers/dma/mediatek/mtk-cqdma.c static void mtk_dma_set(struct mtk_cqdma_pchan *pc, u32 reg, u32 val) pc 192 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_rmw(pc, reg, 0, val); pc 195 drivers/dma/mediatek/mtk-cqdma.c static void mtk_dma_clr(struct mtk_cqdma_pchan *pc, u32 reg, u32 val) pc 197 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_rmw(pc, reg, val, 0); pc 205 drivers/dma/mediatek/mtk-cqdma.c static int mtk_cqdma_poll_engine_done(struct mtk_cqdma_pchan *pc, bool atomic) pc 210 drivers/dma/mediatek/mtk-cqdma.c return readl_poll_timeout(pc->base + MTK_CQDMA_EN, pc 216 drivers/dma/mediatek/mtk-cqdma.c return readl_poll_timeout_atomic(pc->base + MTK_CQDMA_EN, pc 223 drivers/dma/mediatek/mtk-cqdma.c static int mtk_cqdma_hard_reset(struct mtk_cqdma_pchan *pc) pc 225 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_RESET, MTK_CQDMA_HARD_RST_BIT); pc 226 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_clr(pc, MTK_CQDMA_RESET, MTK_CQDMA_HARD_RST_BIT); pc 228 drivers/dma/mediatek/mtk-cqdma.c return mtk_cqdma_poll_engine_done(pc, true); pc 231 drivers/dma/mediatek/mtk-cqdma.c static void mtk_cqdma_start(struct mtk_cqdma_pchan *pc, pc 235 drivers/dma/mediatek/mtk-cqdma.c if (mtk_cqdma_poll_engine_done(pc, true) < 0) pc 239 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_RESET, MTK_CQDMA_WARM_RST_BIT); pc 240 drivers/dma/mediatek/mtk-cqdma.c if (mtk_cqdma_poll_engine_done(pc, true) < 0) pc 244 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_SRC, cvd->src & MTK_CQDMA_ADDR_LIMIT); pc 246 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_SRC2, cvd->src >> MTK_CQDMA_ADDR2_SHFIT); pc 248 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_SRC2, 0); pc 252 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_DST, cvd->dest & MTK_CQDMA_ADDR_LIMIT); pc 254 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_DST2, cvd->dest >> MTK_CQDMA_ADDR2_SHFIT); pc 256 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_DST2, 0); pc 260 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_LEN1, cvd->len); pc 263 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_EN, MTK_CQDMA_EN_BIT); pc 269 drivers/dma/mediatek/mtk-cqdma.c struct mtk_cqdma_pchan *pc = cvc->pc; pc 274 drivers/dma/mediatek/mtk-cqdma.c lockdep_assert_held(&pc->lock); pc 278 drivers/dma/mediatek/mtk-cqdma.c if (list_empty(&pc->queue)) pc 284 drivers/dma/mediatek/mtk-cqdma.c list_add_tail(&cvd->node, &pc->queue); pc 288 drivers/dma/mediatek/mtk-cqdma.c mtk_cqdma_start(pc, cvd); pc 303 drivers/dma/mediatek/mtk-cqdma.c list_for_each_entry(cvd, &cvc->pc->queue, node) pc 314 drivers/dma/mediatek/mtk-cqdma.c *mtk_cqdma_consume_work_queue(struct mtk_cqdma_pchan *pc) pc 320 drivers/dma/mediatek/mtk-cqdma.c cvd = list_first_entry_or_null(&pc->queue, pc 351 drivers/dma/mediatek/mtk-cqdma.c cvd = list_first_entry_or_null(&pc->queue, pc 354 drivers/dma/mediatek/mtk-cqdma.c mtk_cqdma_start(pc, cvd); pc 361 drivers/dma/mediatek/mtk-cqdma.c struct mtk_cqdma_pchan *pc = (struct mtk_cqdma_pchan *)data; pc 365 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&pc->lock, flags); pc 367 drivers/dma/mediatek/mtk-cqdma.c cvd = mtk_cqdma_consume_work_queue(pc); pc 368 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&pc->lock, flags); pc 383 drivers/dma/mediatek/mtk-cqdma.c enable_irq(pc->irq); pc 395 drivers/dma/mediatek/mtk-cqdma.c spin_lock(&cqdma->pc[i]->lock); pc 396 drivers/dma/mediatek/mtk-cqdma.c if (mtk_dma_read(cqdma->pc[i], pc 399 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_clr(cqdma->pc[i], MTK_CQDMA_INT_FLAG, pc 405 drivers/dma/mediatek/mtk-cqdma.c spin_unlock(&cqdma->pc[i]->lock); pc 409 drivers/dma/mediatek/mtk-cqdma.c disable_irq_nosync(cqdma->pc[i]->irq); pc 412 drivers/dma/mediatek/mtk-cqdma.c tasklet_schedule(&cqdma->pc[i]->tasklet); pc 426 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cvc->pc->lock, flags); pc 427 drivers/dma/mediatek/mtk-cqdma.c list_for_each_entry(vd, &cvc->pc->queue, node) pc 429 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cvc->pc->lock, flags); pc 432 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cvc->pc->lock, flags); pc 477 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cvc->pc->lock, pc_flags); pc 484 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cvc->pc->lock, pc_flags); pc 579 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cvc->pc->lock, pc_flags); pc 589 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cvc->pc->lock, pc_flags); pc 617 drivers/dma/mediatek/mtk-cqdma.c struct mtk_cqdma_pchan *pc = NULL; pc 623 drivers/dma/mediatek/mtk-cqdma.c refcnt = refcount_read(&cqdma->pc[i]->refcnt); pc 625 drivers/dma/mediatek/mtk-cqdma.c pc = cqdma->pc[i]; pc 630 drivers/dma/mediatek/mtk-cqdma.c if (!pc) pc 633 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&pc->lock, flags); pc 635 drivers/dma/mediatek/mtk-cqdma.c if (!refcount_read(&pc->refcnt)) { pc 637 drivers/dma/mediatek/mtk-cqdma.c mtk_cqdma_hard_reset(pc); pc 640 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(pc, MTK_CQDMA_INT_EN, MTK_CQDMA_INT_EN_BIT); pc 646 drivers/dma/mediatek/mtk-cqdma.c refcount_set(&pc->refcnt, 1); pc 648 drivers/dma/mediatek/mtk-cqdma.c refcount_inc(&pc->refcnt); pc 651 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&pc->lock, flags); pc 653 drivers/dma/mediatek/mtk-cqdma.c vc->pc = pc; pc 666 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cvc->pc->lock, flags); pc 669 drivers/dma/mediatek/mtk-cqdma.c if (refcount_dec_and_test(&cvc->pc->refcnt)) { pc 671 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_set(cvc->pc, MTK_CQDMA_FLUSH, MTK_CQDMA_FLUSH_BIT); pc 674 drivers/dma/mediatek/mtk-cqdma.c if (mtk_cqdma_poll_engine_done(cvc->pc, true) < 0) pc 678 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_clr(cvc->pc, MTK_CQDMA_FLUSH, MTK_CQDMA_FLUSH_BIT); pc 679 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_clr(cvc->pc, MTK_CQDMA_INT_FLAG, pc 683 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_clr(cvc->pc, MTK_CQDMA_INT_EN, MTK_CQDMA_INT_EN_BIT); pc 686 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cvc->pc->lock, flags); pc 708 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cqdma->pc[i]->lock, flags); pc 709 drivers/dma/mediatek/mtk-cqdma.c if (mtk_cqdma_hard_reset(cqdma->pc[i]) < 0) { pc 711 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cqdma->pc[i]->lock, flags); pc 718 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cqdma->pc[i]->lock, flags); pc 731 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cqdma->pc[i]->lock, flags); pc 732 drivers/dma/mediatek/mtk-cqdma.c if (mtk_cqdma_hard_reset(cqdma->pc[i]) < 0) pc 734 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cqdma->pc[i]->lock, flags); pc 807 drivers/dma/mediatek/mtk-cqdma.c cqdma->pc = devm_kcalloc(&pdev->dev, cqdma->dma_channels, pc 808 drivers/dma/mediatek/mtk-cqdma.c sizeof(*cqdma->pc), GFP_KERNEL); pc 809 drivers/dma/mediatek/mtk-cqdma.c if (!cqdma->pc) pc 814 drivers/dma/mediatek/mtk-cqdma.c cqdma->pc[i] = devm_kcalloc(&pdev->dev, 1, pc 815 drivers/dma/mediatek/mtk-cqdma.c sizeof(**cqdma->pc), GFP_KERNEL); pc 816 drivers/dma/mediatek/mtk-cqdma.c if (!cqdma->pc[i]) pc 819 drivers/dma/mediatek/mtk-cqdma.c INIT_LIST_HEAD(&cqdma->pc[i]->queue); pc 820 drivers/dma/mediatek/mtk-cqdma.c spin_lock_init(&cqdma->pc[i]->lock); pc 821 drivers/dma/mediatek/mtk-cqdma.c refcount_set(&cqdma->pc[i]->refcnt, 0); pc 830 drivers/dma/mediatek/mtk-cqdma.c cqdma->pc[i]->base = devm_ioremap_resource(&pdev->dev, res); pc 831 drivers/dma/mediatek/mtk-cqdma.c if (IS_ERR(cqdma->pc[i]->base)) pc 832 drivers/dma/mediatek/mtk-cqdma.c return PTR_ERR(cqdma->pc[i]->base); pc 841 drivers/dma/mediatek/mtk-cqdma.c cqdma->pc[i]->irq = res->start; pc 843 drivers/dma/mediatek/mtk-cqdma.c err = devm_request_irq(&pdev->dev, cqdma->pc[i]->irq, pc 889 drivers/dma/mediatek/mtk-cqdma.c tasklet_init(&cqdma->pc[i]->tasklet, mtk_cqdma_tasklet_cb, pc 890 drivers/dma/mediatek/mtk-cqdma.c (unsigned long)cqdma->pc[i]); pc 919 drivers/dma/mediatek/mtk-cqdma.c spin_lock_irqsave(&cqdma->pc[i]->lock, flags); pc 920 drivers/dma/mediatek/mtk-cqdma.c mtk_dma_clr(cqdma->pc[i], MTK_CQDMA_INT_EN, pc 922 drivers/dma/mediatek/mtk-cqdma.c spin_unlock_irqrestore(&cqdma->pc[i]->lock, flags); pc 925 drivers/dma/mediatek/mtk-cqdma.c synchronize_irq(cqdma->pc[i]->irq); pc 927 drivers/dma/mediatek/mtk-cqdma.c tasklet_kill(&cqdma->pc[i]->tasklet); pc 240 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_pchan *pc; pc 316 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_pchan *pc) pc 318 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_ring *ring = &pc->ring; pc 321 drivers/dma/mediatek/mtk-hsdma.c memset(pc, 0, sizeof(*pc)); pc 327 drivers/dma/mediatek/mtk-hsdma.c pc->sz_ring = 2 * MTK_DMA_SIZE * sizeof(*ring->txd); pc 328 drivers/dma/mediatek/mtk-hsdma.c ring->txd = dma_alloc_coherent(hsdma2dev(hsdma), pc->sz_ring, pc 344 drivers/dma/mediatek/mtk-hsdma.c atomic_set(&pc->nr_free, MTK_DMA_SIZE - 1); pc 384 drivers/dma/mediatek/mtk-hsdma.c pc->sz_ring, ring->txd, ring->tphys); pc 389 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_pchan *pc) pc 391 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_ring *ring = &pc->ring; pc 409 drivers/dma/mediatek/mtk-hsdma.c pc->sz_ring, ring->txd, ring->tphys); pc 413 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_pchan *pc, pc 416 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_ring *ring = &pc->ring; pc 429 drivers/dma/mediatek/mtk-hsdma.c reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); pc 436 drivers/dma/mediatek/mtk-hsdma.c atomic_sub(reserved, &pc->nr_free); pc 509 drivers/dma/mediatek/mtk-hsdma.c err = mtk_hsdma_issue_pending_vdesc(hsdma, hsdma->pc, hvd); pc 538 drivers/dma/mediatek/mtk-hsdma.c struct mtk_hsdma_pchan *pc; pc 550 drivers/dma/mediatek/mtk-hsdma.c pc = hsdma->pc; pc 560 drivers/dma/mediatek/mtk-hsdma.c next = MTK_HSDMA_NEXT_DESP_IDX(pc->ring.cur_rptr, pc 562 drivers/dma/mediatek/mtk-hsdma.c rxd = &pc->ring.rxd[next]; pc 572 drivers/dma/mediatek/mtk-hsdma.c cb = &pc->ring.cb[next]; pc 612 drivers/dma/mediatek/mtk-hsdma.c pc->ring.cur_rptr = next; pc 615 drivers/dma/mediatek/mtk-hsdma.c atomic_inc(&pc->nr_free); pc 622 drivers/dma/mediatek/mtk-hsdma.c mtk_dma_write(hsdma, MTK_HSDMA_RX_CPU, pc->ring.cur_rptr); pc 629 drivers/dma/mediatek/mtk-hsdma.c if (atomic_read(&pc->nr_free) >= MTK_DMA_SIZE - 1) pc 819 drivers/dma/mediatek/mtk-hsdma.c err = mtk_hsdma_alloc_pchan(hsdma, hsdma->pc); pc 845 drivers/dma/mediatek/mtk-hsdma.c mtk_hsdma_free_pchan(hsdma, hsdma->pc); pc 962 drivers/dma/mediatek/mtk-hsdma.c hsdma->pc = devm_kcalloc(&pdev->dev, MTK_HSDMA_NR_MAX_PCHANS, pc 963 drivers/dma/mediatek/mtk-hsdma.c sizeof(*hsdma->pc), GFP_KERNEL); pc 964 drivers/dma/mediatek/mtk-hsdma.c if (!hsdma->pc) pc 150 drivers/gpio/gpio-pxa.c #define for_each_gpio_bank(i, b, pc) \ pc 151 drivers/gpio/gpio-pxa.c for (i = 0, b = pc->banks; i <= pxa_last_gpio; i += 32, b++) pc 1799 drivers/gpu/drm/amd/amdgpu/cik.c u32 clock_cntl, pc; pc 1806 drivers/gpu/drm/amd/amdgpu/cik.c pc = RREG32_SMC(ixSMC_PC_C); pc 1808 drivers/gpu/drm/amd/amdgpu/cik.c (0x20100 <= pc)) pc 1011 drivers/gpu/drm/amd/amdgpu/vi.c u32 clock_cntl, pc; pc 1018 drivers/gpu/drm/amd/amdgpu/vi.c pc = RREG32_SMC(ixSMC_PC_C); pc 1020 drivers/gpu/drm/amd/amdgpu/vi.c (0x20100 <= pc)) pc 175 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c unsigned long pc = mdp4_dtv_encoder->pixclock; pc 190 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c DBG("setting mdp_clk=%lu", pc); pc 192 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c ret = clk_set_rate(mdp4_dtv_encoder->mdp_clk, pc); pc 195 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c pc, ret); pc 361 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c unsigned long pc = mdp4_lcdc_encoder->pixclock; pc 393 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c DBG("setting lcdc_clk=%lu", pc); pc 394 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c ret = clk_set_rate(mdp4_lcdc_encoder->lcdc_clk, pc); pc 24 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h u8 pc; pc 34 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h nvbios_dpcfg_match(struct nvkm_bios *, u16 outp, u8 pc, u8 vs, u8 pe, pc 46 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c nvkm_dp_train_sense(struct lt_state *lt, bool pc, u32 delay) pc 60 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c if (pc) { pc 74 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c nvkm_dp_train_drive(struct lt_state *lt, bool pc) pc 122 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c ior->func->dp.drive(ior, i, ocfg.pc, ocfg.dc, pc 130 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c if (pc) { pc 77 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h void (*drive)(struct nvkm_ior *, int ln, int pc, pc 58 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c g94_sor_dp_drive(struct nvkm_ior *sor, int ln, int pc, int dc, int pe, int pu) pc 71 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c gf119_sor_dp_drive(struct nvkm_ior *sor, int ln, int pc, int dc, int pe, int pu) pc 87 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c nvkm_wr32(device, 0x61c13c + loff, data[3] | (pc << shift)); pc 27 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c gm200_sor_dp_drive(struct nvkm_ior *sor, int ln, int pc, int dc, int pe, int pu) pc 45 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c nvkm_wr32(device, 0x61c13c + loff, data[3] | (pc << shift)); pc 1414 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c u32 pc = nvkm_rd32(device, 0x404494); pc 1420 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c stat, error, pc & 0x7ff, pc 1421 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c (pc & 0x10000000) ? "" : " (invalid)", pc 287 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c u32 addr, mp10, status, pc, oplow, ophigh; pc 304 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c pc = nvkm_rd32(device, addr + 0x24); pc 312 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c tpid, i, status, msg, pc & 0xffffff, pc 313 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c pc >> 24, oplow, ophigh); pc 188 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c info->pc = nvbios_rd08(bios, data + 0x00); pc 207 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c nvbios_dpcfg_match(struct nvkm_bios *bios, u16 outp, u8 pc, u8 vs, u8 pe, pc 216 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c idx = (pc * 10) + vsoff[vs] + pe; pc 149 drivers/gpu/drm/omapdrm/dss/hdmi4.c unsigned int pc; pc 164 drivers/gpu/drm/omapdrm/dss/hdmi4.c pc = vm->pixelclock; pc 166 drivers/gpu/drm/omapdrm/dss/hdmi4.c pc *= 2; pc 169 drivers/gpu/drm/omapdrm/dss/hdmi4.c pc *= 10; pc 172 drivers/gpu/drm/omapdrm/dss/hdmi4.c pc, &hdmi_cinfo); pc 147 drivers/gpu/drm/omapdrm/dss/hdmi5.c unsigned int pc; pc 158 drivers/gpu/drm/omapdrm/dss/hdmi5.c pc = vm->pixelclock; pc 160 drivers/gpu/drm/omapdrm/dss/hdmi5.c pc *= 2; pc 163 drivers/gpu/drm/omapdrm/dss/hdmi5.c pc *= 10; pc 166 drivers/gpu/drm/omapdrm/dss/hdmi5.c pc, &hdmi_cinfo); pc 254 drivers/hwtracing/coresight/coresight-cpu-debug.c unsigned long pc; pc 256 drivers/hwtracing/coresight/coresight-cpu-debug.c pc = (unsigned long)drvdata->edpcsr; pc 264 drivers/hwtracing/coresight/coresight-cpu-debug.c if (pc & EDPCSR_THUMB) { pc 265 drivers/hwtracing/coresight/coresight-cpu-debug.c pc = (pc & EDPCSR_THUMB_INST_MASK) - thumb_inst_offset; pc 266 drivers/hwtracing/coresight/coresight-cpu-debug.c return pc; pc 275 drivers/hwtracing/coresight/coresight-cpu-debug.c if (pc & BIT(1)) pc 279 drivers/hwtracing/coresight/coresight-cpu-debug.c pc = (pc & EDPCSR_ARM_INST_MASK) - arm_inst_offset; pc 281 drivers/hwtracing/coresight/coresight-cpu-debug.c return pc; pc 288 drivers/hwtracing/coresight/coresight-cpu-debug.c unsigned long pc; pc 305 drivers/hwtracing/coresight/coresight-cpu-debug.c pc = debug_adjust_pc(drvdata); pc 306 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_emerg(dev, " EDPCSR: %pS\n", (void *)pc); pc 80 drivers/ide/ide-atapi.c void ide_init_pc(struct ide_atapi_pc *pc) pc 82 drivers/ide/ide-atapi.c memset(pc, 0, sizeof(*pc)); pc 91 drivers/ide/ide-atapi.c struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) pc 98 drivers/ide/ide-atapi.c ide_req(rq)->special = pc; pc 107 drivers/ide/ide-atapi.c memcpy(scsi_req(rq)->cmd, pc->c, 12); pc 120 drivers/ide/ide-atapi.c struct ide_atapi_pc pc; pc 122 drivers/ide/ide-atapi.c ide_init_pc(&pc); pc 123 drivers/ide/ide-atapi.c pc.c[0] = TEST_UNIT_READY; pc 125 drivers/ide/ide-atapi.c return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 131 drivers/ide/ide-atapi.c struct ide_atapi_pc pc; pc 133 drivers/ide/ide-atapi.c ide_init_pc(&pc); pc 134 drivers/ide/ide-atapi.c pc.c[0] = START_STOP; pc 135 drivers/ide/ide-atapi.c pc.c[4] = start; pc 138 drivers/ide/ide-atapi.c pc.flags |= PC_FLAG_WAIT_FOR_DSC; pc 140 drivers/ide/ide-atapi.c return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 146 drivers/ide/ide-atapi.c struct ide_atapi_pc pc; pc 151 drivers/ide/ide-atapi.c ide_init_pc(&pc); pc 152 drivers/ide/ide-atapi.c pc.c[0] = ALLOW_MEDIUM_REMOVAL; pc 153 drivers/ide/ide-atapi.c pc.c[4] = on; pc 155 drivers/ide/ide-atapi.c return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 159 drivers/ide/ide-atapi.c void ide_create_request_sense_cmd(ide_drive_t *drive, struct ide_atapi_pc *pc) pc 161 drivers/ide/ide-atapi.c ide_init_pc(pc); pc 162 drivers/ide/ide-atapi.c pc->c[0] = REQUEST_SENSE; pc 164 drivers/ide/ide-atapi.c pc->c[4] = 255; pc 165 drivers/ide/ide-atapi.c pc->req_xfer = 18; pc 167 drivers/ide/ide-atapi.c pc->c[4] = 20; pc 168 drivers/ide/ide-atapi.c pc->req_xfer = 20; pc 274 drivers/ide/ide-atapi.c struct ide_atapi_pc *pc = &drive->request_sense_pc; pc 279 drivers/ide/ide-atapi.c ide_init_pc(pc); pc 280 drivers/ide/ide-atapi.c memcpy(pc->c, scsi_req(sense_rq)->cmd, 12); pc 292 drivers/ide/ide-atapi.c if (ide_queue_sense_rq(drive, pc)) pc 418 drivers/ide/ide-atapi.c struct ide_atapi_pc *pc = drive->pc; pc 426 drivers/ide/ide-atapi.c u8 write = !!(pc->flags & PC_FLAG_WRITING); pc 436 drivers/ide/ide-atapi.c if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) { pc 446 drivers/ide/ide-atapi.c drive->name, rq_data_dir(pc->rq) pc 448 drivers/ide/ide-atapi.c pc->flags |= PC_FLAG_DMA_ERROR; pc 462 drivers/ide/ide-atapi.c pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS; pc 470 drivers/ide/ide-atapi.c if ((stat & ATA_ERR) || (pc->flags & PC_FLAG_DMA_ERROR)) { pc 475 drivers/ide/ide-atapi.c scsi_req(pc->rq)->result++; pc 491 drivers/ide/ide-atapi.c pc->error = 0; pc 493 drivers/ide/ide-atapi.c if ((pc->flags & PC_FLAG_WAIT_FOR_DSC) && (stat & ATA_DSC) == 0) pc 525 drivers/ide/ide-atapi.c if (pc->flags & PC_FLAG_DMA_IN_PROGRESS) { pc 526 drivers/ide/ide-atapi.c pc->flags &= ~PC_FLAG_DMA_IN_PROGRESS; pc 604 drivers/ide/ide-atapi.c drive->hwif->tp_ops->output_data(drive, NULL, drive->pc->c, 12); pc 612 drivers/ide/ide-atapi.c struct ide_atapi_pc *uninitialized_var(pc); pc 641 drivers/ide/ide-atapi.c pc = drive->pc; pc 688 drivers/ide/ide-atapi.c if (pc->flags & PC_FLAG_DMA_OK) { pc 689 drivers/ide/ide-atapi.c pc->flags |= PC_FLAG_DMA_IN_PROGRESS; pc 699 drivers/ide/ide-atapi.c struct ide_atapi_pc *pc; pc 717 drivers/ide/ide-atapi.c pc = drive->pc; pc 728 drivers/ide/ide-atapi.c if (pc->flags & PC_FLAG_DMA_ERROR) { pc 729 drivers/ide/ide-atapi.c pc->flags &= ~PC_FLAG_DMA_ERROR; pc 733 drivers/ide/ide-atapi.c if (pc->flags & PC_FLAG_DMA_OK) pc 737 drivers/ide/ide-atapi.c pc->flags &= ~PC_FLAG_DMA_OK; pc 66 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc = drive->pc; pc 67 drivers/ide/ide-floppy.c struct request *rq = pc->rq; pc 68 drivers/ide/ide-floppy.c int uptodate = pc->error ? 0 : 1; pc 72 drivers/ide/ide-floppy.c if (drive->failed_pc == pc) pc 75 drivers/ide/ide-floppy.c if (pc->c[0] == GPCMD_READ_10 || pc->c[0] == GPCMD_WRITE_10 || pc 78 drivers/ide/ide-floppy.c else if (pc->c[0] == GPCMD_REQUEST_SENSE) { pc 82 drivers/ide/ide-floppy.c if (!pc->error) { pc 108 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc) pc 118 drivers/ide/ide-floppy.c floppy->drive->name, pc->c[0], floppy->sense_key, pc 125 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc) pc 130 drivers/ide/ide-floppy.c pc->c[0] != GPCMD_REQUEST_SENSE) pc 131 drivers/ide/ide-floppy.c drive->failed_pc = pc; pc 134 drivers/ide/ide-floppy.c drive->pc = pc; pc 136 drivers/ide/ide-floppy.c if (pc->retries > IDEFLOPPY_MAX_PC_RETRIES) { pc 139 drivers/ide/ide-floppy.c if (!(pc->flags & PC_FLAG_SUPPRESS_ERROR)) pc 140 drivers/ide/ide-floppy.c ide_floppy_report_error(floppy, pc); pc 143 drivers/ide/ide-floppy.c pc->error = IDE_DRV_ERROR_GENERAL; pc 151 drivers/ide/ide-floppy.c ide_debug_log(IDE_DBG_FUNC, "retry #%d", pc->retries); pc 153 drivers/ide/ide-floppy.c pc->retries++; pc 158 drivers/ide/ide-floppy.c void ide_floppy_create_read_capacity_cmd(struct ide_atapi_pc *pc) pc 160 drivers/ide/ide-floppy.c ide_init_pc(pc); pc 161 drivers/ide/ide-floppy.c pc->c[0] = GPCMD_READ_FORMAT_CAPACITIES; pc 162 drivers/ide/ide-floppy.c pc->c[7] = 255; pc 163 drivers/ide/ide-floppy.c pc->c[8] = 255; pc 164 drivers/ide/ide-floppy.c pc->req_xfer = 255; pc 168 drivers/ide/ide-floppy.c void ide_floppy_create_mode_sense_cmd(struct ide_atapi_pc *pc, u8 page_code) pc 172 drivers/ide/ide-floppy.c ide_init_pc(pc); pc 173 drivers/ide/ide-floppy.c pc->c[0] = GPCMD_MODE_SENSE_10; pc 174 drivers/ide/ide-floppy.c pc->c[1] = 0; pc 175 drivers/ide/ide-floppy.c pc->c[2] = page_code; pc 187 drivers/ide/ide-floppy.c put_unaligned(cpu_to_be16(length), (u16 *) &pc->c[7]); pc 188 drivers/ide/ide-floppy.c pc->req_xfer = length; pc 192 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc, struct request *rq, pc 202 drivers/ide/ide-floppy.c ide_init_pc(pc); pc 203 drivers/ide/ide-floppy.c pc->c[0] = cmd == READ ? GPCMD_READ_10 : GPCMD_WRITE_10; pc 204 drivers/ide/ide-floppy.c put_unaligned(cpu_to_be16(blocks), (unsigned short *)&pc->c[7]); pc 205 drivers/ide/ide-floppy.c put_unaligned(cpu_to_be32(block), (unsigned int *) &pc->c[2]); pc 207 drivers/ide/ide-floppy.c memcpy(scsi_req(rq)->cmd, pc->c, 12); pc 209 drivers/ide/ide-floppy.c pc->rq = rq; pc 211 drivers/ide/ide-floppy.c pc->flags |= PC_FLAG_WRITING; pc 213 drivers/ide/ide-floppy.c pc->flags |= PC_FLAG_DMA_OK; pc 217 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc, struct request *rq) pc 219 drivers/ide/ide-floppy.c ide_init_pc(pc); pc 220 drivers/ide/ide-floppy.c memcpy(pc->c, scsi_req(rq)->cmd, sizeof(pc->c)); pc 221 drivers/ide/ide-floppy.c pc->rq = rq; pc 223 drivers/ide/ide-floppy.c pc->flags |= PC_FLAG_DMA_OK; pc 225 drivers/ide/ide-floppy.c pc->flags |= PC_FLAG_WRITING; pc 234 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc; pc 266 drivers/ide/ide-floppy.c pc = &floppy->queued_pc; pc 267 drivers/ide/ide-floppy.c idefloppy_create_rw_cmd(drive, pc, rq, (unsigned long)block); pc 271 drivers/ide/ide-floppy.c pc = &floppy->queued_pc; pc 272 drivers/ide/ide-floppy.c idefloppy_blockpc_cmd(floppy, pc, rq); pc 279 drivers/ide/ide-floppy.c pc = (struct ide_atapi_pc *)ide_req(rq)->special; pc 300 drivers/ide/ide-floppy.c pc->rq = rq; pc 302 drivers/ide/ide-floppy.c return ide_floppy_issue_pc(drive, &cmd, pc); pc 316 drivers/ide/ide-floppy.c struct ide_atapi_pc *pc) pc 325 drivers/ide/ide-floppy.c ide_floppy_create_mode_sense_cmd(pc, IDEFLOPPY_FLEXIBLE_DISK_PAGE); pc 327 drivers/ide/ide-floppy.c if (ide_queue_pc_tail(drive, disk, pc, buf, pc->req_xfer)) { pc 382 drivers/ide/ide-floppy.c struct ide_atapi_pc pc; pc 395 drivers/ide/ide-floppy.c ide_floppy_create_read_capacity_cmd(&pc); pc 396 drivers/ide/ide-floppy.c if (ide_queue_pc_tail(drive, disk, &pc, pc_buf, pc.req_xfer)) { pc 476 drivers/ide/ide-floppy.c (void) ide_floppy_get_flexible_disk_page(drive, &pc); pc 38 drivers/ide/ide-floppy_ioctl.c struct ide_atapi_pc *pc, pc 52 drivers/ide/ide-floppy_ioctl.c ide_floppy_create_read_capacity_cmd(pc); pc 54 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { pc 98 drivers/ide/ide-floppy_ioctl.c static void ide_floppy_create_format_unit_cmd(struct ide_atapi_pc *pc, pc 102 drivers/ide/ide-floppy_ioctl.c ide_init_pc(pc); pc 103 drivers/ide/ide-floppy_ioctl.c pc->c[0] = GPCMD_FORMAT_UNIT; pc 104 drivers/ide/ide-floppy_ioctl.c pc->c[1] = 0x17; pc 116 drivers/ide/ide-floppy_ioctl.c pc->req_xfer = 12; pc 117 drivers/ide/ide-floppy_ioctl.c pc->flags |= PC_FLAG_WRITING; pc 120 drivers/ide/ide-floppy_ioctl.c static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) pc 127 drivers/ide/ide-floppy_ioctl.c ide_floppy_create_mode_sense_cmd(pc, IDEFLOPPY_CAPABILITIES_PAGE); pc 128 drivers/ide/ide-floppy_ioctl.c pc->flags |= PC_FLAG_SUPPRESS_ERROR; pc 130 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) pc 139 drivers/ide/ide-floppy_ioctl.c static int ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, pc 176 drivers/ide/ide-floppy_ioctl.c ide_floppy_get_sfrp_bit(drive, pc); pc 177 drivers/ide/ide-floppy_ioctl.c ide_floppy_create_format_unit_cmd(pc, buf, blocks, length, flags); pc 179 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) pc 199 drivers/ide/ide-floppy_ioctl.c struct ide_atapi_pc *pc, pc 207 drivers/ide/ide-floppy_ioctl.c ide_create_request_sense_cmd(drive, pc); pc 208 drivers/ide/ide-floppy_ioctl.c if (ide_queue_pc_tail(drive, floppy->disk, pc, sense_buf, pc 209 drivers/ide/ide-floppy_ioctl.c pc->req_xfer)) pc 236 drivers/ide/ide-floppy_ioctl.c static int ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, pc 254 drivers/ide/ide-floppy_ioctl.c static int ide_floppy_format_ioctl(ide_drive_t *drive, struct ide_atapi_pc *pc, pc 262 drivers/ide/ide-floppy_ioctl.c return ide_floppy_get_format_capacities(drive, pc, argp); pc 266 drivers/ide/ide-floppy_ioctl.c return ide_floppy_format_unit(drive, pc, (int __user *)argp); pc 268 drivers/ide/ide-floppy_ioctl.c return ide_floppy_get_format_progress(drive, pc, argp); pc 277 drivers/ide/ide-floppy_ioctl.c struct ide_atapi_pc pc; pc 283 drivers/ide/ide-floppy_ioctl.c err = ide_floppy_lockdoor(drive, &pc, arg, cmd); pc 287 drivers/ide/ide-floppy_ioctl.c err = ide_floppy_format_ioctl(drive, &pc, mode, cmd, argp); pc 271 drivers/ide/ide-tape.c struct ide_atapi_pc *pc = drive->failed_pc; pc 284 drivers/ide/ide-tape.c if (pc->flags & PC_FLAG_DMA_ERROR) pc 292 drivers/ide/ide-tape.c if ((pc->c[0] == READ_6 || pc->c[0] == WRITE_6) pc 294 drivers/ide/ide-tape.c && pc->c[4] == 0 && pc->c[3] == 0 && pc->c[2] == 0) { pc 297 drivers/ide/ide-tape.c pc->error = 0; pc 299 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_ABORT; pc 302 drivers/ide/ide-tape.c if (pc->c[0] == READ_6 && (sense[2] & 0x80)) { pc 303 drivers/ide/ide-tape.c pc->error = IDE_DRV_ERROR_FILEMARK; pc 304 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_ABORT; pc 306 drivers/ide/ide-tape.c if (pc->c[0] == WRITE_6) { pc 309 drivers/ide/ide-tape.c pc->error = IDE_DRV_ERROR_EOD; pc 310 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_ABORT; pc 313 drivers/ide/ide-tape.c if (pc->c[0] == READ_6 || pc->c[0] == WRITE_6) { pc 315 drivers/ide/ide-tape.c pc->error = IDE_DRV_ERROR_EOD; pc 316 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_ABORT; pc 318 drivers/ide/ide-tape.c if (!(pc->flags & PC_FLAG_ABORT) && pc 320 drivers/ide/ide-tape.c pc->retries = IDETAPE_MAX_PC_RETRIES + 1; pc 329 drivers/ide/ide-tape.c struct ide_atapi_pc *pc = drive->pc; pc 331 drivers/ide/ide-tape.c int uptodate = pc->error ? 0 : 1; pc 340 drivers/ide/ide-tape.c if (drive->failed_pc == pc) pc 343 drivers/ide/ide-tape.c if (pc->c[0] == REQUEST_SENSE) { pc 349 drivers/ide/ide-tape.c } else if (pc->c[0] == READ_6 || pc->c[0] == WRITE_6) { pc 364 drivers/ide/ide-tape.c if (pc->error) { pc 366 drivers/ide/ide-tape.c err = pc->error; pc 441 drivers/ide/ide-tape.c struct ide_atapi_pc *pc) pc 446 drivers/ide/ide-tape.c if (drive->failed_pc == NULL && pc->c[0] != REQUEST_SENSE) pc 447 drivers/ide/ide-tape.c drive->failed_pc = pc; pc 450 drivers/ide/ide-tape.c drive->pc = pc; pc 452 drivers/ide/ide-tape.c if (pc->retries > IDETAPE_MAX_PC_RETRIES || pc 453 drivers/ide/ide-tape.c (pc->flags & PC_FLAG_ABORT)) { pc 460 drivers/ide/ide-tape.c if (!(pc->flags & PC_FLAG_ABORT)) { pc 461 drivers/ide/ide-tape.c if (!(pc->c[0] == TEST_UNIT_READY && pc 467 drivers/ide/ide-tape.c tape->name, pc->c[0], pc 472 drivers/ide/ide-tape.c pc->error = IDE_DRV_ERROR_GENERAL; pc 480 drivers/ide/ide-tape.c ide_debug_log(IDE_DBG_SENSE, "retry #%d, cmd: 0x%02x", pc->retries, pc 481 drivers/ide/ide-tape.c pc->c[0]); pc 483 drivers/ide/ide-tape.c pc->retries++; pc 489 drivers/ide/ide-tape.c static void idetape_create_mode_sense_cmd(struct ide_atapi_pc *pc, u8 page_code) pc 491 drivers/ide/ide-tape.c ide_init_pc(pc); pc 492 drivers/ide/ide-tape.c pc->c[0] = MODE_SENSE; pc 495 drivers/ide/ide-tape.c pc->c[1] = 8; pc 496 drivers/ide/ide-tape.c pc->c[2] = page_code; pc 504 drivers/ide/ide-tape.c pc->c[3] = 0; pc 506 drivers/ide/ide-tape.c pc->c[4] = 255; pc 508 drivers/ide/ide-tape.c pc->req_xfer = 12; pc 510 drivers/ide/ide-tape.c pc->req_xfer = 24; pc 512 drivers/ide/ide-tape.c pc->req_xfer = 50; pc 519 drivers/ide/ide-tape.c struct ide_atapi_pc *pc = drive->pc; pc 527 drivers/ide/ide-tape.c if (pc->c[0] != TEST_UNIT_READY) pc 534 drivers/ide/ide-tape.c pc->error = 0; pc 536 drivers/ide/ide-tape.c pc->error = IDE_DRV_ERROR_GENERAL; pc 544 drivers/ide/ide-tape.c struct ide_atapi_pc *pc, struct request *rq, pc 549 drivers/ide/ide-tape.c ide_init_pc(pc); pc 550 drivers/ide/ide-tape.c put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]); pc 551 drivers/ide/ide-tape.c pc->c[1] = 1; pc 554 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_DMA_OK; pc 557 drivers/ide/ide-tape.c pc->c[0] = READ_6; pc 559 drivers/ide/ide-tape.c pc->c[0] = WRITE_6; pc 560 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_WRITING; pc 563 drivers/ide/ide-tape.c memcpy(scsi_req(rq)->cmd, pc->c, 12); pc 571 drivers/ide/ide-tape.c struct ide_atapi_pc *pc = NULL; pc 585 drivers/ide/ide-tape.c if (drive->failed_pc && drive->pc->c[0] == REQUEST_SENSE) { pc 586 drivers/ide/ide-tape.c pc = drive->failed_pc; pc 632 drivers/ide/ide-tape.c pc = &tape->queued_pc; pc 633 drivers/ide/ide-tape.c ide_tape_create_rw_cmd(tape, pc, rq, READ_6); pc 637 drivers/ide/ide-tape.c pc = &tape->queued_pc; pc 638 drivers/ide/ide-tape.c ide_tape_create_rw_cmd(tape, pc, rq, WRITE_6); pc 642 drivers/ide/ide-tape.c pc = (struct ide_atapi_pc *)ide_req(rq)->special; pc 667 drivers/ide/ide-tape.c return ide_tape_issue_pc(drive, &cmd, pc); pc 675 drivers/ide/ide-tape.c struct ide_atapi_pc *pc, int write_filemark) pc 677 drivers/ide/ide-tape.c ide_init_pc(pc); pc 678 drivers/ide/ide-tape.c pc->c[0] = WRITE_FILEMARKS; pc 679 drivers/ide/ide-tape.c pc->c[4] = write_filemark; pc 680 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_WAIT_FOR_DSC; pc 714 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 717 drivers/ide/ide-tape.c idetape_create_write_filemark_cmd(drive, &pc, 0); pc 718 drivers/ide/ide-tape.c rc = ide_queue_pc_tail(drive, tape->disk, &pc, NULL, 0); pc 728 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 734 drivers/ide/ide-tape.c ide_init_pc(&pc); pc 735 drivers/ide/ide-tape.c pc.c[0] = READ_POSITION; pc 736 drivers/ide/ide-tape.c pc.req_xfer = 20; pc 738 drivers/ide/ide-tape.c if (ide_queue_pc_tail(drive, tape->disk, &pc, buf, pc.req_xfer)) pc 741 drivers/ide/ide-tape.c if (!pc.error) { pc 768 drivers/ide/ide-tape.c struct ide_atapi_pc *pc, pc 771 drivers/ide/ide-tape.c ide_init_pc(pc); pc 772 drivers/ide/ide-tape.c pc->c[0] = POSITION_TO_ELEMENT; pc 773 drivers/ide/ide-tape.c pc->c[1] = 2; pc 774 drivers/ide/ide-tape.c put_unaligned(cpu_to_be32(block), (unsigned int *) &pc->c[3]); pc 775 drivers/ide/ide-tape.c pc->c[8] = partition; pc 776 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_WAIT_FOR_DSC; pc 808 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 813 drivers/ide/ide-tape.c idetape_create_locate_cmd(drive, &pc, block, partition, skip); pc 814 drivers/ide/ide-tape.c ret = ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 888 drivers/ide/ide-tape.c static void idetape_create_inquiry_cmd(struct ide_atapi_pc *pc) pc 890 drivers/ide/ide-tape.c ide_init_pc(pc); pc 891 drivers/ide/ide-tape.c pc->c[0] = INQUIRY; pc 892 drivers/ide/ide-tape.c pc->c[4] = 254; pc 893 drivers/ide/ide-tape.c pc->req_xfer = 254; pc 897 drivers/ide/ide-tape.c struct ide_atapi_pc *pc) pc 899 drivers/ide/ide-tape.c ide_init_pc(pc); pc 900 drivers/ide/ide-tape.c pc->c[0] = REZERO_UNIT; pc 901 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_WAIT_FOR_DSC; pc 904 drivers/ide/ide-tape.c static void idetape_create_erase_cmd(struct ide_atapi_pc *pc) pc 906 drivers/ide/ide-tape.c ide_init_pc(pc); pc 907 drivers/ide/ide-tape.c pc->c[0] = ERASE; pc 908 drivers/ide/ide-tape.c pc->c[1] = 1; pc 909 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_WAIT_FOR_DSC; pc 912 drivers/ide/ide-tape.c static void idetape_create_space_cmd(struct ide_atapi_pc *pc, int count, u8 cmd) pc 914 drivers/ide/ide-tape.c ide_init_pc(pc); pc 915 drivers/ide/ide-tape.c pc->c[0] = SPACE; pc 916 drivers/ide/ide-tape.c put_unaligned(cpu_to_be32(count), (unsigned int *) &pc->c[1]); pc 917 drivers/ide/ide-tape.c pc->c[1] = cmd; pc 918 drivers/ide/ide-tape.c pc->flags |= PC_FLAG_WAIT_FOR_DSC; pc 1013 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1018 drivers/ide/ide-tape.c idetape_create_rewind_cmd(drive, &pc); pc 1019 drivers/ide/ide-tape.c ret = ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 1068 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1094 drivers/ide/ide-tape.c idetape_create_space_cmd(&pc, mt_count - count, pc 1096 drivers/ide/ide-tape.c return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 1230 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1233 drivers/ide/ide-tape.c idetape_create_write_filemark_cmd(drive, &pc, 1); pc 1234 drivers/ide/ide-tape.c if (ide_queue_pc_tail(drive, tape->disk, &pc, NULL, 0)) { pc 1258 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1319 drivers/ide/ide-tape.c idetape_create_space_cmd(&pc, 0, IDETAPE_SPACE_TO_EOD); pc 1320 drivers/ide/ide-tape.c return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 1323 drivers/ide/ide-tape.c idetape_create_erase_cmd(&pc); pc 1324 drivers/ide/ide-tape.c return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); pc 1442 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1445 drivers/ide/ide-tape.c idetape_create_mode_sense_cmd(&pc, IDETAPE_BLOCK_DESCRIPTOR); pc 1446 drivers/ide/ide-tape.c if (ide_queue_pc_tail(drive, tape->disk, &pc, buf, pc.req_xfer)) { pc 1606 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1610 drivers/ide/ide-tape.c idetape_create_inquiry_cmd(&pc); pc 1611 drivers/ide/ide-tape.c if (ide_queue_pc_tail(drive, tape->disk, &pc, pc_buf, pc.req_xfer)) { pc 1635 drivers/ide/ide-tape.c struct ide_atapi_pc pc; pc 1639 drivers/ide/ide-tape.c idetape_create_mode_sense_cmd(&pc, IDETAPE_CAPABILITIES_PAGE); pc 1640 drivers/ide/ide-tape.c if (ide_queue_pc_tail(drive, tape->disk, &pc, buf, pc.req_xfer)) { pc 152 drivers/infiniband/hw/efa/efa_com.c sq->pc = 0; pc 328 drivers/infiniband/hw/efa/efa_com.c pi = aq->sq.pc & queue_size_mask; pc 334 drivers/infiniband/hw/efa/efa_com.c cmd_id |= aq->sq.pc & ~queue_size_mask; pc 358 drivers/infiniband/hw/efa/efa_com.c aq->sq.pc++; pc 361 drivers/infiniband/hw/efa/efa_com.c if ((aq->sq.pc & queue_size_mask) == 0) pc 365 drivers/infiniband/hw/efa/efa_com.c writel(aq->sq.pc, aq->sq.db_addr); pc 576 drivers/infiniband/hw/efa/efa_com.c comp_ctx, aq->sq.pc, aq->sq.cc, aq->cq.cc); pc 583 drivers/infiniband/hw/efa/efa_com.c comp_ctx, aq->sq.pc, aq->sq.cc, aq->cq.cc); pc 41 drivers/infiniband/hw/efa/efa_com.h u16 pc; /* producer counter */ pc 671 drivers/iommu/fsl_pamu.c u32 *pc; pc 674 drivers/iommu/fsl_pamu.c pc = (u32 *) (pamu_reg_base + PAMU_PC); pc 706 drivers/iommu/fsl_pamu.c out_be32(pc, PAMU_PC_PE | PAMU_PC_OCE | PAMU_PC_SPCC | PAMU_PC_PPCC); pc 621 drivers/media/platform/mtk-vpu/mtk_vpu.c unsigned int running, pc, vpu_to_host, host_to_vpu, wdt; pc 634 drivers/media/platform/mtk-vpu/mtk_vpu.c pc = vpu_cfg_readl(vpu, VPU_PC_REG); pc 647 drivers/media/platform/mtk-vpu/mtk_vpu.c vpu->run.fw_ver, pc, wdt, pc 230 drivers/misc/altera-stapl/altera.c u32 pc; pc 424 drivers/misc/altera-stapl/altera.c pc = code_sect; pc 495 drivers/misc/altera-stapl/altera.c pc = code_sect + pc 498 drivers/misc/altera-stapl/altera.c if ((pc < code_sect) || (pc >= debug_sect)) pc 510 drivers/misc/altera-stapl/altera.c opcode = (p[pc] & 0xff); pc 511 drivers/misc/altera-stapl/altera.c opcode_address = pc; pc 512 drivers/misc/altera-stapl/altera.c ++pc; pc 519 drivers/misc/altera-stapl/altera.c args[i] = get_unaligned_be32(&p[pc]); pc 520 drivers/misc/altera-stapl/altera.c pc += 4; pc 650 drivers/misc/altera-stapl/altera.c pc = code_sect + get_unaligned_be32( pc 653 drivers/misc/altera-stapl/altera.c if ((pc < code_sect) || pc 654 drivers/misc/altera-stapl/altera.c (pc >= debug_sect)) pc 660 drivers/misc/altera-stapl/altera.c pc = stack[--stack_ptr] + code_sect; pc 661 drivers/misc/altera-stapl/altera.c if ((pc <= code_sect) || pc 662 drivers/misc/altera-stapl/altera.c (pc >= debug_sect)) pc 990 drivers/misc/altera-stapl/altera.c pc = args[0] + code_sect; pc 991 drivers/misc/altera-stapl/altera.c if ((pc < code_sect) || (pc >= debug_sect)) pc 995 drivers/misc/altera-stapl/altera.c stack[stack_ptr++] = pc; pc 996 drivers/misc/altera-stapl/altera.c pc = args[0] + code_sect; pc 997 drivers/misc/altera-stapl/altera.c if ((pc < code_sect) || (pc >= debug_sect)) pc 1025 drivers/misc/altera-stapl/altera.c pc = top + code_sect; pc 1026 drivers/misc/altera-stapl/altera.c if ((pc < code_sect) || pc 1027 drivers/misc/altera-stapl/altera.c (pc >= debug_sect)) pc 1299 drivers/misc/altera-stapl/altera.c pc = args[0] + code_sect; pc 1300 drivers/misc/altera-stapl/altera.c if ((pc < code_sect) || pc 1301 drivers/misc/altera-stapl/altera.c (pc >= debug_sect)) pc 739 drivers/net/can/usb/peak_usb/pcan_usb.c u8 *pc; pc 744 drivers/net/can/usb/peak_usb/pcan_usb.c pc = obuf + PCAN_USB_MSG_HEADER_LEN; pc 747 drivers/net/can/usb/peak_usb/pcan_usb.c *pc = cf->can_dlc; pc 749 drivers/net/can/usb/peak_usb/pcan_usb.c *pc |= PCAN_USB_STATUSLEN_RTR; pc 755 drivers/net/can/usb/peak_usb/pcan_usb.c *pc |= PCAN_USB_STATUSLEN_EXT_ID; pc 756 drivers/net/can/usb/peak_usb/pcan_usb.c memcpy(++pc, &tmp32, 4); pc 757 drivers/net/can/usb/peak_usb/pcan_usb.c pc += 4; pc 761 drivers/net/can/usb/peak_usb/pcan_usb.c memcpy(++pc, &tmp16, 2); pc 762 drivers/net/can/usb/peak_usb/pcan_usb.c pc += 2; pc 767 drivers/net/can/usb/peak_usb/pcan_usb.c memcpy(pc, cf->data, cf->can_dlc); pc 768 drivers/net/can/usb/peak_usb/pcan_usb.c pc += cf->can_dlc; pc 230 drivers/net/can/usb/peak_usb/pcan_usb_fd.c u8 *pc = buf; pc 233 drivers/net/can/usb/peak_usb/pcan_usb_fd.c prc = (struct pucan_wr_err_cnt *)pc; pc 245 drivers/net/can/usb/peak_usb/pcan_usb_fd.c pc += sizeof(struct pucan_wr_err_cnt); pc 249 drivers/net/can/usb/peak_usb/pcan_usb_fd.c struct pucan_options *puo = (struct pucan_options *)pc; pc 266 drivers/net/can/usb/peak_usb/pcan_usb_fd.c pc += sizeof(struct pucan_options); pc 270 drivers/net/can/usb/peak_usb/pcan_usb_fd.c cmd = (struct pucan_command *)pc; pc 275 drivers/net/can/usb/peak_usb/pcan_usb_fd.c pc += sizeof(struct pucan_command); pc 277 drivers/net/can/usb/peak_usb/pcan_usb_fd.c return pc - buf; pc 283 drivers/net/can/usb/peak_usb/pcan_usb_fd.c u8 *pc = pcan_usb_fd_cmd_buffer(dev); pc 288 drivers/net/can/usb/peak_usb/pcan_usb_fd.c l = pcan_usb_fd_build_restart_cmd(dev, pc); pc 290 drivers/net/can/usb/peak_usb/pcan_usb_fd.c struct pucan_command *cmd = (struct pucan_command *)pc; pc 299 drivers/net/can/usb/peak_usb/pcan_usb_fd.c return pcan_usb_fd_send_cmd(dev, pc + l); pc 431 drivers/net/can/usb/peak_usb/pcan_usb_fd.c u8 *pc = buf; pc 436 drivers/net/can/usb/peak_usb/pcan_usb_fd.c pc += pcan_usb_fd_build_restart_cmd(dev, pc); pc 439 drivers/net/can/usb/peak_usb/pcan_usb_fd.c memset(pc, 0xff, sizeof(struct pucan_command)); pc 440 drivers/net/can/usb/peak_usb/pcan_usb_fd.c pc += sizeof(struct pucan_command); pc 445 drivers/net/can/usb/peak_usb/pcan_usb_fd.c buf, pc - buf, pc 125 drivers/net/can/usb/peak_usb/pcan_usb_pro.c u8 *pc; pc 130 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc = pm->rec_ptr + 1; pc 141 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); pc 142 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); pc 143 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); pc 144 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); pc 145 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 4; pc 146 drivers/net/can/usb/peak_usb/pcan_usb_pro.c memcpy(pc, va_arg(ap, int *), i); pc 147 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += i; pc 152 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); pc 153 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 2; pc 154 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); pc 155 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 4; pc 161 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); pc 162 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le16 *)pc = cpu_to_le16(va_arg(ap, int)); pc 163 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 2; pc 167 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *pc++ = va_arg(ap, int); pc 168 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le16 *)pc = cpu_to_le16(va_arg(ap, int)); pc 169 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 2; pc 170 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); pc 171 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 4; pc 175 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc++; pc 176 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *(__le16 *)pc = cpu_to_le16(va_arg(ap, int)); pc 177 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += 2; pc 183 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc--; pc 187 drivers/net/can/usb/peak_usb/pcan_usb_pro.c len = pc - pm->rec_ptr; pc 192 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pm->rec_ptr = pc; pc 247 drivers/net/can/usb/peak_usb/pcan_usb_pro.c u8 *pc; pc 269 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc = pcan_msg_init(&rsp, pum->u.rec_buffer, pc 276 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pr = (union pcan_usb_pro_rec *)pc; pc 304 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc += rec_len; pc 428 drivers/net/can/usb/peak_usb/pcan_usb_pro.c u8 *pc; pc 430 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pc = pcan_msg_init_empty(&um, dev->cmd_buf, PCAN_USB_MAX_CMD_LEN); pc 441 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pdn = (struct pcan_usb_pro_devid *)pc; pc 3899 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, cpu_reg->pc, val); pc 7026 drivers/net/ethernet/broadcom/bnx2.h u32 pc; pc 20 drivers/net/ethernet/broadcom/bnx2_fw.h .pc = BNX2_COM_CPU_PROGRAM_COUNTER, pc 36 drivers/net/ethernet/broadcom/bnx2_fw.h .pc = BNX2_CP_CPU_PROGRAM_COUNTER, pc 52 drivers/net/ethernet/broadcom/bnx2_fw.h .pc = BNX2_RXP_CPU_PROGRAM_COUNTER, pc 68 drivers/net/ethernet/broadcom/bnx2_fw.h .pc = BNX2_TPAT_CPU_PROGRAM_COUNTER, pc 84 drivers/net/ethernet/broadcom/bnx2_fw.h .pc = BNX2_TXP_CPU_PROGRAM_COUNTER, pc 3772 drivers/net/ethernet/broadcom/tg3.c static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc) pc 3778 drivers/net/ethernet/broadcom/tg3.c tw32_f(cpu_base + CPU_PC, pc); pc 3781 drivers/net/ethernet/broadcom/tg3.c if (tr32(cpu_base + CPU_PC) == pc) pc 3785 drivers/net/ethernet/broadcom/tg3.c tw32_f(cpu_base + CPU_PC, pc); pc 276 drivers/net/ethernet/ibm/ehea/ehea_phyp.h u64 pc; /* 17 */ pc 1875 drivers/net/ethernet/intel/fm10k/fm10k_main.c int pc, offset, rss_i, i; pc 1884 drivers/net/ethernet/intel/fm10k/fm10k_main.c for (pc = 0, offset = 0; pc < num_pcs; pc++, offset += rss_i) { pc 1885 drivers/net/ethernet/intel/fm10k/fm10k_main.c int q_idx = pc; pc 1889 drivers/net/ethernet/intel/fm10k/fm10k_main.c interface->tx_ring[offset + i]->qos_pc = pc; pc 1891 drivers/net/ethernet/intel/fm10k/fm10k_main.c interface->rx_ring[offset + i]->qos_pc = pc; pc 502 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u16 vsi, queue, pc, q_idx; pc 537 drivers/net/ethernet/intel/fm10k/fm10k_pf.c for (pc = 0; pc < pc_count; pc++) { pc 538 drivers/net/ethernet/intel/fm10k/fm10k_pf.c q_idx = pc + dglort->queue_b; pc 545 drivers/net/ethernet/intel/fm10k/fm10k_pf.c txqctl |= pc << FM10K_TXQCTL_PC_SHIFT; pc 394 drivers/net/ethernet/mellanox/mlx5/core/en.h u16 pc ____cacheline_aligned_in_smp; pc 483 drivers/net/ethernet/mellanox/mlx5/core/en.h u32 *pc; pc 516 drivers/net/ethernet/mellanox/mlx5/core/en.h u16 pc; pc 548 drivers/net/ethernet/mellanox/mlx5/core/en.h u16 pc; pc 35 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c if (icosq->cc == icosq->pc) pc 43 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c icosq->sqn, icosq->cc, icosq->pc); pc 50 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c WARN_ONCE(icosq->cc != icosq->pc, "ICOSQ 0x%x: cc (0x%x) != pc (0x%x)\n", pc 51 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c icosq->sqn, icosq->cc, icosq->pc); pc 53 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c icosq->pc = 0; pc 11 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c if (sq->cc == sq->pc) pc 19 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c sq->sqn, sq->cc, sq->pc); pc 26 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c WARN_ONCE(sq->cc != sq->pc, pc 28 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c sq->sqn, sq->cc, sq->pc); pc 31 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c sq->pc = 0; pc 123 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c sq->channel->ix, sq->sqn, sq->cq.mcq.cqn, sq->cc, sq->pc, pc 192 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c err = devlink_fmsg_u32_pair_put(fmsg, "pc", sq->pc); pc 31 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mlx5e_wqc_has_room_for(struct mlx5_wq_cyc *wq, u16 cc, u16 pc, u16 n) pc 33 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h return (mlx5_wq_cyc_ctr2ix(wq, cc - pc) >= n) || (cc == pc); pc 42 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h *pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 50 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mlx5e_post_nop(struct mlx5_wq_cyc *wq, u32 sqn, u16 *pc) pc 52 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h u16 pi = mlx5_wq_cyc_ctr2ix(wq, *pc); pc 58 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h cseg->opmod_idx_opcode = cpu_to_be32((*pc << 8) | MLX5_OPCODE_NOP); pc 61 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h (*pc)++; pc 67 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mlx5e_post_nop_fence(struct mlx5_wq_cyc *wq, u32 sqn, u16 *pc) pc 69 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h u16 pi = mlx5_wq_cyc_ctr2ix(wq, *pc); pc 75 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h cseg->opmod_idx_opcode = cpu_to_be32((*pc << 8) | MLX5_OPCODE_NOP); pc 79 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h (*pc)++; pc 96 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mlx5e_post_nop(wq, sq->sqn, &sq->pc); pc 102 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mlx5e_notify_hw(struct mlx5_wq_cyc *wq, u16 pc, void __iomem *uar_map, pc 109 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h *wq->db = cpu_to_be32(pc); pc 188 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 211 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 215 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_ENHANCED_MPSW); pc 221 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c sq->pc += wi->num_wqebbs; pc 236 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c if (unlikely(!mlx5e_wqc_has_room_for(&sq->wq, sq->cc, sq->pc, pc 289 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c if (unlikely(!mlx5e_wqc_has_room_for(&sq->wq, sq->cc, sq->pc, 1))) { pc 305 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 344 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_SEND); pc 346 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c sq->pc++; pc 455 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c while (sq->cc != sq->pc) { pc 106 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h mlx5e_notify_hw(&sq->wq, sq->pc, sq->uar_map, sq->doorbell_cseg); pc 151 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h mlx5e_post_nop(wq, sq->sqn, &sq->pc); pc 195 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h *pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 206 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h u32 i = (*fifo->pc)++ & fifo->mask; pc 55 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c u16 pi = mlx5_wq_cyc_ctr2ix(&sq->wq, sq->pc); pc 62 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c nopwqe = mlx5e_post_nop(&sq->wq, sq->sqn, &sq->pc); pc 21 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.h if (sq->pc != sq->cc) pc 52 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c build_static_params(struct mlx5e_umr_wqe *wqe, u16 pc, u32 sqn, pc 62 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c cseg->opmod_idx_opcode = cpu_to_be32((pc << 8) | MLX5_OPCODE_UMR | pc 86 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c build_progress_params(struct mlx5e_tx_wqe *wqe, u16 pc, u32 sqn, pc 96 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c cpu_to_be32((pc << 8) | MLX5_OPCODE_SET_PSV | pc 141 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c build_static_params(umr_wqe, sq->pc, sq->sqn, priv_tx, fence); pc 143 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c sq->pc += MLX5E_KTLS_STATIC_WQEBBS; pc 155 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c build_progress_params(wqe, sq->pc, sq->sqn, priv_tx, fence); pc 157 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c sq->pc += MLX5E_KTLS_PROGRESS_WQEBBS; pc 169 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 288 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | MLX5_OPCODE_DUMP); pc 305 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c sq->pc += MLX5E_KTLS_DUMP_WQEBBS; pc 332 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 336 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c mlx5e_post_nop_fence(wq, sq->sqn, &sq->pc); pc 380 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 962 drivers/net/ethernet/mellanox/mlx5/core/en_main.c xdpi_fifo->pc = &sq->xdpi_fifo_pc; pc 1375 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (mlx5e_wqc_has_room_for(wq, sq->cc, sq->pc, 1)) { pc 1376 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 1384 drivers/net/ethernet/mellanox/mlx5/core/en_main.c nop = mlx5e_post_nop(wq, sq->sqn, &sq->pc); pc 1385 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_notify_hw(wq, sq->pc, sq->uar_map, &nop->ctrl); pc 481 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_post_nop(wq, sq->sqn, &sq->pc); pc 503 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 507 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 524 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c cpu_to_be32((sq->pc << MLX5_WQE_CTRL_WQE_INDEX_SHIFT) | pc 531 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->pc += MLX5E_UMR_WQEBBS; pc 692 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_notify_hw(&sq->wq, sq->pc, sq->uar_map, sq->doorbell_cseg); pc 251 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c cseg->opmod_idx_opcode = cpu_to_be32((sq->pc << 8) | opcode); pc 257 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c sq->pc += wi->num_wqebbs; pc 258 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c if (unlikely(!mlx5e_wqc_has_room_for(wq, sq->cc, sq->pc, sq->stop_room))) { pc 266 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c mlx5e_notify_hw(wq, sq->pc, sq->uar_map, cseg); pc 528 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c mlx5e_wqc_has_room_for(&sq->wq, sq->cc, sq->pc, sq->stop_room) && pc 548 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c while (sqcc != sq->pc) { pc 640 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 644 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 78 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c u16 pi = mlx5_wq_cyc_ctr2ix(wq, sq->pc); pc 82 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c nopwqe = mlx5e_post_nop(wq, sq->sqn, &sq->pc); pc 83 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c mlx5e_notify_hw(wq, sq->pc, sq->uar_map, &nopwqe->ctrl); pc 110 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c if (unlikely(conn->qp.rq.pc - conn->qp.rq.cc >= conn->qp.rq.size)) { pc 115 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ix = conn->qp.rq.pc & (conn->qp.rq.size - 1); pc 121 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.rq.pc++; pc 126 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c *conn->qp.wq.rq.db = cpu_to_be32(conn->qp.rq.pc & 0xffff); pc 135 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c *conn->qp.wq.sq.db = cpu_to_be32(conn->qp.sq.pc); pc 149 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ix = conn->qp.sq.pc & (conn->qp.sq.size - 1); pc 166 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ctrl->opmod_idx_opcode = cpu_to_be32(((conn->qp.sq.pc & 0xffff) << 8) | pc 170 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.sq.pc++; pc 191 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c if (conn->qp.sq.pc - conn->qp.sq.cc >= conn->qp.sq.size) { pc 542 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.rq.pc = 0; pc 545 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.sq.pc = 0; pc 71 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.h unsigned int pc; pc 78 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.h unsigned int pc; pc 126 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dr_qp->rq.pc = 0; pc 129 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dr_qp->sq.pc = 0; pc 216 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c *dr_qp->wq.sq.db = cpu_to_be32(dr_qp->sq.pc & 0xfffff); pc 237 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c idx = dr_qp->sq.pc & (dr_qp->sq.wqe_cnt - 1); pc 243 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c wq_ctrl->opmod_idx_opcode = cpu_to_be32(((dr_qp->sq.pc & 0xffff) << 8) | pc 256 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dr_qp->sq.wqe_head[idx] = dr_qp->sq.pc++; pc 977 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h unsigned int pc; pc 984 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h unsigned int pc; pc 1211 drivers/net/plip/plip.c struct plipconf *pc = (struct plipconf *) &rq->ifr_ifru; pc 1216 drivers/net/plip/plip.c switch(pc->pcmd) { pc 1218 drivers/net/plip/plip.c pc->trigger = nl->trigger; pc 1219 drivers/net/plip/plip.c pc->nibble = nl->nibble; pc 1224 drivers/net/plip/plip.c nl->trigger = pc->trigger; pc 1225 drivers/net/plip/plip.c nl->nibble = pc->nibble; pc 511 drivers/net/wireless/ath/ath5k/eeprom.c struct ath5k_chan_pcal_info *pc, unsigned int mode) pc 527 drivers/net/wireless/ath/ath5k/eeprom.c pc[i++].freq = ath5k_eeprom_bin2freq(ee, pc 535 drivers/net/wireless/ath/ath5k/eeprom.c pc[i++].freq = ath5k_eeprom_bin2freq(ee, pc 371 drivers/net/wireless/ath/ath9k/htc_hst.c htc_panic->exccause, htc_panic->pc, pc 83 drivers/net/wireless/ath/ath9k/htc_hst.h __be32 pc; pc 356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c __le32 pc; /* r15 */ pc 3017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c le32_to_cpu(tr.pc), sh->trap_addr, pc 3031 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c le32_to_cpu(tr.pc), sh->trap_addr, pc 5084 drivers/net/wireless/intel/iwlegacy/4965-mac.c u32 pc, hcmd; pc 5106 drivers/net/wireless/intel/iwlegacy/4965-mac.c pc = il_read_targ_mem(il, base + 2 * sizeof(u32)); pc 5122 drivers/net/wireless/intel/iwlegacy/4965-mac.c IL_ERR("0x%05X 0x%05X 0x%05X 0x%05X 0x%05X 0x%05X\n", pc, blink1, pc 418 drivers/net/wireless/intel/iwlwifi/dvm/commands.h u32 pc; /* program counter */ pc 1656 drivers/net/wireless/intel/iwlwifi/dvm/main.c IWL_ERR(priv, "0x%08X | uPc\n", table.pc); pc 342 drivers/net/wireless/intel/iwlwifi/mvm/utils.c u32 pc; /* program counter */ pc 891 drivers/net/wireless/ti/wlcore/main.c u32 pc = 0; pc 903 drivers/net/wireless/ti/wlcore/main.c ret = wlcore_read_reg(wl, REG_PC_ON_RECOVERY, &pc); pc 912 drivers/net/wireless/ti/wlcore/main.c pc, hint_sts, ++wl->recovery_count); pc 333 drivers/oprofile/buffer_sync.c unsigned long code, pc, val; pc 339 drivers/oprofile/buffer_sync.c if (!op_cpu_buffer_get_data(entry, &pc)) pc 345 drivers/oprofile/buffer_sync.c cookie = lookup_dcookie(mm, pc, &offset); pc 348 drivers/oprofile/buffer_sync.c offset = pc; pc 351 drivers/oprofile/buffer_sync.c offset = pc; pc 358 drivers/oprofile/buffer_sync.c offset = pc; pc 238 drivers/oprofile/cpu_buffer.c unsigned long pc, unsigned long event) pc 247 drivers/oprofile/cpu_buffer.c sample->eip = pc; pc 262 drivers/oprofile/cpu_buffer.c log_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc, pc 269 drivers/oprofile/cpu_buffer.c if (pc == ESCAPE_CODE) { pc 277 drivers/oprofile/cpu_buffer.c if (op_add_sample(cpu_buf, pc, event)) pc 298 drivers/oprofile/cpu_buffer.c __oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, pc 309 drivers/oprofile/cpu_buffer.c if (!log_sample(cpu_buf, pc, backtrace, is_kernel, event, task)) pc 321 drivers/oprofile/cpu_buffer.c void oprofile_add_ext_hw_sample(unsigned long pc, struct pt_regs * const regs, pc 325 drivers/oprofile/cpu_buffer.c __oprofile_add_ext_sample(pc, regs, event, is_kernel, task); pc 328 drivers/oprofile/cpu_buffer.c void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, pc 331 drivers/oprofile/cpu_buffer.c __oprofile_add_ext_sample(pc, regs, event, is_kernel, NULL); pc 337 drivers/oprofile/cpu_buffer.c unsigned long pc; pc 341 drivers/oprofile/cpu_buffer.c pc = profile_pc(regs); pc 344 drivers/oprofile/cpu_buffer.c pc = ESCAPE_CODE; /* as this causes an early return. */ pc 347 drivers/oprofile/cpu_buffer.c __oprofile_add_ext_sample(pc, regs, event, is_kernel, NULL); pc 358 drivers/oprofile/cpu_buffer.c unsigned long pc, int code, int size) pc 377 drivers/oprofile/cpu_buffer.c op_cpu_buffer_add_data(entry, pc); pc 415 drivers/oprofile/cpu_buffer.c void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event) pc 418 drivers/oprofile/cpu_buffer.c log_sample(cpu_buf, pc, 0, is_kernel, event, NULL); pc 421 drivers/oprofile/cpu_buffer.c void oprofile_add_trace(unsigned long pc) pc 432 drivers/oprofile/cpu_buffer.c if (pc == ESCAPE_CODE) pc 435 drivers/oprofile/cpu_buffer.c if (op_add_sample(cpu_buf, pc, 0)) pc 80 drivers/parport/parport_gsc.c s->u.pc.ctr = 0xc | (dev->irq_func ? 0x10 : 0x0); pc 85 drivers/parport/parport_gsc.c s->u.pc.ctr = parport_readb (CONTROL (p)); pc 90 drivers/parport/parport_gsc.c parport_writeb (s->u.pc.ctr, CONTROL (p)); pc 236 drivers/parport/parport_pc.c s->u.pc.ctr = 0xc; pc 240 drivers/parport/parport_pc.c s->u.pc.ctr |= 0x10; pc 242 drivers/parport/parport_pc.c s->u.pc.ecr = 0x34; /* NetMos chip can cause problems 0x24; pc 249 drivers/parport/parport_pc.c s->u.pc.ctr = priv->ctr; pc 251 drivers/parport/parport_pc.c s->u.pc.ecr = inb(ECONTROL(p)); pc 258 drivers/parport/parport_pc.c register unsigned char c = s->u.pc.ctr & priv->ctr_writable; pc 262 drivers/parport/parport_pc.c ECR_WRITE(p, s->u.pc.ecr); pc 218 drivers/parport/parport_sunbpp.c s->u.pc.ctr = 0xc; pc 219 drivers/parport/parport_sunbpp.c s->u.pc.ecr = 0x0; pc 224 drivers/parport/parport_sunbpp.c s->u.pc.ctr = parport_sunbpp_read_control(p); pc 229 drivers/parport/parport_sunbpp.c parport_sunbpp_write_control(p, s->u.pc.ctr); pc 306 drivers/pci/controller/dwc/pci-imx6.c unsigned long pc = instruction_pointer(regs); pc 307 drivers/pci/controller/dwc/pci-imx6.c unsigned long instr = *(unsigned long *)pc; pc 235 drivers/pinctrl/bcm/pinctrl-bcm2835.c static inline u32 bcm2835_gpio_rd(struct bcm2835_pinctrl *pc, unsigned reg) pc 237 drivers/pinctrl/bcm/pinctrl-bcm2835.c return readl(pc->base + reg); pc 240 drivers/pinctrl/bcm/pinctrl-bcm2835.c static inline void bcm2835_gpio_wr(struct bcm2835_pinctrl *pc, unsigned reg, pc 243 drivers/pinctrl/bcm/pinctrl-bcm2835.c writel(val, pc->base + reg); pc 246 drivers/pinctrl/bcm/pinctrl-bcm2835.c static inline int bcm2835_gpio_get_bit(struct bcm2835_pinctrl *pc, unsigned reg, pc 250 drivers/pinctrl/bcm/pinctrl-bcm2835.c return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; pc 254 drivers/pinctrl/bcm/pinctrl-bcm2835.c static inline void bcm2835_gpio_set_bit(struct bcm2835_pinctrl *pc, pc 258 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); pc 262 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc, unsigned pin) pc 264 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); pc 267 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "get %08x (%u => %s)\n", val, pin, pc 274 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc, unsigned pin, pc 277 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); pc 280 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "read %08x (%u => %s)\n", val, pin, pc 291 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "trans %08x (%u <= %s)\n", val, pin, pc 293 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, FSEL_REG(pin), val); pc 299 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "write %08x (%u <= %s)\n", val, pin, pc 301 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, FSEL_REG(pin), val); pc 311 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 313 drivers/pinctrl/bcm/pinctrl-bcm2835.c return bcm2835_gpio_get_bit(pc, GPLEV0, offset); pc 318 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 319 drivers/pinctrl/bcm/pinctrl-bcm2835.c enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get(pc, offset); pc 330 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 332 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, value ? GPSET0 : GPCLR0, offset); pc 358 drivers/pinctrl/bcm/pinctrl-bcm2835.c static void bcm2835_gpio_irq_handle_bank(struct bcm2835_pinctrl *pc, pc 365 drivers/pinctrl/bcm/pinctrl-bcm2835.c events = bcm2835_gpio_rd(pc, GPEDS0 + bank * 4); pc 367 drivers/pinctrl/bcm/pinctrl-bcm2835.c events &= pc->enabled_irq_map[bank]; pc 370 drivers/pinctrl/bcm/pinctrl-bcm2835.c generic_handle_irq(irq_linear_revmap(pc->gpio_chip.irq.domain, pc 378 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 398 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_handle_bank(pc, 0, 0x0fffffff); pc 401 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_handle_bank(pc, 0, 0xf0000000); pc 402 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_handle_bank(pc, 1, 0x00003fff); pc 405 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_handle_bank(pc, 1, 0x003fc000); pc 412 drivers/pinctrl/bcm/pinctrl-bcm2835.c static inline void __bcm2835_gpio_irq_config(struct bcm2835_pinctrl *pc, pc 417 drivers/pinctrl/bcm/pinctrl-bcm2835.c value = bcm2835_gpio_rd(pc, reg); pc 422 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, reg, value); pc 426 drivers/pinctrl/bcm/pinctrl-bcm2835.c static void bcm2835_gpio_irq_config(struct bcm2835_pinctrl *pc, pc 429 drivers/pinctrl/bcm/pinctrl-bcm2835.c switch (pc->irq_type[offset]) { pc 431 drivers/pinctrl/bcm/pinctrl-bcm2835.c __bcm2835_gpio_irq_config(pc, GPREN0, offset, enable); pc 435 drivers/pinctrl/bcm/pinctrl-bcm2835.c __bcm2835_gpio_irq_config(pc, GPFEN0, offset, enable); pc 439 drivers/pinctrl/bcm/pinctrl-bcm2835.c __bcm2835_gpio_irq_config(pc, GPREN0, offset, enable); pc 440 drivers/pinctrl/bcm/pinctrl-bcm2835.c __bcm2835_gpio_irq_config(pc, GPFEN0, offset, enable); pc 444 drivers/pinctrl/bcm/pinctrl-bcm2835.c __bcm2835_gpio_irq_config(pc, GPHEN0, offset, enable); pc 448 drivers/pinctrl/bcm/pinctrl-bcm2835.c __bcm2835_gpio_irq_config(pc, GPLEN0, offset, enable); pc 456 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 462 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_lock_irqsave(&pc->irq_lock[bank], flags); pc 463 drivers/pinctrl/bcm/pinctrl-bcm2835.c set_bit(offset, &pc->enabled_irq_map[bank]); pc 464 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, gpio, true); pc 465 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_unlock_irqrestore(&pc->irq_lock[bank], flags); pc 471 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 477 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_lock_irqsave(&pc->irq_lock[bank], flags); pc 478 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, gpio, false); pc 480 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, GPEDS0, gpio); pc 481 drivers/pinctrl/bcm/pinctrl-bcm2835.c clear_bit(offset, &pc->enabled_irq_map[bank]); pc 482 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_unlock_irqrestore(&pc->irq_lock[bank], flags); pc 485 drivers/pinctrl/bcm/pinctrl-bcm2835.c static int __bcm2835_gpio_irq_set_type_disabled(struct bcm2835_pinctrl *pc, pc 495 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 505 drivers/pinctrl/bcm/pinctrl-bcm2835.c static int __bcm2835_gpio_irq_set_type_enabled(struct bcm2835_pinctrl *pc, pc 510 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (pc->irq_type[offset] != type) { pc 511 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 512 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 517 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (pc->irq_type[offset] == IRQ_TYPE_EDGE_BOTH) { pc 519 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = IRQ_TYPE_EDGE_FALLING; pc 520 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 521 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 522 drivers/pinctrl/bcm/pinctrl-bcm2835.c } else if (pc->irq_type[offset] != type) { pc 523 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 524 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 525 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, true); pc 530 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (pc->irq_type[offset] == IRQ_TYPE_EDGE_BOTH) { pc 532 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = IRQ_TYPE_EDGE_RISING; pc 533 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 534 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 535 drivers/pinctrl/bcm/pinctrl-bcm2835.c } else if (pc->irq_type[offset] != type) { pc 536 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 537 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 538 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, true); pc 543 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (pc->irq_type[offset] == IRQ_TYPE_EDGE_RISING) { pc 545 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = IRQ_TYPE_EDGE_FALLING; pc 546 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, true); pc 547 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 548 drivers/pinctrl/bcm/pinctrl-bcm2835.c } else if (pc->irq_type[offset] == IRQ_TYPE_EDGE_FALLING) { pc 550 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = IRQ_TYPE_EDGE_RISING; pc 551 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, true); pc 552 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 553 drivers/pinctrl/bcm/pinctrl-bcm2835.c } else if (pc->irq_type[offset] != type) { pc 554 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 555 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 556 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, true); pc 562 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (pc->irq_type[offset] != type) { pc 563 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, false); pc 564 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->irq_type[offset] = type; pc 565 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_irq_config(pc, offset, true); pc 578 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 585 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_lock_irqsave(&pc->irq_lock[bank], flags); pc 587 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (test_bit(offset, &pc->enabled_irq_map[bank])) pc 588 drivers/pinctrl/bcm/pinctrl-bcm2835.c ret = __bcm2835_gpio_irq_set_type_enabled(pc, gpio, type); pc 590 drivers/pinctrl/bcm/pinctrl-bcm2835.c ret = __bcm2835_gpio_irq_set_type_disabled(pc, gpio, type); pc 597 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_unlock_irqrestore(&pc->irq_lock[bank], flags); pc 605 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); pc 608 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, GPEDS0, gpio); pc 647 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 648 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct gpio_chip *chip = &pc->gpio_chip; pc 649 drivers/pinctrl/bcm/pinctrl-bcm2835.c enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get(pc, offset); pc 651 drivers/pinctrl/bcm/pinctrl-bcm2835.c int value = bcm2835_gpio_get_bit(pc, GPLEV0, offset); pc 656 drivers/pinctrl/bcm/pinctrl-bcm2835.c irq, irq_type_names[pc->irq_type[offset]]); pc 671 drivers/pinctrl/bcm/pinctrl-bcm2835.c static int bcm2835_pctl_dt_node_to_map_func(struct bcm2835_pinctrl *pc, pc 678 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, "%pOF: invalid brcm,function %d\n", np, fnum); pc 690 drivers/pinctrl/bcm/pinctrl-bcm2835.c static int bcm2835_pctl_dt_node_to_map_pull(struct bcm2835_pinctrl *pc, pc 698 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, "%pOF: invalid brcm,pull %d\n", np, pull); pc 720 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 735 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, "%pOF: missing brcm,pins property\n", np); pc 743 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, pc 754 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, pc 761 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, pc 782 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_err(pc->dev, "%pOF: invalid brcm,pins value %d\n", pc 793 drivers/pinctrl/bcm/pinctrl-bcm2835.c err = bcm2835_pctl_dt_node_to_map_func(pc, np, pin, pc 803 drivers/pinctrl/bcm/pinctrl-bcm2835.c err = bcm2835_pctl_dt_node_to_map_pull(pc, np, pin, pc 832 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 835 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pinctrl_fsel_set(pc, offset, BCM2835_FSEL_GPIO_IN); pc 866 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 868 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pinctrl_fsel_set(pc, group_selector, func_selector); pc 877 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 880 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pinctrl_fsel_set(pc, offset, BCM2835_FSEL_GPIO_IN); pc 888 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 892 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pinctrl_fsel_set(pc, offset, fsel); pc 914 drivers/pinctrl/bcm/pinctrl-bcm2835.c static void bcm2835_pull_config_set(struct bcm2835_pinctrl *pc, pc 922 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPPUD, arg & 3); pc 930 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPPUDCLK0 + (off * 4), BIT(bit)); pc 932 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPPUDCLK0 + (off * 4), 0); pc 939 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 950 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, arg); pc 955 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, BCM2835_PUD_OFF); pc 959 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, BCM2835_PUD_DOWN); pc 963 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, BCM2835_PUD_UP); pc 968 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, arg ? GPSET0 : GPCLR0, pin); pc 986 drivers/pinctrl/bcm/pinctrl-bcm2835.c static void bcm2711_pull_config_set(struct bcm2835_pinctrl *pc, pc 996 drivers/pinctrl/bcm/pinctrl-bcm2835.c value = bcm2835_gpio_rd(pc, GP_GPIO_PUP_PDN_CNTRL_REG0 + (off * 4)); pc 999 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GP_GPIO_PUP_PDN_CNTRL_REG0 + (off * 4), value); pc 1006 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); pc 1024 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, arg); pc 1029 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, BCM2711_PULL_NONE); pc 1032 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, BCM2711_PULL_DOWN); pc 1035 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, BCM2711_PULL_UP); pc 1040 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, arg ? GPSET0 : GPCLR0, pin); pc 1088 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc; pc 1097 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); pc 1098 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (!pc) pc 1101 drivers/pinctrl/bcm/pinctrl-bcm2835.c platform_set_drvdata(pdev, pc); pc 1102 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->dev = dev; pc 1110 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->base = devm_ioremap_resource(dev, &iomem); pc 1111 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (IS_ERR(pc->base)) pc 1112 drivers/pinctrl/bcm/pinctrl-bcm2835.c return PTR_ERR(pc->base); pc 1114 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->gpio_chip = bcm2835_gpio_chip; pc 1115 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->gpio_chip.parent = dev; pc 1116 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->gpio_chip.of_node = np; pc 1123 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPREN0 + i * 4, 0); pc 1124 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPFEN0 + i * 4, 0); pc 1125 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPHEN0 + i * 4, 0); pc 1126 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPLEN0 + i * 4, 0); pc 1127 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPAREN0 + i * 4, 0); pc 1128 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPAFEN0 + i * 4, 0); pc 1131 drivers/pinctrl/bcm/pinctrl-bcm2835.c events = bcm2835_gpio_rd(pc, GPEDS0 + i * 4); pc 1133 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPEDS0 + i * 4, BIT(offset)); pc 1135 drivers/pinctrl/bcm/pinctrl-bcm2835.c raw_spin_lock_init(&pc->irq_lock[i]); pc 1138 drivers/pinctrl/bcm/pinctrl-bcm2835.c girq = &pc->gpio_chip.irq; pc 1159 drivers/pinctrl/bcm/pinctrl-bcm2835.c err = gpiochip_add_data(&pc->gpio_chip, pc); pc 1171 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->pctl_dev = devm_pinctrl_register(dev, &bcm2835_pinctrl_desc, pc); pc 1172 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (IS_ERR(pc->pctl_dev)) { pc 1173 drivers/pinctrl/bcm/pinctrl-bcm2835.c gpiochip_remove(&pc->gpio_chip); pc 1174 drivers/pinctrl/bcm/pinctrl-bcm2835.c return PTR_ERR(pc->pctl_dev); pc 1177 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->gpio_range = bcm2835_pinctrl_gpio_range; pc 1178 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->gpio_range.base = pc->gpio_chip.base; pc 1179 drivers/pinctrl/bcm/pinctrl-bcm2835.c pc->gpio_range.gc = &pc->gpio_chip; pc 1180 drivers/pinctrl/bcm/pinctrl-bcm2835.c pinctrl_add_gpio_range(pc->pctl_dev, &pc->gpio_range); pc 29 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c static int meson_axg_pmx_get_bank(struct meson_pinctrl *pc, pc 34 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c struct meson_axg_pmx_data *pmx = pc->data->pmx_data; pc 60 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c static int meson_axg_pmx_update_function(struct meson_pinctrl *pc, pc 68 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c ret = meson_axg_pmx_get_bank(pc, pin, &bank); pc 74 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c ret = regmap_update_bits(pc->reg_mux, reg << 2, pc 85 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 86 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c struct meson_pmx_func *func = &pc->data->funcs[func_num]; pc 87 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c struct meson_pmx_group *group = &pc->data->groups[group_num]; pc 91 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c dev_dbg(pc->dev, "enable function %s, group %s\n", func->name, pc 95 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c ret = meson_axg_pmx_update_function(pc, group->pins[i], pc 107 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 109 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c return meson_axg_pmx_update_function(pc, offset, 0); pc 68 drivers/pinctrl/meson/pinctrl-meson.c static int meson_get_bank(struct meson_pinctrl *pc, unsigned int pin, pc 73 drivers/pinctrl/meson/pinctrl-meson.c for (i = 0; i < pc->data->num_banks; i++) { pc 74 drivers/pinctrl/meson/pinctrl-meson.c if (pin >= pc->data->banks[i].first && pc 75 drivers/pinctrl/meson/pinctrl-meson.c pin <= pc->data->banks[i].last) { pc 76 drivers/pinctrl/meson/pinctrl-meson.c *bank = &pc->data->banks[i]; pc 105 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 107 drivers/pinctrl/meson/pinctrl-meson.c return pc->data->num_groups; pc 113 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 115 drivers/pinctrl/meson/pinctrl-meson.c return pc->data->groups[selector].name; pc 121 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 123 drivers/pinctrl/meson/pinctrl-meson.c *pins = pc->data->groups[selector].pins; pc 124 drivers/pinctrl/meson/pinctrl-meson.c *num_pins = pc->data->groups[selector].num_pins; pc 146 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 148 drivers/pinctrl/meson/pinctrl-meson.c return pc->data->num_funcs; pc 154 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 156 drivers/pinctrl/meson/pinctrl-meson.c return pc->data->funcs[selector].name; pc 163 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 165 drivers/pinctrl/meson/pinctrl-meson.c *groups = pc->data->funcs[selector].groups; pc 166 drivers/pinctrl/meson/pinctrl-meson.c *num_groups = pc->data->funcs[selector].num_groups; pc 171 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_set_gpio_bit(struct meson_pinctrl *pc, pc 180 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 185 drivers/pinctrl/meson/pinctrl-meson.c return regmap_update_bits(pc->reg_gpio, reg, BIT(bit), pc 189 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get_gpio_bit(struct meson_pinctrl *pc, pc 197 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 202 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_read(pc->reg_gpio, reg, &val); pc 209 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_set_output(struct meson_pinctrl *pc, pc 213 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_set_gpio_bit(pc, pin, REG_DIR, !out); pc 216 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get_output(struct meson_pinctrl *pc, pc 219 drivers/pinctrl/meson/pinctrl-meson.c int ret = meson_pinconf_get_gpio_bit(pc, pin, REG_DIR); pc 227 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_set_drive(struct meson_pinctrl *pc, pc 231 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_set_gpio_bit(pc, pin, REG_OUT, high); pc 234 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get_drive(struct meson_pinctrl *pc, pc 237 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_get_gpio_bit(pc, pin, REG_OUT); pc 240 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_set_output_drive(struct meson_pinctrl *pc, pc 246 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_output(pc, pin, true); pc 250 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_set_drive(pc, pin, high); pc 253 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_disable_bias(struct meson_pinctrl *pc, pc 260 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 265 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_update_bits(pc->reg_pullen, reg, BIT(bit), 0); pc 272 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_enable_bias(struct meson_pinctrl *pc, unsigned int pin, pc 279 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 287 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_update_bits(pc->reg_pull, reg, BIT(bit), val); pc 292 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_update_bits(pc->reg_pullen, reg, BIT(bit), BIT(bit)); pc 299 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_set_drive_strength(struct meson_pinctrl *pc, pc 307 drivers/pinctrl/meson/pinctrl-meson.c if (!pc->reg_ds) { pc 308 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "drive-strength not supported\n"); pc 312 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 328 drivers/pinctrl/meson/pinctrl-meson.c dev_warn_once(pc->dev, pc 334 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_update_bits(pc->reg_ds, reg, 0x3 << bit, ds_val << bit); pc 344 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 365 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_disable_bias(pc, pin); pc 368 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_enable_bias(pc, pin, true); pc 371 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_enable_bias(pc, pin, false); pc 374 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_drive_strength(pc, pin, arg); pc 377 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_output(pc, pin, arg); pc 380 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_output_drive(pc, pin, arg); pc 393 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get_pull(struct meson_pinctrl *pc, unsigned int pin) pc 399 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 405 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_read(pc->reg_pullen, reg, &val); pc 414 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_read(pc->reg_pull, reg, &val); pc 427 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get_drive_strength(struct meson_pinctrl *pc, pc 436 drivers/pinctrl/meson/pinctrl-meson.c if (!pc->reg_ds) pc 439 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pc 446 drivers/pinctrl/meson/pinctrl-meson.c ret = regmap_read(pc->reg_ds, reg, &val); pc 473 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 482 drivers/pinctrl/meson/pinctrl-meson.c if (meson_pinconf_get_pull(pc, pin) == param) pc 488 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_drive_strength(pc, pin, &arg); pc 493 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_output(pc, pin); pc 499 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_output(pc, pin); pc 503 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_drive(pc, pin); pc 515 drivers/pinctrl/meson/pinctrl-meson.c dev_dbg(pc->dev, "pinconf for pin %u is %lu\n", pin, *config); pc 524 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 525 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pmx_group *group = &pc->data->groups[num_group]; pc 528 drivers/pinctrl/meson/pinctrl-meson.c dev_dbg(pc->dev, "set pinconf for group %s\n", group->name); pc 571 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc = gpiochip_get_data(chip); pc 576 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, gpio, &bank); pc 581 drivers/pinctrl/meson/pinctrl-meson.c regmap_read(pc->reg_gpio, reg, &val); pc 586 drivers/pinctrl/meson/pinctrl-meson.c static int meson_gpiolib_register(struct meson_pinctrl *pc) pc 590 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.label = pc->data->name; pc 591 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.parent = pc->dev; pc 592 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.request = gpiochip_generic_request; pc 593 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.free = gpiochip_generic_free; pc 594 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.direction_input = meson_gpio_direction_input; pc 595 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.direction_output = meson_gpio_direction_output; pc 596 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.get = meson_gpio_get; pc 597 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.set = meson_gpio_set; pc 598 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.base = -1; pc 599 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.ngpio = pc->data->num_pins; pc 600 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.can_sleep = false; pc 601 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.of_node = pc->of_node; pc 602 drivers/pinctrl/meson/pinctrl-meson.c pc->chip.of_gpio_n_cells = 2; pc 604 drivers/pinctrl/meson/pinctrl-meson.c ret = gpiochip_add_data(&pc->chip, pc); pc 606 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "can't add gpio chip %s\n", pc 607 drivers/pinctrl/meson/pinctrl-meson.c pc->data->name); pc 620 drivers/pinctrl/meson/pinctrl-meson.c static struct regmap *meson_map_resource(struct meson_pinctrl *pc, pc 631 drivers/pinctrl/meson/pinctrl-meson.c base = devm_ioremap_resource(pc->dev, &res); pc 636 drivers/pinctrl/meson/pinctrl-meson.c meson_regmap_config.name = devm_kasprintf(pc->dev, GFP_KERNEL, pc 642 drivers/pinctrl/meson/pinctrl-meson.c return devm_regmap_init_mmio(pc->dev, base, &meson_regmap_config); pc 645 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinctrl_parse_dt(struct meson_pinctrl *pc, pc 654 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "multiple gpio nodes\n"); pc 662 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "no gpio node found\n"); pc 666 drivers/pinctrl/meson/pinctrl-meson.c pc->of_node = gpio_np; pc 668 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_mux = meson_map_resource(pc, gpio_np, "mux"); pc 669 drivers/pinctrl/meson/pinctrl-meson.c if (IS_ERR(pc->reg_mux)) { pc 670 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "mux registers not found\n"); pc 671 drivers/pinctrl/meson/pinctrl-meson.c return PTR_ERR(pc->reg_mux); pc 674 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_gpio = meson_map_resource(pc, gpio_np, "gpio"); pc 675 drivers/pinctrl/meson/pinctrl-meson.c if (IS_ERR(pc->reg_gpio)) { pc 676 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "gpio registers not found\n"); pc 677 drivers/pinctrl/meson/pinctrl-meson.c return PTR_ERR(pc->reg_gpio); pc 680 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_pull = meson_map_resource(pc, gpio_np, "pull"); pc 682 drivers/pinctrl/meson/pinctrl-meson.c if (IS_ERR(pc->reg_pull)) pc 683 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_pull = pc->reg_gpio; pc 685 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_pullen = meson_map_resource(pc, gpio_np, "pull-enable"); pc 687 drivers/pinctrl/meson/pinctrl-meson.c if (IS_ERR(pc->reg_pullen)) pc 688 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_pullen = pc->reg_pull; pc 690 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_ds = meson_map_resource(pc, gpio_np, "ds"); pc 691 drivers/pinctrl/meson/pinctrl-meson.c if (IS_ERR(pc->reg_ds)) { pc 692 drivers/pinctrl/meson/pinctrl-meson.c dev_dbg(pc->dev, "ds registers not found - skipping\n"); pc 693 drivers/pinctrl/meson/pinctrl-meson.c pc->reg_ds = NULL; pc 702 drivers/pinctrl/meson/pinctrl-meson.c struct meson_pinctrl *pc; pc 705 drivers/pinctrl/meson/pinctrl-meson.c pc = devm_kzalloc(dev, sizeof(struct meson_pinctrl), GFP_KERNEL); pc 706 drivers/pinctrl/meson/pinctrl-meson.c if (!pc) pc 709 drivers/pinctrl/meson/pinctrl-meson.c pc->dev = dev; pc 710 drivers/pinctrl/meson/pinctrl-meson.c pc->data = (struct meson_pinctrl_data *) of_device_get_match_data(dev); pc 712 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinctrl_parse_dt(pc, dev->of_node); pc 716 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.name = "pinctrl-meson"; pc 717 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.owner = THIS_MODULE; pc 718 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.pctlops = &meson_pctrl_ops; pc 719 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.pmxops = pc->data->pmx_ops; pc 720 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.confops = &meson_pinconf_ops; pc 721 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.pins = pc->data->pins; pc 722 drivers/pinctrl/meson/pinctrl-meson.c pc->desc.npins = pc->data->num_pins; pc 724 drivers/pinctrl/meson/pinctrl-meson.c pc->pcdev = devm_pinctrl_register(pc->dev, &pc->desc, pc); pc 725 drivers/pinctrl/meson/pinctrl-meson.c if (IS_ERR(pc->pcdev)) { pc 726 drivers/pinctrl/meson/pinctrl-meson.c dev_err(pc->dev, "can't register pinctrl device"); pc 727 drivers/pinctrl/meson/pinctrl-meson.c return PTR_ERR(pc->pcdev); pc 730 drivers/pinctrl/meson/pinctrl-meson.c return meson_gpiolib_register(pc); pc 32 drivers/pinctrl/meson/pinctrl-meson8-pmx.c static void meson8_pmx_disable_other_groups(struct meson_pinctrl *pc, pc 39 drivers/pinctrl/meson/pinctrl-meson8-pmx.c for (i = 0; i < pc->data->num_groups; i++) { pc 40 drivers/pinctrl/meson/pinctrl-meson8-pmx.c group = &pc->data->groups[i]; pc 48 drivers/pinctrl/meson/pinctrl-meson8-pmx.c regmap_update_bits(pc->reg_mux, pc 59 drivers/pinctrl/meson/pinctrl-meson8-pmx.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 60 drivers/pinctrl/meson/pinctrl-meson8-pmx.c struct meson_pmx_func *func = &pc->data->funcs[func_num]; pc 61 drivers/pinctrl/meson/pinctrl-meson8-pmx.c struct meson_pmx_group *group = &pc->data->groups[group_num]; pc 66 drivers/pinctrl/meson/pinctrl-meson8-pmx.c dev_dbg(pc->dev, "enable function %s, group %s\n", func->name, pc 74 drivers/pinctrl/meson/pinctrl-meson8-pmx.c meson8_pmx_disable_other_groups(pc, group->pins[i], group_num); pc 78 drivers/pinctrl/meson/pinctrl-meson8-pmx.c ret = regmap_update_bits(pc->reg_mux, pmx_data->reg * 4, pc 89 drivers/pinctrl/meson/pinctrl-meson8-pmx.c struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); pc 91 drivers/pinctrl/meson/pinctrl-meson8-pmx.c meson8_pmx_disable_other_groups(pc, offset, -1); pc 204 drivers/pinctrl/pinctrl-st.c #define pc_to_bank(pc) \ pc 205 drivers/pinctrl/pinctrl-st.c container_of(pc, struct st_gpio_bank, pc) pc 316 drivers/pinctrl/pinctrl-st.c struct st_pio_control pc; pc 369 drivers/pinctrl/pinctrl-st.c return &bank->pc; pc 383 drivers/pinctrl/pinctrl-st.c static void st_pinconf_set_config(struct st_pio_control *pc, pc 386 drivers/pinctrl/pinctrl-st.c struct regmap_field *output_enable = pc->oe; pc 387 drivers/pinctrl/pinctrl-st.c struct regmap_field *pull_up = pc->pu; pc 388 drivers/pinctrl/pinctrl-st.c struct regmap_field *open_drain = pc->od; pc 417 drivers/pinctrl/pinctrl-st.c static void st_pctl_set_function(struct st_pio_control *pc, pc 420 drivers/pinctrl/pinctrl-st.c struct regmap_field *alt = pc->alt; pc 434 drivers/pinctrl/pinctrl-st.c static unsigned int st_pctl_get_pin_function(struct st_pio_control *pc, int pin) pc 436 drivers/pinctrl/pinctrl-st.c struct regmap_field *alt = pc->alt; pc 517 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, unsigned long config, int pin) pc 520 drivers/pinctrl/pinctrl-st.c struct st_retime_packed *rt_p = &pc->rt.rt_p; pc 548 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, unsigned long config, int pin) pc 560 drivers/pinctrl/pinctrl-st.c struct st_retime_dedicated *rt_d = &pc->rt.rt_d; pc 574 drivers/pinctrl/pinctrl-st.c static void st_pinconf_get_direction(struct st_pio_control *pc, pc 579 drivers/pinctrl/pinctrl-st.c if (pc->oe) { pc 580 drivers/pinctrl/pinctrl-st.c regmap_field_read(pc->oe, &oe_value); pc 585 drivers/pinctrl/pinctrl-st.c if (pc->pu) { pc 586 drivers/pinctrl/pinctrl-st.c regmap_field_read(pc->pu, &pu_value); pc 591 drivers/pinctrl/pinctrl-st.c if (pc->od) { pc 592 drivers/pinctrl/pinctrl-st.c regmap_field_read(pc->od, &od_value); pc 599 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long *config) pc 602 drivers/pinctrl/pinctrl-st.c struct st_retime_packed *rt_p = &pc->rt.rt_p; pc 632 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long *config) pc 637 drivers/pinctrl/pinctrl-st.c struct st_retime_dedicated *rt_d = &pc->rt.rt_d; pc 738 drivers/pinctrl/pinctrl-st.c struct st_pio_control pc = bank->pc; pc 746 drivers/pinctrl/pinctrl-st.c function = st_pctl_get_pin_function(&pc, offset); pc 748 drivers/pinctrl/pinctrl-st.c st_pinconf_get_direction(&pc, offset, &config); pc 901 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc; pc 905 drivers/pinctrl/pinctrl-st.c pc = st_get_pio_control(pctldev, conf[i].pin); pc 906 drivers/pinctrl/pinctrl-st.c st_pctl_set_function(pc, conf[i].pin, conf[i].altfunc); pc 922 drivers/pinctrl/pinctrl-st.c st_pctl_set_function(&bank->pc, gpio, 0); pc 940 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long *config) pc 943 drivers/pinctrl/pinctrl-st.c st_pinconf_get_retime_packed(info, pc, pin, config); pc 945 drivers/pinctrl/pinctrl-st.c if ((BIT(pin) & pc->rt_pin_mask)) pc 946 drivers/pinctrl/pinctrl-st.c st_pinconf_get_retime_dedicated(info, pc, pc 951 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long config) pc 954 drivers/pinctrl/pinctrl-st.c st_pinconf_set_retime_packed(info, pc, config, pin); pc 956 drivers/pinctrl/pinctrl-st.c if ((BIT(pin) & pc->rt_pin_mask)) pc 957 drivers/pinctrl/pinctrl-st.c st_pinconf_set_retime_dedicated(info, pc, pc 966 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); pc 970 drivers/pinctrl/pinctrl-st.c st_pinconf_set_config(pc, pin, configs[i]); pc 971 drivers/pinctrl/pinctrl-st.c st_pinconf_set_retime(info, pc, pin, configs[i]); pc 982 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc = st_get_pio_control(pctldev, pin_id); pc 985 drivers/pinctrl/pinctrl-st.c st_pinconf_get_direction(pc, pin, config); pc 986 drivers/pinctrl/pinctrl-st.c st_pinconf_get_retime(info, pc, pin, config); pc 994 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc; pc 1001 drivers/pinctrl/pinctrl-st.c pc = st_get_pio_control(pctldev, pin_id); pc 1005 drivers/pinctrl/pinctrl-st.c function = st_pctl_get_pin_function(pc, offset); pc 1014 drivers/pinctrl/pinctrl-st.c !st_gpio_get_direction(&pc_to_bank(pc)->gpio_chip, offset), pc 1047 drivers/pinctrl/pinctrl-st.c int bank, struct st_pio_control *pc) pc 1054 drivers/pinctrl/pinctrl-st.c struct st_retime_packed *rt_p = &pc->rt.rt_p; pc 1083 drivers/pinctrl/pinctrl-st.c int bank, struct st_pio_control *pc) pc 1090 drivers/pinctrl/pinctrl-st.c struct st_retime_dedicated *rt_d = &pc->rt.rt_d; pc 1092 drivers/pinctrl/pinctrl-st.c u32 pin_mask = pc->rt_pin_mask; pc 1107 drivers/pinctrl/pinctrl-st.c int bank, struct st_pio_control *pc) pc 1111 drivers/pinctrl/pinctrl-st.c return st_pctl_dt_setup_retime_packed(info, bank, pc); pc 1113 drivers/pinctrl/pinctrl-st.c return st_pctl_dt_setup_retime_dedicated(info, bank, pc); pc 1142 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc = &info->banks[bank].pc; pc 1146 drivers/pinctrl/pinctrl-st.c pc->alt = st_pc_get_value(dev, regmap, bank, data->alt, 0, 31); pc 1147 drivers/pinctrl/pinctrl-st.c pc->oe = st_pc_get_value(dev, regmap, bank/4, data->oe, lsb, msb); pc 1148 drivers/pinctrl/pinctrl-st.c pc->pu = st_pc_get_value(dev, regmap, bank/4, data->pu, lsb, msb); pc 1149 drivers/pinctrl/pinctrl-st.c pc->od = st_pc_get_value(dev, regmap, bank/4, data->od, lsb, msb); pc 1152 drivers/pinctrl/pinctrl-st.c pc->rt_pin_mask = 0xff; pc 1153 drivers/pinctrl/pinctrl-st.c of_property_read_u32(np, "st,retime-pin-mask", &pc->rt_pin_mask); pc 1154 drivers/pinctrl/pinctrl-st.c st_pctl_dt_setup_retime(info, bank, pc); pc 104 drivers/ptp/ptp_chardev.c int ptp_open(struct posix_clock *pc, fmode_t fmode) pc 109 drivers/ptp/ptp_chardev.c long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) pc 111 drivers/ptp/ptp_chardev.c struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); pc 388 drivers/ptp/ptp_chardev.c __poll_t ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait) pc 390 drivers/ptp/ptp_chardev.c struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); pc 399 drivers/ptp/ptp_chardev.c ssize_t ptp_read(struct posix_clock *pc, pc 402 drivers/ptp/ptp_chardev.c struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); pc 89 drivers/ptp/ptp_clock.c static int ptp_clock_getres(struct posix_clock *pc, struct timespec64 *tp) pc 96 drivers/ptp/ptp_clock.c static int ptp_clock_settime(struct posix_clock *pc, const struct timespec64 *tp) pc 98 drivers/ptp/ptp_clock.c struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); pc 103 drivers/ptp/ptp_clock.c static int ptp_clock_gettime(struct posix_clock *pc, struct timespec64 *tp) pc 105 drivers/ptp/ptp_clock.c struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); pc 115 drivers/ptp/ptp_clock.c static int ptp_clock_adjtime(struct posix_clock *pc, struct __kernel_timex *tx) pc 117 drivers/ptp/ptp_clock.c struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); pc 72 drivers/ptp/ptp_private.h long ptp_ioctl(struct posix_clock *pc, pc 75 drivers/ptp/ptp_private.h int ptp_open(struct posix_clock *pc, fmode_t fmode); pc 77 drivers/ptp/ptp_private.h ssize_t ptp_read(struct posix_clock *pc, pc 80 drivers/ptp/ptp_private.h __poll_t ptp_poll(struct posix_clock *pc, pc 124 drivers/pwm/core.c of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) pc 129 drivers/pwm/core.c if (pc->of_pwm_n_cells < 3) pc 136 drivers/pwm/core.c if (args->args[0] >= pc->npwm) pc 139 drivers/pwm/core.c pwm = pwm_request_from_chip(pc, args->args[0], NULL); pc 154 drivers/pwm/core.c of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) pc 159 drivers/pwm/core.c if (pc->of_pwm_n_cells < 2) pc 163 drivers/pwm/core.c if (args->args_count != pc->of_pwm_n_cells) pc 166 drivers/pwm/core.c if (args->args[0] >= pc->npwm) pc 169 drivers/pwm/core.c pwm = pwm_request_from_chip(pc, args->args[0], NULL); pc 683 drivers/pwm/core.c struct pwm_chip *pc; pc 700 drivers/pwm/core.c pc = of_node_to_pwmchip(args.np); pc 701 drivers/pwm/core.c if (IS_ERR(pc)) { pc 702 drivers/pwm/core.c if (PTR_ERR(pc) != -EPROBE_DEFER) pc 705 drivers/pwm/core.c pwm = ERR_CAST(pc); pc 709 drivers/pwm/core.c pwm = pc->of_xlate(pc, &args); pc 116 drivers/pwm/pwm-bcm-kona.c unsigned long prescale = PRESCALE_MIN, pc, dc; pc 136 drivers/pwm/pwm-bcm-kona.c pc = div64_u64(val, div); pc 141 drivers/pwm/pwm-bcm-kona.c if (pc < PERIOD_COUNT_MIN || dc < DUTY_CYCLE_HIGH_MIN) pc 145 drivers/pwm/pwm-bcm-kona.c if (pc <= PERIOD_COUNT_MAX && dc <= DUTY_CYCLE_HIGH_MAX) pc 166 drivers/pwm/pwm-bcm-kona.c writel(pc, kp->base + PERIOD_COUNT_OFFSET(chan)); pc 40 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); pc 43 drivers/pwm/pwm-bcm2835.c value = readl(pc->base + PWM_CONTROL); pc 46 drivers/pwm/pwm-bcm2835.c writel(value, pc->base + PWM_CONTROL); pc 53 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); pc 56 drivers/pwm/pwm-bcm2835.c value = readl(pc->base + PWM_CONTROL); pc 58 drivers/pwm/pwm-bcm2835.c writel(value, pc->base + PWM_CONTROL); pc 64 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); pc 65 drivers/pwm/pwm-bcm2835.c unsigned long rate = clk_get_rate(pc->clk); pc 70 drivers/pwm/pwm-bcm2835.c dev_err(pc->dev, "failed to get clock rate\n"); pc 81 drivers/pwm/pwm-bcm2835.c pc->base + DUTY(pwm->hwpwm)); pc 82 drivers/pwm/pwm-bcm2835.c writel(period, pc->base + PERIOD(pwm->hwpwm)); pc 89 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); pc 92 drivers/pwm/pwm-bcm2835.c value = readl(pc->base + PWM_CONTROL); pc 94 drivers/pwm/pwm-bcm2835.c writel(value, pc->base + PWM_CONTROL); pc 101 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); pc 104 drivers/pwm/pwm-bcm2835.c value = readl(pc->base + PWM_CONTROL); pc 106 drivers/pwm/pwm-bcm2835.c writel(value, pc->base + PWM_CONTROL); pc 112 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); pc 115 drivers/pwm/pwm-bcm2835.c value = readl(pc->base + PWM_CONTROL); pc 122 drivers/pwm/pwm-bcm2835.c writel(value, pc->base + PWM_CONTROL); pc 139 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc; pc 143 drivers/pwm/pwm-bcm2835.c pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); pc 144 drivers/pwm/pwm-bcm2835.c if (!pc) pc 147 drivers/pwm/pwm-bcm2835.c pc->dev = &pdev->dev; pc 150 drivers/pwm/pwm-bcm2835.c pc->base = devm_ioremap_resource(&pdev->dev, res); pc 151 drivers/pwm/pwm-bcm2835.c if (IS_ERR(pc->base)) pc 152 drivers/pwm/pwm-bcm2835.c return PTR_ERR(pc->base); pc 154 drivers/pwm/pwm-bcm2835.c pc->clk = devm_clk_get(&pdev->dev, NULL); pc 155 drivers/pwm/pwm-bcm2835.c if (IS_ERR(pc->clk)) { pc 156 drivers/pwm/pwm-bcm2835.c ret = PTR_ERR(pc->clk); pc 163 drivers/pwm/pwm-bcm2835.c ret = clk_prepare_enable(pc->clk); pc 167 drivers/pwm/pwm-bcm2835.c pc->chip.dev = &pdev->dev; pc 168 drivers/pwm/pwm-bcm2835.c pc->chip.ops = &bcm2835_pwm_ops; pc 169 drivers/pwm/pwm-bcm2835.c pc->chip.base = -1; pc 170 drivers/pwm/pwm-bcm2835.c pc->chip.npwm = 2; pc 171 drivers/pwm/pwm-bcm2835.c pc->chip.of_xlate = of_pwm_xlate_with_flags; pc 172 drivers/pwm/pwm-bcm2835.c pc->chip.of_pwm_n_cells = 3; pc 174 drivers/pwm/pwm-bcm2835.c platform_set_drvdata(pdev, pc); pc 176 drivers/pwm/pwm-bcm2835.c ret = pwmchip_add(&pc->chip); pc 183 drivers/pwm/pwm-bcm2835.c clk_disable_unprepare(pc->clk); pc 189 drivers/pwm/pwm-bcm2835.c struct bcm2835_pwm *pc = platform_get_drvdata(pdev); pc 191 drivers/pwm/pwm-bcm2835.c clk_disable_unprepare(pc->clk); pc 193 drivers/pwm/pwm-bcm2835.c return pwmchip_remove(&pc->chip); pc 101 drivers/pwm/pwm-brcmstb.c unsigned long pc, dc, cword = CONST_VAR_F_MAX; pc 112 drivers/pwm/pwm-brcmstb.c pc = PWM_ON_PERIOD_MAX - 1; pc 128 drivers/pwm/pwm-brcmstb.c pc = tmp; pc 138 drivers/pwm/pwm-brcmstb.c if (pc == PWM_PERIOD_MIN || (dc < PWM_ON_MIN && duty_ns)) pc 142 drivers/pwm/pwm-brcmstb.c if (pc <= PWM_ON_PERIOD_MAX && dc <= PWM_ON_PERIOD_MAX) pc 177 drivers/pwm/pwm-brcmstb.c brcmstb_pwm_writel(p, pc, PWM_PERIOD(channel)); pc 37 drivers/pwm/pwm-crc.c static inline struct crystalcove_pwm *to_crc_pwm(struct pwm_chip *pc) pc 39 drivers/pwm/pwm-crc.c return container_of(pc, struct crystalcove_pwm, chip); pc 134 drivers/pwm/pwm-cros-ec.c cros_ec_pwm_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) pc 138 drivers/pwm/pwm-cros-ec.c if (args->args[0] >= pc->npwm) pc 141 drivers/pwm/pwm-cros-ec.c pwm = pwm_request_from_chip(pc, args->args[0], NULL); pc 72 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); pc 75 drivers/pwm/pwm-mediatek.c ret = clk_prepare_enable(pc->clk_top); pc 79 drivers/pwm/pwm-mediatek.c ret = clk_prepare_enable(pc->clk_main); pc 83 drivers/pwm/pwm-mediatek.c ret = clk_prepare_enable(pc->clk_pwms[pwm->hwpwm]); pc 90 drivers/pwm/pwm-mediatek.c clk_disable_unprepare(pc->clk_main); pc 92 drivers/pwm/pwm-mediatek.c clk_disable_unprepare(pc->clk_top); pc 100 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); pc 102 drivers/pwm/pwm-mediatek.c clk_disable_unprepare(pc->clk_pwms[pwm->hwpwm]); pc 103 drivers/pwm/pwm-mediatek.c clk_disable_unprepare(pc->clk_main); pc 104 drivers/pwm/pwm-mediatek.c clk_disable_unprepare(pc->clk_top); pc 123 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); pc 136 drivers/pwm/pwm-mediatek.c do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm])); pc 152 drivers/pwm/pwm-mediatek.c if (pc->soc->pwm45_fixup && pwm->hwpwm > 2) { pc 162 drivers/pwm/pwm-mediatek.c pwm_mediatek_writel(pc, pwm->hwpwm, PWMCON, BIT(15) | clkdiv); pc 163 drivers/pwm/pwm-mediatek.c pwm_mediatek_writel(pc, pwm->hwpwm, reg_width, cnt_period); pc 164 drivers/pwm/pwm-mediatek.c pwm_mediatek_writel(pc, pwm->hwpwm, reg_thres, cnt_duty); pc 173 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); pc 181 drivers/pwm/pwm-mediatek.c value = readl(pc->regs); pc 183 drivers/pwm/pwm-mediatek.c writel(value, pc->regs); pc 190 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); pc 193 drivers/pwm/pwm-mediatek.c value = readl(pc->regs); pc 195 drivers/pwm/pwm-mediatek.c writel(value, pc->regs); pc 209 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc; pc 214 drivers/pwm/pwm-mediatek.c pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); pc 215 drivers/pwm/pwm-mediatek.c if (!pc) pc 218 drivers/pwm/pwm-mediatek.c pc->soc = of_device_get_match_data(&pdev->dev); pc 221 drivers/pwm/pwm-mediatek.c pc->regs = devm_ioremap_resource(&pdev->dev, res); pc 222 drivers/pwm/pwm-mediatek.c if (IS_ERR(pc->regs)) pc 223 drivers/pwm/pwm-mediatek.c return PTR_ERR(pc->regs); pc 225 drivers/pwm/pwm-mediatek.c pc->clk_pwms = devm_kcalloc(&pdev->dev, pc->soc->num_pwms, pc 226 drivers/pwm/pwm-mediatek.c sizeof(*pc->clk_pwms), GFP_KERNEL); pc 227 drivers/pwm/pwm-mediatek.c if (!pc->clk_pwms) pc 230 drivers/pwm/pwm-mediatek.c pc->clk_top = devm_clk_get(&pdev->dev, "top"); pc 231 drivers/pwm/pwm-mediatek.c if (IS_ERR(pc->clk_top)) { pc 233 drivers/pwm/pwm-mediatek.c PTR_ERR(pc->clk_top)); pc 234 drivers/pwm/pwm-mediatek.c return PTR_ERR(pc->clk_top); pc 237 drivers/pwm/pwm-mediatek.c pc->clk_main = devm_clk_get(&pdev->dev, "main"); pc 238 drivers/pwm/pwm-mediatek.c if (IS_ERR(pc->clk_main)) { pc 240 drivers/pwm/pwm-mediatek.c PTR_ERR(pc->clk_main)); pc 241 drivers/pwm/pwm-mediatek.c return PTR_ERR(pc->clk_main); pc 244 drivers/pwm/pwm-mediatek.c for (i = 0; i < pc->soc->num_pwms; i++) { pc 249 drivers/pwm/pwm-mediatek.c pc->clk_pwms[i] = devm_clk_get(&pdev->dev, name); pc 250 drivers/pwm/pwm-mediatek.c if (IS_ERR(pc->clk_pwms[i])) { pc 252 drivers/pwm/pwm-mediatek.c name, PTR_ERR(pc->clk_pwms[i])); pc 253 drivers/pwm/pwm-mediatek.c return PTR_ERR(pc->clk_pwms[i]); pc 257 drivers/pwm/pwm-mediatek.c platform_set_drvdata(pdev, pc); pc 259 drivers/pwm/pwm-mediatek.c pc->chip.dev = &pdev->dev; pc 260 drivers/pwm/pwm-mediatek.c pc->chip.ops = &pwm_mediatek_ops; pc 261 drivers/pwm/pwm-mediatek.c pc->chip.base = -1; pc 262 drivers/pwm/pwm-mediatek.c pc->chip.npwm = pc->soc->num_pwms; pc 264 drivers/pwm/pwm-mediatek.c ret = pwmchip_add(&pc->chip); pc 275 drivers/pwm/pwm-mediatek.c struct pwm_mediatek_chip *pc = platform_get_drvdata(pdev); pc 277 drivers/pwm/pwm-mediatek.c return pwmchip_remove(&pc->chip); pc 63 drivers/pwm/pwm-pxa.c struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); pc 71 drivers/pwm/pwm-pxa.c c = clk_get_rate(pc->clk); pc 92 drivers/pwm/pwm-pxa.c rc = clk_prepare_enable(pc->clk); pc 96 drivers/pwm/pwm-pxa.c writel(prescale, pc->mmio_base + offset + PWMCR); pc 97 drivers/pwm/pwm-pxa.c writel(dc, pc->mmio_base + offset + PWMDCR); pc 98 drivers/pwm/pwm-pxa.c writel(pv, pc->mmio_base + offset + PWMPCR); pc 100 drivers/pwm/pwm-pxa.c clk_disable_unprepare(pc->clk); pc 106 drivers/pwm/pwm-pxa.c struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); pc 108 drivers/pwm/pwm-pxa.c return clk_prepare_enable(pc->clk); pc 113 drivers/pwm/pwm-pxa.c struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); pc 115 drivers/pwm/pwm-pxa.c clk_disable_unprepare(pc->clk); pc 152 drivers/pwm/pwm-pxa.c pxa_pwm_of_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) pc 156 drivers/pwm/pwm-pxa.c pwm = pwm_request_from_chip(pc, 0, NULL); pc 64 drivers/pwm/pwm-rockchip.c struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); pc 65 drivers/pwm/pwm-rockchip.c u32 enable_conf = pc->data->enable_conf; pc 71 drivers/pwm/pwm-rockchip.c ret = clk_enable(pc->pclk); pc 75 drivers/pwm/pwm-rockchip.c clk_rate = clk_get_rate(pc->clk); pc 77 drivers/pwm/pwm-rockchip.c tmp = readl_relaxed(pc->base + pc->data->regs.period); pc 78 drivers/pwm/pwm-rockchip.c tmp *= pc->data->prescaler * NSEC_PER_SEC; pc 81 drivers/pwm/pwm-rockchip.c tmp = readl_relaxed(pc->base + pc->data->regs.duty); pc 82 drivers/pwm/pwm-rockchip.c tmp *= pc->data->prescaler * NSEC_PER_SEC; pc 85 drivers/pwm/pwm-rockchip.c val = readl_relaxed(pc->base + pc->data->regs.ctrl); pc 86 drivers/pwm/pwm-rockchip.c if (pc->data->supports_polarity) pc 93 drivers/pwm/pwm-rockchip.c if (pc->data->supports_polarity && !(val & PWM_DUTY_POSITIVE)) pc 98 drivers/pwm/pwm-rockchip.c clk_disable(pc->pclk); pc 104 drivers/pwm/pwm-rockchip.c struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); pc 109 drivers/pwm/pwm-rockchip.c clk_rate = clk_get_rate(pc->clk); pc 118 drivers/pwm/pwm-rockchip.c pc->data->prescaler * NSEC_PER_SEC); pc 121 drivers/pwm/pwm-rockchip.c duty = DIV_ROUND_CLOSEST_ULL(div, pc->data->prescaler * NSEC_PER_SEC); pc 127 drivers/pwm/pwm-rockchip.c ctrl = readl_relaxed(pc->base + pc->data->regs.ctrl); pc 128 drivers/pwm/pwm-rockchip.c if (pc->data->supports_lock) { pc 130 drivers/pwm/pwm-rockchip.c writel_relaxed(ctrl, pc->base + pc->data->regs.ctrl); pc 133 drivers/pwm/pwm-rockchip.c writel(period, pc->base + pc->data->regs.period); pc 134 drivers/pwm/pwm-rockchip.c writel(duty, pc->base + pc->data->regs.duty); pc 136 drivers/pwm/pwm-rockchip.c if (pc->data->supports_polarity) { pc 149 drivers/pwm/pwm-rockchip.c if (pc->data->supports_lock) pc 152 drivers/pwm/pwm-rockchip.c writel(ctrl, pc->base + pc->data->regs.ctrl); pc 159 drivers/pwm/pwm-rockchip.c struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); pc 160 drivers/pwm/pwm-rockchip.c u32 enable_conf = pc->data->enable_conf; pc 165 drivers/pwm/pwm-rockchip.c ret = clk_enable(pc->clk); pc 170 drivers/pwm/pwm-rockchip.c val = readl_relaxed(pc->base + pc->data->regs.ctrl); pc 177 drivers/pwm/pwm-rockchip.c writel_relaxed(val, pc->base + pc->data->regs.ctrl); pc 180 drivers/pwm/pwm-rockchip.c clk_disable(pc->clk); pc 188 drivers/pwm/pwm-rockchip.c struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); pc 193 drivers/pwm/pwm-rockchip.c ret = clk_enable(pc->pclk); pc 201 drivers/pwm/pwm-rockchip.c !pc->data->supports_lock) { pc 216 drivers/pwm/pwm-rockchip.c clk_disable(pc->pclk); pc 294 drivers/pwm/pwm-rockchip.c struct rockchip_pwm_chip *pc; pc 302 drivers/pwm/pwm-rockchip.c pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); pc 303 drivers/pwm/pwm-rockchip.c if (!pc) pc 307 drivers/pwm/pwm-rockchip.c pc->base = devm_ioremap_resource(&pdev->dev, r); pc 308 drivers/pwm/pwm-rockchip.c if (IS_ERR(pc->base)) pc 309 drivers/pwm/pwm-rockchip.c return PTR_ERR(pc->base); pc 311 drivers/pwm/pwm-rockchip.c pc->clk = devm_clk_get(&pdev->dev, "pwm"); pc 312 drivers/pwm/pwm-rockchip.c if (IS_ERR(pc->clk)) { pc 313 drivers/pwm/pwm-rockchip.c pc->clk = devm_clk_get(&pdev->dev, NULL); pc 314 drivers/pwm/pwm-rockchip.c if (IS_ERR(pc->clk)) { pc 315 drivers/pwm/pwm-rockchip.c ret = PTR_ERR(pc->clk); pc 326 drivers/pwm/pwm-rockchip.c pc->pclk = devm_clk_get(&pdev->dev, "pclk"); pc 328 drivers/pwm/pwm-rockchip.c pc->pclk = pc->clk; pc 330 drivers/pwm/pwm-rockchip.c if (IS_ERR(pc->pclk)) { pc 331 drivers/pwm/pwm-rockchip.c ret = PTR_ERR(pc->pclk); pc 337 drivers/pwm/pwm-rockchip.c ret = clk_prepare_enable(pc->clk); pc 343 drivers/pwm/pwm-rockchip.c ret = clk_prepare(pc->pclk); pc 349 drivers/pwm/pwm-rockchip.c platform_set_drvdata(pdev, pc); pc 351 drivers/pwm/pwm-rockchip.c pc->data = id->data; pc 352 drivers/pwm/pwm-rockchip.c pc->chip.dev = &pdev->dev; pc 353 drivers/pwm/pwm-rockchip.c pc->chip.ops = &rockchip_pwm_ops; pc 354 drivers/pwm/pwm-rockchip.c pc->chip.base = -1; pc 355 drivers/pwm/pwm-rockchip.c pc->chip.npwm = 1; pc 357 drivers/pwm/pwm-rockchip.c if (pc->data->supports_polarity) { pc 358 drivers/pwm/pwm-rockchip.c pc->chip.of_xlate = of_pwm_xlate_with_flags; pc 359 drivers/pwm/pwm-rockchip.c pc->chip.of_pwm_n_cells = 3; pc 362 drivers/pwm/pwm-rockchip.c ret = pwmchip_add(&pc->chip); pc 364 drivers/pwm/pwm-rockchip.c clk_unprepare(pc->clk); pc 370 drivers/pwm/pwm-rockchip.c if (!pwm_is_enabled(pc->chip.pwms)) pc 371 drivers/pwm/pwm-rockchip.c clk_disable(pc->clk); pc 376 drivers/pwm/pwm-rockchip.c clk_unprepare(pc->pclk); pc 378 drivers/pwm/pwm-rockchip.c clk_disable_unprepare(pc->clk); pc 385 drivers/pwm/pwm-rockchip.c struct rockchip_pwm_chip *pc = platform_get_drvdata(pdev); pc 398 drivers/pwm/pwm-rockchip.c if (pwm_is_enabled(pc->chip.pwms)) pc 399 drivers/pwm/pwm-rockchip.c clk_disable(pc->clk); pc 401 drivers/pwm/pwm-rockchip.c clk_unprepare(pc->pclk); pc 402 drivers/pwm/pwm-rockchip.c clk_unprepare(pc->clk); pc 404 drivers/pwm/pwm-rockchip.c return pwmchip_remove(&pc->chip); pc 80 drivers/pwm/pwm-spear.c struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); pc 95 drivers/pwm/pwm-spear.c clk_rate = clk_get_rate(pc->clk); pc 124 drivers/pwm/pwm-spear.c ret = clk_enable(pc->clk); pc 128 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMCR, pc 130 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMDCR, dc); pc 131 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); pc 132 drivers/pwm/pwm-spear.c clk_disable(pc->clk); pc 139 drivers/pwm/pwm-spear.c struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); pc 143 drivers/pwm/pwm-spear.c rc = clk_enable(pc->clk); pc 147 drivers/pwm/pwm-spear.c val = spear_pwm_readl(pc, pwm->hwpwm, PWMCR); pc 149 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMCR, val); pc 156 drivers/pwm/pwm-spear.c struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); pc 159 drivers/pwm/pwm-spear.c val = spear_pwm_readl(pc, pwm->hwpwm, PWMCR); pc 161 drivers/pwm/pwm-spear.c spear_pwm_writel(pc, pwm->hwpwm, PWMCR, val); pc 163 drivers/pwm/pwm-spear.c clk_disable(pc->clk); pc 176 drivers/pwm/pwm-spear.c struct spear_pwm_chip *pc; pc 181 drivers/pwm/pwm-spear.c pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); pc 182 drivers/pwm/pwm-spear.c if (!pc) pc 186 drivers/pwm/pwm-spear.c pc->mmio_base = devm_ioremap_resource(&pdev->dev, r); pc 187 drivers/pwm/pwm-spear.c if (IS_ERR(pc->mmio_base)) pc 188 drivers/pwm/pwm-spear.c return PTR_ERR(pc->mmio_base); pc 190 drivers/pwm/pwm-spear.c pc->clk = devm_clk_get(&pdev->dev, NULL); pc 191 drivers/pwm/pwm-spear.c if (IS_ERR(pc->clk)) pc 192 drivers/pwm/pwm-spear.c return PTR_ERR(pc->clk); pc 194 drivers/pwm/pwm-spear.c platform_set_drvdata(pdev, pc); pc 196 drivers/pwm/pwm-spear.c pc->chip.dev = &pdev->dev; pc 197 drivers/pwm/pwm-spear.c pc->chip.ops = &spear_pwm_ops; pc 198 drivers/pwm/pwm-spear.c pc->chip.base = -1; pc 199 drivers/pwm/pwm-spear.c pc->chip.npwm = NUM_PWM; pc 201 drivers/pwm/pwm-spear.c ret = clk_prepare(pc->clk); pc 206 drivers/pwm/pwm-spear.c ret = clk_enable(pc->clk); pc 208 drivers/pwm/pwm-spear.c clk_unprepare(pc->clk); pc 215 drivers/pwm/pwm-spear.c val = readl_relaxed(pc->mmio_base + PWMMCR); pc 217 drivers/pwm/pwm-spear.c writel_relaxed(val, pc->mmio_base + PWMMCR); pc 219 drivers/pwm/pwm-spear.c clk_disable(pc->clk); pc 222 drivers/pwm/pwm-spear.c ret = pwmchip_add(&pc->chip); pc 224 drivers/pwm/pwm-spear.c clk_unprepare(pc->clk); pc 233 drivers/pwm/pwm-spear.c struct spear_pwm_chip *pc = platform_get_drvdata(pdev); pc 237 drivers/pwm/pwm-spear.c pwm_disable(&pc->chip.pwms[i]); pc 240 drivers/pwm/pwm-spear.c clk_unprepare(pc->clk); pc 241 drivers/pwm/pwm-spear.c return pwmchip_remove(&pc->chip); pc 122 drivers/pwm/pwm-sti.c static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, pc 125 drivers/pwm/pwm-sti.c struct sti_pwm_compat_data *cdata = pc->cdata; pc 130 drivers/pwm/pwm-sti.c clk_rate = clk_get_rate(pc->pwm_clk); pc 132 drivers/pwm/pwm-sti.c dev_err(pc->dev, "failed to get clock rate\n"); pc 166 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = to_sti_pwmchip(chip); pc 167 drivers/pwm/pwm-sti.c struct sti_pwm_compat_data *cdata = pc->cdata; pc 169 drivers/pwm/pwm-sti.c struct pwm_device *cur = pc->cur; pc 170 drivers/pwm/pwm-sti.c struct device *dev = pc->dev; pc 174 drivers/pwm/pwm-sti.c ncfg = hweight_long(pc->configured); pc 195 drivers/pwm/pwm-sti.c ret = clk_enable(pc->pwm_clk); pc 199 drivers/pwm/pwm-sti.c ret = clk_enable(pc->cpt_clk); pc 204 drivers/pwm/pwm-sti.c ret = sti_pwm_get_prescale(pc, period_ns, &prescale); pc 210 drivers/pwm/pwm-sti.c ret = regmap_field_write(pc->prescale_low, value); pc 216 drivers/pwm/pwm-sti.c ret = regmap_field_write(pc->prescale_high, value); pc 229 drivers/pwm/pwm-sti.c ret = regmap_write(pc->regmap, PWM_OUT_VAL(pwm->hwpwm), value); pc 233 drivers/pwm/pwm-sti.c ret = regmap_field_write(pc->pwm_cpt_int_en, 0); pc 235 drivers/pwm/pwm-sti.c set_bit(pwm->hwpwm, &pc->configured); pc 236 drivers/pwm/pwm-sti.c pc->cur = pwm; pc 245 drivers/pwm/pwm-sti.c clk_disable(pc->pwm_clk); pc 246 drivers/pwm/pwm-sti.c clk_disable(pc->cpt_clk); pc 252 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = to_sti_pwmchip(chip); pc 253 drivers/pwm/pwm-sti.c struct device *dev = pc->dev; pc 260 drivers/pwm/pwm-sti.c mutex_lock(&pc->sti_pwm_lock); pc 262 drivers/pwm/pwm-sti.c if (!pc->en_count) { pc 263 drivers/pwm/pwm-sti.c ret = clk_enable(pc->pwm_clk); pc 267 drivers/pwm/pwm-sti.c ret = clk_enable(pc->cpt_clk); pc 271 drivers/pwm/pwm-sti.c ret = regmap_field_write(pc->pwm_out_en, 1); pc 279 drivers/pwm/pwm-sti.c pc->en_count++; pc 282 drivers/pwm/pwm-sti.c mutex_unlock(&pc->sti_pwm_lock); pc 288 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = to_sti_pwmchip(chip); pc 290 drivers/pwm/pwm-sti.c mutex_lock(&pc->sti_pwm_lock); pc 292 drivers/pwm/pwm-sti.c if (--pc->en_count) { pc 293 drivers/pwm/pwm-sti.c mutex_unlock(&pc->sti_pwm_lock); pc 297 drivers/pwm/pwm-sti.c regmap_field_write(pc->pwm_out_en, 0); pc 299 drivers/pwm/pwm-sti.c clk_disable(pc->pwm_clk); pc 300 drivers/pwm/pwm-sti.c clk_disable(pc->cpt_clk); pc 302 drivers/pwm/pwm-sti.c mutex_unlock(&pc->sti_pwm_lock); pc 307 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = to_sti_pwmchip(chip); pc 309 drivers/pwm/pwm-sti.c clear_bit(pwm->hwpwm, &pc->configured); pc 315 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = to_sti_pwmchip(chip); pc 316 drivers/pwm/pwm-sti.c struct sti_pwm_compat_data *cdata = pc->cdata; pc 318 drivers/pwm/pwm-sti.c struct device *dev = pc->dev; pc 332 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, PWM_CPT_EDGE(pwm->hwpwm), CPT_EDGE_RISING); pc 333 drivers/pwm/pwm-sti.c regmap_field_write(pc->pwm_cpt_int_en, BIT(pwm->hwpwm)); pc 336 drivers/pwm/pwm-sti.c ret = regmap_field_write(pc->pwm_cpt_en, 1); pc 346 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, PWM_CPT_EDGE(pwm->hwpwm), CPT_EDGE_DISABLED); pc 371 drivers/pwm/pwm-sti.c effective_ticks = clk_get_rate(pc->cpt_clk); pc 388 drivers/pwm/pwm-sti.c regmap_field_write(pc->pwm_cpt_en, 0); pc 405 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = data; pc 406 drivers/pwm/pwm-sti.c struct device *dev = pc->dev; pc 413 drivers/pwm/pwm-sti.c ret = regmap_field_read(pc->pwm_cpt_int_stat, &cpt_int_stat); pc 420 drivers/pwm/pwm-sti.c ddata = pwm_get_chip_data(&pc->chip.pwms[devicenum]); pc 438 drivers/pwm/pwm-sti.c regmap_read(pc->regmap, pc 445 drivers/pwm/pwm-sti.c regmap_read(pc->regmap, PWM_CPT_EDGE(devicenum), ®); pc 447 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, PWM_CPT_EDGE(devicenum), reg); pc 453 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, pc 469 drivers/pwm/pwm-sti.c regmap_write(pc->regmap, PWM_INT_ACK, PWM_INT_ACK_MASK); pc 474 drivers/pwm/pwm-sti.c static int sti_pwm_probe_dt(struct sti_pwm_chip *pc) pc 476 drivers/pwm/pwm-sti.c struct device *dev = pc->dev; pc 479 drivers/pwm/pwm-sti.c struct sti_pwm_compat_data *cdata = pc->cdata; pc 498 drivers/pwm/pwm-sti.c pc->prescale_low = devm_regmap_field_alloc(dev, pc->regmap, pc 500 drivers/pwm/pwm-sti.c if (IS_ERR(pc->prescale_low)) pc 501 drivers/pwm/pwm-sti.c return PTR_ERR(pc->prescale_low); pc 503 drivers/pwm/pwm-sti.c pc->prescale_high = devm_regmap_field_alloc(dev, pc->regmap, pc 505 drivers/pwm/pwm-sti.c if (IS_ERR(pc->prescale_high)) pc 506 drivers/pwm/pwm-sti.c return PTR_ERR(pc->prescale_high); pc 509 drivers/pwm/pwm-sti.c pc->pwm_out_en = devm_regmap_field_alloc(dev, pc->regmap, pc 511 drivers/pwm/pwm-sti.c if (IS_ERR(pc->pwm_out_en)) pc 512 drivers/pwm/pwm-sti.c return PTR_ERR(pc->pwm_out_en); pc 514 drivers/pwm/pwm-sti.c pc->pwm_cpt_en = devm_regmap_field_alloc(dev, pc->regmap, pc 516 drivers/pwm/pwm-sti.c if (IS_ERR(pc->pwm_cpt_en)) pc 517 drivers/pwm/pwm-sti.c return PTR_ERR(pc->pwm_cpt_en); pc 519 drivers/pwm/pwm-sti.c pc->pwm_cpt_int_en = devm_regmap_field_alloc(dev, pc->regmap, pc 521 drivers/pwm/pwm-sti.c if (IS_ERR(pc->pwm_cpt_int_en)) pc 522 drivers/pwm/pwm-sti.c return PTR_ERR(pc->pwm_cpt_int_en); pc 524 drivers/pwm/pwm-sti.c pc->pwm_cpt_int_stat = devm_regmap_field_alloc(dev, pc->regmap, pc 526 drivers/pwm/pwm-sti.c if (PTR_ERR_OR_ZERO(pc->pwm_cpt_int_stat)) pc 527 drivers/pwm/pwm-sti.c return PTR_ERR(pc->pwm_cpt_int_stat); pc 542 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc; pc 547 drivers/pwm/pwm-sti.c pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); pc 548 drivers/pwm/pwm-sti.c if (!pc) pc 557 drivers/pwm/pwm-sti.c pc->mmio = devm_ioremap_resource(dev, res); pc 558 drivers/pwm/pwm-sti.c if (IS_ERR(pc->mmio)) pc 559 drivers/pwm/pwm-sti.c return PTR_ERR(pc->mmio); pc 561 drivers/pwm/pwm-sti.c pc->regmap = devm_regmap_init_mmio(dev, pc->mmio, pc 563 drivers/pwm/pwm-sti.c if (IS_ERR(pc->regmap)) pc 564 drivers/pwm/pwm-sti.c return PTR_ERR(pc->regmap); pc 571 drivers/pwm/pwm-sti.c pdev->name, pc); pc 587 drivers/pwm/pwm-sti.c pc->cdata = cdata; pc 588 drivers/pwm/pwm-sti.c pc->dev = dev; pc 589 drivers/pwm/pwm-sti.c pc->en_count = 0; pc 590 drivers/pwm/pwm-sti.c mutex_init(&pc->sti_pwm_lock); pc 592 drivers/pwm/pwm-sti.c ret = sti_pwm_probe_dt(pc); pc 599 drivers/pwm/pwm-sti.c pc->pwm_clk = of_clk_get_by_name(dev->of_node, "pwm"); pc 600 drivers/pwm/pwm-sti.c if (IS_ERR(pc->pwm_clk)) { pc 602 drivers/pwm/pwm-sti.c return PTR_ERR(pc->pwm_clk); pc 605 drivers/pwm/pwm-sti.c ret = clk_prepare(pc->pwm_clk); pc 615 drivers/pwm/pwm-sti.c pc->cpt_clk = of_clk_get_by_name(dev->of_node, "capture"); pc 616 drivers/pwm/pwm-sti.c if (IS_ERR(pc->cpt_clk)) { pc 618 drivers/pwm/pwm-sti.c return PTR_ERR(pc->cpt_clk); pc 621 drivers/pwm/pwm-sti.c ret = clk_prepare(pc->cpt_clk); pc 628 drivers/pwm/pwm-sti.c pc->chip.dev = dev; pc 629 drivers/pwm/pwm-sti.c pc->chip.ops = &sti_pwm_ops; pc 630 drivers/pwm/pwm-sti.c pc->chip.base = -1; pc 631 drivers/pwm/pwm-sti.c pc->chip.npwm = pc->cdata->pwm_num_devs; pc 633 drivers/pwm/pwm-sti.c ret = pwmchip_add(&pc->chip); pc 635 drivers/pwm/pwm-sti.c clk_unprepare(pc->pwm_clk); pc 636 drivers/pwm/pwm-sti.c clk_unprepare(pc->cpt_clk); pc 650 drivers/pwm/pwm-sti.c pwm_set_chip_data(&pc->chip.pwms[i], ddata); pc 653 drivers/pwm/pwm-sti.c platform_set_drvdata(pdev, pc); pc 660 drivers/pwm/pwm-sti.c struct sti_pwm_chip *pc = platform_get_drvdata(pdev); pc 663 drivers/pwm/pwm-sti.c for (i = 0; i < pc->cdata->pwm_num_devs; i++) pc 664 drivers/pwm/pwm-sti.c pwm_disable(&pc->chip.pwms[i]); pc 666 drivers/pwm/pwm-sti.c clk_unprepare(pc->pwm_clk); pc 667 drivers/pwm/pwm-sti.c clk_unprepare(pc->cpt_clk); pc 669 drivers/pwm/pwm-sti.c return pwmchip_remove(&pc->chip); pc 69 drivers/pwm/pwm-tegra.c struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); pc 89 drivers/pwm/pwm-tegra.c rate = pc->clk_rate >> PWM_DUTY_WIDTH; pc 117 drivers/pwm/pwm-tegra.c err = clk_prepare_enable(pc->clk); pc 123 drivers/pwm/pwm-tegra.c pwm_writel(pc, pwm->hwpwm, val); pc 129 drivers/pwm/pwm-tegra.c clk_disable_unprepare(pc->clk); pc 136 drivers/pwm/pwm-tegra.c struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); pc 140 drivers/pwm/pwm-tegra.c rc = clk_prepare_enable(pc->clk); pc 144 drivers/pwm/pwm-tegra.c val = pwm_readl(pc, pwm->hwpwm); pc 146 drivers/pwm/pwm-tegra.c pwm_writel(pc, pwm->hwpwm, val); pc 153 drivers/pwm/pwm-tegra.c struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); pc 156 drivers/pwm/pwm-tegra.c val = pwm_readl(pc, pwm->hwpwm); pc 158 drivers/pwm/pwm-tegra.c pwm_writel(pc, pwm->hwpwm, val); pc 160 drivers/pwm/pwm-tegra.c clk_disable_unprepare(pc->clk); pc 234 drivers/pwm/pwm-tegra.c struct tegra_pwm_chip *pc = platform_get_drvdata(pdev); pc 238 drivers/pwm/pwm-tegra.c if (WARN_ON(!pc)) pc 241 drivers/pwm/pwm-tegra.c err = clk_prepare_enable(pc->clk); pc 245 drivers/pwm/pwm-tegra.c for (i = 0; i < pc->chip.npwm; i++) { pc 246 drivers/pwm/pwm-tegra.c struct pwm_device *pwm = &pc->chip.pwms[i]; pc 249 drivers/pwm/pwm-tegra.c if (clk_prepare_enable(pc->clk) < 0) pc 252 drivers/pwm/pwm-tegra.c pwm_writel(pc, i, 0); pc 254 drivers/pwm/pwm-tegra.c clk_disable_unprepare(pc->clk); pc 257 drivers/pwm/pwm-tegra.c reset_control_assert(pc->rst); pc 258 drivers/pwm/pwm-tegra.c clk_disable_unprepare(pc->clk); pc 260 drivers/pwm/pwm-tegra.c return pwmchip_remove(&pc->chip); pc 53 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); pc 61 drivers/pwm/pwm-tiecap.c c = pc->clk_rate; pc 70 drivers/pwm/pwm-tiecap.c c = pc->clk_rate; pc 76 drivers/pwm/pwm-tiecap.c pm_runtime_get_sync(pc->chip.dev); pc 78 drivers/pwm/pwm-tiecap.c value = readw(pc->mmio_base + ECCTL2); pc 83 drivers/pwm/pwm-tiecap.c writew(value, pc->mmio_base + ECCTL2); pc 87 drivers/pwm/pwm-tiecap.c writel(duty_cycles, pc->mmio_base + CAP2); pc 88 drivers/pwm/pwm-tiecap.c writel(period_cycles, pc->mmio_base + CAP1); pc 95 drivers/pwm/pwm-tiecap.c writel(duty_cycles, pc->mmio_base + CAP4); pc 96 drivers/pwm/pwm-tiecap.c writel(period_cycles, pc->mmio_base + CAP3); pc 100 drivers/pwm/pwm-tiecap.c value = readw(pc->mmio_base + ECCTL2); pc 103 drivers/pwm/pwm-tiecap.c writew(value, pc->mmio_base + ECCTL2); pc 106 drivers/pwm/pwm-tiecap.c pm_runtime_put_sync(pc->chip.dev); pc 114 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); pc 117 drivers/pwm/pwm-tiecap.c pm_runtime_get_sync(pc->chip.dev); pc 119 drivers/pwm/pwm-tiecap.c value = readw(pc->mmio_base + ECCTL2); pc 128 drivers/pwm/pwm-tiecap.c writew(value, pc->mmio_base + ECCTL2); pc 130 drivers/pwm/pwm-tiecap.c pm_runtime_put_sync(pc->chip.dev); pc 137 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); pc 141 drivers/pwm/pwm-tiecap.c pm_runtime_get_sync(pc->chip.dev); pc 147 drivers/pwm/pwm-tiecap.c value = readw(pc->mmio_base + ECCTL2); pc 149 drivers/pwm/pwm-tiecap.c writew(value, pc->mmio_base + ECCTL2); pc 156 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); pc 163 drivers/pwm/pwm-tiecap.c value = readw(pc->mmio_base + ECCTL2); pc 165 drivers/pwm/pwm-tiecap.c writew(value, pc->mmio_base + ECCTL2); pc 168 drivers/pwm/pwm-tiecap.c pm_runtime_put_sync(pc->chip.dev); pc 198 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc; pc 203 drivers/pwm/pwm-tiecap.c pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); pc 204 drivers/pwm/pwm-tiecap.c if (!pc) pc 220 drivers/pwm/pwm-tiecap.c pc->clk_rate = clk_get_rate(clk); pc 221 drivers/pwm/pwm-tiecap.c if (!pc->clk_rate) { pc 226 drivers/pwm/pwm-tiecap.c pc->chip.dev = &pdev->dev; pc 227 drivers/pwm/pwm-tiecap.c pc->chip.ops = &ecap_pwm_ops; pc 228 drivers/pwm/pwm-tiecap.c pc->chip.of_xlate = of_pwm_xlate_with_flags; pc 229 drivers/pwm/pwm-tiecap.c pc->chip.of_pwm_n_cells = 3; pc 230 drivers/pwm/pwm-tiecap.c pc->chip.base = -1; pc 231 drivers/pwm/pwm-tiecap.c pc->chip.npwm = 1; pc 234 drivers/pwm/pwm-tiecap.c pc->mmio_base = devm_ioremap_resource(&pdev->dev, r); pc 235 drivers/pwm/pwm-tiecap.c if (IS_ERR(pc->mmio_base)) pc 236 drivers/pwm/pwm-tiecap.c return PTR_ERR(pc->mmio_base); pc 238 drivers/pwm/pwm-tiecap.c ret = pwmchip_add(&pc->chip); pc 244 drivers/pwm/pwm-tiecap.c platform_set_drvdata(pdev, pc); pc 252 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = platform_get_drvdata(pdev); pc 256 drivers/pwm/pwm-tiecap.c return pwmchip_remove(&pc->chip); pc 260 drivers/pwm/pwm-tiecap.c static void ecap_pwm_save_context(struct ecap_pwm_chip *pc) pc 262 drivers/pwm/pwm-tiecap.c pm_runtime_get_sync(pc->chip.dev); pc 263 drivers/pwm/pwm-tiecap.c pc->ctx.ecctl2 = readw(pc->mmio_base + ECCTL2); pc 264 drivers/pwm/pwm-tiecap.c pc->ctx.cap4 = readl(pc->mmio_base + CAP4); pc 265 drivers/pwm/pwm-tiecap.c pc->ctx.cap3 = readl(pc->mmio_base + CAP3); pc 266 drivers/pwm/pwm-tiecap.c pm_runtime_put_sync(pc->chip.dev); pc 269 drivers/pwm/pwm-tiecap.c static void ecap_pwm_restore_context(struct ecap_pwm_chip *pc) pc 271 drivers/pwm/pwm-tiecap.c writel(pc->ctx.cap3, pc->mmio_base + CAP3); pc 272 drivers/pwm/pwm-tiecap.c writel(pc->ctx.cap4, pc->mmio_base + CAP4); pc 273 drivers/pwm/pwm-tiecap.c writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2); pc 278 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = dev_get_drvdata(dev); pc 279 drivers/pwm/pwm-tiecap.c struct pwm_device *pwm = pc->chip.pwms; pc 281 drivers/pwm/pwm-tiecap.c ecap_pwm_save_context(pc); pc 292 drivers/pwm/pwm-tiecap.c struct ecap_pwm_chip *pc = dev_get_drvdata(dev); pc 293 drivers/pwm/pwm-tiecap.c struct pwm_device *pwm = pc->chip.pwms; pc 299 drivers/pwm/pwm-tiecap.c ecap_pwm_restore_context(pc); pc 181 drivers/pwm/pwm-tiehrpwm.c static void configure_polarity(struct ehrpwm_pwm_chip *pc, int chan) pc 196 drivers/pwm/pwm-tiehrpwm.c if (pc->polarity[chan] == PWM_POLARITY_INVERSED) pc 204 drivers/pwm/pwm-tiehrpwm.c if (pc->polarity[chan] == PWM_POLARITY_INVERSED) pc 211 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, aqctl_reg, aqctl_mask, aqctl_val); pc 221 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); pc 230 drivers/pwm/pwm-tiehrpwm.c c = pc->clk_rate; pc 239 drivers/pwm/pwm-tiehrpwm.c c = pc->clk_rate; pc 250 drivers/pwm/pwm-tiehrpwm.c if (pc->period_cycles[i] && pc 251 drivers/pwm/pwm-tiehrpwm.c (pc->period_cycles[i] != period_cycles)) { pc 266 drivers/pwm/pwm-tiehrpwm.c pc->period_cycles[pwm->hwpwm] = period_cycles; pc 278 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, TBCTL, TBCTL_CLKDIV_MASK, tb_divval); pc 285 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, TBCTL, TBCTL_PRDLD_MASK, TBCTL_PRDLD_SHDW); pc 287 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, TBPRD, period_cycles); pc 290 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, TBCTL, TBCTL_CTRMODE_MASK, pc 300 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, cmp_reg, duty_cycles); pc 311 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); pc 314 drivers/pwm/pwm-tiehrpwm.c pc->polarity[pwm->hwpwm] = polarity; pc 321 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); pc 338 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, AQSFRC, AQSFRC_RLDCSF_MASK, pc 341 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, AQCSFRC, aqcsfrc_mask, aqcsfrc_val); pc 344 drivers/pwm/pwm-tiehrpwm.c configure_polarity(pc, pwm->hwpwm); pc 347 drivers/pwm/pwm-tiehrpwm.c ret = clk_enable(pc->tbclk); pc 350 drivers/pwm/pwm-tiehrpwm.c dev_name(pc->chip.dev), ret); pc 359 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); pc 372 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, AQSFRC, AQSFRC_RLDCSF_MASK, pc 374 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, AQCSFRC, aqcsfrc_mask, aqcsfrc_val); pc 379 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, AQSFRC, AQSFRC_RLDCSF_MASK, pc 382 drivers/pwm/pwm-tiehrpwm.c ehrpwm_modify(pc->mmio_base, AQCSFRC, aqcsfrc_mask, aqcsfrc_val); pc 385 drivers/pwm/pwm-tiehrpwm.c clk_disable(pc->tbclk); pc 393 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); pc 401 drivers/pwm/pwm-tiehrpwm.c pc->period_cycles[pwm->hwpwm] = 0; pc 423 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc; pc 428 drivers/pwm/pwm-tiehrpwm.c pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); pc 429 drivers/pwm/pwm-tiehrpwm.c if (!pc) pc 445 drivers/pwm/pwm-tiehrpwm.c pc->clk_rate = clk_get_rate(clk); pc 446 drivers/pwm/pwm-tiehrpwm.c if (!pc->clk_rate) { pc 451 drivers/pwm/pwm-tiehrpwm.c pc->chip.dev = &pdev->dev; pc 452 drivers/pwm/pwm-tiehrpwm.c pc->chip.ops = &ehrpwm_pwm_ops; pc 453 drivers/pwm/pwm-tiehrpwm.c pc->chip.of_xlate = of_pwm_xlate_with_flags; pc 454 drivers/pwm/pwm-tiehrpwm.c pc->chip.of_pwm_n_cells = 3; pc 455 drivers/pwm/pwm-tiehrpwm.c pc->chip.base = -1; pc 456 drivers/pwm/pwm-tiehrpwm.c pc->chip.npwm = NUM_PWM_CHANNEL; pc 459 drivers/pwm/pwm-tiehrpwm.c pc->mmio_base = devm_ioremap_resource(&pdev->dev, r); pc 460 drivers/pwm/pwm-tiehrpwm.c if (IS_ERR(pc->mmio_base)) pc 461 drivers/pwm/pwm-tiehrpwm.c return PTR_ERR(pc->mmio_base); pc 464 drivers/pwm/pwm-tiehrpwm.c pc->tbclk = devm_clk_get(&pdev->dev, "tbclk"); pc 465 drivers/pwm/pwm-tiehrpwm.c if (IS_ERR(pc->tbclk)) { pc 467 drivers/pwm/pwm-tiehrpwm.c return PTR_ERR(pc->tbclk); pc 470 drivers/pwm/pwm-tiehrpwm.c ret = clk_prepare(pc->tbclk); pc 476 drivers/pwm/pwm-tiehrpwm.c ret = pwmchip_add(&pc->chip); pc 482 drivers/pwm/pwm-tiehrpwm.c platform_set_drvdata(pdev, pc); pc 488 drivers/pwm/pwm-tiehrpwm.c clk_unprepare(pc->tbclk); pc 495 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = platform_get_drvdata(pdev); pc 497 drivers/pwm/pwm-tiehrpwm.c clk_unprepare(pc->tbclk); pc 501 drivers/pwm/pwm-tiehrpwm.c return pwmchip_remove(&pc->chip); pc 505 drivers/pwm/pwm-tiehrpwm.c static void ehrpwm_pwm_save_context(struct ehrpwm_pwm_chip *pc) pc 507 drivers/pwm/pwm-tiehrpwm.c pm_runtime_get_sync(pc->chip.dev); pc 509 drivers/pwm/pwm-tiehrpwm.c pc->ctx.tbctl = ehrpwm_read(pc->mmio_base, TBCTL); pc 510 drivers/pwm/pwm-tiehrpwm.c pc->ctx.tbprd = ehrpwm_read(pc->mmio_base, TBPRD); pc 511 drivers/pwm/pwm-tiehrpwm.c pc->ctx.cmpa = ehrpwm_read(pc->mmio_base, CMPA); pc 512 drivers/pwm/pwm-tiehrpwm.c pc->ctx.cmpb = ehrpwm_read(pc->mmio_base, CMPB); pc 513 drivers/pwm/pwm-tiehrpwm.c pc->ctx.aqctla = ehrpwm_read(pc->mmio_base, AQCTLA); pc 514 drivers/pwm/pwm-tiehrpwm.c pc->ctx.aqctlb = ehrpwm_read(pc->mmio_base, AQCTLB); pc 515 drivers/pwm/pwm-tiehrpwm.c pc->ctx.aqsfrc = ehrpwm_read(pc->mmio_base, AQSFRC); pc 516 drivers/pwm/pwm-tiehrpwm.c pc->ctx.aqcsfrc = ehrpwm_read(pc->mmio_base, AQCSFRC); pc 518 drivers/pwm/pwm-tiehrpwm.c pm_runtime_put_sync(pc->chip.dev); pc 521 drivers/pwm/pwm-tiehrpwm.c static void ehrpwm_pwm_restore_context(struct ehrpwm_pwm_chip *pc) pc 523 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, TBPRD, pc->ctx.tbprd); pc 524 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, CMPA, pc->ctx.cmpa); pc 525 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, CMPB, pc->ctx.cmpb); pc 526 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, AQCTLA, pc->ctx.aqctla); pc 527 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, AQCTLB, pc->ctx.aqctlb); pc 528 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, AQSFRC, pc->ctx.aqsfrc); pc 529 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, AQCSFRC, pc->ctx.aqcsfrc); pc 530 drivers/pwm/pwm-tiehrpwm.c ehrpwm_write(pc->mmio_base, TBCTL, pc->ctx.tbctl); pc 535 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = dev_get_drvdata(dev); pc 538 drivers/pwm/pwm-tiehrpwm.c ehrpwm_pwm_save_context(pc); pc 540 drivers/pwm/pwm-tiehrpwm.c for (i = 0; i < pc->chip.npwm; i++) { pc 541 drivers/pwm/pwm-tiehrpwm.c struct pwm_device *pwm = &pc->chip.pwms[i]; pc 555 drivers/pwm/pwm-tiehrpwm.c struct ehrpwm_pwm_chip *pc = dev_get_drvdata(dev); pc 558 drivers/pwm/pwm-tiehrpwm.c for (i = 0; i < pc->chip.npwm; i++) { pc 559 drivers/pwm/pwm-tiehrpwm.c struct pwm_device *pwm = &pc->chip.pwms[i]; pc 568 drivers/pwm/pwm-tiehrpwm.c ehrpwm_pwm_restore_context(pc); pc 34 drivers/regulator/qcom_rpm-regulator.c struct request_member pc; /* pin control */ pc 70 drivers/regulator/qcom_rpm-regulator.c .pc = { 0, 0x3C000000, 26 }, pc 81 drivers/regulator/qcom_rpm-regulator.c .pc = { 0, 0x3C000000, 26 }, pc 93 drivers/regulator/qcom_rpm-regulator.c .pc = { 0, 0x0000003C, 2 }, pc 110 drivers/regulator/qcom_rpm-regulator.c .pc = { 0, 0x0F000000, 24 }, pc 121 drivers/regulator/qcom_rpm-regulator.c .pc = { 0, 0x0F000000, 24 }, pc 135 drivers/regulator/qcom_rpm-regulator.c .pc = { 0, 0x0000003C, 2 }, pc 497 drivers/s390/cio/chsc.c u8 pc; pc 142 drivers/scsi/be2iscsi/be_main.h #define GET_HWI_CONTROLLER_WS(pc) (pc->phwi_ctrlr) pc 143 drivers/scsi/be2iscsi/be_main.h #define HWI_GET_DEF_BUFQ_ID(pc, ulp_num) (((struct hwi_controller *)\ pc 144 drivers/scsi/be2iscsi/be_main.h (GET_HWI_CONTROLLER_WS(pc)))->default_pdu_data[ulp_num].id) pc 145 drivers/scsi/be2iscsi/be_main.h #define HWI_GET_DEF_HDRQ_ID(pc, ulp_num) (((struct hwi_controller *)\ pc 146 drivers/scsi/be2iscsi/be_main.h (GET_HWI_CONTROLLER_WS(pc)))->default_pdu_hdr[ulp_num].id) pc 143 drivers/scsi/be2iscsi/be_mgmt.h #define ISCSI_GET_PDU_TEMPLATE_ADDRESS(pc, pa) {\ pc 639 drivers/scsi/ncr53c8xx.c char *pc; pc 642 drivers/scsi/ncr53c8xx.c while (cur != NULL && (pc = strchr(cur, ':')) != NULL) { pc 643 drivers/scsi/ncr53c8xx.c ++pc; pc 645 drivers/scsi/ncr53c8xx.c if (!strncmp(p, cur, pc - cur)) pc 647 drivers/scsi/ncr53c8xx.c cur = pc; pc 656 drivers/scsi/ncr53c8xx.c char *pc, *pv; pc 660 drivers/scsi/ncr53c8xx.c while (cur != NULL && (pc = strchr(cur, ':')) != NULL) { pc 664 drivers/scsi/ncr53c8xx.c pv = pc; pc 763 drivers/scsi/ncr53c8xx.c printk("sym53c8xx_setup: unexpected boot option '%.*s' ignored\n", (int)(pc-cur+1), cur); pc 7707 drivers/scsi/ncr53c8xx.c u32 ncr_rd, ncr_wr, ncr_bk, host_rd, host_wr, pc; pc 7716 drivers/scsi/ncr53c8xx.c pc = NCB_SCRIPTH_PHYS (np, snooptest); pc 7727 drivers/scsi/ncr53c8xx.c OUTL_DSP (pc); pc 7737 drivers/scsi/ncr53c8xx.c pc = INL (nc_dsp); pc 7758 drivers/scsi/ncr53c8xx.c if (pc != NCB_SCRIPTH_PHYS (np, snoopend)+8) { pc 7761 drivers/scsi/ncr53c8xx.c (u_long) NCB_SCRIPTH_PHYS (np, snooptest), (u_long) pc, pc 993 drivers/scsi/sym53c8xx_2/sym_hipd.c u32 sym_rd, sym_wr, sym_bk, host_rd, host_wr, pc, dstat; pc 1008 drivers/scsi/sym53c8xx_2/sym_hipd.c pc = SCRIPTZ_BA(np, snooptest); pc 1020 drivers/scsi/sym53c8xx_2/sym_hipd.c OUTL_DSP(np, pc); pc 1051 drivers/scsi/sym53c8xx_2/sym_hipd.c pc = INL(np, nc_dsp); pc 1061 drivers/scsi/sym53c8xx_2/sym_hipd.c if (pc != SCRIPTZ_BA(np, snoopend)+8) { pc 1064 drivers/scsi/sym53c8xx_2/sym_hipd.c (u_long) SCRIPTZ_BA(np, snooptest), (u_long) pc, pc 19 drivers/ssb/driver_pcicore.c static u32 ssb_pcie_read(struct ssb_pcicore *pc, u32 address); pc 20 drivers/ssb/driver_pcicore.c static void ssb_pcie_write(struct ssb_pcicore *pc, u32 address, u32 data); pc 21 drivers/ssb/driver_pcicore.c static u16 ssb_pcie_mdio_read(struct ssb_pcicore *pc, u8 device, u8 address); pc 22 drivers/ssb/driver_pcicore.c static void ssb_pcie_mdio_write(struct ssb_pcicore *pc, u8 device, pc 26 drivers/ssb/driver_pcicore.c u32 pcicore_read32(struct ssb_pcicore *pc, u16 offset) pc 28 drivers/ssb/driver_pcicore.c return ssb_read32(pc->dev, offset); pc 32 drivers/ssb/driver_pcicore.c void pcicore_write32(struct ssb_pcicore *pc, u16 offset, u32 value) pc 34 drivers/ssb/driver_pcicore.c ssb_write32(pc->dev, offset, value); pc 38 drivers/ssb/driver_pcicore.c u16 pcicore_read16(struct ssb_pcicore *pc, u16 offset) pc 40 drivers/ssb/driver_pcicore.c return ssb_read16(pc->dev, offset); pc 44 drivers/ssb/driver_pcicore.c void pcicore_write16(struct ssb_pcicore *pc, u16 offset, u16 value) pc 46 drivers/ssb/driver_pcicore.c ssb_write16(pc->dev, offset, value); pc 70 drivers/ssb/driver_pcicore.c static u32 get_cfgspace_addr(struct ssb_pcicore *pc, pc 78 drivers/ssb/driver_pcicore.c if (pc->cardbusmode && (dev > 1)) pc 88 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI1, tmp); pc 96 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI1, pc 109 drivers/ssb/driver_pcicore.c static int ssb_extpci_read_config(struct ssb_pcicore *pc, pc 118 drivers/ssb/driver_pcicore.c WARN_ON(!pc->hostmode); pc 121 drivers/ssb/driver_pcicore.c addr = get_cfgspace_addr(pc, bus, dev, func, off); pc 155 drivers/ssb/driver_pcicore.c static int ssb_extpci_write_config(struct ssb_pcicore *pc, pc 164 drivers/ssb/driver_pcicore.c WARN_ON(!pc->hostmode); pc 167 drivers/ssb/driver_pcicore.c addr = get_cfgspace_addr(pc, bus, dev, func, off); pc 318 drivers/ssb/driver_pcicore.c static void ssb_pcicore_init_hostmode(struct ssb_pcicore *pc) pc 324 drivers/ssb/driver_pcicore.c extpci_core = pc; pc 326 drivers/ssb/driver_pcicore.c dev_dbg(pc->dev->dev, "PCIcore in host mode found\n"); pc 330 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_CTL, val); pc 332 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_CTL, val); pc 335 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_CTL, val); pc 337 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_ARBCTL, val); pc 340 drivers/ssb/driver_pcicore.c if (pc->dev->bus->has_cardbus_slot) { pc 341 drivers/ssb/driver_pcicore.c dev_dbg(pc->dev->dev, "CardBus slot detected\n"); pc 342 drivers/ssb/driver_pcicore.c pc->cardbusmode = 1; pc 344 drivers/ssb/driver_pcicore.c ssb_gpio_out(pc->dev->bus, 1, 1); pc 345 drivers/ssb/driver_pcicore.c ssb_gpio_outen(pc->dev->bus, 1, 1); pc 346 drivers/ssb/driver_pcicore.c pcicore_write16(pc, SSB_PCICORE_SPROM(0), pc 347 drivers/ssb/driver_pcicore.c pcicore_read16(pc, SSB_PCICORE_SPROM(0)) pc 352 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI0, pc 355 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI1, pc 358 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI2, pc 373 drivers/ssb/driver_pcicore.c ssb_extpci_write_config(pc, 0, 0, 0, PCI_COMMAND, &val, 2); pc 376 drivers/ssb/driver_pcicore.c ssb_extpci_write_config(pc, 0, 0, 0, PCI_STATUS, &val, 2); pc 379 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_IMASK, pc 393 drivers/ssb/driver_pcicore.c static int pcicore_is_in_hostmode(struct ssb_pcicore *pc) pc 395 drivers/ssb/driver_pcicore.c struct ssb_bus *bus = pc->dev->bus; pc 418 drivers/ssb/driver_pcicore.c return !mips_busprobe32(tmp, (bus->mmio + (pc->dev->core_index * SSB_CORE_SIZE))); pc 426 drivers/ssb/driver_pcicore.c static void ssb_pcicore_fix_sprom_core_index(struct ssb_pcicore *pc) pc 428 drivers/ssb/driver_pcicore.c u16 tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(0)); pc 429 drivers/ssb/driver_pcicore.c if (((tmp & 0xF000) >> 12) != pc->dev->core_index) { pc 431 drivers/ssb/driver_pcicore.c tmp |= (pc->dev->core_index << 12); pc 432 drivers/ssb/driver_pcicore.c pcicore_write16(pc, SSB_PCICORE_SPROM(0), tmp); pc 436 drivers/ssb/driver_pcicore.c static u8 ssb_pcicore_polarity_workaround(struct ssb_pcicore *pc) pc 438 drivers/ssb/driver_pcicore.c return (ssb_pcie_read(pc, 0x204) & 0x10) ? 0xC0 : 0x80; pc 441 drivers/ssb/driver_pcicore.c static void ssb_pcicore_serdes_workaround(struct ssb_pcicore *pc) pc 447 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_write(pc, serdes_rx_device, 1 /* Control */, pc 448 drivers/ssb/driver_pcicore.c ssb_pcicore_polarity_workaround(pc)); pc 449 drivers/ssb/driver_pcicore.c tmp = ssb_pcie_mdio_read(pc, serdes_pll_device, 1 /* Control */); pc 451 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_write(pc, serdes_pll_device, 1, tmp & ~0x4000); pc 454 drivers/ssb/driver_pcicore.c static void ssb_pcicore_pci_setup_workarounds(struct ssb_pcicore *pc) pc 456 drivers/ssb/driver_pcicore.c struct ssb_device *pdev = pc->dev; pc 460 drivers/ssb/driver_pcicore.c tmp = pcicore_read32(pc, SSB_PCICORE_SBTOPCI2); pc 463 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI2, tmp); pc 474 drivers/ssb/driver_pcicore.c tmp = pcicore_read32(pc, SSB_PCICORE_SBTOPCI2); pc 476 drivers/ssb/driver_pcicore.c pcicore_write32(pc, SSB_PCICORE_SBTOPCI2, tmp); pc 480 drivers/ssb/driver_pcicore.c static void ssb_pcicore_pcie_setup_workarounds(struct ssb_pcicore *pc) pc 483 drivers/ssb/driver_pcicore.c u8 rev = pc->dev->id.revision; pc 487 drivers/ssb/driver_pcicore.c tmp = ssb_pcie_read(pc, 0x4); pc 489 drivers/ssb/driver_pcicore.c ssb_pcie_write(pc, 0x4, tmp); pc 493 drivers/ssb/driver_pcicore.c tmp = ssb_pcie_read(pc, 0x100); pc 495 drivers/ssb/driver_pcicore.c ssb_pcie_write(pc, 0x100, tmp); pc 501 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_write(pc, serdes_rx_device, pc 503 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_write(pc, serdes_rx_device, pc 505 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_write(pc, serdes_rx_device, pc 509 drivers/ssb/driver_pcicore.c ssb_pcicore_serdes_workaround(pc); pc 517 drivers/ssb/driver_pcicore.c tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(5)); pc 519 drivers/ssb/driver_pcicore.c pcicore_write16(pc, SSB_PCICORE_SPROM(5), pc 528 drivers/ssb/driver_pcicore.c static void ssb_pcicore_init_clientmode(struct ssb_pcicore *pc) pc 530 drivers/ssb/driver_pcicore.c struct ssb_device *pdev = pc->dev; pc 534 drivers/ssb/driver_pcicore.c ssb_pcicore_fix_sprom_core_index(pc); pc 540 drivers/ssb/driver_pcicore.c if (pc->dev->id.coreid == SSB_DEV_PCIE) { pc 541 drivers/ssb/driver_pcicore.c ssb_pcicore_serdes_workaround(pc); pc 547 drivers/ssb/driver_pcicore.c void ssb_pcicore_init(struct ssb_pcicore *pc) pc 549 drivers/ssb/driver_pcicore.c struct ssb_device *dev = pc->dev; pc 557 drivers/ssb/driver_pcicore.c pc->hostmode = pcicore_is_in_hostmode(pc); pc 558 drivers/ssb/driver_pcicore.c if (pc->hostmode) pc 559 drivers/ssb/driver_pcicore.c ssb_pcicore_init_hostmode(pc); pc 561 drivers/ssb/driver_pcicore.c if (!pc->hostmode) pc 562 drivers/ssb/driver_pcicore.c ssb_pcicore_init_clientmode(pc); pc 565 drivers/ssb/driver_pcicore.c static u32 ssb_pcie_read(struct ssb_pcicore *pc, u32 address) pc 567 drivers/ssb/driver_pcicore.c pcicore_write32(pc, 0x130, address); pc 568 drivers/ssb/driver_pcicore.c return pcicore_read32(pc, 0x134); pc 571 drivers/ssb/driver_pcicore.c static void ssb_pcie_write(struct ssb_pcicore *pc, u32 address, u32 data) pc 573 drivers/ssb/driver_pcicore.c pcicore_write32(pc, 0x130, address); pc 574 drivers/ssb/driver_pcicore.c pcicore_write32(pc, 0x134, data); pc 577 drivers/ssb/driver_pcicore.c static void ssb_pcie_mdio_set_phy(struct ssb_pcicore *pc, u8 phy) pc 589 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_data, v); pc 593 drivers/ssb/driver_pcicore.c v = pcicore_read32(pc, mdio_control); pc 600 drivers/ssb/driver_pcicore.c static u16 ssb_pcie_mdio_read(struct ssb_pcicore *pc, u8 device, u8 address) pc 611 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_control, v); pc 613 drivers/ssb/driver_pcicore.c if (pc->dev->id.revision >= 10) { pc 615 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_set_phy(pc, device); pc 621 drivers/ssb/driver_pcicore.c if (pc->dev->id.revision < 10) pc 624 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_data, v); pc 628 drivers/ssb/driver_pcicore.c v = pcicore_read32(pc, mdio_control); pc 631 drivers/ssb/driver_pcicore.c ret = pcicore_read32(pc, mdio_data); pc 636 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_control, 0); pc 640 drivers/ssb/driver_pcicore.c static void ssb_pcie_mdio_write(struct ssb_pcicore *pc, u8 device, pc 651 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_control, v); pc 653 drivers/ssb/driver_pcicore.c if (pc->dev->id.revision >= 10) { pc 655 drivers/ssb/driver_pcicore.c ssb_pcie_mdio_set_phy(pc, device); pc 661 drivers/ssb/driver_pcicore.c if (pc->dev->id.revision < 10) pc 665 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_data, v); pc 669 drivers/ssb/driver_pcicore.c v = pcicore_read32(pc, mdio_control); pc 674 drivers/ssb/driver_pcicore.c pcicore_write32(pc, mdio_control, 0); pc 677 drivers/ssb/driver_pcicore.c int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc, pc 680 drivers/ssb/driver_pcicore.c struct ssb_device *pdev = pc->dev; pc 724 drivers/ssb/driver_pcicore.c if (pc->setup_done) pc 727 drivers/ssb/driver_pcicore.c ssb_pcicore_pci_setup_workarounds(pc); pc 730 drivers/ssb/driver_pcicore.c ssb_pcicore_pcie_setup_workarounds(pc); pc 732 drivers/ssb/driver_pcicore.c pc->setup_done = 1; pc 381 drivers/staging/most/dim2/hal.c static inline u16 norm_pc(u16 pc) pc 383 drivers/staging/most/dim2/hal.c return pc & CDT0_RPC_MASK; pc 948 drivers/staging/octeon/octeon-stubs.h uint64_t pc:28; pc 761 drivers/target/target_core_spc.c static int spc_modesense_rwrecovery(struct se_cmd *cmd, u8 pc, u8 *p) pc 767 drivers/target/target_core_spc.c if (pc == 1) pc 774 drivers/target/target_core_spc.c static int spc_modesense_control(struct se_cmd *cmd, u8 pc, u8 *p) pc 783 drivers/target/target_core_spc.c if (pc == 1) pc 888 drivers/target/target_core_spc.c static int spc_modesense_caching(struct se_cmd *cmd, u8 pc, u8 *p) pc 896 drivers/target/target_core_spc.c if (pc == 1) pc 907 drivers/target/target_core_spc.c static int spc_modesense_informational_exceptions(struct se_cmd *cmd, u8 pc, unsigned char *p) pc 913 drivers/target/target_core_spc.c if (pc == 1) pc 990 drivers/target/target_core_spc.c u8 pc = cdb[2] >> 6; pc 1063 drivers/target/target_core_spc.c ret = modesense_handlers[i].emulate(cmd, pc, &buf[length]); pc 1076 drivers/target/target_core_spc.c length += modesense_handlers[i].emulate(cmd, pc, &buf[length]); pc 1217 drivers/usb/gadget/function/f_mass_storage.c int pc, page_code; pc 1226 drivers/usb/gadget/function/f_mass_storage.c pc = common->cmnd[2] >> 6; pc 1228 drivers/usb/gadget/function/f_mass_storage.c if (pc == 3) { pc 1232 drivers/usb/gadget/function/f_mass_storage.c changeable_values = (pc == 1); pc 433 drivers/usb/misc/uss720.c s->u.pc.ctr = 0xc | (dev->irq_func ? 0x10 : 0x0); pc 434 drivers/usb/misc/uss720.c s->u.pc.ecr = 0x24; pc 445 drivers/usb/misc/uss720.c s->u.pc.ctr = priv->reg[1]; pc 446 drivers/usb/misc/uss720.c s->u.pc.ecr = priv->reg[2]; pc 453 drivers/usb/misc/uss720.c set_1284_register(pp, 2, s->u.pc.ctr, GFP_ATOMIC); pc 454 drivers/usb/misc/uss720.c set_1284_register(pp, 6, s->u.pc.ecr, GFP_ATOMIC); pc 456 drivers/usb/misc/uss720.c priv->reg[1] = s->u.pc.ctr; pc 457 drivers/usb/misc/uss720.c priv->reg[2] = s->u.pc.ecr; pc 608 drivers/usb/serial/mos7720.c s->u.pc.ctr = DCR_INIT_VAL; pc 609 drivers/usb/serial/mos7720.c s->u.pc.ecr = ECR_INIT_VAL; pc 624 drivers/usb/serial/mos7720.c s->u.pc.ctr = mos_parport->shadowDCR; pc 625 drivers/usb/serial/mos7720.c s->u.pc.ecr = mos_parport->shadowECR; pc 453 drivers/usb/storage/datafab.c unsigned char pc, page_code; pc 463 drivers/usb/storage/datafab.c pc = srb->cmnd[2] >> 6; pc 466 drivers/usb/storage/datafab.c switch (pc) { pc 382 drivers/usb/storage/jumpshot.c unsigned char pc, page_code; pc 387 drivers/usb/storage/jumpshot.c pc = srb->cmnd[2] >> 6; pc 390 drivers/usb/storage/jumpshot.c switch (pc) { pc 824 drivers/video/fbdev/au1200fb.c long r, pc = panel->lcdclk * 1000000; pc 827 drivers/video/fbdev/au1200fb.c r = clk_round_rate(c, pc); pc 828 drivers/video/fbdev/au1200fb.c if ((pc - r) < (pc / 10)) { /* 10% slack */ pc 1113 drivers/xen/grant-table.c int pc; pc 1115 drivers/xen/grant-table.c for (pc = 0; pc < item->count; pc++) { pc 1116 drivers/xen/grant-table.c if (page_count(item->pages[pc]) > 1) { pc 885 fs/udf/namei.c struct pathComponent *pc; pc 946 fs/udf/namei.c pc = (struct pathComponent *)ea; pc 953 fs/udf/namei.c pc->componentType = 1; pc 954 fs/udf/namei.c pc->lengthComponentIdent = 0; pc 955 fs/udf/namei.c pc->componentFileVersionNum = 0; pc 965 fs/udf/namei.c pc = (struct pathComponent *)(ea + elen); pc 973 fs/udf/namei.c pc->componentType = 5; pc 974 fs/udf/namei.c pc->lengthComponentIdent = 0; pc 975 fs/udf/namei.c pc->componentFileVersionNum = 0; pc 978 fs/udf/namei.c pc->componentType = 4; pc 981 fs/udf/namei.c pc->componentType = 3; pc 984 fs/udf/namei.c if (pc->componentType == 5) { pc 995 fs/udf/namei.c pc->lengthComponentIdent = namelen; pc 997 fs/udf/namei.c memcpy(pc->componentIdent, name, namelen); pc 1000 fs/udf/namei.c elen += sizeof(struct pathComponent) + pc->lengthComponentIdent; pc 35 fs/udf/symlink.c struct pathComponent *pc; pc 43 fs/udf/symlink.c pc = (struct pathComponent *)(from + elen); pc 45 fs/udf/symlink.c switch (pc->componentType) { pc 51 fs/udf/symlink.c if (pc->lengthComponentIdent > 0) { pc 52 fs/udf/symlink.c elen += pc->lengthComponentIdent; pc 79 fs/udf/symlink.c elen += pc->lengthComponentIdent; pc 82 fs/udf/symlink.c comp_len = udf_get_filename(sb, pc->componentIdent, pc 83 fs/udf/symlink.c pc->lengthComponentIdent, pc 19 include/asm-generic/preempt.h static __always_inline void preempt_count_set(int pc) pc 21 include/asm-generic/preempt.h *preempt_count_ptr() = pc; pc 237 include/linux/bcma/bcma_driver_pci.h #define pcicore_read16(pc, offset) bcma_read16((pc)->core, offset) pc 238 include/linux/bcma/bcma_driver_pci.h #define pcicore_read32(pc, offset) bcma_read32((pc)->core, offset) pc 239 include/linux/bcma/bcma_driver_pci.h #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) pc 240 include/linux/bcma/bcma_driver_pci.h #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) pc 182 include/linux/cpu.h bool cpu_in_idle(unsigned long pc); pc 602 include/linux/ide.h struct ide_atapi_pc *pc; pc 211 include/linux/kgdb.h extern void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc); pc 91 include/linux/mmiotrace.h unsigned long pc; /* optional program counter */ pc 105 include/linux/oprofile.h void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, pc 111 include/linux/oprofile.h void oprofile_add_ext_hw_sample(unsigned long pc, struct pt_regs * const regs, pc 117 include/linux/oprofile.h void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event); pc 191 include/linux/oprofile.h unsigned long pc, int code, int size); pc 54 include/linux/parport.h struct pc_parport_state pc; pc 41 include/linux/posix-clock.h int (*clock_adjtime)(struct posix_clock *pc, struct __kernel_timex *tx); pc 43 include/linux/posix-clock.h int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts); pc 45 include/linux/posix-clock.h int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts); pc 47 include/linux/posix-clock.h int (*clock_settime)(struct posix_clock *pc, pc 53 include/linux/posix-clock.h long (*ioctl) (struct posix_clock *pc, pc 56 include/linux/posix-clock.h int (*open) (struct posix_clock *pc, fmode_t f_mode); pc 58 include/linux/posix-clock.h __poll_t (*poll) (struct posix_clock *pc, pc 61 include/linux/posix-clock.h int (*release) (struct posix_clock *pc); pc 63 include/linux/posix-clock.h ssize_t (*read) (struct posix_clock *pc, pc 296 include/linux/pwm.h struct pwm_device * (*of_xlate)(struct pwm_chip *pc, pc 404 include/linux/pwm.h struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc, pc 148 include/linux/rbtree_augmented.h #define __rb_parent(pc) ((struct rb_node *)(pc & ~3)) pc 150 include/linux/rbtree_augmented.h #define __rb_color(pc) ((pc) & 1) pc 151 include/linux/rbtree_augmented.h #define __rb_is_black(pc) __rb_color(pc) pc 152 include/linux/rbtree_augmented.h #define __rb_is_red(pc) (!__rb_color(pc)) pc 204 include/linux/rbtree_augmented.h unsigned long pc; pc 214 include/linux/rbtree_augmented.h pc = node->__rb_parent_color; pc 215 include/linux/rbtree_augmented.h parent = __rb_parent(pc); pc 218 include/linux/rbtree_augmented.h child->__rb_parent_color = pc; pc 221 include/linux/rbtree_augmented.h rebalance = __rb_is_black(pc) ? parent : NULL; pc 225 include/linux/rbtree_augmented.h tmp->__rb_parent_color = pc = node->__rb_parent_color; pc 226 include/linux/rbtree_augmented.h parent = __rb_parent(pc); pc 281 include/linux/rbtree_augmented.h pc = node->__rb_parent_color; pc 282 include/linux/rbtree_augmented.h tmp = __rb_parent(pc); pc 286 include/linux/rbtree_augmented.h successor->__rb_parent_color = pc; pc 291 include/linux/rbtree_augmented.h successor->__rb_parent_color = pc; pc 91 include/linux/ssb/ssb_driver_pci.h extern void ssb_pcicore_init(struct ssb_pcicore *pc); pc 94 include/linux/ssb/ssb_driver_pci.h extern int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc, pc 108 include/linux/ssb/ssb_driver_pci.h void ssb_pcicore_init(struct ssb_pcicore *pc) pc 113 include/linux/ssb/ssb_driver_pci.h int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc, pc 30 include/net/tc_act/tc_police.h #define to_police(pc) ((struct tcf_police *)pc) pc 1832 include/sound/emu10k1.h unsigned int snd_emu10k1_efx_read(struct snd_emu10k1 *emu, unsigned int pc); pc 2061 include/trace/events/ext4.h struct partial_cluster *pc), pc 2063 include/trace/events/ext4.h TP_ARGS(inode, ex, from, to, pc), pc 2086 include/trace/events/ext4.h __entry->pc_pclu = pc->pclu; pc 2087 include/trace/events/ext4.h __entry->pc_lblk = pc->lblk; pc 2088 include/trace/events/ext4.h __entry->pc_state = pc->state; pc 2108 include/trace/events/ext4.h struct partial_cluster *pc), pc 2110 include/trace/events/ext4.h TP_ARGS(inode, start, ex, pc), pc 2131 include/trace/events/ext4.h __entry->pc_pclu = pc->pclu; pc 2132 include/trace/events/ext4.h __entry->pc_lblk = pc->lblk; pc 2133 include/trace/events/ext4.h __entry->pc_state = pc->state; pc 2204 include/trace/events/ext4.h int depth, struct partial_cluster *pc, __le16 eh_entries), pc 2206 include/trace/events/ext4.h TP_ARGS(inode, start, end, depth, pc, eh_entries), pc 2226 include/trace/events/ext4.h __entry->pc_pclu = pc->pclu; pc 2227 include/trace/events/ext4.h __entry->pc_lblk = pc->lblk; pc 2228 include/trace/events/ext4.h __entry->pc_state = pc->state; pc 9 include/uapi/linux/net_dropmon.h __u8 pc[8]; pc 36 kernel/profile.c u32 pc, hits; pc 259 kernel/profile.c if (hits[i].pc) pc 260 kernel/profile.c hits[i].pc = 0; pc 263 kernel/profile.c atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); pc 264 kernel/profile.c hits[i].hits = hits[i].pc = 0; pc 287 kernel/profile.c unsigned long primary, secondary, flags, pc = (unsigned long)__pc; pc 291 kernel/profile.c pc = min((pc - (unsigned long)_stext) >> prof_shift, prof_len - 1); pc 292 kernel/profile.c i = primary = (pc & (NR_PROFILE_GRP - 1)) << PROFILE_GRPSHIFT; pc 293 kernel/profile.c secondary = (~(pc << 1) & (NR_PROFILE_GRP - 1)) << PROFILE_GRPSHIFT; pc 308 kernel/profile.c if (hits[i + j].pc == pc) { pc 312 kernel/profile.c hits[i + j].pc = pc; pc 324 kernel/profile.c atomic_add(nr_hits, &prof_buffer[pc]); pc 326 kernel/profile.c atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); pc 327 kernel/profile.c hits[i].pc = hits[i].hits = 0; pc 388 kernel/profile.c unsigned long pc; pc 389 kernel/profile.c pc = ((unsigned long)__pc - (unsigned long)_stext) >> prof_shift; pc 390 kernel/profile.c atomic_add(nr_hits, &prof_buffer[min(pc, prof_len - 1)]); pc 293 kernel/sched/idle.c bool cpu_in_idle(unsigned long pc) pc 295 kernel/sched/idle.c return pc >= (unsigned long)__cpuidle_text_start && pc 296 kernel/sched/idle.c pc < (unsigned long)__cpuidle_text_end; pc 176 kernel/seccomp.c int pc; pc 177 kernel/seccomp.c for (pc = 0; pc < flen; pc++) { pc 178 kernel/seccomp.c struct sock_filter *ftest = &filter[pc]; pc 73 kernel/trace/blktrace.c int pc = 0; pc 80 kernel/trace/blktrace.c pc = preempt_count(); pc 83 kernel/trace/blktrace.c 0, pc); pc 108 kernel/trace/blktrace.c trace_buffer_unlock_commit(blk_tr, buffer, event, 0, pc); pc 224 kernel/trace/blktrace.c int cpu, pc = 0; pc 253 kernel/trace/blktrace.c pc = preempt_count(); pc 256 kernel/trace/blktrace.c 0, pc); pc 302 kernel/trace/blktrace.c trace_buffer_unlock_commit(blk_tr, buffer, event, 0, pc); pc 2695 kernel/trace/ring_buffer.c unsigned long pc = preempt_count(); pc 2698 kernel/trace/ring_buffer.c if (!(pc & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_OFFSET))) pc 2701 kernel/trace/ring_buffer.c bit = pc & NMI_MASK ? RB_CTX_NMI : pc 2702 kernel/trace/ring_buffer.c pc & HARDIRQ_MASK ? RB_CTX_IRQ : RB_CTX_SOFTIRQ; pc 164 kernel/trace/trace.c unsigned long flags, int pc); pc 737 kernel/trace/trace.c int skip, int pc, struct pt_regs *regs); pc 741 kernel/trace/trace.c int skip, int pc, struct pt_regs *regs); pc 746 kernel/trace/trace.c int skip, int pc, struct pt_regs *regs) pc 752 kernel/trace/trace.c int skip, int pc, struct pt_regs *regs) pc 760 kernel/trace/trace.c int type, unsigned long flags, int pc) pc 764 kernel/trace/trace.c tracing_generic_entry_update(ent, type, flags, pc); pc 771 kernel/trace/trace.c unsigned long flags, int pc) pc 777 kernel/trace/trace.c trace_event_setup(event, type, flags, pc); pc 840 kernel/trace/trace.c int pc; pc 845 kernel/trace/trace.c pc = preempt_count(); pc 855 kernel/trace/trace.c irq_flags, pc); pc 872 kernel/trace/trace.c ftrace_trace_stack(&global_trace, buffer, irq_flags, 4, pc, NULL); pc 890 kernel/trace/trace.c int pc; pc 895 kernel/trace/trace.c pc = preempt_count(); pc 903 kernel/trace/trace.c irq_flags, pc); pc 912 kernel/trace/trace.c ftrace_trace_stack(&global_trace, buffer, irq_flags, 4, pc, NULL); pc 2341 kernel/trace/trace.c unsigned long flags, int pc) pc 2345 kernel/trace/trace.c entry->preempt_count = pc & 0xff; pc 2354 kernel/trace/trace.c ((pc & NMI_MASK ) ? TRACE_FLAG_NMI : 0) | pc 2355 kernel/trace/trace.c ((pc & HARDIRQ_MASK) ? TRACE_FLAG_HARDIRQ : 0) | pc 2356 kernel/trace/trace.c ((pc & SOFTIRQ_OFFSET) ? TRACE_FLAG_SOFTIRQ : 0) | pc 2366 kernel/trace/trace.c unsigned long flags, int pc) pc 2368 kernel/trace/trace.c return __trace_buffer_lock_reserve(buffer, type, len, flags, pc); pc 2488 kernel/trace/trace.c unsigned long flags, int pc) pc 2501 kernel/trace/trace.c trace_event_setup(entry, type, flags, pc); pc 2509 kernel/trace/trace.c type, len, flags, pc); pc 2519 kernel/trace/trace.c type, len, flags, pc); pc 2596 kernel/trace/trace.c fbuffer->flags, fbuffer->pc); pc 2612 kernel/trace/trace.c unsigned long flags, int pc, pc 2623 kernel/trace/trace.c ftrace_trace_stack(tr, buffer, flags, regs ? 0 : STACK_SKIP, pc, regs); pc 2624 kernel/trace/trace.c ftrace_trace_userstack(buffer, flags, pc); pc 2763 kernel/trace/trace.c int pc) pc 2771 kernel/trace/trace.c flags, pc); pc 2806 kernel/trace/trace.c int skip, int pc, struct pt_regs *regs) pc 2859 kernel/trace/trace.c sizeof(*entry) + size, flags, pc); pc 2881 kernel/trace/trace.c int skip, int pc, struct pt_regs *regs) pc 2886 kernel/trace/trace.c __ftrace_trace_stack(buffer, flags, skip, pc, regs); pc 2890 kernel/trace/trace.c int pc) pc 2895 kernel/trace/trace.c __ftrace_trace_stack(buffer, flags, skip, pc, NULL); pc 2909 kernel/trace/trace.c __ftrace_trace_stack(buffer, flags, skip, pc, NULL); pc 2939 kernel/trace/trace.c ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, int pc) pc 2966 kernel/trace/trace.c sizeof(*entry), flags, pc); pc 2985 kernel/trace/trace.c unsigned long flags, int pc) pc 3114 kernel/trace/trace.c int len = 0, size, pc; pc 3122 kernel/trace/trace.c pc = preempt_count(); pc 3140 kernel/trace/trace.c flags, pc); pc 3150 kernel/trace/trace.c ftrace_trace_stack(tr, buffer, flags, 6, pc, NULL); pc 3171 kernel/trace/trace.c int len = 0, size, pc; pc 3182 kernel/trace/trace.c pc = preempt_count(); pc 3197 kernel/trace/trace.c flags, pc); pc 3206 kernel/trace/trace.c ftrace_trace_stack(&global_trace, buffer, flags, 6, pc, NULL); pc 705 kernel/trace/trace.h int pc); pc 730 kernel/trace/trace.h unsigned long flags, int pc); pc 734 kernel/trace/trace.h unsigned long flags, int pc); pc 791 kernel/trace/trace.h int pc); pc 794 kernel/trace/trace.h int skip, int pc) pc 929 kernel/trace/trace.h unsigned long flags, int pc); pc 932 kernel/trace/trace.h unsigned long flags, int pc); pc 1377 kernel/trace/trace.h unsigned long flags, int pc, pc 1383 kernel/trace/trace.h unsigned long flags, int pc) pc 1385 kernel/trace/trace.h trace_buffer_unlock_commit_regs(tr, buffer, event, flags, pc, NULL); pc 1457 kernel/trace/trace.h void *entry, unsigned long irq_flags, int pc) pc 1462 kernel/trace/trace.h trace_buffer_unlock_commit(file->tr, buffer, event, irq_flags, pc); pc 1488 kernel/trace/trace.h void *entry, unsigned long irq_flags, int pc, pc 1495 kernel/trace/trace.h irq_flags, pc, regs); pc 40 kernel/trace/trace_branch.c int pc; pc 62 kernel/trace/trace_branch.c pc = preempt_count(); pc 65 kernel/trace/trace_branch.c sizeof(*entry), flags, pc); pc 285 kernel/trace/trace_entries.h __field_desc( unsigned long, rw, pc ) pc 292 kernel/trace/trace_entries.h (unsigned long)__entry->phys, __entry->value, __entry->pc, pc 419 kernel/trace/trace_event_perf.c int pc = preempt_count(); pc 423 kernel/trace/trace_event_perf.c tracing_generic_entry_update(entry, type, flags, pc); pc 257 kernel/trace/trace_events.c fbuffer->pc = preempt_count(); pc 265 kernel/trace/trace_events.c fbuffer->pc--; pc 271 kernel/trace/trace_events.c fbuffer->flags, fbuffer->pc); pc 3367 kernel/trace/trace_events.c int pc; pc 3369 kernel/trace/trace_events.c pc = preempt_count(); pc 3381 kernel/trace/trace_events.c flags, pc); pc 3389 kernel/trace/trace_events.c entry, flags, pc); pc 133 kernel/trace/trace_functions.c int pc; pc 138 kernel/trace/trace_functions.c pc = preempt_count(); pc 149 kernel/trace/trace_functions.c trace_function(tr, ip, parent_ip, flags, pc); pc 184 kernel/trace/trace_functions.c int pc; pc 199 kernel/trace/trace_functions.c pc = preempt_count(); pc 200 kernel/trace/trace_functions.c trace_function(tr, ip, parent_ip, flags, pc); pc 201 kernel/trace/trace_functions.c __trace_stack(tr, flags, STACK_SKIP, pc); pc 405 kernel/trace/trace_functions.c int pc; pc 408 kernel/trace/trace_functions.c pc = preempt_count(); pc 410 kernel/trace/trace_functions.c __trace_stack(tr, flags, FTRACE_STACK_SKIP, pc); pc 100 kernel/trace/trace_functions_graph.c int pc) pc 108 kernel/trace/trace_functions_graph.c sizeof(*entry), flags, pc); pc 135 kernel/trace/trace_functions_graph.c int pc; pc 177 kernel/trace/trace_functions_graph.c pc = preempt_count(); pc 178 kernel/trace/trace_functions_graph.c ret = __trace_graph_entry(tr, trace, flags, pc); pc 191 kernel/trace/trace_functions_graph.c unsigned long ip, unsigned long flags, int pc) pc 205 kernel/trace/trace_functions_graph.c __trace_graph_entry(tr, &ent, flags, pc); pc 206 kernel/trace/trace_functions_graph.c __trace_graph_return(tr, &ret, flags, pc); pc 212 kernel/trace/trace_functions_graph.c unsigned long flags, int pc) pc 214 kernel/trace/trace_functions_graph.c __trace_graph_function(tr, ip, flags, pc); pc 220 kernel/trace/trace_functions_graph.c int pc) pc 228 kernel/trace/trace_functions_graph.c sizeof(*entry), flags, pc); pc 244 kernel/trace/trace_functions_graph.c int pc; pc 258 kernel/trace/trace_functions_graph.c pc = preempt_count(); pc 259 kernel/trace/trace_functions_graph.c __trace_graph_return(tr, trace, flags, pc); pc 111 kernel/trace/trace_hwlat.c int pc; pc 113 kernel/trace/trace_hwlat.c pc = preempt_count(); pc 117 kernel/trace/trace_hwlat.c flags, pc); pc 45 kernel/trace/trace_irqsoff.c preempt_trace(int pc) pc 47 kernel/trace/trace_irqsoff.c return ((trace_type & TRACER_PREEMPT_OFF) && pc); pc 50 kernel/trace/trace_irqsoff.c # define preempt_trace(pc) (0) pc 181 kernel/trace/trace_irqsoff.c int pc; pc 198 kernel/trace/trace_irqsoff.c pc = preempt_count(); pc 199 kernel/trace/trace_irqsoff.c ret = __trace_graph_entry(tr, trace, flags, pc); pc 210 kernel/trace/trace_irqsoff.c int pc; pc 217 kernel/trace/trace_irqsoff.c pc = preempt_count(); pc 218 kernel/trace/trace_irqsoff.c __trace_graph_return(tr, trace, flags, pc); pc 270 kernel/trace/trace_irqsoff.c unsigned long flags, int pc) pc 273 kernel/trace/trace_irqsoff.c trace_graph_function(tr, ip, parent_ip, flags, pc); pc 275 kernel/trace/trace_irqsoff.c trace_function(tr, ip, parent_ip, flags, pc); pc 325 kernel/trace/trace_irqsoff.c int pc; pc 333 kernel/trace/trace_irqsoff.c pc = preempt_count(); pc 344 kernel/trace/trace_irqsoff.c __trace_function(tr, CALLER_ADDR0, parent_ip, flags, pc); pc 346 kernel/trace/trace_irqsoff.c __trace_stack(tr, flags, 5, pc); pc 366 kernel/trace/trace_irqsoff.c __trace_function(tr, CALLER_ADDR0, parent_ip, flags, pc); pc 370 kernel/trace/trace_irqsoff.c start_critical_timing(unsigned long ip, unsigned long parent_ip, int pc) pc 398 kernel/trace/trace_irqsoff.c __trace_function(tr, ip, parent_ip, flags, pc); pc 406 kernel/trace/trace_irqsoff.c stop_critical_timing(unsigned long ip, unsigned long parent_ip, int pc) pc 432 kernel/trace/trace_irqsoff.c __trace_function(tr, ip, parent_ip, flags, pc); pc 441 kernel/trace/trace_irqsoff.c int pc = preempt_count(); pc 443 kernel/trace/trace_irqsoff.c if (preempt_trace(pc) || irq_trace()) pc 444 kernel/trace/trace_irqsoff.c start_critical_timing(CALLER_ADDR0, CALLER_ADDR1, pc); pc 451 kernel/trace/trace_irqsoff.c int pc = preempt_count(); pc 453 kernel/trace/trace_irqsoff.c if (preempt_trace(pc) || irq_trace()) pc 454 kernel/trace/trace_irqsoff.c stop_critical_timing(CALLER_ADDR0, CALLER_ADDR1, pc); pc 612 kernel/trace/trace_irqsoff.c unsigned int pc = preempt_count(); pc 614 kernel/trace/trace_irqsoff.c if (!preempt_trace(pc) && irq_trace()) pc 615 kernel/trace/trace_irqsoff.c stop_critical_timing(a0, a1, pc); pc 621 kernel/trace/trace_irqsoff.c unsigned int pc = preempt_count(); pc 623 kernel/trace/trace_irqsoff.c if (!preempt_trace(pc) && irq_trace()) pc 624 kernel/trace/trace_irqsoff.c start_critical_timing(a0, a1, pc); pc 664 kernel/trace/trace_irqsoff.c int pc = preempt_count(); pc 666 kernel/trace/trace_irqsoff.c if (preempt_trace(pc) && !irq_trace()) pc 667 kernel/trace/trace_irqsoff.c stop_critical_timing(a0, a1, pc); pc 672 kernel/trace/trace_irqsoff.c int pc = preempt_count(); pc 674 kernel/trace/trace_irqsoff.c if (preempt_trace(pc) && !irq_trace()) pc 675 kernel/trace/trace_irqsoff.c start_critical_timing(a0, a1, pc); pc 1182 kernel/trace/trace_kprobe.c int size, dsize, pc; pc 1192 kernel/trace/trace_kprobe.c pc = preempt_count(); pc 1199 kernel/trace/trace_kprobe.c size, irq_flags, pc); pc 1208 kernel/trace/trace_kprobe.c entry, irq_flags, pc, regs); pc 1230 kernel/trace/trace_kprobe.c int size, pc, dsize; pc 1240 kernel/trace/trace_kprobe.c pc = preempt_count(); pc 1247 kernel/trace/trace_kprobe.c size, irq_flags, pc); pc 1257 kernel/trace/trace_kprobe.c entry, irq_flags, pc, regs); pc 186 kernel/trace/trace_mmiotrace.c rw->value, rw->pc, 0); pc 193 kernel/trace/trace_mmiotrace.c rw->value, rw->pc, 0); pc 202 kernel/trace/trace_mmiotrace.c (rw->value >> 0) & 0xff, rw->pc, 0); pc 303 kernel/trace/trace_mmiotrace.c int pc = preempt_count(); pc 306 kernel/trace/trace_mmiotrace.c sizeof(*entry), 0, pc); pc 315 kernel/trace/trace_mmiotrace.c trace_buffer_unlock_commit(tr, buffer, event, 0, pc); pc 333 kernel/trace/trace_mmiotrace.c int pc = preempt_count(); pc 336 kernel/trace/trace_mmiotrace.c sizeof(*entry), 0, pc); pc 345 kernel/trace/trace_mmiotrace.c trace_buffer_unlock_commit(tr, buffer, event, 0, pc); pc 70 kernel/trace/trace_sched_wakeup.c int *pc) pc 78 kernel/trace/trace_sched_wakeup.c *pc = preempt_count(); pc 120 kernel/trace/trace_sched_wakeup.c int pc, ret = 0; pc 134 kernel/trace/trace_sched_wakeup.c if (!func_prolog_preempt_disable(tr, &data, &pc)) pc 138 kernel/trace/trace_sched_wakeup.c ret = __trace_graph_entry(tr, trace, flags, pc); pc 150 kernel/trace/trace_sched_wakeup.c int pc; pc 154 kernel/trace/trace_sched_wakeup.c if (!func_prolog_preempt_disable(tr, &data, &pc)) pc 158 kernel/trace/trace_sched_wakeup.c __trace_graph_return(tr, trace, flags, pc); pc 220 kernel/trace/trace_sched_wakeup.c int pc; pc 222 kernel/trace/trace_sched_wakeup.c if (!func_prolog_preempt_disable(tr, &data, &pc)) pc 226 kernel/trace/trace_sched_wakeup.c trace_function(tr, ip, parent_ip, flags, pc); pc 306 kernel/trace/trace_sched_wakeup.c unsigned long flags, int pc) pc 309 kernel/trace/trace_sched_wakeup.c trace_graph_function(tr, ip, parent_ip, flags, pc); pc 311 kernel/trace/trace_sched_wakeup.c trace_function(tr, ip, parent_ip, flags, pc); pc 378 kernel/trace/trace_sched_wakeup.c unsigned long flags, int pc) pc 386 kernel/trace/trace_sched_wakeup.c sizeof(*entry), flags, pc); pc 399 kernel/trace/trace_sched_wakeup.c trace_buffer_unlock_commit(tr, buffer, event, flags, pc); pc 406 kernel/trace/trace_sched_wakeup.c unsigned long flags, int pc) pc 414 kernel/trace/trace_sched_wakeup.c sizeof(*entry), flags, pc); pc 427 kernel/trace/trace_sched_wakeup.c trace_buffer_unlock_commit(tr, buffer, event, flags, pc); pc 439 kernel/trace/trace_sched_wakeup.c int pc; pc 458 kernel/trace/trace_sched_wakeup.c pc = preempt_count(); pc 476 kernel/trace/trace_sched_wakeup.c __trace_function(wakeup_trace, CALLER_ADDR0, CALLER_ADDR1, flags, pc); pc 477 kernel/trace/trace_sched_wakeup.c tracing_sched_switch_trace(wakeup_trace, prev, next, flags, pc); pc 478 kernel/trace/trace_sched_wakeup.c __trace_stack(wakeup_trace, flags, 0, pc); pc 532 kernel/trace/trace_sched_wakeup.c int pc; pc 553 kernel/trace/trace_sched_wakeup.c pc = preempt_count(); pc 588 kernel/trace/trace_sched_wakeup.c tracing_sched_wakeup_trace(wakeup_trace, p, current, flags, pc); pc 589 kernel/trace/trace_sched_wakeup.c __trace_stack(wakeup_trace, flags, 0, pc); pc 596 kernel/trace/trace_sched_wakeup.c __trace_function(wakeup_trace, CALLER_ADDR1, CALLER_ADDR2, flags, pc); pc 318 kernel/trace/trace_syscalls.c int pc; pc 341 kernel/trace/trace_syscalls.c pc = preempt_count(); pc 345 kernel/trace/trace_syscalls.c sys_data->enter_event->event.type, size, irq_flags, pc); pc 355 kernel/trace/trace_syscalls.c irq_flags, pc); pc 367 kernel/trace/trace_syscalls.c int pc; pc 387 kernel/trace/trace_syscalls.c pc = preempt_count(); pc 392 kernel/trace/trace_syscalls.c irq_flags, pc); pc 401 kernel/trace/trace_syscalls.c irq_flags, pc); pc 178 lib/asn1_decoder.c size_t pc = 0, dp = 0, tdp = 0, len = 0; pc 202 lib/asn1_decoder.c pc, machlen, dp, datalen, csp, jsp); pc 203 lib/asn1_decoder.c if (unlikely(pc >= machlen)) pc 205 lib/asn1_decoder.c op = machine[pc]; pc 206 lib/asn1_decoder.c if (unlikely(pc + asn1_op_lengths[op] > machlen)) pc 219 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 241 lib/asn1_decoder.c optag = machine[pc + 1]; pc 251 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 343 lib/asn1_decoder.c act = machine[pc + 1]; pc 345 lib/asn1_decoder.c act = machine[pc + 2]; pc 353 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 362 lib/asn1_decoder.c jump_stack[jsp++] = pc + asn1_op_lengths[op]; pc 363 lib/asn1_decoder.c pc = machine[pc + 2]; pc 369 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 410 lib/asn1_decoder.c pc = machine[pc + 1]; pc 423 lib/asn1_decoder.c pc = machine[pc + 1]; pc 436 lib/asn1_decoder.c act = machine[pc + 2]; pc 438 lib/asn1_decoder.c act = machine[pc + 1]; pc 443 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 448 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 454 lib/asn1_decoder.c ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); pc 457 lib/asn1_decoder.c pc += asn1_op_lengths[op]; pc 463 lib/asn1_decoder.c pc = jump_stack[--jsp]; pc 473 lib/asn1_decoder.c op, pc); pc 516 lib/asn1_decoder.c errmsg, pc, dp, optag, tag, len); pc 2442 mm/slub.c int node, struct kmem_cache_cpu **pc) pc 2445 mm/slub.c struct kmem_cache_cpu *c = *pc; pc 2470 mm/slub.c *pc = c; pc 123 net/core/drop_monitor.c void *pc; pc 236 net/core/drop_monitor.c if (!memcmp(&location, &point->pc, sizeof(void *))) { pc 249 net/core/drop_monitor.c memcpy(point->pc, &location, sizeof(void *)); pc 500 net/core/drop_monitor.c NET_DM_SKB_CB(nskb)->pc = location; pc 598 net/core/drop_monitor.c u64 pc = (u64)(uintptr_t) NET_DM_SKB_CB(skb)->pc; pc 612 net/core/drop_monitor.c if (nla_put_u64_64bit(msg, NET_DM_ATTR_PC, pc, NET_DM_ATTR_PAD)) pc 615 net/core/drop_monitor.c snprintf(buf, sizeof(buf), "%pS", NET_DM_SKB_CB(skb)->pc); pc 891 net/core/filter.c int pc, ret = 0; pc 901 net/core/filter.c for (pc = 0; pc < flen; pc++) { pc 902 net/core/filter.c memvalid &= masks[pc]; pc 904 net/core/filter.c switch (filter[pc].code) { pc 907 net/core/filter.c memvalid |= (1 << filter[pc].k); pc 911 net/core/filter.c if (!(memvalid & (1 << filter[pc].k))) { pc 918 net/core/filter.c masks[pc + 1 + filter[pc].k] &= memvalid; pc 930 net/core/filter.c masks[pc + 1 + filter[pc].jt] &= memvalid; pc 931 net/core/filter.c masks[pc + 1 + filter[pc].jf] &= memvalid; pc 1036 net/core/filter.c int pc; pc 1039 net/core/filter.c for (pc = 0; pc < flen; pc++) { pc 1040 net/core/filter.c const struct sock_filter *ftest = &filter[pc]; pc 1072 net/core/filter.c if (ftest->k >= (unsigned int)(flen - pc - 1)) pc 1084 net/core/filter.c if (pc + ftest->jt + 1 >= flen || pc 1085 net/core/filter.c pc + ftest->jf + 1 >= flen) pc 45 samples/kprobes/kprobe_example.c p->symbol_name, p->addr, (long)regs->pc, (long)regs->pstate); pc 493 sound/pci/emu10k1/emufx.c static void snd_emu10k1_efx_write(struct snd_emu10k1 *emu, unsigned int pc, unsigned int data) pc 495 sound/pci/emu10k1/emufx.c pc += emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; pc 496 sound/pci/emu10k1/emufx.c snd_emu10k1_ptr_write(emu, pc, 0, data); pc 499 sound/pci/emu10k1/emufx.c unsigned int snd_emu10k1_efx_read(struct snd_emu10k1 *emu, unsigned int pc) pc 501 sound/pci/emu10k1/emufx.c pc += emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; pc 502 sound/pci/emu10k1/emufx.c return snd_emu10k1_ptr_read(emu, pc, 0); pc 595 sound/pci/emu10k1/emufx.c u32 pc, lo, hi; pc 597 sound/pci/emu10k1/emufx.c for (pc = 0; pc < (emu->audigy ? 2*1024 : 2*512); pc += 2) { pc 598 sound/pci/emu10k1/emufx.c if (!test_bit(pc / 2, icode->code_valid)) pc 601 sound/pci/emu10k1/emufx.c lo = *(__force u32 *)&icode->code[pc + 0]; pc 602 sound/pci/emu10k1/emufx.c hi = *(__force u32 *)&icode->code[pc + 1]; pc 604 sound/pci/emu10k1/emufx.c if (get_user(lo, &icode->code[pc + 0]) || pc 605 sound/pci/emu10k1/emufx.c get_user(hi, &icode->code[pc + 1])) pc 608 sound/pci/emu10k1/emufx.c snd_emu10k1_efx_write(emu, pc + 0, lo); pc 609 sound/pci/emu10k1/emufx.c snd_emu10k1_efx_write(emu, pc + 1, hi); pc 617 sound/pci/emu10k1/emufx.c u32 pc; pc 620 sound/pci/emu10k1/emufx.c for (pc = 0; pc < (emu->audigy ? 2*1024 : 2*512); pc += 2) { pc 621 sound/pci/emu10k1/emufx.c set_bit(pc / 2, icode->code_valid); pc 622 sound/pci/emu10k1/emufx.c if (put_user(snd_emu10k1_efx_read(emu, pc + 0), &icode->code[pc + 0])) pc 624 sound/pci/emu10k1/emufx.c if (put_user(snd_emu10k1_efx_read(emu, pc + 1), &icode->code[pc + 1])) pc 279 sound/pci/emu10k1/emuproc.c u32 pc; pc 284 sound/pci/emu10k1/emuproc.c for (pc = 0; pc < (emu->audigy ? 1024 : 512); pc++) { pc 287 sound/pci/emu10k1/emuproc.c low = snd_emu10k1_efx_read(emu, pc * 2); pc 288 sound/pci/emu10k1/emuproc.c high = snd_emu10k1_efx_read(emu, pc * 2 + 1); pc 296 sound/pci/emu10k1/emuproc.c pc, pc 305 sound/pci/emu10k1/emuproc.c pc, pc 299 sound/soc/uniphier/aio-compress.c u16 pc = be16_to_cpu((__be16)frm_a); pc 301 sound/soc/uniphier/aio-compress.c if (sub->iec_header && sub->iec_pc != pc) { pc 303 sound/soc/uniphier/aio-compress.c sub->iec_pc = pc; pc 304 sound/soc/uniphier/aio-compress.c ret = aio_oport_set_stream_type(sub, pc); pc 837 sound/soc/uniphier/aio-core.c enum IEC61937_PC pc) pc 842 sound/soc/uniphier/aio-core.c switch (pc) { pc 336 sound/soc/uniphier/aio.h enum IEC61937_PC pc); pc 35 tools/arch/mips/include/uapi/asm/kvm.h __u64 pc; pc 37 tools/arch/powerpc/include/uapi/asm/kvm.h __u64 pc; pc 254 tools/arch/x86/include/uapi/asm/kvm.h __u64 pc; pc 840 tools/bpf/bpf_dbg.c static bool bpf_pc_has_breakpoint(uint16_t pc) pc 847 tools/bpf/bpf_dbg.c if (bpf_breakpoints[i] == pc) pc 54 tools/bpf/bpf_jit_disasm.c int count, i, pc = 0; pc 86 tools/bpf/bpf_jit_disasm.c printf("%4x:\t", pc); pc 88 tools/bpf/bpf_jit_disasm.c count = disassemble(pc, &info); pc 93 tools/bpf/bpf_jit_disasm.c printf("%02x ", (uint8_t) image[pc + i]); pc 97 tools/bpf/bpf_jit_disasm.c pc += count; pc 98 tools/bpf/bpf_jit_disasm.c } while(count > 0 && pc < len); pc 86 tools/bpf/bpftool/jit_disasm.c int count, i, pc = 0; pc 143 tools/bpf/bpftool/jit_disasm.c func_ksym + pc, pc 156 tools/bpf/bpftool/jit_disasm.c jsonw_printf(json_wtr, "\"0x%x\"", pc); pc 161 tools/bpf/bpftool/jit_disasm.c printf("%4x:\t", pc); pc 164 tools/bpf/bpftool/jit_disasm.c count = disassemble(pc, &info); pc 181 tools/bpf/bpftool/jit_disasm.c (uint8_t)image[pc + i]); pc 187 tools/bpf/bpftool/jit_disasm.c (uint8_t)image[pc + i]); pc 195 tools/bpf/bpftool/jit_disasm.c pc += count; pc 196 tools/bpf/bpftool/jit_disasm.c } while (count > 0 && pc < len); pc 150 tools/include/linux/rbtree_augmented.h #define __rb_parent(pc) ((struct rb_node *)(pc & ~3)) pc 152 tools/include/linux/rbtree_augmented.h #define __rb_color(pc) ((pc) & 1) pc 153 tools/include/linux/rbtree_augmented.h #define __rb_is_black(pc) __rb_color(pc) pc 154 tools/include/linux/rbtree_augmented.h #define __rb_is_red(pc) (!__rb_color(pc)) pc 193 tools/include/linux/rbtree_augmented.h unsigned long pc; pc 203 tools/include/linux/rbtree_augmented.h pc = node->__rb_parent_color; pc 204 tools/include/linux/rbtree_augmented.h parent = __rb_parent(pc); pc 207 tools/include/linux/rbtree_augmented.h child->__rb_parent_color = pc; pc 210 tools/include/linux/rbtree_augmented.h rebalance = __rb_is_black(pc) ? parent : NULL; pc 214 tools/include/linux/rbtree_augmented.h tmp->__rb_parent_color = pc = node->__rb_parent_color; pc 215 tools/include/linux/rbtree_augmented.h parent = __rb_parent(pc); pc 270 tools/include/linux/rbtree_augmented.h pc = node->__rb_parent_color; pc 271 tools/include/linux/rbtree_augmented.h tmp = __rb_parent(pc); pc 275 tools/include/linux/rbtree_augmented.h successor->__rb_parent_color = pc; pc 280 tools/include/linux/rbtree_augmented.h successor->__rb_parent_color = pc; pc 5229 tools/lib/traceevent/event-parse.c unsigned int pc; pc 5238 tools/lib/traceevent/event-parse.c pc = parse_common_pc(tep, data); pc 5273 tools/lib/traceevent/event-parse.c if (pc) pc 5274 tools/lib/traceevent/event-parse.c trace_seq_printf(&sq, "%x", pc); pc 97 tools/perf/arch/powerpc/util/skip-callchain-idx.c static Dwarf_Frame *get_eh_frame(Dwfl_Module *mod, Dwarf_Addr pc) pc 110 tools/perf/arch/powerpc/util/skip-callchain-idx.c result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); pc 122 tools/perf/arch/powerpc/util/skip-callchain-idx.c static Dwarf_Frame *get_dwarf_frame(Dwfl_Module *mod, Dwarf_Addr pc) pc 135 tools/perf/arch/powerpc/util/skip-callchain-idx.c result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); pc 152 tools/perf/arch/powerpc/util/skip-callchain-idx.c static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) pc 159 tools/perf/arch/powerpc/util/skip-callchain-idx.c Dwarf_Addr start = pc; pc 160 tools/perf/arch/powerpc/util/skip-callchain-idx.c Dwarf_Addr end = pc; pc 189 tools/perf/arch/powerpc/util/skip-callchain-idx.c mod = dwfl_addrmodule(dwfl, pc); pc 199 tools/perf/arch/powerpc/util/skip-callchain-idx.c frame = get_eh_frame(mod, pc); pc 201 tools/perf/arch/powerpc/util/skip-callchain-idx.c frame = get_dwarf_frame(mod, pc); pc 65 tools/perf/arch/x86/tests/perf-time-to-tsc.c struct perf_event_mmap_page *pc; pc 96 tools/perf/arch/x86/tests/perf-time-to-tsc.c pc = evlist->mmap[0].core.base; pc 97 tools/perf/arch/x86/tests/perf-time-to-tsc.c ret = perf_read_tsc_conversion(pc, &tc); pc 39 tools/perf/arch/x86/tests/rdpmc.c struct perf_event_mmap_page *pc = addr; pc 44 tools/perf/arch/x86/tests/rdpmc.c seq = pc->lock; pc 47 tools/perf/arch/x86/tests/rdpmc.c enabled = pc->time_enabled; pc 48 tools/perf/arch/x86/tests/rdpmc.c running = pc->time_running; pc 52 tools/perf/arch/x86/tests/rdpmc.c time_mult = pc->time_mult; pc 53 tools/perf/arch/x86/tests/rdpmc.c time_shift = pc->time_shift; pc 54 tools/perf/arch/x86/tests/rdpmc.c time_offset = pc->time_offset; pc 57 tools/perf/arch/x86/tests/rdpmc.c idx = pc->index; pc 58 tools/perf/arch/x86/tests/rdpmc.c count = pc->offset; pc 63 tools/perf/arch/x86/tests/rdpmc.c } while (pc->lock != seq); pc 70 tools/perf/arch/x86/util/intel-bts.c struct perf_event_mmap_page *pc; pc 81 tools/perf/arch/x86/util/intel-bts.c pc = session->evlist->mmap[0].core.base; pc 82 tools/perf/arch/x86/util/intel-bts.c if (pc) { pc 83 tools/perf/arch/x86/util/intel-bts.c err = perf_read_tsc_conversion(pc, &tc); pc 324 tools/perf/arch/x86/util/intel-pt.c struct perf_event_mmap_page *pc; pc 358 tools/perf/arch/x86/util/intel-pt.c pc = session->evlist->mmap[0].core.base; pc 359 tools/perf/arch/x86/util/intel-pt.c if (pc) { pc 360 tools/perf/arch/x86/util/intel-pt.c err = perf_read_tsc_conversion(pc, &tc); pc 15 tools/perf/arch/x86/util/tsc.c int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, pc 23 tools/perf/arch/x86/util/tsc.c seq = pc->lock; pc 25 tools/perf/arch/x86/util/tsc.c tc->time_mult = pc->time_mult; pc 26 tools/perf/arch/x86/util/tsc.c tc->time_shift = pc->time_shift; pc 27 tools/perf/arch/x86/util/tsc.c tc->time_zero = pc->time_zero; pc 28 tools/perf/arch/x86/util/tsc.c cap_user_time_zero = pc->cap_user_time_zero; pc 30 tools/perf/arch/x86/util/tsc.c if (pc->lock == seq && !(seq & 1)) pc 53 tools/perf/arch/x86/util/tsc.c int perf_event__synth_time_conv(const struct perf_event_mmap_page *pc, pc 69 tools/perf/arch/x86/util/tsc.c if (!pc) pc 71 tools/perf/arch/x86/util/tsc.c err = perf_read_tsc_conversion(pc, &tc); pc 1211 tools/perf/builtin-record.c const struct perf_event_mmap_page *pc; pc 1213 tools/perf/builtin-record.c pc = perf_evlist__pick_pc(rec->evlist); pc 1214 tools/perf/builtin-record.c if (pc) pc 1215 tools/perf/builtin-record.c return pc; pc 471 tools/perf/jvmti/jvmti_agent.c addr = (uint64_t)li[i].pc; pc 14 tools/perf/jvmti/jvmti_agent.h unsigned long pc; pc 35 tools/perf/jvmti/libjvmti.c do_get_line_numbers(jvmtiEnv *jvmti, void *pc, jmethodID m, jint bci, pc 51 tools/perf/jvmti/libjvmti.c tab[lines].pc = (unsigned long)pc; pc 119 tools/perf/jvmti/libjvmti.c ret = do_get_line_numbers(jvmti, c->pc, pc 1724 tools/perf/util/annotate.c int pc = 0, count, sub_id; pc 1803 tools/perf/util/annotate.c addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; pc 1804 tools/perf/util/annotate.c count = disassemble(pc, &info); pc 1833 tools/perf/util/annotate.c args->offset = pc; pc 1841 tools/perf/util/annotate.c pc += count; pc 1842 tools/perf/util/annotate.c } while (count > 0 && pc < len); pc 70 tools/perf/util/auxtrace.c struct perf_event_mmap_page *pc = userpg; pc 92 tools/perf/util/auxtrace.c pc->aux_offset = mp->offset; pc 93 tools/perf/util/auxtrace.c pc->aux_size = mp->len; pc 395 tools/perf/util/auxtrace.h struct perf_event_mmap_page *pc = mm->userpg; pc 396 tools/perf/util/auxtrace.h u64 head = READ_ONCE(pc->aux_head); pc 405 tools/perf/util/auxtrace.h struct perf_event_mmap_page *pc = mm->userpg; pc 407 tools/perf/util/auxtrace.h u64 head = READ_ONCE(pc->aux_head); pc 409 tools/perf/util/auxtrace.h u64 head = __sync_val_compare_and_swap(&pc->aux_head, 0, 0); pc 419 tools/perf/util/auxtrace.h struct perf_event_mmap_page *pc = mm->userpg; pc 427 tools/perf/util/auxtrace.h pc->aux_tail = tail; pc 430 tools/perf/util/auxtrace.h old_tail = __sync_val_compare_and_swap(&pc->aux_tail, 0, 0); pc 431 tools/perf/util/auxtrace.h } while (!__sync_bool_compare_and_swap(&pc->aux_tail, old_tail, tail)); pc 193 tools/perf/util/srcline.c bfd_vma pc, vma; pc 209 tools/perf/util/srcline.c pc = a2l->addr; pc 221 tools/perf/util/srcline.c if (pc < vma || pc >= vma + size) pc 224 tools/perf/util/srcline.c a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, pc 1813 tools/perf/util/synthetic-events.c int __weak perf_event__synth_time_conv(const struct perf_event_mmap_page *pc __maybe_unused, pc 57 tools/perf/util/synthetic-events.h int perf_event__synth_time_conv(const struct perf_event_mmap_page *pc, struct perf_tool *tool, perf_event__handler_t process, struct machine *machine); pc 15 tools/perf/util/tsc.h int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, pc 171 tools/perf/util/unwind-libdw.c Dwarf_Addr pc; pc 174 tools/perf/util/unwind-libdw.c if (!dwfl_frame_pc(state, &pc, NULL)) { pc 180 tools/perf/util/unwind-libdw.c report_module(pc, ui); pc 182 tools/perf/util/unwind-libdw.c if (!dwfl_frame_pc(state, &pc, &isactivation)) { pc 188 tools/perf/util/unwind-libdw.c --pc; pc 190 tools/perf/util/unwind-libdw.c return entry(pc, ui) || !(--ui->max_stack) ? pc 168 tools/power/cpupower/utils/cpufreq-set.c unsigned long freq, unsigned int pc) pc 170 tools/power/cpupower/utils/cpufreq-set.c switch (pc) { pc 455 tools/testing/selftests/bpf/bpf_helpers.h #define PT_REGS_IP(x) (((PT_REGS_ARM64 *)(x))->pc) pc 496 tools/testing/selftests/bpf/bpf_helpers.h #define PT_REGS_IP(x) ((x)->pc) pc 307 tools/testing/selftests/kvm/lib/aarch64/processor.c uint64_t pstate, pc; pc 310 tools/testing/selftests/kvm/lib/aarch64/processor.c get_reg(vm, vcpuid, ARM64_CORE_REG(regs.pc), &pc); pc 313 tools/testing/selftests/kvm/lib/aarch64/processor.c indent, "", pstate, pc); pc 329 tools/testing/selftests/kvm/lib/aarch64/processor.c set_reg(vm, vcpuid, ARM64_CORE_REG(regs.pc), (uint64_t)guest_code); pc 22 tools/testing/selftests/powerpc/alignment/copy_first_unaligned.c unsigned int *pc = (unsigned int *)ctx->uc_mcontext.gp_regs[PT_NIP]; pc 24 tools/testing/selftests/powerpc/alignment/copy_first_unaligned.c unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP]; pc 31 tools/testing/selftests/powerpc/alignment/copy_first_unaligned.c if ((*pc & instruction_mask) == expected_instruction) pc 247 tools/testing/selftests/powerpc/utils.c unsigned long *pc = &UCONTEXT_NIA(ctx); pc 250 tools/testing/selftests/powerpc/utils.c if ((*((unsigned int *)*pc) & 0xfc1fffff) == 0x7c0303a6) { pc 253 tools/testing/selftests/powerpc/utils.c *pc += 4; pc 255 tools/testing/selftests/powerpc/utils.c printf("SIGILL at %p\n", pc); pc 128 virt/kvm/arm/hyp/aarch32.c u32 pc = *vcpu_pc(vcpu); pc 133 virt/kvm/arm/hyp/aarch32.c pc += 2; pc 135 virt/kvm/arm/hyp/aarch32.c pc += 4; pc 137 virt/kvm/arm/hyp/aarch32.c *vcpu_pc(vcpu) = pc; pc 122 virt/kvm/arm/psci.c reset_state->pc = smccc_get_arg2(source_vcpu);