/linux-4.4.14/drivers/isdn/hisax/ |
D | l3_1tr6.c | 31 l3_1TR6_message(struct l3_process *pc, u_char mt, u_char pd) in l3_1TR6_message() argument 39 MsgHead(p, pc->callref, mt, pd); in l3_1TR6_message() 40 l3_msg(pc->st, DL_DATA | REQUEST, skb); in l3_1TR6_message() 44 l3_1tr6_release_req(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_release_req() argument 46 StopAllL3Timer(pc); in l3_1tr6_release_req() 47 newl3state(pc, 19); in l3_1tr6_release_req() 48 l3_1TR6_message(pc, MT_N1_REL, PROTO_DIS_N1); in l3_1tr6_release_req() 49 L3AddTimer(&pc->timer, T308, CC_T308_1); in l3_1tr6_release_req() 53 l3_1tr6_invalid(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_invalid() argument 58 l3_1tr6_release_req(pc, 0, NULL); in l3_1tr6_invalid() [all …]
|
D | l3ni1.c | 113 { struct l3_process *pc = st->l3.proc; /* start of processes */ in l3ni1_search_dummy_proc() local 117 while (pc) in l3ni1_search_dummy_proc() 118 { if ((pc->callref == -1) && (pc->prot.ni1.invoke_id == id)) in l3ni1_search_dummy_proc() 119 return (pc); in l3ni1_search_dummy_proc() 120 pc = pc->next; in l3ni1_search_dummy_proc() 133 struct l3_process *pc = NULL; in l3ni1_dummy_return_result() local 135 if ((pc = l3ni1_search_dummy_proc(st, id))) in l3ni1_dummy_return_result() 136 { L3DelTimer(&pc->timer); /* remove timer */ in l3ni1_dummy_return_result() 138 cs = pc->st->l1.hardware; in l3ni1_dummy_return_result() 142 ic.parm.ni1_io.hl_id = pc->prot.ni1.invoke_id; in l3ni1_dummy_return_result() [all …]
|
D | l3dss1.c | 114 { struct l3_process *pc = st->l3.proc; /* start of processes */ in l3dss1_search_dummy_proc() local 118 while (pc) in l3dss1_search_dummy_proc() 119 { if ((pc->callref == -1) && (pc->prot.dss1.invoke_id == id)) in l3dss1_search_dummy_proc() 120 return (pc); in l3dss1_search_dummy_proc() 121 pc = pc->next; in l3dss1_search_dummy_proc() 134 struct l3_process *pc = NULL; in l3dss1_dummy_return_result() local 136 if ((pc = l3dss1_search_dummy_proc(st, id))) in l3dss1_dummy_return_result() 137 { L3DelTimer(&pc->timer); /* remove timer */ in l3dss1_dummy_return_result() 139 cs = pc->st->l1.hardware; in l3dss1_dummy_return_result() 143 ic.parm.dss1_io.hl_id = pc->prot.dss1.invoke_id; in l3dss1_dummy_return_result() [all …]
|
D | isdnl3.c | 153 newl3state(struct l3_process *pc, int state) in newl3state() argument 155 if (pc->debug & L3_DEB_STATE) in newl3state() 156 l3_debug(pc->st, "%s cr %d %d --> %d", __func__, in newl3state() 157 pc->callref & 0x7F, in newl3state() 158 pc->state, state); in newl3state() 159 pc->state = state; in newl3state() 165 t->pc->st->lli.l4l3(t->pc->st, t->event, t->pc); in L3ExpireTimer() 169 L3InitTimer(struct l3_process *pc, struct L3Timer *t) in L3InitTimer() argument 171 t->pc = pc; in L3InitTimer() 199 StopAllL3Timer(struct l3_process *pc) in StopAllL3Timer() argument [all …]
|
D | isdnl3.h | 30 void newl3state(struct l3_process *pc, int state); 31 void L3InitTimer(struct l3_process *pc, struct L3Timer *t); 34 void StopAllL3Timer(struct l3_process *pc);
|
/linux-4.4.14/drivers/pwm/ |
D | pwm-sti.c | 81 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, in sti_pwm_get_prescale() argument 84 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_get_prescale() 91 val = NSEC_PER_SEC / pc->clk_rate; in sti_pwm_get_prescale() 118 struct sti_pwm_chip *pc = to_sti_pwmchip(chip); in sti_pwm_config() local 119 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_config() 120 struct pwm_device *cur = pc->cur; in sti_pwm_config() 121 struct device *dev = pc->dev; in sti_pwm_config() 127 ncfg = hweight_long(pc->configured); in sti_pwm_config() 147 ret = clk_enable(pc->clk); in sti_pwm_config() 152 ret = sti_pwm_get_prescale(pc, period_ns, &prescale); in sti_pwm_config() [all …]
|
D | pwm-tiecap.c | 68 struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); in ecap_pwm_config() local 76 c = pc->clk_rate; in ecap_pwm_config() 85 c = pc->clk_rate; in ecap_pwm_config() 91 pm_runtime_get_sync(pc->chip.dev); in ecap_pwm_config() 93 reg_val = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config() 98 writew(reg_val, pc->mmio_base + ECCTL2); in ecap_pwm_config() 102 writel(duty_cycles, pc->mmio_base + CAP2); in ecap_pwm_config() 103 writel(period_cycles, pc->mmio_base + CAP1); in ecap_pwm_config() 110 writel(duty_cycles, pc->mmio_base + CAP4); in ecap_pwm_config() 111 writel(period_cycles, pc->mmio_base + CAP3); in ecap_pwm_config() [all …]
|
D | pwm-tiehrpwm.c | 199 static void configure_polarity(struct ehrpwm_pwm_chip *pc, int chan) in configure_polarity() argument 214 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) in configure_polarity() 222 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) in configure_polarity() 229 ehrpwm_modify(pc->mmio_base, aqctl_reg, aqctl_mask, aqctl_val); in configure_polarity() 239 struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); in ehrpwm_pwm_config() local 248 c = pc->clk_rate; in ehrpwm_pwm_config() 257 c = pc->clk_rate; in ehrpwm_pwm_config() 268 if (pc->period_cycles[i] && in ehrpwm_pwm_config() 269 (pc->period_cycles[i] != period_cycles)) { in ehrpwm_pwm_config() 283 pc->period_cycles[pwm->hwpwm] = period_cycles; in ehrpwm_pwm_config() [all …]
|
D | pwm-rockchip.c | 64 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); in rockchip_pwm_set_enable_v1() local 68 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_set_enable_v1() 75 writel_relaxed(val, pc->base + pc->data->regs.ctrl); in rockchip_pwm_set_enable_v1() 81 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); in rockchip_pwm_set_enable_v2() local 91 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_set_enable_v2() 98 writel_relaxed(val, pc->base + pc->data->regs.ctrl); in rockchip_pwm_set_enable_v2() 104 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); in rockchip_pwm_config() local 109 clk_rate = clk_get_rate(pc->clk); in rockchip_pwm_config() 117 do_div(div, pc->data->prescaler * NSEC_PER_SEC); in rockchip_pwm_config() 121 do_div(div, pc->data->prescaler * NSEC_PER_SEC); in rockchip_pwm_config() [all …]
|
D | pwm-bcm2835.c | 44 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_request() local 47 value = readl(pc->base + PWM_CONTROL); in bcm2835_pwm_request() 50 writel(value, pc->base + PWM_CONTROL); in bcm2835_pwm_request() 57 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_free() local 60 value = readl(pc->base + PWM_CONTROL); in bcm2835_pwm_free() 62 writel(value, pc->base + PWM_CONTROL); in bcm2835_pwm_free() 68 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_config() local 71 dev_err(pc->dev, "period %d not supported, minimum %d\n", in bcm2835_pwm_config() 76 writel(duty_ns / pc->scaler, pc->base + DUTY(pwm->hwpwm)); in bcm2835_pwm_config() 77 writel(period_ns / pc->scaler, pc->base + PERIOD(pwm->hwpwm)); in bcm2835_pwm_config() [all …]
|
D | pwm-spear.c | 80 struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); in spear_pwm_config() local 95 clk_rate = clk_get_rate(pc->clk); in spear_pwm_config() 124 ret = clk_enable(pc->clk); in spear_pwm_config() 128 spear_pwm_writel(pc, pwm->hwpwm, PWMCR, in spear_pwm_config() 130 spear_pwm_writel(pc, pwm->hwpwm, PWMDCR, dc); in spear_pwm_config() 131 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); in spear_pwm_config() 132 clk_disable(pc->clk); in spear_pwm_config() 139 struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); in spear_pwm_enable() local 143 rc = clk_enable(pc->clk); in spear_pwm_enable() 147 val = spear_pwm_readl(pc, pwm->hwpwm, PWMCR); in spear_pwm_enable() [all …]
|
D | pwm-tegra.c | 69 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_config() local 89 rate = clk_get_rate(pc->clk) >> PWM_DUTY_WIDTH; in tegra_pwm_config() 116 err = clk_prepare_enable(pc->clk); in tegra_pwm_config() 122 pwm_writel(pc, pwm->hwpwm, val); in tegra_pwm_config() 128 clk_disable_unprepare(pc->clk); in tegra_pwm_config() 135 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_enable() local 139 rc = clk_prepare_enable(pc->clk); in tegra_pwm_enable() 143 val = pwm_readl(pc, pwm->hwpwm); in tegra_pwm_enable() 145 pwm_writel(pc, pwm->hwpwm, val); in tegra_pwm_enable() 152 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_disable() local [all …]
|
D | pwm-pxa.c | 66 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_config() local 74 c = clk_get_rate(pc->clk); in pxa_pwm_config() 95 rc = clk_prepare_enable(pc->clk); in pxa_pwm_config() 99 writel(prescale, pc->mmio_base + offset + PWMCR); in pxa_pwm_config() 100 writel(dc, pc->mmio_base + offset + PWMDCR); in pxa_pwm_config() 101 writel(pv, pc->mmio_base + offset + PWMPCR); in pxa_pwm_config() 103 clk_disable_unprepare(pc->clk); in pxa_pwm_config() 109 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_enable() local 111 return clk_prepare_enable(pc->clk); in pxa_pwm_enable() 116 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_disable() local [all …]
|
D | core.c | 135 of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_xlate_with_flags() argument 139 if (pc->of_pwm_n_cells < 3) in of_pwm_xlate_with_flags() 142 if (args->args[0] >= pc->npwm) in of_pwm_xlate_with_flags() 145 pwm = pwm_request_from_chip(pc, args->args[0], NULL); in of_pwm_xlate_with_flags() 161 of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_simple_xlate() argument 165 if (pc->of_pwm_n_cells < 2) in of_pwm_simple_xlate() 168 if (args->args[0] >= pc->npwm) in of_pwm_simple_xlate() 171 pwm = pwm_request_from_chip(pc, args->args[0], NULL); in of_pwm_simple_xlate() 574 struct pwm_chip *pc; in of_pwm_get() local 591 pc = of_node_to_pwmchip(args.np); in of_pwm_get() [all …]
|
/linux-4.4.14/drivers/bcma/ |
D | driver_pci.c | 20 u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) in bcma_pcie_read() argument 22 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); in bcma_pcie_read() 23 pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); in bcma_pcie_read() 24 return pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_DATA); in bcma_pcie_read() 27 static void bcma_pcie_write(struct bcma_drv_pci *pc, u32 address, u32 data) in bcma_pcie_write() argument 29 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); in bcma_pcie_write() 30 pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); in bcma_pcie_write() 31 pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_DATA, data); in bcma_pcie_write() 34 static void bcma_pcie_mdio_set_phy(struct bcma_drv_pci *pc, u16 phy) in bcma_pcie_mdio_set_phy() argument 47 pcicore_write32(pc, BCMA_CORE_PCI_MDIO_DATA, v); in bcma_pcie_mdio_set_phy() [all …]
|
D | driver_pci_host.c | 28 bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) in bcma_core_pci_is_in_hostmode() argument 30 struct bcma_bus *bus = pc->core->bus; in bcma_core_pci_is_in_hostmode() 39 bcma_core_enable(pc->core, 0); in bcma_core_pci_is_in_hostmode() 41 return !mips_busprobe32(tmp, pc->core->io_addr); in bcma_core_pci_is_in_hostmode() 44 static u32 bcma_pcie_read_config(struct bcma_drv_pci *pc, u32 address) in bcma_pcie_read_config() argument 46 pcicore_write32(pc, BCMA_CORE_PCI_CONFIG_ADDR, address); in bcma_pcie_read_config() 47 pcicore_read32(pc, BCMA_CORE_PCI_CONFIG_ADDR); in bcma_pcie_read_config() 48 return pcicore_read32(pc, BCMA_CORE_PCI_CONFIG_DATA); in bcma_pcie_read_config() 51 static void bcma_pcie_write_config(struct bcma_drv_pci *pc, u32 address, in bcma_pcie_write_config() argument 54 pcicore_write32(pc, BCMA_CORE_PCI_CONFIG_ADDR, address); in bcma_pcie_write_config() [all …]
|
D | bcma_private.h | 111 u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); 112 void bcma_core_pci_early_init(struct bcma_drv_pci *pc); 113 void bcma_core_pci_init(struct bcma_drv_pci *pc); 114 void bcma_core_pci_up(struct bcma_drv_pci *pc); 115 void bcma_core_pci_down(struct bcma_drv_pci *pc); 117 static inline void bcma_core_pci_early_init(struct bcma_drv_pci *pc) in bcma_core_pci_early_init() argument 119 WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); in bcma_core_pci_early_init() 121 static inline void bcma_core_pci_init(struct bcma_drv_pci *pc) in bcma_core_pci_init() argument 124 WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); in bcma_core_pci_init() 143 bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc); [all …]
|
/linux-4.4.14/drivers/pinctrl/bcm/ |
D | pinctrl-bcm2835.c | 90 struct bcm2835_pinctrl *pc; member 264 static inline u32 bcm2835_gpio_rd(struct bcm2835_pinctrl *pc, unsigned reg) in bcm2835_gpio_rd() argument 266 return readl(pc->base + reg); in bcm2835_gpio_rd() 269 static inline void bcm2835_gpio_wr(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_wr() argument 272 writel(val, pc->base + reg); in bcm2835_gpio_wr() 275 static inline int bcm2835_gpio_get_bit(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_get_bit() argument 279 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit() 283 static inline void bcm2835_gpio_set_bit(struct bcm2835_pinctrl *pc, in bcm2835_gpio_set_bit() argument 287 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit() 291 struct bcm2835_pinctrl *pc, unsigned pin) in bcm2835_pinctrl_fsel_get() argument [all …]
|
/linux-4.4.14/drivers/ssb/ |
D | driver_pcicore.c | 19 static u32 ssb_pcie_read(struct ssb_pcicore *pc, u32 address); 20 static void ssb_pcie_write(struct ssb_pcicore *pc, u32 address, u32 data); 21 static u16 ssb_pcie_mdio_read(struct ssb_pcicore *pc, u8 device, u8 address); 22 static void ssb_pcie_mdio_write(struct ssb_pcicore *pc, u8 device, 26 u32 pcicore_read32(struct ssb_pcicore *pc, u16 offset) in pcicore_read32() argument 28 return ssb_read32(pc->dev, offset); in pcicore_read32() 32 void pcicore_write32(struct ssb_pcicore *pc, u16 offset, u32 value) in pcicore_write32() argument 34 ssb_write32(pc->dev, offset, value); in pcicore_write32() 38 u16 pcicore_read16(struct ssb_pcicore *pc, u16 offset) in pcicore_read16() argument 40 return ssb_read16(pc->dev, offset); in pcicore_read16() [all …]
|
/linux-4.4.14/arch/mn10300/kernel/ |
D | kprobes.c | 133 u8 opc, *pc, *sp, *next; in find_nextpc() local 138 pc = (u8 *) regs->pc; in find_nextpc() 140 opc = *pc; in find_nextpc() 144 next = pc + size; in find_nextpc() 151 x8 = (s8)pc[1]; in find_nextpc() 152 next = pc + x8; in find_nextpc() 159 READ_WORD16(pc + 1, &x16); in find_nextpc() 160 next = pc + x16; in find_nextpc() 167 READ_WORD32(pc + 1, &x32); in find_nextpc() 168 next = pc + x32; in find_nextpc() [all …]
|
D | kgdb.c | 45 gdb_regs[GDB_FR_PC] = regs->pc; in pt_regs_to_gdb_regs() 77 gdb_regs[GDB_FR_PC] = p->thread.pc; in sleeping_thread_to_gdb_regs() 97 regs->pc = gdb_regs[GDB_FR_PC]; in gdb_regs_to_pt_regs() 159 u8 *pc = (u8 *)regs->pc, *sp = (u8 *)(regs + 1), cur; in kgdb_arch_do_singlestep() local 163 ret = probe_kernel_read(&cur, pc, 1); in kgdb_arch_do_singlestep() 169 x = pc + size; in kgdb_arch_do_singlestep() 176 ret = probe_kernel_read(&arg, pc + 1, 1); in kgdb_arch_do_singlestep() 179 x = pc + 2; in kgdb_arch_do_singlestep() 182 y = pc + (s8)arg; in kgdb_arch_do_singlestep() 187 x = pc + 1; in kgdb_arch_do_singlestep() [all …]
|
D | gdb-stub.c | 495 uint8_t cur, *pc, *sp; in gdbstub_single_step() local 505 pc = (u8 *) regs->pc; in gdbstub_single_step() 507 if (gdbstub_read_byte(pc, &cur) < 0) in gdbstub_single_step() 510 gdbstub_bkpt("Single Step from %p { %02x }\n", pc, cur); in gdbstub_single_step() 516 if (!__gdbstub_mark_bp(pc + size, 0)) in gdbstub_single_step() 522 if (gdbstub_read_byte(pc + 1, (u8 *) &x) < 0) in gdbstub_single_step() 524 if (!__gdbstub_mark_bp(pc + 2, 0)) in gdbstub_single_step() 527 !__gdbstub_mark_bp(pc + (s8) x, 1)) in gdbstub_single_step() 533 if (!__gdbstub_mark_bp(pc + 1, 0)) in gdbstub_single_step() 535 if (regs->pc != regs->lar && in gdbstub_single_step() [all …]
|
D | traps.c | 159 if (probe_kernel_read(&opcode, (u8 *)regs->pc, 1) < 0) in die_if_no_fixup() 165 regs->pc++; in die_if_no_fixup() 173 regs->pc -= 2; in die_if_no_fixup() 177 if (report_bug(regs->pc, regs) == BUG_TRAP_TYPE_WARN) in die_if_no_fixup() 181 regs->pc -= 2; in die_if_no_fixup() 213 info.si_addr = (void *) regs->pc; in handle_exception() 306 regs->pc, regs->epsw, ssp, user_mode(regs) ? "User" : "Super"); in show_registers_only() 366 if (regs->pc < PAGE_OFFSET) in show_registers() 371 if (__get_user(c, &((unsigned char *) regs->pc)[i])) in show_registers() 415 if (regs->pc >= 0x02000000 && regs->pc < 0x04000000 && in die() [all …]
|
/linux-4.4.14/arch/microblaze/kernel/ |
D | unwind.c | 76 static unsigned long *find_frame_creation(unsigned long *pc) in find_frame_creation() argument 85 for (i = 0; i < 1000; i++, pc--) { in find_frame_creation() 89 if (!kernel_text_address((unsigned long) pc)) in find_frame_creation() 92 instr = *pc; in find_frame_creation() 101 frame_size, pc); in find_frame_creation() 105 pr_debug(" Found frame creation at 0x%p, size %d\n", pc, in find_frame_creation() 107 return pc; in find_frame_creation() 124 static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, in lookup_prev_stack_frame() argument 132 if (pc != (unsigned long) &_switch_to) in lookup_prev_stack_frame() 133 prologue = find_frame_creation((unsigned long *)pc); in lookup_prev_stack_frame() [all …]
|
D | kgdb.c | 89 if (*(u32 *) (regs->pc) == *(u32 *) (&arch_kgdb_ops.gdb_bpt_instr)) in microblaze_kgdb_break() 90 regs->pc += BREAK_INSTR_SIZE; in microblaze_kgdb_break() 110 regs->pc = ip; in kgdb_arch_set_pc() 125 regs->pc = address; in kgdb_arch_handle_exception()
|
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/ |
D | ptlrpcd.c | 231 struct ptlrpcd_ctl *pc; in ptlrpcd_add_req() local 259 pc = ptlrpcd_select_pc(req); in ptlrpcd_add_req() 262 req, pc->pc_name, pc->pc_index); in ptlrpcd_add_req() 264 ptlrpc_set_add_new_req(pc, req); in ptlrpcd_add_req() 277 static int ptlrpcd_check(struct lu_env *env, struct ptlrpcd_ctl *pc) in ptlrpcd_check() argument 281 struct ptlrpc_request_set *set = pc->pc_set; in ptlrpcd_check() 343 if (rc == 0 && pc->pc_npartners > 0) { in ptlrpcd_check() 346 int first = pc->pc_cursor; in ptlrpcd_check() 349 partner = pc->pc_partners[pc->pc_cursor++]; in ptlrpcd_check() 350 if (pc->pc_cursor >= pc->pc_npartners) in ptlrpcd_check() [all …]
|
/linux-4.4.14/drivers/pinctrl/meson/ |
D | pinctrl-meson.c | 102 static int meson_get_domain_and_bank(struct meson_pinctrl *pc, unsigned int pin, in meson_get_domain_and_bank() argument 109 for (i = 0; i < pc->data->num_domains; i++) { in meson_get_domain_and_bank() 110 d = &pc->domains[i]; in meson_get_domain_and_bank() 142 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_groups_count() local 144 return pc->data->num_groups; in meson_get_groups_count() 150 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_name() local 152 return pc->data->groups[selector].name; in meson_get_group_name() 158 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_pins() local 160 *pins = pc->data->groups[selector].pins; in meson_get_group_pins() 161 *num_pins = pc->data->groups[selector].num_pins; in meson_get_group_pins() [all …]
|
/linux-4.4.14/drivers/ide/ |
D | ide-floppy.c | 65 struct ide_atapi_pc *pc = drive->pc; in ide_floppy_callback() local 66 struct request *rq = pc->rq; in ide_floppy_callback() 67 int uptodate = pc->error ? 0 : 1; in ide_floppy_callback() 71 if (drive->failed_pc == pc) in ide_floppy_callback() 74 if (pc->c[0] == GPCMD_READ_10 || pc->c[0] == GPCMD_WRITE_10 || in ide_floppy_callback() 77 else if (pc->c[0] == GPCMD_REQUEST_SENSE) { in ide_floppy_callback() 81 if (!pc->error) { in ide_floppy_callback() 107 struct ide_atapi_pc *pc) in ide_floppy_report_error() argument 117 floppy->drive->name, pc->c[0], floppy->sense_key, in ide_floppy_report_error() 124 struct ide_atapi_pc *pc) in ide_floppy_issue_pc() argument [all …]
|
D | ide-floppy_ioctl.c | 37 struct ide_atapi_pc *pc, in ide_floppy_get_format_capacities() argument 51 ide_floppy_create_read_capacity_cmd(pc); in ide_floppy_get_format_capacities() 53 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { in ide_floppy_get_format_capacities() 97 static void ide_floppy_create_format_unit_cmd(struct ide_atapi_pc *pc, in ide_floppy_create_format_unit_cmd() argument 101 ide_init_pc(pc); in ide_floppy_create_format_unit_cmd() 102 pc->c[0] = GPCMD_FORMAT_UNIT; in ide_floppy_create_format_unit_cmd() 103 pc->c[1] = 0x17; in ide_floppy_create_format_unit_cmd() 115 pc->req_xfer = 12; in ide_floppy_create_format_unit_cmd() 116 pc->flags |= PC_FLAG_WRITING; in ide_floppy_create_format_unit_cmd() 119 static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_floppy_get_sfrp_bit() argument [all …]
|
D | ide-tape.c | 271 struct ide_atapi_pc *pc = drive->failed_pc; in idetape_analyze_error() local 284 if (pc->flags & PC_FLAG_DMA_ERROR) in idetape_analyze_error() 292 if ((pc->c[0] == READ_6 || pc->c[0] == WRITE_6) in idetape_analyze_error() 294 && pc->c[4] == 0 && pc->c[3] == 0 && pc->c[2] == 0) { in idetape_analyze_error() 297 pc->error = 0; in idetape_analyze_error() 299 pc->flags |= PC_FLAG_ABORT; in idetape_analyze_error() 302 if (pc->c[0] == READ_6 && (sense[2] & 0x80)) { in idetape_analyze_error() 303 pc->error = IDE_DRV_ERROR_FILEMARK; in idetape_analyze_error() 304 pc->flags |= PC_FLAG_ABORT; in idetape_analyze_error() 306 if (pc->c[0] == WRITE_6) { in idetape_analyze_error() [all …]
|
D | ide-atapi.c | 79 void ide_init_pc(struct ide_atapi_pc *pc) in ide_init_pc() argument 81 memset(pc, 0, sizeof(*pc)); in ide_init_pc() 90 struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) in ide_queue_pc_tail() argument 97 rq->special = (char *)pc; in ide_queue_pc_tail() 106 memcpy(rq->cmd, pc->c, 12); in ide_queue_pc_tail() 118 struct ide_atapi_pc pc; in ide_do_test_unit_ready() local 120 ide_init_pc(&pc); in ide_do_test_unit_ready() 121 pc.c[0] = TEST_UNIT_READY; in ide_do_test_unit_ready() 123 return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); in ide_do_test_unit_ready() 129 struct ide_atapi_pc pc; in ide_do_start_stop() local [all …]
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | stacktrace.c | 42 unsigned long pc = regs->pc; in xtensa_backtrace_user() local 49 frame.pc = pc; in xtensa_backtrace_user() 52 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user() 75 pc = MAKE_PC_FROM_RA(a0, pc); in xtensa_backtrace_user() 82 frame.pc = pc; in xtensa_backtrace_user() 85 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user() 115 pc = MAKE_PC_FROM_RA(a0, pc); in xtensa_backtrace_user() 119 frame.pc = pc; in xtensa_backtrace_user() 122 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user() 133 unsigned long pc = regs->depc > VALID_DOUBLE_EXCEPTION_ADDRESS ? in xtensa_backtrace_kernel() local [all …]
|
D | process.c | 286 unsigned long sp, pc; in get_wchan() local 294 pc = MAKE_PC_FROM_RA(p->thread.ra, p->thread.sp); in get_wchan() 299 pc == 0) in get_wchan() 301 if (!in_sched_functions(pc)) in get_wchan() 302 return pc; in get_wchan() 306 pc = MAKE_PC_FROM_RA(*(unsigned long*)sp - 4, sp); in get_wchan() 339 elfregs->pc = regs->pc; in xtensa_elf_core_copy_regs()
|
D | traps.c | 187 current->comm, task_pid_nr(current), regs->pc, exccause); in do_unhandled() 282 current->comm, task_pid_nr(current), regs->pc); in do_illegal_instruction() 307 regs->excvaddr, current->comm, task_pid_nr(current), regs->pc); in do_unaligned_user() 439 regs->pc, regs->ps, regs->depc, regs->excvaddr); in show_regs() 450 if (kernel_text_address(frame->pc)) { in show_trace_cb() 451 printk(" [<%08lx>] ", frame->pc); in show_trace_cb() 452 print_symbol("%s\n", frame->pc); in show_trace_cb() 499 void show_code(unsigned int *pc) in show_code() argument 507 if (__get_user(insn, pc + i)) { in show_code()
|
/linux-4.4.14/arch/arm64/kernel/ |
D | ftrace.c | 25 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() argument 40 if (aarch64_insn_read((void *)pc, &replaced)) in ftrace_modify_code() 46 if (aarch64_insn_patch_text_nosync((void *)pc, new)) in ftrace_modify_code() 57 unsigned long pc; in ftrace_update_ftrace_func() local 60 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func() 61 new = aarch64_insn_gen_branch_imm(pc, (unsigned long)func, in ftrace_update_ftrace_func() 64 return ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 72 unsigned long pc = rec->ip; in ftrace_make_call() local 76 new = aarch64_insn_gen_branch_imm(pc, addr, AARCH64_INSN_BRANCH_LINK); in ftrace_make_call() 78 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call() [all …]
|
D | time.c | 49 if (!in_lock_functions(regs->pc)) in profile_pc() 50 return regs->pc; in profile_pc() 54 frame.pc = regs->pc; in profile_pc() 59 } while (in_lock_functions(frame.pc)); in profile_pc() 61 return frame.pc; in profile_pc()
|
D | traps.c | 158 frame.pc = regs->pc; in dump_backtrace() 162 frame.pc = (unsigned long)dump_backtrace; in dump_backtrace() 169 frame.pc = thread_saved_pc(tsk); in dump_backtrace() 174 unsigned long where = frame.pc; in dump_backtrace() 305 void __user *pc = (void __user *)instruction_pointer(regs); in call_undef_hook() local 312 if (get_user(instr, (u16 __user *)pc)) in call_undef_hook() 318 if (get_user(instr2, (u16 __user *)(pc + 2))) in call_undef_hook() 325 if (get_user(instr, (u32 __user *)pc)) in call_undef_hook() 344 void __user *pc = (void __user *)instruction_pointer(regs); in do_undefinstr() local 355 current->comm, task_pid_nr(current), pc); in do_undefinstr() [all …]
|
D | armv8_deprecated.c | 382 perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, regs->pc); in swp_handler() 425 trace_instruction_emulation("swpb", regs->pc); in swp_handler() 427 trace_instruction_emulation("swp", regs->pc); in swp_handler() 430 current->comm, (unsigned long)current->pid, regs->pc); in swp_handler() 432 regs->pc += 4; in swp_handler() 465 perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, regs->pc); in cp15barrier_handler() 489 "mcr p15, 0, Rt, c7, c10, 5 ; dmb", regs->pc); in cp15barrier_handler() 493 "mcr p15, 0, Rt, c7, c10, 4 ; dsb", regs->pc); in cp15barrier_handler() 504 "mcr p15, 0, Rt, c7, c5, 4 ; isb", regs->pc); in cp15barrier_handler() 510 current->comm, (unsigned long)current->pid, regs->pc); in cp15barrier_handler() [all …]
|
D | signal.c | 110 __get_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in restore_sigframe() 160 regs->pc, regs->sp); in sys_rt_sigreturn() 180 __put_user_error(regs->pc, &sf->uc.uc_mcontext.pc, err); in setup_sigframe() 240 regs->pc = (unsigned long)ka->sa.sa_handler; in setup_return() 342 continue_addr = regs->pc; in do_signal() 361 regs->pc = restart_addr; in do_signal() 376 if (regs->pc == restart_addr && in do_signal() 382 regs->pc = continue_addr; in do_signal() 393 if (syscall >= 0 && regs->pc == restart_addr) { in do_signal()
|
D | stacktrace.c | 51 frame->pc = *(unsigned long *)(fp + 8); in unwind_frame() 82 unsigned long addr = frame->pc; in save_trace() 108 frame.pc = thread_saved_pc(tsk); in save_stack_trace_tsk() 113 frame.pc = (unsigned long)save_stack_trace_tsk; in save_stack_trace_tsk()
|
D | alternative.c | 44 static bool branch_insn_requires_update(struct alt_instr *alt, unsigned long pc) in branch_insn_requires_update() argument 48 if (kernel_text_address(pc)) in branch_insn_requires_update() 52 if (pc >= replptr && pc <= (replptr + alt->alt_len)) in branch_insn_requires_update()
|
D | perf_callchain.c | 117 perf_callchain_store(entry, regs->pc); in perf_callchain_user() 150 perf_callchain_store(entry, frame->pc); in callchain_trace() 166 frame.pc = regs->pc; in perf_callchain_kernel()
|
D | process.c | 186 regs->pc, lr, regs->pstate); in __show_regs() 286 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread() 346 frame.pc = thread_saved_pc(p); in get_wchan() 353 if (!in_sched_functions(frame.pc)) in get_wchan() 354 return frame.pc; in get_wchan()
|
/linux-4.4.14/include/linux/ |
D | posix-clock.h | 60 int (*clock_adjtime)(struct posix_clock *pc, struct timex *tx); 62 int (*clock_gettime)(struct posix_clock *pc, struct timespec *ts); 64 int (*clock_getres) (struct posix_clock *pc, struct timespec *ts); 66 int (*clock_settime)(struct posix_clock *pc, 69 int (*timer_create) (struct posix_clock *pc, struct k_itimer *kit); 71 int (*timer_delete) (struct posix_clock *pc, struct k_itimer *kit); 73 void (*timer_gettime)(struct posix_clock *pc, 76 int (*timer_settime)(struct posix_clock *pc, 82 int (*fasync) (struct posix_clock *pc, 85 long (*ioctl) (struct posix_clock *pc, [all …]
|
D | rbtree_augmented.h | 100 #define __rb_parent(pc) ((struct rb_node *)(pc & ~3)) argument 102 #define __rb_color(pc) ((pc) & 1) argument 103 #define __rb_is_black(pc) __rb_color(pc) argument 104 #define __rb_is_red(pc) (!__rb_color(pc)) argument 143 unsigned long pc; in __rb_erase_augmented() local 153 pc = node->__rb_parent_color; in __rb_erase_augmented() 154 parent = __rb_parent(pc); in __rb_erase_augmented() 157 child->__rb_parent_color = pc; in __rb_erase_augmented() 160 rebalance = __rb_is_black(pc) ? parent : NULL; in __rb_erase_augmented() 164 tmp->__rb_parent_color = pc = node->__rb_parent_color; in __rb_erase_augmented() [all …]
|
D | trace_events.h | 159 int pc); 166 unsigned long flags, int pc); 170 unsigned long flags, int pc); 174 unsigned long flags, int pc); 178 unsigned long flags, int pc, 227 int pc; member 512 void *entry, unsigned long irq_flags, int pc) in event_trigger_unlock_commit() argument 517 trace_buffer_unlock_commit(file->tr, buffer, event, irq_flags, pc); in event_trigger_unlock_commit() 543 void *entry, unsigned long irq_flags, int pc, in event_trigger_unlock_commit_regs() argument 550 irq_flags, pc, regs); in event_trigger_unlock_commit_regs()
|
D | oprofile.h | 105 void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, 111 void oprofile_add_ext_hw_sample(unsigned long pc, struct pt_regs * const regs, 117 void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event); 191 unsigned long pc, int code, int size);
|
/linux-4.4.14/arch/sh/kernel/cpu/sh5/ |
D | unwind.c | 46 static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, in lookup_prev_stack_frame() argument 59 sym = kallsyms_lookup(pc, NULL, &offset, NULL, namebuf); in lookup_prev_stack_frame() 63 prologue = pc - offset; in lookup_prev_stack_frame() 220 unsigned long pc, unsigned long fp) in unwind_nested() argument 230 unsigned long pc, fp; in sh64_unwind_inner() local 234 pc = regs->pc & ~1; in sh64_unwind_inner() 242 if (pc == ((unsigned long)&syscall_ret & ~1)) { in sh64_unwind_inner() 244 unwind_nested(ops, data, pc, fp); in sh64_unwind_inner() 248 if (pc == ((unsigned long)&ret_from_syscall & ~1)) { in sh64_unwind_inner() 250 unwind_nested(ops, data, pc, fp); in sh64_unwind_inner() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/ |
D | tracefile.c | 59 static void put_pages_on_tcd_daemon_list(struct page_collection *pc, 188 struct page_collection pc; in cfs_tcd_shrink() local 201 INIT_LIST_HEAD(&pc.pc_pages); in cfs_tcd_shrink() 202 spin_lock_init(&pc.pc_lock); in cfs_tcd_shrink() 208 list_move_tail(&tage->linkage, &pc.pc_pages); in cfs_tcd_shrink() 211 put_pages_on_tcd_daemon_list(&pc, tcd); in cfs_tcd_shrink() 497 panic_collect_pages(struct page_collection *pc) in panic_collect_pages() argument 506 INIT_LIST_HEAD(&pc->pc_pages); in panic_collect_pages() 509 list_splice_init(&tcd->tcd_pages, &pc->pc_pages); in panic_collect_pages() 512 if (pc->pc_want_daemon_pages) { in panic_collect_pages() [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | traps_32.c | 32 static void instruction_dump(unsigned long *pc) in instruction_dump() argument 36 if((((unsigned long) pc) & 3)) in instruction_dump() 40 printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>'); in instruction_dump() 85 instruction_dump ((unsigned long *) regs->pc); in die_if_kernel() 107 info.si_addr = (void __user *)regs->pc; in do_hw_interrupt() 112 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_illegal_instruction() argument 121 regs->pc, *(unsigned long *)regs->pc); in do_illegal_instruction() 127 info.si_addr = (void __user *)pc; in do_illegal_instruction() 132 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_priv_instruction() argument 142 info.si_addr = (void __user *)pc; in do_priv_instruction() [all …]
|
D | stacktrace.c | 35 unsigned long pc; in __save_stack_trace() local 46 pc = regs->tpc; in __save_stack_trace() 49 pc = sf->callers_pc; in __save_stack_trace() 55 else if (!skip_sched || !in_sched_functions(pc)) { in __save_stack_trace() 56 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 58 if ((pc + 8UL) == (unsigned long) &return_to_handler) { in __save_stack_trace() 61 pc = t->ret_stack[index - graph].ret; in __save_stack_trace() 64 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace()
|
D | entry.h | 14 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, 17 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, 19 void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, 21 void do_fpd_trap(struct pt_regs *regs, unsigned long pc, 23 void do_fpe_trap(struct pt_regs *regs, unsigned long pc, 25 void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, 27 void handle_watchpoint(struct pt_regs *regs, unsigned long pc, 29 void handle_reg_access(struct pt_regs *regs, unsigned long pc, 31 void handle_cp_disabled(struct pt_regs *regs, unsigned long pc, 33 void handle_cp_exception(struct pt_regs *regs, unsigned long pc,
|
D | signal_32.c | 77 unsigned long up_psr, pc, npc, ufp; in do_sigreturn() local 101 err = __get_user(pc, &sf->info.si_regs.pc); in do_sigreturn() 104 if ((pc | npc) & 3) in do_sigreturn() 145 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn() local 162 err = __get_user(pc, &sf->regs.pc); in do_rt_sigreturn() 164 err |= ((pc | npc) & 0x03); in do_rt_sigreturn() 186 regs->pc = pc; in do_rt_sigreturn() 298 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame() 299 regs->npc = (regs->pc + 4); in setup_frame() 345 err = __put_user(regs->pc, &sf->regs.pc); in setup_rt_frame() [all …]
|
D | time_32.c | 72 unsigned long pc = regs->pc; in profile_pc() local 74 if (in_lock_functions(pc) || in profile_pc() 75 (pc >= (unsigned long) __copy_user_begin && in profile_pc() 76 pc < (unsigned long) __copy_user_end) || in profile_pc() 77 (pc >= (unsigned long) __bzero_begin && in profile_pc() 78 pc < (unsigned long) __bzero_end)) in profile_pc() 79 pc = regs->u_regs[UREG_RETPC]; in profile_pc() 80 return pc; in profile_pc()
|
D | kgdb_32.c | 39 gdb_regs[GDB_PC] = regs->pc; in pt_regs_to_gdb_regs() 97 regs->pc = gdb_regs[GDB_PC]; in gdb_regs_to_pt_regs() 120 linux_regs->pc = addr; in kgdb_arch_handle_exception() 127 if (linux_regs->pc == (unsigned long) arch_kgdb_breakpoint) { in kgdb_arch_handle_exception() 128 linux_regs->pc = linux_regs->npc; in kgdb_arch_handle_exception() 165 regs->pc = ip; in kgdb_arch_set_pc() 166 regs->npc = regs->pc + 4; in kgdb_arch_set_pc()
|
D | process_32.c | 125 r->psr, r->pc, r->npc, r->y, print_tainted()); in show_regs() 126 printk("PC: <%pS>\n", (void *) r->pc); in show_regs() 149 unsigned long pc, fp; in show_stack() local 168 pc = rw->ins[7]; in show_stack() 169 printk("[%08lx : ", pc); in show_stack() 170 printk("%pS ] ", (void *) pc); in show_stack() 467 unsigned long pc, fp, bias = 0; local 484 pc = rw->ins[7]; 485 if (!in_sched_functions(pc)) { 486 ret = pc;
|
D | kgdb_64.c | 50 unsigned long pc, cwp; in sleeping_thread_to_gdb_regs() local 72 pc = (unsigned long) &ret_from_fork; in sleeping_thread_to_gdb_regs() 74 pc = (unsigned long) &switch_to_pc; in sleeping_thread_to_gdb_regs() 76 gdb_regs[GDB_PC] = pc; in sleeping_thread_to_gdb_regs() 77 gdb_regs[GDB_NPC] = pc + 4; in sleeping_thread_to_gdb_regs()
|
/linux-4.4.14/arch/sh/kernel/ |
D | traps_32.c | 224 srcu = (unsigned char __user *)regs->pc; in handle_unaligned_ins() 241 srcu = (unsigned char __user *)(regs->pc & ~0x3); in handle_unaligned_ins() 271 void __user *addr = (void __user *)(regs->pc + in handle_delayslot() 339 regs->pc = regs->pr; in handle_unaligned_access() 345 regs->pc += rm + 4; in handle_unaligned_access() 351 regs->pr = regs->pc + 4; in handle_unaligned_access() 352 regs->pc += rm + 4; in handle_unaligned_access() 372 regs->pc = rm; in handle_unaligned_access() 378 regs->pr = regs->pc + 4; in handle_unaligned_access() 379 regs->pc = rm; in handle_unaligned_access() [all …]
|
D | kgdb.c | 50 insn_size_t op = __raw_readw(linux_regs->pc); in get_step_address() 56 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() 58 addr = linux_regs->pc + 2; in get_step_address() 64 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() 66 addr = linux_regs->pc + 4; /* Not in delay slot */ in get_step_address() 72 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() 74 addr = linux_regs->pc + 2; in get_step_address() 80 addr = linux_regs->pc + 4 + OPCODE_BTF_DISP(op); in get_step_address() 82 addr = linux_regs->pc + 4; /* Not in delay slot */ in get_step_address() 87 addr = linux_regs->pc + 4 + OPCODE_BRA_DISP(op); in get_step_address() [all …]
|
D | traps.c | 73 fixup = search_exception_tables(regs->pc); in die_if_no_fixup() 75 regs->pc = fixup->fixup; in die_if_no_fixup() 87 unsigned long bugaddr = regs->pc; in handle_BUG() 101 regs->pc += instruction_size(bugaddr); in handle_BUG() 132 regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); in BUILD_TRAP_HANDLER() 149 regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); in BUILD_TRAP_HANDLER()
|
D | process_32.c | 41 regs->pc, regs->regs[15], regs->sr); in show_regs() 72 regs->pc = new_pc; in start_thread() 150 p->thread.pc = (unsigned long) ret_from_kernel_thread; in copy_thread() 172 p->thread.pc = (unsigned long) ret_from_fork; in copy_thread() 218 unsigned long pc; in get_wchan() local 226 pc = thread_saved_pc(p); in get_wchan() 229 if (in_sched_functions(pc)) { in get_wchan() 235 return pc; in get_wchan()
|
D | kprobes.c | 89 int __kprobes kprobe_handle_illslot(unsigned long pc) in kprobe_handle_illslot() argument 91 struct kprobe *p = get_kprobe((kprobe_opcode_t *) pc + 1); in kprobe_handle_illslot() 95 (unsigned int)pc + 2); in kprobe_handle_illslot() 149 __this_cpu_write(saved_current_opcode.addr, (kprobe_opcode_t *)regs->pc); in prepare_singlestep() 165 (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); in prepare_singlestep() 170 (kprobe_opcode_t *) (regs->pc + 4 + in prepare_singlestep() 182 (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); in prepare_singlestep() 192 (kprobe_opcode_t *) (regs->pc + 4 + disp * 2); in prepare_singlestep() 229 addr = (kprobe_opcode_t *) (regs->pc); in kprobe_handler() 358 regs->pc = orig_ret_address; in trampoline_probe_handler() [all …]
|
D | traps_64.c | 35 static int read_opcode(reg_size_t pc, insn_size_t *result_opcode, int from_user_mode) in read_opcode() argument 41 if ((pc & 3) == 1) { in read_opcode() 43 aligned_pc = pc & ~3; in read_opcode() 59 } else if ((pc & 1) == 0) { in read_opcode() 208 width_shift, (unsigned long) regs->pc); in misaligned_load() 232 width_shift, (unsigned long) regs->pc); in misaligned_load() 275 width_shift, (unsigned long) regs->pc); in misaligned_store() 301 width_shift, (unsigned long) regs->pc); in misaligned_store() 373 width_shift, (unsigned long) regs->pc); in misaligned_fpu_load() 440 width_shift, (unsigned long) regs->pc); in misaligned_fpu_store() [all …]
|
D | dwarf.c | 350 struct dwarf_fde *dwarf_lookup_fde(unsigned long pc) in dwarf_lookup_fde() argument 368 if (pc < tmp_start) { in dwarf_lookup_fde() 371 if (pc < tmp_end) { in dwarf_lookup_fde() 404 unsigned long pc) in dwarf_cfa_execute_insns() argument 413 while (current_insn < insn_end && frame->pc <= pc) { in dwarf_cfa_execute_insns() 424 frame->pc += delta; in dwarf_cfa_execute_insns() 452 frame->pc += delta * cie->code_alignment_factor; in dwarf_cfa_execute_insns() 457 frame->pc += delta * cie->code_alignment_factor; in dwarf_cfa_execute_insns() 462 frame->pc += delta * cie->code_alignment_factor; in dwarf_cfa_execute_insns() 577 struct dwarf_frame *dwarf_unwind_stack(unsigned long pc, in dwarf_unwind_stack() argument [all …]
|
D | signal_32.c | 129 COPY(sr); COPY(pc); in restore_sigcontext() 233 COPY(sr); COPY(pc); in setup_sigcontext() 317 err |= __get_user(regs->pc, &funcptr->text); in setup_frame() 320 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_frame() 326 current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); in setup_frame() 387 err |= __get_user(regs->pc, &funcptr->text); in setup_rt_frame() 390 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame() 396 current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); in setup_rt_frame() 423 regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); in handle_syscall_restart() 483 regs->pc -= instruction_size(__raw_readw(regs->pc - 4)); in do_signal() [all …]
|
D | process_64.c | 45 ah = (regs->pc) >> 32; in show_regs() 46 al = (regs->pc) & 0xffffffff; in show_regs() 399 p->thread.pc = (unsigned long) ret_from_kernel_thread; in copy_thread() 417 p->thread.pc = (unsigned long) ret_from_fork; in copy_thread() 423 static int in_sh64_switch_to(unsigned long pc) in in_sh64_switch_to() argument 428 return (pc >= (unsigned long) sh64_switch_to) && in in_sh64_switch_to() 429 (pc < (unsigned long) &__sh64_switch_to_end); in in_sh64_switch_to() 435 unsigned long pc; in get_wchan() local 443 pc = thread_saved_pc(p); in get_wchan() 446 if (in_sh64_switch_to(pc)) { in get_wchan() [all …]
|
D | signal_64.c | 68 regs->pc -= 4; in handle_syscall_restart() 112 regs->pc -= 4; in do_signal() 117 regs->pc -= 4; in do_signal() 240 COPY(pc); in restore_sigcontext() 278 regs->pc -= 4; in sys_sigreturn() 309 regs->pc -= 4; in sys_rt_sigreturn() 353 COPY(sr); COPY(pc); in setup_sigcontext() 452 regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); in setup_frame() 457 regs->pc >> 32, regs->pc & 0xffffffff, in setup_frame() 533 regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); in setup_rt_frame() [all …]
|
/linux-4.4.14/arch/tile/kernel/ |
D | ftrace.c | 57 static unsigned long ftrace_gen_branch(unsigned long pc, unsigned long addr, in ftrace_gen_branch() argument 61 long pcrel_by_instr = (addr - pc) >> TILEGX_LOG2_BUNDLE_SIZE_IN_BYTES; in ftrace_gen_branch() 105 static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr) in ftrace_call_replace() argument 107 return ftrace_gen_branch(pc, addr, true); in ftrace_call_replace() 110 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument 116 if (!kernel_text_address(pc)) in ftrace_modify_code() 120 pc_wr = pc - MEM_SV_START + PAGE_OFFSET; in ftrace_modify_code() 128 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code() 135 unsigned long pc, old; in ftrace_update_ftrace_func() local 139 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func() [all …]
|
D | stack.c | 103 __kernel_text_address(p->pc) && in valid_fault_handler() 113 if (kbt->verbose && (p->pc != 0 || p->sp != 0 || p->ex1 != 0)) in valid_fault_handler() 115 p->pc, p->sp, p->ex1); in valid_fault_handler() 127 (kbt->it.pc == ((ulong)kbt->task->mm->context.vdso_base + in is_sigreturn() 168 p->pc, p->lr, p->sp, p->regs[52]); in KBacktraceIterator_restart() 206 cpu, ksp0_base, ksp0, sp, regs->sp, regs->pc, regs->lr); in validate_stack() 212 cpu, ksp0_base, ksp0, sp, regs->sp, regs->pc, regs->lr); in validate_stack() 219 unsigned long pc, lr, sp, r52; in KBacktraceIterator_init() local 244 pc = get_switch_to_pc(); in KBacktraceIterator_init() 245 lr = t->thread.pc; in KBacktraceIterator_init() [all …]
|
D | single_step.c | 227 current->pid, current->comm, regs->pc, in rewrite_load_store_unaligned() 315 tilepro_bundle_bits __user *buffer, *pc; in single_step_once() local 403 regs->pc -= 8; in single_step_once() 405 pc = (tilepro_bundle_bits __user *)(regs->pc); in single_step_once() 406 if (get_user(bundle, pc) != 0) { in single_step_once() 407 pr_err("Couldn't read instruction at %p trying to step\n", pc); in single_step_once() 412 state->orig_pc = (unsigned long)pc; in single_step_once() 413 state->next_pc = (unsigned long)(pc + 1); in single_step_once() 448 state->branch_next_pc = (unsigned long)(pc + offset); in single_step_once() 460 (unsigned long) (pc + get_JOffLong_X1(bundle)); in single_step_once() [all …]
|
D | traps.c | 296 fault_num, name, regs->pc, buf); in do_trap() 307 if (copy_from_user(&instr, (void __user *)regs->pc, in do_trap() 310 regs->pc); in do_trap() 317 address = regs->pc; in do_trap() 332 address = regs->pc; in do_trap() 339 address = regs->pc; in do_trap() 347 (void __user *)(regs->pc) != state->buffer) { in do_trap() 368 address = regs->pc; in do_trap() 411 extern void _dump_stack(int dummy, ulong pc, ulong lr, ulong sp, ulong r52); 413 void kernel_double_fault(int dummy, ulong pc, ulong lr, ulong sp, ulong r52) in kernel_double_fault() argument [all …]
|
D | backtrace.c | 277 unsigned long pc; in find_caller_pc_and_caller_sp() local 298 for (pc = start_pc;; pc += sizeof(tile_bundle_bits)) { in find_caller_pc_and_caller_sp() 313 unsigned int bytes_to_prefetch = 4096 - (pc & 4095); in find_caller_pc_and_caller_sp() 317 if (!read_memory_func(prefetched_bundles, pc, in find_caller_pc_and_caller_sp() 320 if (pc == start_pc) { in find_caller_pc_and_caller_sp() 347 parse_insn_tile(bundle.bits, pc, bundle.insns); in find_caller_pc_and_caller_sp() 353 for (one_ago = (pc != start_pc) ? 1 : 0; in find_caller_pc_and_caller_sp() 550 unsigned long pc, unsigned long lr, in backtrace_init() argument 557 find_caller_pc_and_caller_sp(&location, pc, in backtrace_init() 616 state->pc = pc; in backtrace_init() [all …]
|
D | kgdb.c | 93 { "pc", GDB_SIZEOF_REG, offsetof(struct pt_regs, pc)}, 138 gdb_regs[TILEGX_PC_REGNUM] = thread_regs->pc; in sleeping_thread_to_gdb_regs() 142 void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) in kgdb_arch_set_pc() argument 144 regs->pc = pc; in kgdb_arch_set_pc() 189 addr = regs->pc + TILEGX_BUNDLE_SIZE_IN_BYTES; in get_step_address() 231 addr = regs->pc + in get_step_address() 284 addr = regs->pc + in get_step_address() 415 regs->pc = address; in kgdb_arch_handle_exception() 416 else if (*(unsigned long *)regs->pc == compiled_bpt) in kgdb_arch_handle_exception() 417 regs->pc += BREAK_INSTR_SIZE; in kgdb_arch_handle_exception()
|
D | kprobes.c | 170 kcb->kprobe_saved_pc = regs->pc; in set_current_kprobe() 178 regs->pc = (unsigned long)p->addr; in prepare_singlestep() 180 regs->pc = (unsigned long)&p->ainsn.insn[0]; in prepare_singlestep() 190 addr = (kprobe_opcode_t *)regs->pc; in kprobe_handler() 286 regs->pc = orig_pc + 8; in resume_execution() 383 regs->pc = (unsigned long)(jp->entry); in setjmp_pre_handler() 403 if (regs->pc >= (unsigned long)jprobe_return && in longjmp_break_handler() 404 regs->pc <= (unsigned long)jprobe_return_end) { in longjmp_break_handler()
|
D | unaligned.c | 68 unsigned long pc; member 873 if (!search_exception_tables(regs->pc)) { in jit_bundle_gen() 930 regs->pc += 8; in jit_bundle_gen() 966 regs->pc += 8; in jit_bundle_gen() 989 (unsigned long long)regs->pc, in jit_bundle_gen() 1366 int idx = (regs->pc >> 3) & in jit_bundle_gen() 1369 frag.pc = regs->pc; in jit_bundle_gen() 1375 (unsigned long)frag.pc, in jit_bundle_gen() 1424 __insn_mtspr(SPR_EX_CONTEXT_0_0, regs->pc + 8); in jit_bundle_gen() 1428 regs->pc = (unsigned long)&jit_code_area[idx].insn[0]; in jit_bundle_gen() [all …]
|
/linux-4.4.14/arch/arm/kernel/ |
D | ftrace.c | 97 static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr) in ftrace_call_replace() argument 99 return arm_gen_branch_link(pc, addr); in ftrace_call_replace() 102 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument 116 if (probe_kernel_read(&replaced, (void *)pc, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 123 if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 126 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code() 133 unsigned long pc; in ftrace_update_ftrace_func() local 137 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func() 138 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func() 140 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() [all …]
|
D | insn.c | 6 __arm_gen_branch_thumb2(unsigned long pc, unsigned long addr, bool link) in __arm_gen_branch_thumb2() argument 12 offset = (long)addr - (long)(pc + 4); in __arm_gen_branch_thumb2() 36 __arm_gen_branch_arm(unsigned long pc, unsigned long addr, bool link) in __arm_gen_branch_arm() argument 44 offset = (long)addr - (long)(pc + 8); in __arm_gen_branch_arm() 56 __arm_gen_branch(unsigned long pc, unsigned long addr, bool link) in __arm_gen_branch() argument 59 return __arm_gen_branch_thumb2(pc, addr, link); in __arm_gen_branch() 61 return __arm_gen_branch_arm(pc, addr, link); in __arm_gen_branch()
|
D | stacktrace.c | 41 frame->pc = *(unsigned long *)(fp - 4); in unwind_frame() 75 unsigned long addr = frame->pc; in save_trace() 97 data->last_pc = frame->pc; in save_trace() 134 frame.pc = thread_saved_pc(tsk); in __save_stack_trace() 142 frame.pc = (unsigned long)__save_stack_trace; in __save_stack_trace() 162 frame.pc = regs->ARM_pc; in save_stack_trace_regs()
|
D | unwind.c | 399 frame->pc, frame->lr, frame->sp); in unwind_frame() 401 if (!kernel_text_address(frame->pc)) in unwind_frame() 404 idx = unwind_find_idx(frame->pc); in unwind_frame() 406 pr_warn("unwind: Index not found %08lx\n", frame->pc); in unwind_frame() 460 if (frame->pc == ctrl.vrs[PC]) in unwind_frame() 466 frame->pc = ctrl.vrs[PC]; in unwind_frame() 484 frame.pc = regs->ARM_lr; in unwind_backtrace() 489 frame.pc = (unsigned long)unwind_backtrace; in unwind_backtrace() 499 frame.pc = thread_saved_pc(tsk); in unwind_backtrace() 504 unsigned long where = frame.pc; in unwind_backtrace() [all …]
|
D | traps.c | 351 int is_valid_bugaddr(unsigned long pc) in is_valid_bugaddr() argument 361 if (probe_kernel_address((unsigned *)pc, bkpt)) in is_valid_bugaddr() 410 void __user *pc; in do_undefinstr() local 412 pc = (void __user *)instruction_pointer(regs); in do_undefinstr() 417 instr = __mem_to_opcode_thumb16(((u16 *)pc)[0]); in do_undefinstr() 420 inst2 = __mem_to_opcode_thumb16(((u16 *)pc)[1]); in do_undefinstr() 425 instr = __mem_to_opcode_arm(*(u32 *) pc); in do_undefinstr() 427 if (get_user(instr, (u16 __user *)pc)) in do_undefinstr() 432 if (get_user(instr2, (u16 __user *)pc+1)) in do_undefinstr() 438 if (get_user(instr, (u32 __user *)pc)) in do_undefinstr() [all …]
|
/linux-4.4.14/lib/ |
D | asn1_decoder.c | 179 size_t pc = 0, dp = 0, tdp = 0, len = 0; in asn1_ber_decoder() local 203 pc, machlen, dp, datalen, csp, jsp); in asn1_ber_decoder() 204 if (unlikely(pc >= machlen)) in asn1_ber_decoder() 206 op = machine[pc]; in asn1_ber_decoder() 207 if (unlikely(pc + asn1_op_lengths[op] > machlen)) in asn1_ber_decoder() 220 pc += asn1_op_lengths[op]; in asn1_ber_decoder() 242 optag = machine[pc + 1]; in asn1_ber_decoder() 252 pc += asn1_op_lengths[op]; in asn1_ber_decoder() 314 ret = actions[machine[pc + 1]](context, hdr, tag, data + dp, len); in asn1_ber_decoder() 322 ret = actions[machine[pc + 2]](context, hdr, tag, data + dp, len); in asn1_ber_decoder() [all …]
|
D | syscall.c | 8 unsigned long *sp, unsigned long *pc) in collect_syscall() argument 15 *pc = instruction_pointer(regs); in collect_syscall() 52 unsigned long *sp, unsigned long *pc) in task_current_syscall() argument 61 return collect_syscall(target, callno, args, maxargs, sp, pc); in task_current_syscall() 69 unlikely(collect_syscall(target, callno, args, maxargs, sp, pc)) || in task_current_syscall()
|
/linux-4.4.14/arch/metag/kernel/ |
D | ftrace.c | 27 static unsigned char *ftrace_call_replace(unsigned long pc, unsigned long addr) in ftrace_call_replace() argument 40 if (pc == (unsigned long)&ftrace_call) { in ftrace_call_replace() 51 static int ftrace_modify_code(unsigned long pc, unsigned char *old_code, in ftrace_modify_code() argument 66 if (probe_kernel_read(replaced, (void *)pc, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 74 if (probe_kernel_write((void *)pc, new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 77 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code() 85 unsigned long pc; in ftrace_update_ftrace_func() local 88 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func() 90 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func() 91 ret = ftrace_modify_code(pc, old, new); in ftrace_update_ftrace_func()
|
D | stacktrace.c | 76 frame->pc = lr; in unwind_frame() 94 frame->pc = addr; in unwind_frame() 128 unsigned long addr = frame->pc; in save_trace() 165 frame.pc = thread_saved_pc(tsk); in save_stack_trace_tsk() 174 frame.pc = (unsigned long)save_stack_trace_tsk; in save_stack_trace_tsk()
|
/linux-4.4.14/tools/include/linux/ |
D | rbtree_augmented.h | 103 #define __rb_parent(pc) ((struct rb_node *)(pc & ~3)) argument 105 #define __rb_color(pc) ((pc) & 1) argument 106 #define __rb_is_black(pc) __rb_color(pc) argument 107 #define __rb_is_red(pc) (!__rb_color(pc)) argument 145 unsigned long pc; in __rb_erase_augmented() local 155 pc = node->__rb_parent_color; in __rb_erase_augmented() 156 parent = __rb_parent(pc); in __rb_erase_augmented() 159 child->__rb_parent_color = pc; in __rb_erase_augmented() 162 rebalance = __rb_is_black(pc) ? parent : NULL; in __rb_erase_augmented() 166 tmp->__rb_parent_color = pc = node->__rb_parent_color; in __rb_erase_augmented() [all …]
|
/linux-4.4.14/arch/alpha/kernel/ |
D | traps.c | 67 regs->pc, regs->r26, regs->ps, print_tainted()); in dik_show_regs() 68 printk("pc is at %pSR\n", (void *)regs->pc); in dik_show_regs() 107 dik_show_code(unsigned int *pc) in dik_show_code() argument 114 if (__get_user(insn, (unsigned int __user *)pc + i)) in dik_show_code() 181 dik_show_code((unsigned int *)regs->pc); in die_if_kernel() 195 long (*alpha_fp_emul) (unsigned long pc) 199 long alpha_fp_emul (unsigned long pc); 214 si_code = alpha_fp_emul(regs->pc - 4); in do_entArith() 225 info.si_addr = (void __user *) regs->pc; in do_entArith() 238 = (const unsigned int *) regs->pc; in do_entIF() [all …]
|
D | process.c | 205 start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) in start_thread() argument 207 regs->pc = pc; in start_thread() 328 dest[31] = pt->pc; in dump_elf_thread() 387 unsigned long pc; in get_wchan() local 400 pc = thread_saved_pc(p); in get_wchan() 401 if (in_sched_functions(pc)) { in get_wchan() 405 return pc; in get_wchan()
|
D | ptrace.c | 98 PT_REG( pc) 179 unsigned long pc; in ptrace_set_bpt() local 181 pc = get_reg(child, REG_PC); in ptrace_set_bpt() 182 res = read_int(child, pc, (int *) &insn); in ptrace_set_bpt() 197 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; in ptrace_set_bpt() 200 = pc + 4 + displ; in ptrace_set_bpt() 207 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; in ptrace_set_bpt()
|
/linux-4.4.14/arch/sparc/mm/ |
D | fault_32.c | 57 asmlinkage int lookup_fault(unsigned long pc, unsigned long ret_pc, in lookup_fault() argument 74 insn = *((unsigned int *) pc); in lookup_fault() 82 insn = *((unsigned int *) pc); in lookup_fault() 92 regs.pc = pc; in lookup_fault() 93 regs.npc = pc + 4; in lookup_fault() 118 (void *)regs->pc, (void *)regs->u_regs[UREG_I7], in show_signal_msg() 121 print_vma_addr(KERN_CONT " in ", regs->pc); in show_signal_msg() 149 return regs->pc; in compute_si_addr() 152 insn = *(unsigned int *) regs->pc; in compute_si_addr() 154 __get_user(insn, (unsigned int *) regs->pc); in compute_si_addr() [all …]
|
/linux-4.4.14/drivers/oprofile/ |
D | cpu_buffer.c | 236 unsigned long pc, unsigned long event) in op_add_sample() argument 245 sample->eip = pc; in op_add_sample() 260 log_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc, in log_sample() argument 267 if (pc == ESCAPE_CODE) { in log_sample() 275 if (op_add_sample(cpu_buf, pc, event)) in log_sample() 296 __oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, in __oprofile_add_ext_sample() argument 307 if (!log_sample(cpu_buf, pc, backtrace, is_kernel, event, task)) in __oprofile_add_ext_sample() 319 void oprofile_add_ext_hw_sample(unsigned long pc, struct pt_regs * const regs, in oprofile_add_ext_hw_sample() argument 323 __oprofile_add_ext_sample(pc, regs, event, is_kernel, task); in oprofile_add_ext_hw_sample() 326 void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, in oprofile_add_ext_sample() argument [all …]
|
/linux-4.4.14/arch/h8300/kernel/ |
D | ptrace_h.c | 164 char *fetch_p, unsigned short *pc, in decode() argument 173 return (unsigned short *)pc + op->length; in decode() 175 addr = *(unsigned long *)pc; in decode() 178 addr = *pc & 0xff; in decode() 191 regno = (*pc >> 4) & 0x07; in decode() 199 pc = (unsigned short *)((unsigned long)pc + in decode() 201 return pc+1; /* skip myself */ in decode() 204 pc = (unsigned short *)((unsigned long)pc + in decode() 205 ((signed short)(*(pc+1)))); in decode() 206 return pc+2; /* skip myself */ in decode() [all …]
|
D | process.c | 89 regs->pc, regs->ccr); in show_regs() 131 return ((struct pt_regs *)tsk->thread.esp0)->pc; in thread_saved_pc() 136 unsigned long fp, pc; in get_wchan() local 149 pc = ((unsigned long *)fp)[1]; in get_wchan() 150 if (!in_sched_functions(pc)) in get_wchan() 151 return pc; in get_wchan()
|
/linux-4.4.14/arch/m68k/ifpsp060/src/ |
D | ftest.S | 72 pea pass_str(%pc) 81 pea fail_str(%pc) 93 pea start_str(%pc) 99 pea effadd_str(%pc) 109 pea unsupp_str(%pc) 119 pea ovfl_nm_str(%pc) 127 pea unfl_nm_str(%pc) 145 pea start_str_unimp(%pc) 151 pea unimp_str(%pc) 171 pea start_str_enable(%pc) [all …]
|
D | itest.S | 56 pea pass_str(%pc) 65 pea fail_str(%pc) 76 pea start_str(%pc) 82 pea mulul_str(%pc) 92 pea divul_str(%pc) 102 pea cmp2_str(%pc) 112 pea movp_str(%pc) 122 pea ea_str(%pc) 133 pea cas_str(%pc) 143 pea cas2_str(%pc) [all …]
|
/linux-4.4.14/tools/perf/arch/x86/util/ |
D | tsc.c | 12 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, in perf_read_tsc_conversion() argument 20 seq = pc->lock; in perf_read_tsc_conversion() 22 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion() 23 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion() 24 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion() 25 cap_user_time_zero = pc->cap_user_time_zero; in perf_read_tsc_conversion() 27 if (pc->lock == seq && !(seq & 1)) in perf_read_tsc_conversion()
|
/linux-4.4.14/arch/avr32/kernel/ |
D | traps.c | 85 fixup = search_exception_tables(regs->pc); in _exception() 87 regs->pc = fixup->fixup; in _exception() 128 _exception(SIGBUS, regs, BUS_ADRALN, regs->pc); in do_address_exception() 173 int is_valid_bugaddr(unsigned long pc) in is_valid_bugaddr() argument 177 if (pc < PAGE_OFFSET) in is_valid_bugaddr() 179 if (probe_kernel_address((u16 *)pc, opcode)) in is_valid_bugaddr() 190 void __user *pc; in do_illegal_opcode() local 197 type = report_bug(regs->pc, regs); in do_illegal_opcode() 202 regs->pc += 2; in do_illegal_opcode() 213 pc = (void __user *)instruction_pointer(regs); in do_illegal_opcode() [all …]
|
D | syscall-stubs.S | 36 popm pc 45 popm pc 54 popm pc 63 popm pc 72 popm pc 81 popm pc 90 popm pc 99 popm pc 108 popm pc 117 popm pc [all …]
|
D | process.c | 293 p->thread.cpu_context.pc = (unsigned long)ret_from_kernel_thread; in copy_thread() 300 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread() 319 unsigned long pc; in get_wchan() local 332 pc = thread_saved_pc(p); in get_wchan() 333 if (in_sched_functions(pc)) { in get_wchan() 337 pc = *(unsigned long *)fp; in get_wchan() 350 pc = *(unsigned long *)sp; in get_wchan() 354 return pc; in get_wchan()
|
D | signal.c | 38 COPY(pc); in restore_sigcontext() 92 regs->pc, regs->lr, regs->sp); in sys_rt_sigreturn() 108 COPY(pc); in setup_sigcontext() 189 regs->pc, ksig->ka.sa.sa_handler, regs->lr); in setup_rt_frame() 191 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame() 203 regs->pc -= 2; in setup_syscall_restart()
|
/linux-4.4.14/arch/m68k/kernel/ |
D | head.S | 512 pea %pc@(.Lstr\@) 524 #define is_not_amiga(lab) cmpl &MACH_AMIGA,%pc@(m68k_machtype); jne lab 525 #define is_not_atari(lab) cmpl &MACH_ATARI,%pc@(m68k_machtype); jne lab 526 #define is_not_mac(lab) cmpl &MACH_MAC,%pc@(m68k_machtype); jne lab 527 #define is_not_mvme147(lab) cmpl &MACH_MVME147,%pc@(m68k_machtype); jne lab 528 #define is_not_mvme16x(lab) cmpl &MACH_MVME16x,%pc@(m68k_machtype); jne lab 529 #define is_not_bvme6000(lab) cmpl &MACH_BVME6000,%pc@(m68k_machtype); jne lab 530 #define is_mvme147(lab) cmpl &MACH_MVME147,%pc@(m68k_machtype); jeq lab 531 #define is_mvme16x(lab) cmpl &MACH_MVME16x,%pc@(m68k_machtype); jeq lab 532 #define is_bvme6000(lab) cmpl &MACH_BVME6000,%pc@(m68k_machtype); jeq lab [all …]
|
D | traps.c | 134 unsigned long fslw = fp->un.fmt4.pc; /* is really FSLW for access error */ in access_error060() 172 pr_err("pc=%#lx, fa=%#lx\n", fp->ptregs.pc, in access_error060() 385 fp->ptregs.format == 0xa ? fp->ptregs.pc + 2 : fp->un.fmtb.baddr - 2 in bus_error030() 387 fp->ptregs.format == 0xa ? fp->ptregs.pc + 4 : fp->un.fmtb.baddr); in bus_error030() 392 space_names[ssw & DFC], fp->ptregs.pc); in bus_error030() 416 fp->ptregs.pc); in bus_error030() 419 if((fp->ptregs.pc >= (unsigned long)&_sun3_map_test_start) && in bus_error030() 420 (fp->ptregs.pc <= (unsigned long)&_sun3_map_test_end)) { in bus_error030() 428 space_names[ssw & DFC], fp->ptregs.pc); in bus_error030() 463 fp->ptregs.pc); in bus_error030() [all …]
|
D | process.c | 92 regs->format, regs->vector, regs->pc, regs->sr, print_tainted()); in show_regs() 259 unsigned long fp, pc; in get_wchan() local 271 pc = ((unsigned long *)fp)[1]; in get_wchan() 272 if (!in_sched_functions(pc)) in get_wchan() 273 return pc; in get_wchan()
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | processor.h | 76 unsigned long pc; member 107 static inline void start_thread_common(struct pt_regs *regs, unsigned long pc) in start_thread_common() argument 111 regs->pc = pc; in start_thread_common() 114 static inline void start_thread(struct pt_regs *regs, unsigned long pc, in start_thread() argument 117 start_thread_common(regs, pc); in start_thread() 123 static inline void compat_start_thread(struct pt_regs *regs, unsigned long pc, in compat_start_thread() argument 126 start_thread_common(regs, pc); in compat_start_thread() 128 if (pc & 1) in compat_start_thread() 161 #define KSTK_EIP(tsk) ((unsigned long)task_pt_regs(tsk)->pc)
|
/linux-4.4.14/arch/mips/kernel/ |
D | process.c | 60 void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) in start_thread() argument 74 regs->cp0_epc = pc; in start_thread() 191 #define J_TARGET(pc,target) \ argument 192 (((unsigned long)(pc) & 0xf0000000) | ((target) << 2)) 437 unsigned long pc, in unwind_stack_by_address() argument 453 if (pc == (unsigned long)ret_from_irq || in unwind_stack_by_address() 454 pc == (unsigned long)ret_from_exception) { in unwind_stack_by_address() 459 pc = regs->cp0_epc; in unwind_stack_by_address() 460 if (!user_mode(regs) && __kernel_text_address(pc)) { in unwind_stack_by_address() 463 return pc; in unwind_stack_by_address() [all …]
|
D | perf_event.c | 50 unsigned long pc = regs->cp0_epc; in perf_callchain_kernel() local 52 if (raw_show_trace || !__kernel_text_address(pc)) { in perf_callchain_kernel() 61 perf_callchain_store(entry, pc); in perf_callchain_kernel() 64 pc = unwind_stack(current, &sp, pc, &ra); in perf_callchain_kernel() 65 } while (pc); in perf_callchain_kernel()
|
D | stacktrace.c | 40 unsigned long pc = regs->cp0_epc; in save_context_stack() local 42 if (raw_show_trace || !__kernel_text_address(pc)) { in save_context_stack() 51 if (savesched || !in_sched_functions(pc)) { in save_context_stack() 55 trace->entries[trace->nr_entries++] = pc; in save_context_stack() 59 pc = unwind_stack(tsk, &sp, pc, &ra); in save_context_stack() 60 } while (pc); in save_context_stack()
|
/linux-4.4.14/arch/powerpc/oprofile/ |
D | op_model_power4.c | 283 unsigned long pc = mfspr(SPRN_SIAR); in get_pc() local 289 return pc; in get_pc() 296 pc += 4 * (slot - 1); in get_pc() 307 return pc; in get_pc() 311 if (pc >= rtas.base && pc < (rtas.base + rtas.size)) in get_pc() 317 if (pc < 0x1000000UL) in get_pc() 318 return (unsigned long)__va(pc); in get_pc() 321 if (!is_kernel_addr(pc)) in get_pc() 325 return pc; in get_pc() 328 static int get_kernel(unsigned long pc, unsigned long mmcra) in get_kernel() argument [all …]
|
D | op_model_7450.c | 175 unsigned long pc; in fsl7450_handle_interrupt() local 183 pc = mfspr(SPRN_SIAR); in fsl7450_handle_interrupt() 184 is_kernel = is_kernel_addr(pc); in fsl7450_handle_interrupt() 190 oprofile_add_ext_sample(pc, regs, i, is_kernel); in fsl7450_handle_interrupt()
|
/linux-4.4.14/arch/sh/include/asm/ |
D | processor_64.h | 27 void *pc; \ 33 :"=r" (pc), "=r" (__dummy) \ 35 pc; }) 109 unsigned long pc; member 147 .pc = 0, \ 161 _regs->pc = new_pc - 4; /* Compensate syscall exit */ \ 162 _regs->pc |= 1; /* Set SHmedia ! */ \ 226 #define thread_saved_pc(tsk) (tsk->thread.pc) 230 #define KSTK_EIP(tsk) ((tsk)->thread.pc)
|
D | processor_32.h | 22 #define current_text_addr() ({ void *pc; __asm__("mova 1f, %0\n.align 2\n1:":"=z" (pc)); pc; }) 99 unsigned long pc; member 180 #define thread_saved_pc(tsk) (tsk->thread.pc) 195 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
|
D | ptrace.h | 107 unsigned long pc = regs->pc; in profile_pc() local 109 if (virt_addr_uncached(pc)) in profile_pc() 110 return CAC_ADDR(pc); in profile_pc() 112 return pc; in profile_pc()
|
/linux-4.4.14/arch/frv/mm/ |
D | extable.c | 18 unsigned long search_exception_table(unsigned long pc) in search_exception_table() argument 24 (unsigned long) &memset <= pc && pc < (unsigned long) &__memset_end in search_exception_table() 34 (unsigned long) &memcpy <= pc && pc < (unsigned long) &__memcpy_end in search_exception_table() 43 extab = search_exception_tables(pc); in search_exception_table()
|
D | fault.c | 111 __frame->pc, in do_page_fault() 112 ((u8*)__frame->pc)[0], in do_page_fault() 113 ((u8*)__frame->pc)[1], in do_page_fault() 114 ((u8*)__frame->pc)[2], in do_page_fault() 115 ((u8*)__frame->pc)[3], in do_page_fault() 116 ((u8*)__frame->pc)[4], in do_page_fault() 117 ((u8*)__frame->pc)[5], in do_page_fault() 118 ((u8*)__frame->pc)[6], in do_page_fault() 119 ((u8*)__frame->pc)[7] in do_page_fault() 141 printk("WP fault at %08lx\n", __frame->pc); in do_page_fault() [all …]
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | processor_32.h | 13 #define current_text_addr() ({ void *pc; __asm__("sethi %%hi(1f), %0; or %0, %%lo(1f), %0;\n1:" : "… 80 static inline void start_thread(struct pt_regs * regs, unsigned long pc, in start_thread() argument 86 regs->pc = ((pc & (~3)) - 4); in start_thread() 87 regs->npc = regs->pc + 4; in start_thread() 113 #define KSTK_EIP(tsk) ((tsk)->thread.kregs->pc)
|
D | processor_64.h | 14 #define current_text_addr() ({ void *pc; __asm__("rd %%pc, %0" : "=r" (pc)); pc; }) 108 #define start_thread(regs, pc, sp) \ argument 112 regs->tpc = ((pc & (~3)) - 4); \ 150 #define start_thread32(regs, pc, sp) \ argument 153 pc &= 0x00000000ffffffffUL; \ 156 regs->tpc = ((pc & (~3)) - 4); \
|
/linux-4.4.14/arch/sh/kernel/cpu/sh4/ |
D | fpu.c | 180 unsigned short insn = *(unsigned short *)regs->pc; in ieee_fpe_handler() 191 regs->pr = regs->pc + 4; /* bsr & jsr */ in ieee_fpe_handler() 195 nextpc = regs->pc + 4 + ((short)((insn & 0xfff) << 4) >> 3); in ieee_fpe_handler() 196 finsn = *(unsigned short *)(regs->pc + 2); in ieee_fpe_handler() 200 nextpc = regs->pc + 4 + ((char)(insn & 0xff) << 1); in ieee_fpe_handler() 202 nextpc = regs->pc + 4; in ieee_fpe_handler() 203 finsn = *(unsigned short *)(regs->pc + 2); in ieee_fpe_handler() 207 nextpc = regs->pc + 4; in ieee_fpe_handler() 209 nextpc = regs->pc + 4 + ((char)(insn & 0xff) << 1); in ieee_fpe_handler() 210 finsn = *(unsigned short *)(regs->pc + 2); in ieee_fpe_handler() [all …]
|
/linux-4.4.14/arch/mips/kvm/ |
D | emulate.c | 207 branch_pc = kvm_compute_return_epc(vcpu, vcpu->arch.pc); in update_pc() 211 vcpu->arch.pc = branch_pc; in update_pc() 213 vcpu->arch.pc); in update_pc() 216 vcpu->arch.pc += 4; in update_pc() 218 kvm_debug("update_pc(): New PC: %#lx\n", vcpu->arch.pc); in update_pc() 756 kvm_debug("[%#lx] ERET to %#lx\n", vcpu->arch.pc, in kvm_mips_emul_eret() 759 vcpu->arch.pc = kvm_read_c0_guest_epc(cop0); in kvm_mips_emul_eret() 763 vcpu->arch.pc = kvm_read_c0_guest_errorepc(cop0); in kvm_mips_emul_eret() 766 vcpu->arch.pc); in kvm_mips_emul_eret() 775 kvm_debug("[%#lx] !!!WAIT!!! (%#lx)\n", vcpu->arch.pc, in kvm_mips_emul_wait() [all …]
|
D | trace.h | 27 __field(unsigned long, pc) 32 __entry->pc = vcpu->arch.pc; 38 __entry->pc)
|
D | trap_emul.c | 44 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_cop_unusable() 91 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_tlb_mod() 135 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_tlb_st_miss() 182 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_tlb_ld_miss() 197 vcpu->arch.pc, badvaddr); in kvm_trap_emul_handle_tlb_ld_miss() 236 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_addr_err_st() 266 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_addr_err_ld() 296 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_syscall() 314 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_res_inst() 332 uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; in kvm_trap_emul_handle_break() [all …]
|
/linux-4.4.14/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 32 struct perf_event_mmap_page *pc = addr; in mmap_read_self() local 37 seq = pc->lock; in mmap_read_self() 40 enabled = pc->time_enabled; in mmap_read_self() 41 running = pc->time_running; in mmap_read_self() 45 time_mult = pc->time_mult; in mmap_read_self() 46 time_shift = pc->time_shift; in mmap_read_self() 47 time_offset = pc->time_offset; in mmap_read_self() 50 idx = pc->index; in mmap_read_self() 51 count = pc->offset; in mmap_read_self() 56 } while (pc->lock != seq); in mmap_read_self()
|
/linux-4.4.14/arch/tile/mm/ |
D | fault.c | 92 regs->pc -= 8; in SYSCALL_DEFINE1() 212 unsigned long address, unsigned long pc, in handle_migrating_pte() argument 234 if (in_nmi() && search_exception_tables(pc)) in handle_migrating_pte() 311 if (handle_migrating_pte(pgd, fault_num, address, regs->pc, in handle_page_fault() 385 !search_exception_tables(regs->pc)) { in handle_page_fault() 532 address, regs->pc); in handle_page_fault() 604 unsigned long pc = info & ~1; in do_page_fault_ics() local 614 if ((pc & 0x7) != 0 || pc < PAGE_OFFSET || in do_page_fault_ics() 617 unsigned long old_pc = regs->pc; in do_page_fault_ics() 618 regs->pc = pc; in do_page_fault_ics() [all …]
|
/linux-4.4.14/drivers/pinctrl/ |
D | pinctrl-st.c | 209 #define pc_to_bank(pc) \ argument 210 container_of(pc, struct st_gpio_bank, pc) 321 struct st_pio_control pc; member 410 return &bank->pc; in st_get_pio_control() 424 static void st_pinconf_set_config(struct st_pio_control *pc, in st_pinconf_set_config() argument 427 struct regmap_field *output_enable = pc->oe; in st_pinconf_set_config() 428 struct regmap_field *pull_up = pc->pu; in st_pinconf_set_config() 429 struct regmap_field *open_drain = pc->od; in st_pinconf_set_config() 458 static void st_pctl_set_function(struct st_pio_control *pc, in st_pctl_set_function() argument 461 struct regmap_field *alt = pc->alt; in st_pctl_set_function() [all …]
|
/linux-4.4.14/arch/arm/include/asm/ |
D | insn.h | 15 __arm_gen_branch(unsigned long pc, unsigned long addr, bool link); 18 arm_gen_branch(unsigned long pc, unsigned long addr) in arm_gen_branch() argument 20 return __arm_gen_branch(pc, addr, false); in arm_gen_branch() 24 arm_gen_branch_link(unsigned long pc, unsigned long addr) in arm_gen_branch_link() argument 26 return __arm_gen_branch(pc, addr, true); in arm_gen_branch_link()
|
/linux-4.4.14/firmware/av7110/ |
D | Boot.S | 38 movs pc, r14 // undefined 39 subs pc, r14, #4 // SWI 40 subs pc, r14, #4 // prefetch abort 41 subs pc, r14, #8 // data abort 42 subs pc, r14, #4 // reserved 43 subs pc, r14, #4 // IRQ 44 subs pc, r14, #4 // FIQ 70 ldr pc, sram // jump to the copied code
|
/linux-4.4.14/kernel/trace/ |
D | trace_sched_wakeup.c | 76 int *pc) in func_prolog_preempt_disable() argument 84 *pc = preempt_count(); in func_prolog_preempt_disable() 116 int pc; in wakeup_tracer_call() local 118 if (!func_prolog_preempt_disable(tr, &data, &pc)) in wakeup_tracer_call() 122 trace_function(tr, ip, parent_ip, flags, pc); in wakeup_tracer_call() 240 int pc, ret = 0; in wakeup_graph_entry() local 242 if (!func_prolog_preempt_disable(tr, &data, &pc)) in wakeup_graph_entry() 246 ret = __trace_graph_entry(tr, trace, flags, pc); in wakeup_graph_entry() 258 int pc; in wakeup_graph_return() local 260 if (!func_prolog_preempt_disable(tr, &data, &pc)) in wakeup_graph_return() [all …]
|
D | trace_irqsoff.c | 176 int pc; in irqsoff_graph_entry() local 181 pc = preempt_count(); in irqsoff_graph_entry() 182 ret = __trace_graph_entry(tr, trace, flags, pc); in irqsoff_graph_entry() 193 int pc; in irqsoff_graph_return() local 198 pc = preempt_count(); in irqsoff_graph_return() 199 __trace_graph_return(tr, trace, flags, pc); in irqsoff_graph_return() 246 unsigned long flags, int pc) in __trace_function() argument 249 trace_graph_function(tr, ip, parent_ip, flags, pc); in __trace_function() 251 trace_function(tr, ip, parent_ip, flags, pc); in __trace_function() 309 int pc; in check_critical_timing() local [all …]
|
D | trace_mmiotrace.c | 189 rw->value, rw->pc, 0); in mmio_print_rw() 196 rw->value, rw->pc, 0); in mmio_print_rw() 205 (rw->value >> 0) & 0xff, rw->pc, 0); in mmio_print_rw() 305 int pc = preempt_count(); in __trace_mmiotrace_rw() local 308 sizeof(*entry), 0, pc); in __trace_mmiotrace_rw() 317 trace_buffer_unlock_commit(tr, buffer, event, 0, pc); in __trace_mmiotrace_rw() 335 int pc = preempt_count(); in __trace_mmiotrace_map() local 338 sizeof(*entry), 0, pc); in __trace_mmiotrace_map() 347 trace_buffer_unlock_commit(tr, buffer, event, 0, pc); in __trace_mmiotrace_map()
|
/linux-4.4.14/fs/udf/ |
D | symlink.c | 35 struct pathComponent *pc; in udf_pc_to_char() local 43 pc = (struct pathComponent *)(from + elen); in udf_pc_to_char() 45 switch (pc->componentType) { in udf_pc_to_char() 51 if (pc->lengthComponentIdent > 0) { in udf_pc_to_char() 52 elen += pc->lengthComponentIdent; in udf_pc_to_char() 79 elen += pc->lengthComponentIdent; in udf_pc_to_char() 82 comp_len = udf_get_filename(sb, pc->componentIdent, in udf_pc_to_char() 83 pc->lengthComponentIdent, in udf_pc_to_char()
|
/linux-4.4.14/tools/perf/arch/powerpc/util/ |
D | skip-callchain-idx.c | 93 static Dwarf_Frame *get_eh_frame(Dwfl_Module *mod, Dwarf_Addr pc) in get_eh_frame() argument 106 result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); in get_eh_frame() 118 static Dwarf_Frame *get_dwarf_frame(Dwfl_Module *mod, Dwarf_Addr pc) in get_dwarf_frame() argument 131 result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); in get_dwarf_frame() 148 static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) in check_return_addr() argument 155 Dwarf_Addr start = pc; in check_return_addr() 156 Dwarf_Addr end = pc; in check_return_addr() 185 mod = dwfl_addrmodule(dwfl, pc); in check_return_addr() 195 frame = get_eh_frame(mod, pc); in check_return_addr() 197 frame = get_dwarf_frame(mod, pc); in check_return_addr()
|
/linux-4.4.14/arch/m32r/kernel/ |
D | ptrace.c | 255 compute_next_pc_for_16bit_insn(unsigned long insn, unsigned long pc, in compute_next_pc_for_16bit_insn() argument 266 if (pc & 3) in compute_next_pc_for_16bit_insn() 281 *next_pc = (pc & ~0x3) + disp; in compute_next_pc_for_16bit_insn() 289 *next_pc = (pc & ~0x3) + disp; in compute_next_pc_for_16bit_insn() 296 *next_pc = (pc & ~0x3) + disp; in compute_next_pc_for_16bit_insn() 352 *next_pc = pc + 4; in compute_next_pc_for_16bit_insn() 354 *next_pc = pc + 2; in compute_next_pc_for_16bit_insn() 358 compute_next_pc_for_32bit_insn(unsigned long insn, unsigned long pc, in compute_next_pc_for_32bit_insn() argument 375 *next_pc = (pc & ~0x3) + disp; in compute_next_pc_for_32bit_insn() 383 *next_pc = (pc & ~0x3) + disp; in compute_next_pc_for_32bit_insn() [all …]
|
/linux-4.4.14/arch/arm/lib/ |
D | ecard.S | 29 mov lr, pc 30 mov pc, r2 31 ldmfd sp!, {r4 - r12, pc} 41 mov lr, pc 42 add pc, r1, #8 43 ldmfd sp!, {r4 - r12, pc}
|
D | floppydma.S | 20 subs pc, lr, #4 29 subles pc, lr, #4 31 subs pc, lr, #4
|
D | backtrace.S | 41 1: stmfd sp!, {pc} @ calculate offset of PC stored 64 1001: ldr sv_pc, [frame, #0] @ get saved pc 88 1004: ldr r1, [sv_pc, #0] @ if stmfd sp!, {..., fp, ip, lr, pc} 104 no_frame: ldmfd sp!, {r4 - r8, pc} 143 ldmfd sp!, {instr, reg, stack, r7, pc} 149 .Ldsi: .word 0xe92dd800 >> 11 @ stmfd sp!, {... fp, ip, lr, pc}
|
/linux-4.4.14/arch/mips/oprofile/ |
D | backtrace.c | 14 unsigned long pc; member 79 if (old_frame->pc == 0 || old_frame->sp == 0 || old_frame->ra == 0) in unwind_user_frame() 82 for (addr = new_frame.pc; (addr + max_instr_check > new_frame.pc) in unwind_user_frame() 125 new_frame.pc = old_frame->ra; in unwind_user_frame() 154 while (depth-- && frame->pc) { in do_kernel_backtrace() 155 frame->pc = unwind_stack_by_address(low_addr, in do_kernel_backtrace() 157 frame->pc, in do_kernel_backtrace() 167 .pc = regs->cp0_epc, in op_mips_backtrace()
|
/linux-4.4.14/arch/arm/probes/kprobes/ |
D | actions-thumb.c | 30 unsigned long pc = regs->ARM_pc; in t32_simulate_table_branch() local 34 unsigned long rnv = (rn == 15) ? pc : regs->uregs[rn]; in t32_simulate_table_branch() 43 regs->ARM_pc = pc + 2 * halfwords; in t32_simulate_table_branch() 59 unsigned long pc = regs->ARM_pc; in t32_simulate_cond_branch() local 67 regs->ARM_pc = pc + (offset * 2); in t32_simulate_cond_branch() 84 unsigned long pc = regs->ARM_pc; in t32_simulate_branch() local 101 pc &= ~3; in t32_simulate_branch() 105 regs->ARM_pc = pc + (offset * 2); in t32_simulate_branch() 164 unsigned long pc = regs->ARM_pc & ~3; in t32_emulate_ldrdstrd() local 171 register unsigned long rnv asm("r2") = (rn == 15) ? pc in t32_emulate_ldrdstrd() [all …]
|
D | actions-arm.c | 80 unsigned long pc = regs->ARM_pc + 4; in emulate_ldrdstrd() local 87 register unsigned long rnv asm("r2") = (rn == 15) ? pc in emulate_ldrdstrd() 109 unsigned long pc = regs->ARM_pc + 4; in emulate_ldr() local 115 register unsigned long rnv asm("r2") = (rn == 15) ? pc in emulate_ldr() 166 unsigned long pc = regs->ARM_pc + 4; in emulate_rd12rn16rm0rs8_rwflags() local 173 register unsigned long rnv asm("r2") = (rn == 15) ? pc in emulate_rd12rn16rm0rs8_rwflags() 175 register unsigned long rmv asm("r3") = (rm == 15) ? pc in emulate_rd12rn16rm0rs8_rwflags()
|
/linux-4.4.14/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_pro.c | 133 u8 *pc; in pcan_msg_add_rec() local 138 pc = pm->rec_ptr + 1; in pcan_msg_add_rec() 147 *pc++ = va_arg(ap, int); in pcan_msg_add_rec() 148 *pc++ = va_arg(ap, int); in pcan_msg_add_rec() 149 *pc++ = va_arg(ap, int); in pcan_msg_add_rec() 150 *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); in pcan_msg_add_rec() 151 pc += 4; in pcan_msg_add_rec() 152 memcpy(pc, va_arg(ap, int *), i); in pcan_msg_add_rec() 153 pc += i; in pcan_msg_add_rec() 158 *pc++ = va_arg(ap, int); in pcan_msg_add_rec() [all …]
|
D | pcan_usb_fd.c | 237 u8 *pc = buf; in pcan_usb_fd_build_restart_cmd() local 240 prc = (struct pucan_wr_err_cnt *)pc; in pcan_usb_fd_build_restart_cmd() 252 pc += sizeof(struct pucan_wr_err_cnt); in pcan_usb_fd_build_restart_cmd() 256 struct pucan_options *puo = (struct pucan_options *)pc; in pcan_usb_fd_build_restart_cmd() 272 pc += sizeof(struct pucan_options); in pcan_usb_fd_build_restart_cmd() 276 cmd = (struct pucan_command *)pc; in pcan_usb_fd_build_restart_cmd() 281 pc += sizeof(struct pucan_command); in pcan_usb_fd_build_restart_cmd() 283 return pc - buf; in pcan_usb_fd_build_restart_cmd() 289 u8 *pc = pcan_usb_fd_cmd_buffer(dev); in pcan_usb_fd_set_bus() local 294 l = pcan_usb_fd_build_restart_cmd(dev, pc); in pcan_usb_fd_set_bus() [all …]
|
/linux-4.4.14/arch/openrisc/kernel/ |
D | signal.c | 57 err |= __copy_from_user(®s->pc, &sc->regs.pc, sizeof(unsigned long)); in restore_sigcontext() 119 err |= __copy_to_user(&sc->regs.pc, ®s->pc, sizeof(unsigned long)); in setup_sigcontext() 197 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; /* what we enter NOW */ in setup_rt_frame() 240 continue_addr = regs->pc; in do_signal() 257 regs->pc = restart_addr; in do_signal() 269 if (unlikely(restart) && regs->pc == restart_addr) { in do_signal() 276 regs->pc = continue_addr; in do_signal() 287 if (unlikely(restart) && regs->pc == restart_addr) { in do_signal() 288 regs->pc = continue_addr; in do_signal()
|
D | process.c | 100 return (unsigned long)user_regs(t->stack)->pc; in thread_saved_pc() 196 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) in start_thread() argument 202 regs->pc = pc; in start_thread() 249 dest[32] = regs->pc; in dump_elf_thread()
|
/linux-4.4.14/kernel/ |
D | profile.c | 33 u32 pc, hits; member 255 if (hits[i].pc) in profile_flip_buffers() 256 hits[i].pc = 0; in profile_flip_buffers() 259 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_flip_buffers() 260 hits[i].hits = hits[i].pc = 0; in profile_flip_buffers() 283 unsigned long primary, secondary, flags, pc = (unsigned long)__pc; in do_profile_hits() local 287 pc = min((pc - (unsigned long)_stext) >> prof_shift, prof_len - 1); in do_profile_hits() 288 i = primary = (pc & (NR_PROFILE_GRP - 1)) << PROFILE_GRPSHIFT; in do_profile_hits() 289 secondary = (~(pc << 1) & (NR_PROFILE_GRP - 1)) << PROFILE_GRPSHIFT; in do_profile_hits() 304 if (hits[i + j].pc == pc) { in do_profile_hits() [all …]
|
/linux-4.4.14/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 411 unsigned short insn = *(unsigned short *) regs->pc; in ieee_fpe_handler() 422 regs->pr = regs->pc + 4; in ieee_fpe_handler() 424 nextpc = regs->pc + 4 + ((short) ((insn & 0xfff) << 4) >> 3); in ieee_fpe_handler() 425 finsn = *(unsigned short *) (regs->pc + 2); in ieee_fpe_handler() 428 nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); in ieee_fpe_handler() 430 nextpc = regs->pc + 4; in ieee_fpe_handler() 431 finsn = *(unsigned short *) (regs->pc + 2); in ieee_fpe_handler() 434 nextpc = regs->pc + 4; in ieee_fpe_handler() 436 nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); in ieee_fpe_handler() 437 finsn = *(unsigned short *) (regs->pc + 2); in ieee_fpe_handler() [all …]
|
/linux-4.4.14/arch/ia64/oprofile/ |
D | backtrace.c | 35 static __inline__ int in_ivt_code(unsigned long pc) in in_ivt_code() argument 38 return (pc >= (u_long)ia64_ivt && pc < (u_long)ia64_ivt+32768); in in_ivt_code() 75 u_long pc, sp; in do_ia64_backtrace() local 94 unw_get_ip(&bt->frame, &pc); in do_ia64_backtrace() 95 oprofile_add_trace(pc); in do_ia64_backtrace()
|
/linux-4.4.14/arch/c6x/kernel/ |
D | process.c | 92 void start_thread(struct pt_regs *regs, unsigned int pc, unsigned long usp) in start_thread() argument 104 regs->pc = pc; in start_thread() 125 p->thread.pc = (unsigned long) ret_from_kernel_thread; in copy_thread() 133 p->thread.pc = (unsigned long) ret_from_fork; in copy_thread() 139 p->thread.wchan = p->thread.pc; in copy_thread()
|
D | signal.c | 58 COPY(csr); COPY(pc); in restore_sigcontext() 123 COPY(csr); COPY(pc); in setup_sigcontext() 195 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame() 230 regs->pc -= 4; in handle_restart() 261 regs->pc -= 4; in handle_signal() 295 regs->pc -= 4; in do_signal() 301 regs->pc -= 4; in do_signal()
|
/linux-4.4.14/arch/avr32/lib/ |
D | memcpy.S | 41 add pc, pc, r10 56 add pc, pc, r9 64 add pc, pc, r9
|
/linux-4.4.14/arch/alpha/lib/ |
D | stacktrace.c | 67 seek_prologue(instr * pc) in seek_prologue() argument 69 while (!STK_ALLOC_MATCH(*pc)) in seek_prologue() 70 --pc; in seek_prologue() 71 while (!BB_END(*(pc - 1))) in seek_prologue() 72 --pc; in seek_prologue() 73 return pc; in seek_prologue()
|
/linux-4.4.14/arch/mn10300/mm/ |
D | fault.c | 203 regs->pc, in do_page_fault() 204 ((u8 *) regs->pc)[0], in do_page_fault() 205 ((u8 *) regs->pc)[1], in do_page_fault() 206 ((u8 *) regs->pc)[2], in do_page_fault() 207 ((u8 *) regs->pc)[3], in do_page_fault() 208 ((u8 *) regs->pc)[4], in do_page_fault() 209 ((u8 *) regs->pc)[5], in do_page_fault() 210 ((u8 *) regs->pc)[6], in do_page_fault() 211 ((u8 *) regs->pc)[7] in do_page_fault() 232 printk(KERN_DEBUG "WP fault at %08lx\n", regs->pc); in do_page_fault() [all …]
|
D | misalignment.c | 326 uint8_t *pc, byte, datasz; in misalignment() local 336 kdebug("==>misalignment({pc=%lx,sp=%lx})", regs->pc, sp); in misalignment() 344 fixup = search_exception_tables(regs->pc); in misalignment() 347 pc = (u_int8_t *) regs->pc; in misalignment() 349 if (__get_user(byte, pc) != 0) in misalignment() 373 pc++; in misalignment() 374 if (__get_user(byte, pc) != 0) in misalignment() 389 regs->pc, opcode); in misalignment() 400 info.si_addr = (void *) regs->pc; in misalignment() 408 pc); in misalignment() [all …]
|
/linux-4.4.14/arch/frv/kernel/ |
D | process.c | 150 p->thread.pc = (unsigned long) ret_from_kernel_thread; in copy_thread() 158 p->thread.pc = (unsigned long) ret_from_fork; in copy_thread() 172 unsigned long fp, pc; in get_wchan() local 186 pc = ((unsigned long *) fp)[2]; in get_wchan() 189 if (!in_sched_functions(pc)) in get_wchan() 190 return pc; in get_wchan() 201 if (in_sched_functions(tsk->thread.pc)) in thread_saved_pc() 204 return tsk->thread.pc; in thread_saved_pc()
|
D | signal.c | 223 __frame->pc = desc.text; in setup_frame() 226 __frame->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame() 236 sig, current->comm, current->pid, frame, __frame->pc, in setup_frame() 304 __frame->pc = desc.text; in setup_rt_frame() 307 __frame->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame() 318 sig, current->comm, current->pid, frame, __frame->pc, in setup_rt_frame() 352 __frame->pc -= 4; in handle_signal() 389 __frame->pc -= 4; in do_signal() 394 __frame->pc -= 4; in do_signal()
|
D | debug-stub.c | 73 if (__debug_frame->pc == (unsigned long) __break_hijack_kernel_event_breaks_here) { in debug_stub() 82 if (__debug_frame->pc == (unsigned long) __debug_bug_trap + 4) { in debug_stub() 83 __debug_frame->pc = __debug_frame->lr; in debug_stub() 122 if (__debug_frame->pc == (unsigned long) __debug_stub_init_break) in debug_stub_init() 123 __debug_frame->pc = (unsigned long) start_kernel; in debug_stub_init()
|
/linux-4.4.14/include/linux/bcma/ |
D | bcma_driver_pci.h | 236 #define pcicore_read16(pc, offset) bcma_read16((pc)->core, offset) argument 237 #define pcicore_read32(pc, offset) bcma_read32((pc)->core, offset) argument 238 #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) argument 239 #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) argument
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | processor.h | 25 register void *pc asm("pc"); in current_text_addr() 26 return pc; in current_text_addr() 100 unsigned long pc; member 132 regs->pc = new_pc & ~1; \ 142 #define thread_saved_pc(tsk) ((tsk)->thread.cpu_context.pc) 153 #define KSTK_EIP(tsk) ((tsk)->thread.cpu_context.pc)
|
/linux-4.4.14/arch/arm/mach-omap2/ |
D | omap-smc.S | 33 ldmfd sp!, {r2-r12, pc} 56 ldmfd sp!, {r4-r12, pc} 73 ldmfd sp!, {r4-r11, pc} 81 ldmfd sp!, {r1-r12, pc} 89 ldmfd sp!, {r2-r12, pc} 98 ldmfd sp!, {r2-r12, pc}
|
/linux-4.4.14/arch/hexagon/kernel/ |
D | process.c | 38 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) in start_thread() argument 44 pt_set_elr(regs, pc); in start_thread() 160 unsigned long fp, pc; in get_wchan() local 172 pc = ((unsigned long *)fp)[1]; in get_wchan() 173 if (!in_sched_functions(pc)) in get_wchan() 174 return pc; in get_wchan()
|
/linux-4.4.14/arch/unicore32/mm/ |
D | proc-ucv2.S | 26 ldm.w (pc), [sp]+ 51 mov pc, r0 @ jump to loc 66 mov pc, lr 84 mov pc, lr 90 mov pc, lr 110 mov pc, lr 133 mov pc, lr
|
D | cache-ucv2.S | 41 mov pc, lr 80 mov pc, lr 130 mov pc, lr 142 mov pc, lr 173 mov pc, lr 179 mov pc, lr 205 mov pc, lr 211 mov pc, lr
|
/linux-4.4.14/sound/oss/ |
D | vidc_fill.S | 30 mov pc, lr 44 mov pc, lr 56 mov pc, lr 70 mov pc, lr 88 mov pc, lr 102 mov pc, lr 112 mov pc, lr 153 mov lr, pc 154 mov pc, r4 @ Call fill routine (uses r4, ip) 190 movne pc, lr [all …]
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | bnx2_fw.h | 20 .pc = BNX2_COM_CPU_PROGRAM_COUNTER, 36 .pc = BNX2_CP_CPU_PROGRAM_COUNTER, 52 .pc = BNX2_RXP_CPU_PROGRAM_COUNTER, 68 .pc = BNX2_TPAT_CPU_PROGRAM_COUNTER, 84 .pc = BNX2_TXP_CPU_PROGRAM_COUNTER,
|
/linux-4.4.14/arch/arm64/kvm/ |
D | regmap.c | 41 REG_OFFSET(pc) 56 REG_OFFSET(pc) 68 REG_OFFSET(pc) 80 REG_OFFSET(pc) 92 REG_OFFSET(pc) 104 REG_OFFSET(pc)
|
/linux-4.4.14/arch/mips/pci/ |
D | pci-ip27.c | 62 bc->pc.pci_ops = &bridge_pci_ops; in bridge_probe() 63 bc->pc.mem_resource = &bc->mem; in bridge_probe() 64 bc->pc.io_resource = &bc->io; in bridge_probe() 66 bc->pc.index = num_bridges; in bridge_probe() 69 bc->pc.mem_offset = offset; in bridge_probe() 75 bc->pc.io_offset = offset; in bridge_probe() 129 register_pci_controller(&bc->pc); in bridge_probe()
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | processor.h | 31 #define current_text_addr() ({ void *pc; current_ia(pc); pc; }) 274 elf_addr_t pc = (elf_addr_t)new_pc | 3; \ 279 regs->iaoq[0] = pc; \ 280 regs->iaoq[1] = pc + 4; \ 293 regs->gr[31] = pc; \
|
/linux-4.4.14/arch/sh/math-emu/ |
D | math.c | 507 unsigned short insn = *(unsigned short *)regs->pc; in ieee_fpe_handler() 519 regs->pr = regs->pc + 4; in ieee_fpe_handler() 522 nextpc = regs->pc + 4 + ((short) ((insn & 0xfff) << 4) >> 3); in ieee_fpe_handler() 523 finsn = *(unsigned short *) (regs->pc + 2); in ieee_fpe_handler() 526 nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); in ieee_fpe_handler() 528 nextpc = regs->pc + 4; in ieee_fpe_handler() 529 finsn = *(unsigned short *) (regs->pc + 2); in ieee_fpe_handler() 532 nextpc = regs->pc + 4; in ieee_fpe_handler() 534 nextpc = regs->pc + 4 + ((char) (insn & 0xff) << 1); in ieee_fpe_handler() 535 finsn = *(unsigned short *) (regs->pc + 2); in ieee_fpe_handler() [all …]
|
/linux-4.4.14/arch/cris/arch-v32/kernel/ |
D | ptrace.c | 275 static int insn_size(struct task_struct *child, unsigned long pc) in insn_size() argument 282 copied = access_process_vm(child, pc, &opcode, sizeof(opcode), 0); in insn_size() 305 opcode, pc); in insn_size() 314 unsigned long pc = get_reg(child, PT_ERP); in get_pseudo_pc() local 316 if (pc & 0x1) { in get_pseudo_pc() 324 pc = spc; in get_pseudo_pc() 328 pc += insn_size(child, pc & ~1) - 1; in get_pseudo_pc() 331 return pc; in get_pseudo_pc()
|
/linux-4.4.14/drivers/ptp/ |
D | ptp_private.h | 80 long ptp_ioctl(struct posix_clock *pc, 83 int ptp_open(struct posix_clock *pc, fmode_t fmode); 85 ssize_t ptp_read(struct posix_clock *pc, 88 uint ptp_poll(struct posix_clock *pc,
|
D | ptp_clock.c | 100 static int ptp_clock_getres(struct posix_clock *pc, struct timespec *tp) in ptp_clock_getres() argument 107 static int ptp_clock_settime(struct posix_clock *pc, const struct timespec *tp) in ptp_clock_settime() argument 109 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() 115 static int ptp_clock_gettime(struct posix_clock *pc, struct timespec *tp) in ptp_clock_gettime() argument 117 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() 127 static int ptp_clock_adjtime(struct posix_clock *pc, struct timex *tx) in ptp_clock_adjtime() argument 129 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() 178 static void delete_ptp_clock(struct posix_clock *pc) in delete_ptp_clock() argument 180 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in delete_ptp_clock()
|
D | ptp_chardev.c | 113 int ptp_open(struct posix_clock *pc, fmode_t fmode) in ptp_open() argument 118 long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) in ptp_ioctl() argument 124 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_ioctl() 259 unsigned int ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait) in ptp_poll() argument 261 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_poll() 270 ssize_t ptp_read(struct posix_clock *pc, in ptp_read() argument 273 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_read()
|
/linux-4.4.14/arch/arm/boot/compressed/ |
D | head.S | 198 mov r4, pc 212 mov r0, pc 215 addcc r0, r0, pc 452 mov pc, r0 586 mov pc, lr 644 mov pc, lr 672 mov pc, lr 711 mov r2, pc 718 mov pc, lr 752 mov pc, r12 [all …]
|
D | ll_char_wr.S | 38 @ Smashable regs: {r0 - r3}, [r4 - r7], (r8 - fp), [ip], (sp), [lr], (pc) 65 @ Smashable regs: {r0 - r3}, [r4], {r5 - r7}, (r8 - fp), [ip], (sp), {lr}, (pc) 80 ldmfd sp!, {r4 - r7, pc} 83 @ Smashable regs: {r0 - r3}, [r4], {r5 - r7}, (r8 - fp), [ip], (sp), {lr}, (pc) 108 ldmfd sp!, {r4 - r7, pc} 111 @ Smashable regs: {r0 - r3}, [r4], {r5, r6}, [r7], (r8 - fp), [ip], (sp), [lr], (pc) 130 ldmfd sp!, {r4 - r7, pc}
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | processor.h | 117 static inline void start_thread(struct pt_regs * regs, unsigned long pc, in start_thread() argument 120 regs->pc = pc; in start_thread() 132 (_regs)->pc = (_pc); \ 172 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \
|
/linux-4.4.14/drivers/spi/ |
D | spi-s3c24xx-fiq.S | 53 subnes pc, lr, #4 @@ return, still have work to do 58 subs pc, lr, #4 80 subnes pc, lr, #4 @@ return, still have work to do 84 subs pc, lr, #4 105 subnes pc, lr, #4 @@ return, still have work to do 109 subs pc, lr, #4
|
/linux-4.4.14/arch/c6x/include/asm/ |
D | processor.h | 63 unsigned long pc; /* kernel pc */ member 87 extern void start_thread(struct pt_regs *regs, unsigned int pc, 101 #define thread_saved_pc(tsk) (task_pt_regs(tsk)->pc) 120 #define KSTK_EIP(task) (task_pt_regs(task)->pc)
|
/linux-4.4.14/include/linux/ssb/ |
D | ssb_driver_pci.h | 90 extern void ssb_pcicore_init(struct ssb_pcicore *pc); 93 extern int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc, 107 void ssb_pcicore_init(struct ssb_pcicore *pc) in ssb_pcicore_init() argument 112 int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc, in ssb_pcicore_dev_irqvecs_enable() argument
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | signal.c | 62 RESTORE(pc); in rt_restore_sigcontext() 123 SETUP(pc); in rt_setup_sigcontext() 174 u32 pc, p3; in setup_rt_frame() local 175 err |= __get_user(pc, &funcptr->text); in setup_rt_frame() 179 regs->pc = pc; in setup_rt_frame() 182 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame() 213 regs->pc -= 2; in handle_restart() 218 regs->pc -= 2; in handle_restart()
|
D | process.c | 83 regs->pc = new_ip; in start_thread() 138 p->thread.pc = (unsigned long)ret_from_fork; in copy_thread() 145 unsigned long fp, pc; in get_wchan() local 157 pc = ((unsigned long *)fp)[1]; in get_wchan() 158 if (!in_sched_functions(pc)) in get_wchan() 159 return pc; in get_wchan() 170 switch (regs->pc) { in finish_atomic_sections() 227 regs->pc = regs->rets; in finish_atomic_sections()
|
D | traps.c | 194 switch (report_bug(fp->pc, fp)) { in trap_c() 199 fp->pc += 2; in trap_c() 215 if (!kernel_mode_regs(fp) && get_instruction(&opcode, (unsigned short *)fp->pc)) { in trap_c() 367 if ((fp->pc >= (L1_CODE_START + L1_CODE_LENGTH - 512)) && in trap_c() 368 (fp->pc < (L1_CODE_START + L1_CODE_LENGTH))) { in trap_c() 487 info.si_addr = (void __user *)fp->pc; in trap_c() 493 if ((ANOMALY_05000461 && trapnr == VEC_HWERR && !access_ok(VERIFY_READ, fp->pc, 8)) || in trap_c() 496 fp->pc = SAFE_USER_INSTRUCTION; in trap_c()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | stacktrace.h | 9 unsigned long pc, unsigned long *ra); 12 unsigned long pc, 17 unsigned long *sp, unsigned long pc, unsigned long *ra) in unwind_stack() argument
|
/linux-4.4.14/arch/x86/um/asm/ |
D | processor_64.h | 35 ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; })
|
D | processor_32.h | 56 ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })
|
/linux-4.4.14/arch/parisc/kernel/ |
D | time.c | 175 unsigned long pc = instruction_pointer(regs); in profile_pc() local 178 pc -= 4; in profile_pc() 181 if (in_lock_functions(pc)) in profile_pc() 182 pc = regs->gr[2]; in profile_pc() 185 return pc; in profile_pc()
|
/linux-4.4.14/arch/cris/include/arch-v32/arch/ |
D | processor.h | 7 ({void *pc; __asm__ __volatile__ ("lapcq .,%0" : "=rm" (pc)); pc;})
|
/linux-4.4.14/arch/cris/include/arch-v10/arch/ |
D | processor.h | 8 #define current_text_addr() ({void *pc; __asm__ ("move.d $pc,%0" : "=rm" (pc)); pc; })
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | processor.h | 98 unsigned long pc; /* kernel PC */ member 112 .pc = 0, \ 129 regs->pc = new_pc; in start_thread() 145 #define KSTK_EIP(task) (task_pt_regs(task)->pc)
|
/linux-4.4.14/drivers/scsi/arm/ |
D | acornscsi-io.S | 44 LOADREGS(fd, sp!, {r4 - r7, pc}) 54 LOADREGS(eqfd, sp!, {r4 - r7, pc}) 63 LOADREGS(eqfd, sp!, {r4 - r7, pc}) 72 LOADREGS(fd, sp!, {r4 - r7, pc}) 104 LOADREGS(fd, sp!, {r4 - r6, pc}) 118 LOADREGS(eqfd, sp!, {r4 - r6, pc}) 129 LOADREGS(eqfd, sp!, {r4 - r6, pc}) 137 LOADREGS(fd, sp!, {r4 - r6, pc})
|
/linux-4.4.14/arch/tile/include/asm/ |
D | processor.h | 97 unsigned long pc; member 202 unsigned long pc, unsigned long usp) in start_thread() argument 204 regs->pc = pc; in start_thread() 222 #define thread_saved_pc(t) ((t)->thread.pc) 237 #define task_pc(task) (task_pt_regs(task)->pc)
|
/linux-4.4.14/arch/unicore32/lib/ |
D | backtrace.S | 29 mov pc, lr 38 1: stm.w (pc), [sp-] @ calculate offset of PC stored 60 1001: ldw sv_pc, [frame+], #0 @ get saved pc 86 1004: ldw r1, [sv_pc+], #0 @ if stmfd {, fp, ip, lr, pc} 103 no_frame: ldm.w (v4 - v8, pc), [sp]+ 154 201: ldm.w (instr, reg, stack, v7, pc), [sp]+ 160 .Ldsi: .word 0x92eec000 >> 14 @ stm.w sp, (... fp, ip, lr, pc)
|
/linux-4.4.14/arch/x86/kernel/ |
D | time.c | 31 unsigned long pc = instruction_pointer(regs); in profile_pc() local 33 if (!user_mode(regs) && in_lock_functions(pc)) { in profile_pc() 50 return pc; in profile_pc()
|
/linux-4.4.14/arch/unicore32/kernel/ |
D | stacktrace.c | 51 frame->pc = *(unsigned long *)(fp - 4); in unwind_frame() 83 unsigned long addr = frame->pc; in save_trace() 110 frame.pc = thread_saved_pc(tsk); in save_stack_trace_tsk() 118 frame.pc = (unsigned long)save_stack_trace_tsk; in save_stack_trace_tsk()
|
/linux-4.4.14/tools/net/ |
D | bpf_jit_disasm.c | 53 int count, i, pc = 0; in get_asm_insns() local 78 printf("%4x:\t", pc); in get_asm_insns() 80 count = disassemble(pc, &info); in get_asm_insns() 85 printf("%02x ", (uint8_t) image[pc + i]); in get_asm_insns() 89 pc += count; in get_asm_insns() 90 } while(count > 0 && pc < len); in get_asm_insns()
|
/linux-4.4.14/arch/nios2/kernel/ |
D | process.c | 218 unsigned long fp, pc; in get_wchan() local 231 pc = ((unsigned long *)fp)[1]; in get_wchan() 232 if (!in_sched_functions(pc)) in get_wchan() 233 return pc; in get_wchan() 243 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) in start_thread() argument 247 regs->ea = pc; in start_thread()
|
/linux-4.4.14/arch/alpha/math-emu/ |
D | math.c | 57 extern long (*alpha_fp_emul) (unsigned long pc); 60 static long (*save_emul) (unsigned long pc); 98 alpha_fp_emul (unsigned long pc) in alpha_fp_emul() argument 109 get_user(insn, (__u32 __user *)pc); in alpha_fp_emul() 332 insn, pc); in alpha_fp_emul() 339 unsigned long trigger_pc = regs->pc - 4; in alpha_fp_emul_imprecise() 391 regs->pc = trigger_pc + 4; in alpha_fp_emul_imprecise()
|
/linux-4.4.14/arch/mips/mti-malta/ |
D | malta-amon.c | 42 unsigned long pc, unsigned long sp, in amon_cpu_start() argument 58 launch->pc = pc; in amon_cpu_start()
|
/linux-4.4.14/arch/alpha/mm/ |
D | fault.c | 98 __get_user(insn, (unsigned int __user *)regs->pc); in do_page_fault() 102 regs->pc += 4; in do_page_fault() 196 if ((fixup = search_exception_tables(regs->pc)) != 0) { in do_page_fault() 198 newpc = fixup_exception(dpf_reg, fixup, regs->pc); in do_page_fault() 199 regs->pc = newpc; in do_page_fault()
|
/linux-4.4.14/arch/frv/include/asm/ |
D | processor.h | 48 unsigned long pc; /* program counter */ member 82 _regs->pc = (_pc); \ 113 #define KSTK_EIP(tsk) ((tsk)->thread.frame0->pc)
|
/linux-4.4.14/arch/avr32/mach-at32ap/ |
D | pm-at32ap700x.S | 77 sub r12, pc, . - .Lpanic_msg 78 lddpc pc, .Lpanic_addr 126 sub r8, pc, . - 1f /* return address for irq handler */ 149 sub r8, pc, . - 1f /* return address for irq handler */
|
/linux-4.4.14/arch/arm/mach-berlin/ |
D | headsmp.S | 22 ldr pc, [pc, #140]
|
/linux-4.4.14/tools/perf/util/ |
D | auxtrace.h | 325 struct perf_event_mmap_page *pc = mm->userpg; in auxtrace_mmap__read_snapshot_head() local 326 u64 head = ACCESS_ONCE(pc->aux_head); in auxtrace_mmap__read_snapshot_head() 335 struct perf_event_mmap_page *pc = mm->userpg; in auxtrace_mmap__read_head() local 337 u64 head = ACCESS_ONCE(pc->aux_head); in auxtrace_mmap__read_head() 339 u64 head = __sync_val_compare_and_swap(&pc->aux_head, 0, 0); in auxtrace_mmap__read_head() 349 struct perf_event_mmap_page *pc = mm->userpg; in auxtrace_mmap__write_tail() local 357 pc->aux_tail = tail; in auxtrace_mmap__write_tail() 360 old_tail = __sync_val_compare_and_swap(&pc->aux_tail, 0, 0); in auxtrace_mmap__write_tail() 361 } while (!__sync_bool_compare_and_swap(&pc->aux_tail, old_tail, tail)); in auxtrace_mmap__write_tail()
|
/linux-4.4.14/arch/h8300/include/asm/ |
D | processor.h | 87 (_regs)->pc = (_pc); \ 96 (_regs)->pc = (_pc); \ 131 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \
|
/linux-4.4.14/arch/sh/mm/ |
D | extable_32.c | 14 fixup = search_exception_tables(regs->pc); in fixup_exception() 16 regs->pc = fixup->fixup; in fixup_exception()
|