Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 781) sorted by relevance

12345678910>>...32

/linux-6.1.9/drivers/pinctrl/meson/ !
Dpinctrl-meson.c73 static int meson_get_bank(struct meson_pinctrl *pc, unsigned int pin, in meson_get_bank() argument
78 for (i = 0; i < pc->data->num_banks; i++) { in meson_get_bank()
79 if (pin >= pc->data->banks[i].first && in meson_get_bank()
80 pin <= pc->data->banks[i].last) { in meson_get_bank()
81 *bank = &pc->data->banks[i]; in meson_get_bank()
111 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_groups_count() local
113 return pc->data->num_groups; in meson_get_groups_count()
119 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_name() local
121 return pc->data->groups[selector].name; in meson_get_group_name()
127 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_pins() local
[all …]
/linux-6.1.9/drivers/bcma/ !
Ddriver_pci.c20 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 …]
Ddriver_pci_host.c28 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 …]
/linux-6.1.9/drivers/pwm/ !
Dpwm-sti.c122 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, in sti_pwm_get_prescale() argument
125 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_get_prescale()
130 clk_rate = clk_get_rate(pc->pwm_clk); in sti_pwm_get_prescale()
132 dev_err(pc->dev, "failed to get clock rate\n"); in sti_pwm_get_prescale()
166 struct sti_pwm_chip *pc = to_sti_pwmchip(chip); in sti_pwm_config() local
167 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_config()
169 struct pwm_device *cur = pc->cur; in sti_pwm_config()
170 struct device *dev = pc->dev; in sti_pwm_config()
174 ncfg = hweight_long(pc->configured); in sti_pwm_config()
195 ret = clk_enable(pc->pwm_clk); in sti_pwm_config()
[all …]
Dpwm-rockchip.c64 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); in rockchip_pwm_get_state() local
65 u32 enable_conf = pc->data->enable_conf; in rockchip_pwm_get_state()
71 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state()
75 ret = clk_enable(pc->clk); in rockchip_pwm_get_state()
79 clk_rate = clk_get_rate(pc->clk); in rockchip_pwm_get_state()
81 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state()
82 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state()
85 tmp = readl_relaxed(pc->base + pc->data->regs.duty); in rockchip_pwm_get_state()
86 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state()
89 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_get_state()
[all …]
Dpwm-tiecap.c53 struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); in ecap_pwm_config() local
58 c = pc->clk_rate; in ecap_pwm_config()
67 c = pc->clk_rate; in ecap_pwm_config()
73 pm_runtime_get_sync(pc->chip.dev); in ecap_pwm_config()
75 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config()
80 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_config()
84 writel(duty_cycles, pc->mmio_base + CAP2); in ecap_pwm_config()
85 writel(period_cycles, pc->mmio_base + CAP1); in ecap_pwm_config()
92 writel(duty_cycles, pc->mmio_base + CAP4); in ecap_pwm_config()
93 writel(period_cycles, pc->mmio_base + CAP3); in ecap_pwm_config()
[all …]
Dpwm-tiehrpwm.c181 static void configure_polarity(struct ehrpwm_pwm_chip *pc, int chan) in configure_polarity() argument
196 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) in configure_polarity()
204 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) in configure_polarity()
211 ehrpwm_modify(pc->mmio_base, aqctl_reg, aqctl_mask, aqctl_val); in configure_polarity()
221 struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); in ehrpwm_pwm_config() local
230 c = pc->clk_rate; in ehrpwm_pwm_config()
239 c = pc->clk_rate; in ehrpwm_pwm_config()
250 if (pc->period_cycles[i] && in ehrpwm_pwm_config()
251 (pc->period_cycles[i] != period_cycles)) { in ehrpwm_pwm_config()
266 pc->period_cycles[pwm->hwpwm] = period_cycles; in ehrpwm_pwm_config()
[all …]
Dpwm-tegra.c88 static inline u32 pwm_readl(struct tegra_pwm_chip *pc, unsigned int offset) in pwm_readl() argument
90 return readl(pc->regs + (offset << 4)); in pwm_readl()
93 static inline void pwm_writel(struct tegra_pwm_chip *pc, unsigned int offset, u32 value) in pwm_writel() argument
95 writel(value, pc->regs + (offset << 4)); in pwm_writel()
101 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_config() local
120 if (period_ns < pc->min_period_ns) in tegra_pwm_config()
136 if (pc->soc->num_channels == 1) { in tegra_pwm_config()
151 if (required_clk_rate > clk_round_rate(pc->clk, required_clk_rate)) in tegra_pwm_config()
162 err = dev_pm_opp_set_rate(pc->dev, required_clk_rate); in tegra_pwm_config()
167 pc->clk_rate = clk_get_rate(pc->clk); in tegra_pwm_config()
[all …]
Dpwm-mediatek.c75 struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); in pwm_mediatek_clk_enable() local
78 ret = clk_prepare_enable(pc->clk_top); in pwm_mediatek_clk_enable()
82 ret = clk_prepare_enable(pc->clk_main); in pwm_mediatek_clk_enable()
86 ret = clk_prepare_enable(pc->clk_pwms[pwm->hwpwm]); in pwm_mediatek_clk_enable()
93 clk_disable_unprepare(pc->clk_main); in pwm_mediatek_clk_enable()
95 clk_disable_unprepare(pc->clk_top); in pwm_mediatek_clk_enable()
103 struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); in pwm_mediatek_clk_disable() local
105 clk_disable_unprepare(pc->clk_pwms[pwm->hwpwm]); in pwm_mediatek_clk_disable()
106 clk_disable_unprepare(pc->clk_main); in pwm_mediatek_clk_disable()
107 clk_disable_unprepare(pc->clk_top); in pwm_mediatek_clk_disable()
[all …]
Dpwm-bcm2835.c40 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_request() local
43 value = readl(pc->base + PWM_CONTROL); in bcm2835_pwm_request()
46 writel(value, pc->base + PWM_CONTROL); in bcm2835_pwm_request()
53 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_free() local
56 value = readl(pc->base + PWM_CONTROL); in bcm2835_pwm_free()
58 writel(value, pc->base + PWM_CONTROL); in bcm2835_pwm_free()
65 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_apply() local
66 unsigned long rate = clk_get_rate(pc->clk); in bcm2835_pwm_apply()
73 dev_err(pc->dev, "failed to get clock rate\n"); in bcm2835_pwm_apply()
103 writel(period_cycles, pc->base + PERIOD(pwm->hwpwm)); in bcm2835_pwm_apply()
[all …]
Dpwm-spear.c80 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 …]
Dpwm-pxa.c63 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_config() local
71 c = clk_get_rate(pc->clk); in pxa_pwm_config()
92 rc = clk_prepare_enable(pc->clk); in pxa_pwm_config()
96 writel(prescale, pc->mmio_base + offset + PWMCR); in pxa_pwm_config()
97 writel(dc, pc->mmio_base + offset + PWMDCR); in pxa_pwm_config()
98 writel(pv, pc->mmio_base + offset + PWMPCR); in pxa_pwm_config()
100 clk_disable_unprepare(pc->clk); in pxa_pwm_config()
106 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_enable() local
108 return clk_prepare_enable(pc->clk); in pxa_pwm_enable()
113 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_disable() local
[all …]
Dpwm-intel-lgm.c57 struct lgm_pwm_chip *pc = to_lgm_pwm_chip(chip); in lgm_pwm_enable() local
58 struct regmap *regmap = pc->regmap; in lgm_pwm_enable()
67 struct lgm_pwm_chip *pc = to_lgm_pwm_chip(chip); in lgm_pwm_apply() local
72 if (state->polarity != PWM_POLARITY_NORMAL || state->period < pc->period) in lgm_pwm_apply()
78 duty_cycle = min_t(u64, state->duty_cycle, pc->period); in lgm_pwm_apply()
79 val = duty_cycle * LGM_PWM_MAX_DUTY_CYCLE / pc->period; in lgm_pwm_apply()
81 ret = regmap_update_bits(pc->regmap, LGM_PWM_FAN_CON0, LGM_PWM_FAN_DC_MSK, in lgm_pwm_apply()
92 struct lgm_pwm_chip *pc = to_lgm_pwm_chip(chip); in lgm_pwm_get_state() local
95 state->enabled = regmap_test_bits(pc->regmap, LGM_PWM_FAN_CON0, in lgm_pwm_get_state()
98 state->period = pc->period; /* fixed period */ in lgm_pwm_get_state()
[all …]
/linux-6.1.9/drivers/ssb/ !
Ddriver_pcicore.c19 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-6.1.9/drivers/pinctrl/bcm/ !
Dpinctrl-bcm2835.c245 static inline u32 bcm2835_gpio_rd(struct bcm2835_pinctrl *pc, unsigned reg) in bcm2835_gpio_rd() argument
247 return readl(pc->base + reg); in bcm2835_gpio_rd()
250 static inline void bcm2835_gpio_wr(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_wr() argument
253 writel(val, pc->base + reg); in bcm2835_gpio_wr()
256 static inline int bcm2835_gpio_get_bit(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_get_bit() argument
260 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit()
264 static inline void bcm2835_gpio_set_bit(struct bcm2835_pinctrl *pc, in bcm2835_gpio_set_bit() argument
268 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit()
272 struct bcm2835_pinctrl *pc, unsigned pin) in bcm2835_pinctrl_fsel_get() argument
274 u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); in bcm2835_pinctrl_fsel_get()
[all …]
Dpinctrl-bcm63xx.c47 struct bcm63xx_pinctrl *pc) in bcm63xx_gpio_probe() argument
55 grc.regmap = pc->regs; in bcm63xx_gpio_probe()
69 struct bcm63xx_pinctrl *pc; in bcm63xx_pinctrl_probe() local
73 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in bcm63xx_pinctrl_probe()
74 if (!pc) in bcm63xx_pinctrl_probe()
77 platform_set_drvdata(pdev, pc); in bcm63xx_pinctrl_probe()
79 pc->dev = dev; in bcm63xx_pinctrl_probe()
80 pc->driver_data = driver_data; in bcm63xx_pinctrl_probe()
82 pc->regs = syscon_node_to_regmap(dev->parent->of_node); in bcm63xx_pinctrl_probe()
83 if (IS_ERR(pc->regs)) in bcm63xx_pinctrl_probe()
[all …]
/linux-6.1.9/drivers/gpu/drm/bridge/imx/ !
Dimx8qxp-pixel-combiner.c64 struct imx8qxp_pc *pc; member
76 static inline u32 imx8qxp_pc_read(struct imx8qxp_pc *pc, unsigned int offset) in imx8qxp_pc_read() argument
78 return readl(pc->base + offset); in imx8qxp_pc_read()
82 imx8qxp_pc_write(struct imx8qxp_pc *pc, unsigned int offset, u32 value) in imx8qxp_pc_write() argument
84 writel(value, pc->base + offset); in imx8qxp_pc_write()
88 imx8qxp_pc_write_set(struct imx8qxp_pc *pc, unsigned int offset, u32 value) in imx8qxp_pc_write_set() argument
90 imx8qxp_pc_write(pc, offset + PC_REG_SET, value); in imx8qxp_pc_write_set()
94 imx8qxp_pc_write_clr(struct imx8qxp_pc *pc, unsigned int offset, u32 value) in imx8qxp_pc_write_clr() argument
96 imx8qxp_pc_write(pc, offset + PC_REG_CLR, value); in imx8qxp_pc_write_clr()
114 struct imx8qxp_pc *pc = ch->pc; in imx8qxp_pc_bridge_attach() local
[all …]
/linux-6.1.9/arch/microblaze/kernel/ !
Dunwind.c77 static unsigned long *find_frame_creation(unsigned long *pc) in find_frame_creation() argument
86 for (i = 0; i < 1000; i++, pc--) { in find_frame_creation()
90 if (!kernel_text_address((unsigned long) pc)) in find_frame_creation()
93 instr = *pc; in find_frame_creation()
102 frame_size, pc); in find_frame_creation()
106 pr_debug(" Found frame creation at 0x%p, size %d\n", pc, in find_frame_creation()
108 return pc; in find_frame_creation()
125 static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, in lookup_prev_stack_frame() argument
133 if (pc != (unsigned long) &_switch_to) in lookup_prev_stack_frame()
134 prologue = find_frame_creation((unsigned long *)pc); in lookup_prev_stack_frame()
[all …]
/linux-6.1.9/drivers/dma/mediatek/ !
Dmtk-cqdma.c124 struct mtk_cqdma_pchan *pc; member
146 struct mtk_cqdma_pchan **pc; member
169 static u32 mtk_dma_read(struct mtk_cqdma_pchan *pc, u32 reg) in mtk_dma_read() argument
171 return readl(pc->base + reg); in mtk_dma_read()
174 static void mtk_dma_write(struct mtk_cqdma_pchan *pc, u32 reg, u32 val) in mtk_dma_write() argument
176 writel_relaxed(val, pc->base + reg); in mtk_dma_write()
179 static void mtk_dma_rmw(struct mtk_cqdma_pchan *pc, u32 reg, in mtk_dma_rmw() argument
184 val = mtk_dma_read(pc, reg); in mtk_dma_rmw()
187 mtk_dma_write(pc, reg, val); in mtk_dma_rmw()
190 static void mtk_dma_set(struct mtk_cqdma_pchan *pc, u32 reg, u32 val) in mtk_dma_set() argument
[all …]
/linux-6.1.9/arch/csky/kernel/ !
Dstacktrace.c19 unsigned long fp, sp, pc; in walk_stackframe() local
24 pc = instruction_pointer(regs); in walk_stackframe()
30 pc = (unsigned long)walk_stackframe; in walk_stackframe()
35 pc = thread_saved_lr(task); in walk_stackframe()
42 if (unlikely(!__kernel_text_address(pc) || fn(pc, arg))) in walk_stackframe()
54 pc = ftrace_graph_ret_addr(current, NULL, frame->ra, in walk_stackframe()
64 unsigned long sp, pc; in walk_stackframe() local
69 pc = instruction_pointer(regs); in walk_stackframe()
73 pc = (unsigned long)walk_stackframe; in walk_stackframe()
77 pc = thread_saved_lr(task); in walk_stackframe()
[all …]
/linux-6.1.9/arch/riscv/kernel/ !
Dstacktrace.c22 unsigned long fp, sp, pc; in walk_stackframe() local
28 pc = instruction_pointer(regs); in walk_stackframe()
32 pc = (unsigned long)walk_stackframe; in walk_stackframe()
37 pc = task->thread.ra; in walk_stackframe()
44 if (unlikely(!__kernel_text_address(pc) || (level++ >= 1 && !fn(arg, pc)))) in walk_stackframe()
55 if (regs && (regs->epc == pc) && (frame->fp & 0x7)) { in walk_stackframe()
57 pc = regs->ra; in walk_stackframe()
60 pc = ftrace_graph_ret_addr(current, NULL, frame->ra, in walk_stackframe()
72 unsigned long sp, pc; in walk_stackframe() local
77 pc = instruction_pointer(regs); in walk_stackframe()
[all …]
/linux-6.1.9/arch/xtensa/kernel/ !
Dstacktrace.c34 unsigned long pc = regs->pc; in xtensa_backtrace_user() local
41 frame.pc = pc; in xtensa_backtrace_user()
44 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
72 pc = MAKE_PC_FROM_RA(a0, pc); in xtensa_backtrace_user()
79 frame.pc = pc; in xtensa_backtrace_user()
82 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
96 pc = MAKE_PC_FROM_RA(a0, pc); in xtensa_backtrace_user()
106 frame.pc = pc; in xtensa_backtrace_user()
109 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
120 unsigned long pc = regs->depc > VALID_DOUBLE_EXCEPTION_ADDRESS ? in xtensa_backtrace_kernel() local
[all …]
/linux-6.1.9/arch/arm64/kernel/ !
Dftrace.c25 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() argument
39 if (aarch64_insn_read((void *)pc, &replaced)) in ftrace_modify_code()
45 if (aarch64_insn_patch_text_nosync((void *)pc, new)) in ftrace_modify_code()
56 unsigned long pc; in ftrace_update_ftrace_func() local
59 pc = (unsigned long)ftrace_call; in ftrace_update_ftrace_func()
60 new = aarch64_insn_gen_branch_imm(pc, (unsigned long)func, in ftrace_update_ftrace_func()
63 return ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
93 unsigned long pc = rec->ip; in ftrace_find_callable_addr() local
94 long offset = (long)*addr - (long)pc; in ftrace_find_callable_addr()
123 mod = __module_text_address(pc); in ftrace_find_callable_addr()
[all …]
/linux-6.1.9/arch/sparc/kernel/ !
Dtraps_32.c35 static void instruction_dump(unsigned long *pc) in instruction_dump() argument
39 if((((unsigned long) pc) & 3)) in instruction_dump()
43 printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>'); in instruction_dump()
88 instruction_dump ((unsigned long *) regs->pc); in die_if_kernel()
104 (void __user *)regs->pc, type - 0x80); in do_hw_interrupt()
107 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_illegal_instruction() argument
114 regs->pc, *(unsigned long *)regs->pc); in do_illegal_instruction()
117 send_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)pc, current); in do_illegal_instruction()
120 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_priv_instruction() argument
125 send_sig_fault(SIGILL, ILL_PRVOPC, (void __user *)pc, current); in do_priv_instruction()
[all …]
/linux-6.1.9/arch/arm64/include/asm/ !
Dpreempt.h16 static inline void preempt_count_set(u64 pc) in preempt_count_set() argument
19 WRITE_ONCE(current_thread_info()->preempt.count, pc); in preempt_count_set()
47 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_add() local
48 pc += val; in __preempt_count_add()
49 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_add()
54 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_sub() local
55 pc -= val; in __preempt_count_sub()
56 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_sub()
62 u64 pc = READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() local
65 WRITE_ONCE(ti->preempt.count, --pc); in __preempt_count_dec_and_test()
[all …]

12345678910>>...32