/linux/drivers/pinctrl/meson/ |
A D | pinctrl-meson.c | 608 pc->chip.label = pc->data->name; in meson_gpiolib_register() 609 pc->chip.parent = pc->dev; in meson_gpiolib_register() 619 pc->chip.ngpio = pc->data->num_pins; in meson_gpiolib_register() 621 pc->chip.of_node = pc->of_node; in meson_gpiolib_register() 715 return pc->data->parse_dt(pc); in meson_pinctrl_parse_dt() 725 pc->reg_pullen = pc->reg_pull; in meson8_aobus_parse_dt_extra() 733 pc->reg_pull = pc->reg_gpio; in meson_a1_parse_dt_extra() 734 pc->reg_pullen = pc->reg_gpio; in meson_a1_parse_dt_extra() 735 pc->reg_ds = pc->reg_gpio; in meson_a1_parse_dt_extra() 763 pc->desc.pins = pc->data->pins; in meson_pinctrl_probe() [all …]
|
/linux/drivers/bcma/ |
A D | driver_pci.c | 70 if (pc->core->id.rev >= 10) { in bcma_pcie_mdio_read() 175 if (pc->early_setup_done) in bcma_core_pci_early_init() 178 pc->hostmode = bcma_core_pci_is_in_hostmode(pc); in bcma_core_pci_early_init() 179 if (pc->hostmode) in bcma_core_pci_early_init() 182 bcma_core_pci_fixcfg(pc); in bcma_core_pci_early_init() 248 if (pc->setup_done) in bcma_core_pci_init() 253 if (pc->hostmode) in bcma_core_pci_init() 261 struct bcma_drv_pci *pc; in bcma_core_pci_power_save() local 267 pc = &bus->drv_pci[0]; in bcma_core_pci_power_save() 269 if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) { in bcma_core_pci_power_save() [all …]
|
A D | driver_pci_host.c | 39 bcma_core_enable(pc->core, 0); in bcma_core_pci_is_in_hostmode() 92 WARN_ON(!pc->hostmode); in bcma_extpci_read_config() 111 val = pcicore_read32(pc, addr); in bcma_extpci_read_config() 157 WARN_ON(!pc->hostmode); in bcma_extpci_write_config() 236 struct bcma_drv_pci *pc; in bcma_core_pci_hostmode_read_config() local 240 pc = pc_host->pdev; in bcma_core_pci_hostmode_read_config() 256 struct bcma_drv_pci *pc; in bcma_core_pci_hostmode_write_config() local 260 pc = pc_host->pdev; in bcma_core_pci_hostmode_write_config() 410 pc->host_controller = pc_host; in bcma_core_pci_hostmode_init() 414 pc_host->pdev = pc; in bcma_core_pci_hostmode_init() [all …]
|
/linux/drivers/pwm/ |
A D | pwm-sti.c | 236 pc->cur = pwm; in sti_pwm_config() 279 pc->en_count++; in sti_pwm_enable() 498 pc->prescale_low = devm_regmap_field_alloc(dev, pc->regmap, in sti_pwm_probe_dt() 503 pc->prescale_high = devm_regmap_field_alloc(dev, pc->regmap, in sti_pwm_probe_dt() 508 pc->pwm_out_en = devm_regmap_field_alloc(dev, pc->regmap, in sti_pwm_probe_dt() 513 pc->pwm_cpt_en = devm_regmap_field_alloc(dev, pc->regmap, in sti_pwm_probe_dt() 545 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in sti_pwm_probe() 546 if (!pc) in sti_pwm_probe() 557 pc->regmap = devm_regmap_init_mmio(dev, pc->mmio, in sti_pwm_probe() 584 pc->dev = dev; in sti_pwm_probe() [all …]
|
A D | pwm-rockchip.c | 81 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state() 85 tmp = readl_relaxed(pc->base + pc->data->regs.duty); in rockchip_pwm_get_state() 89 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_get_state() 127 ctrl = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_config() 133 writel(period, pc->base + pc->data->regs.period); in rockchip_pwm_config() 134 writel(duty, pc->base + pc->data->regs.duty); in rockchip_pwm_config() 152 writel(ctrl, pc->base + pc->data->regs.ctrl); in rockchip_pwm_config() 170 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_enable() 177 writel_relaxed(val, pc->base + pc->data->regs.ctrl); in rockchip_pwm_enable() 309 if (!pc) in rockchip_pwm_probe() [all …]
|
A D | pwm-tiehrpwm.c | 428 if (!pc) in ehrpwm_pwm_probe() 502 pc->ctx.tbctl = ehrpwm_read(pc->mmio_base, TBCTL); in ehrpwm_pwm_save_context() 503 pc->ctx.tbprd = ehrpwm_read(pc->mmio_base, TBPRD); in ehrpwm_pwm_save_context() 504 pc->ctx.cmpa = ehrpwm_read(pc->mmio_base, CMPA); in ehrpwm_pwm_save_context() 505 pc->ctx.cmpb = ehrpwm_read(pc->mmio_base, CMPB); in ehrpwm_pwm_save_context() 506 pc->ctx.aqctla = ehrpwm_read(pc->mmio_base, AQCTLA); in ehrpwm_pwm_save_context() 507 pc->ctx.aqctlb = ehrpwm_read(pc->mmio_base, AQCTLB); in ehrpwm_pwm_save_context() 516 ehrpwm_write(pc->mmio_base, TBPRD, pc->ctx.tbprd); in ehrpwm_pwm_restore_context() 517 ehrpwm_write(pc->mmio_base, CMPA, pc->ctx.cmpa); in ehrpwm_pwm_restore_context() 518 ehrpwm_write(pc->mmio_base, CMPB, pc->ctx.cmpb); in ehrpwm_pwm_restore_context() [all …]
|
A D | pwm-tiecap.c | 58 c = pc->clk_rate; in ecap_pwm_config() 67 c = pc->clk_rate; in ecap_pwm_config() 225 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); in ecap_pwm_probe() 226 if (!pc) in ecap_pwm_probe() 250 pc->chip.npwm = 1; in ecap_pwm_probe() 279 pc->ctx.ecctl2 = readw(pc->mmio_base + ECCTL2); in ecap_pwm_save_context() 280 pc->ctx.cap4 = readl(pc->mmio_base + CAP4); in ecap_pwm_save_context() 281 pc->ctx.cap3 = readl(pc->mmio_base + CAP3); in ecap_pwm_save_context() 287 writel(pc->ctx.cap3, pc->mmio_base + CAP3); in ecap_pwm_restore_context() 288 writel(pc->ctx.cap4, pc->mmio_base + CAP4); in ecap_pwm_restore_context() [all …]
|
A D | pwm-mediatek.c | 182 value = readl(pc->regs); in pwm_mediatek_enable() 184 writel(value, pc->regs); in pwm_mediatek_enable() 194 value = readl(pc->regs); in pwm_mediatek_disable() 196 writel(value, pc->regs); in pwm_mediatek_disable() 214 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); in pwm_mediatek_probe() 215 if (!pc) in pwm_mediatek_probe() 221 if (IS_ERR(pc->regs)) in pwm_mediatek_probe() 224 pc->clk_pwms = devm_kcalloc(&pdev->dev, pc->soc->num_pwms, in pwm_mediatek_probe() 226 if (!pc->clk_pwms) in pwm_mediatek_probe() 232 PTR_ERR(pc->clk_top)); in pwm_mediatek_probe() [all …]
|
A D | pwm-spear.c | 132 clk_disable(pc->clk); in spear_pwm_config() 143 rc = clk_enable(pc->clk); in spear_pwm_enable() 163 clk_disable(pc->clk); in spear_pwm_disable() 202 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); in spear_pwm_probe() 203 if (!pc) in spear_pwm_probe() 211 if (IS_ERR(pc->clk)) in spear_pwm_probe() 212 return PTR_ERR(pc->clk); in spear_pwm_probe() 218 pc->chip.npwm = NUM_PWM; in spear_pwm_probe() 238 clk_disable(pc->clk); in spear_pwm_probe() 243 clk_unprepare(pc->clk); in spear_pwm_probe() [all …]
|
A D | pwm-bcm2835.c | 137 struct bcm2835_pwm *pc; in bcm2835_pwm_probe() local 140 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); in bcm2835_pwm_probe() 141 if (!pc) in bcm2835_pwm_probe() 144 pc->dev = &pdev->dev; in bcm2835_pwm_probe() 147 if (IS_ERR(pc->base)) in bcm2835_pwm_probe() 148 return PTR_ERR(pc->base); in bcm2835_pwm_probe() 151 if (IS_ERR(pc->clk)) in bcm2835_pwm_probe() 159 pc->chip.dev = &pdev->dev; in bcm2835_pwm_probe() 161 pc->chip.npwm = 2; in bcm2835_pwm_probe() 165 ret = pwmchip_add(&pc->chip); in bcm2835_pwm_probe() [all …]
|
A D | pwm-pxa.c | 71 c = clk_get_rate(pc->clk); in pxa_pwm_config() 100 clk_disable_unprepare(pc->clk); in pxa_pwm_config() 168 struct pxa_pwm_chip *pc; in pwm_probe() local 177 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); in pwm_probe() 178 if (pc == NULL) in pwm_probe() 182 if (IS_ERR(pc->clk)) in pwm_probe() 183 return PTR_ERR(pc->clk); in pwm_probe() 185 pc->chip.dev = &pdev->dev; in pwm_probe() 186 pc->chip.ops = &pxa_pwm_ops; in pwm_probe() 191 pc->chip.of_pwm_n_cells = 1; in pwm_probe() [all …]
|
A D | pwm-intel-lgm.c | 58 struct regmap *regmap = pc->regmap; in lgm_pwm_enable() 113 struct regmap *regmap = pc->regmap; in lgm_pwm_init() 117 pc->period = LGM_PWM_PERIOD_2WIRE_NS; in lgm_pwm_init() 170 struct lgm_pwm_chip *pc; in lgm_pwm_probe() local 175 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in lgm_pwm_probe() 176 if (!pc) in lgm_pwm_probe() 184 if (IS_ERR(pc->regmap)) in lgm_pwm_probe() 205 pc->chip.dev = dev; in lgm_pwm_probe() 206 pc->chip.ops = &lgm_pwm_ops; in lgm_pwm_probe() 207 pc->chip.npwm = 1; in lgm_pwm_probe() [all …]
|
A D | pwm-tegra.c | 133 if (pc->soc->num_channels == 1) { in tegra_pwm_config() 153 pc->clk_rate = clk_get_rate(pc->clk); in tegra_pwm_config() 190 pwm_writel(pc, pwm->hwpwm, val); in tegra_pwm_config() 196 clk_disable_unprepare(pc->clk); in tegra_pwm_config() 211 val = pwm_readl(pc, pwm->hwpwm); in tegra_pwm_enable() 213 pwm_writel(pc, pwm->hwpwm, val); in tegra_pwm_enable() 223 val = pwm_readl(pc, pwm->hwpwm); in tegra_pwm_disable() 225 pwm_writel(pc, pwm->hwpwm, val); in tegra_pwm_disable() 227 clk_disable_unprepare(pc->clk); in tegra_pwm_disable() 304 pwmchip_remove(&pc->chip); in tegra_pwm_remove() [all …]
|
/linux/drivers/pinctrl/bcm/ |
A D | pinctrl-bcm2835.c | 806 dev_err(pc->dev, in bcm2835_pctl_dt_node_to_map() 1199 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in bcm2835_pinctrl_probe() 1200 if (!pc) in bcm2835_pinctrl_probe() 1204 pc->dev = dev; in bcm2835_pinctrl_probe() 1248 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm2835_pinctrl_probe() 1255 pc->gpio_range.base = pc->gpio_chip.base; in bcm2835_pinctrl_probe() 1256 pc->gpio_range.gc = &pc->gpio_chip; in bcm2835_pinctrl_probe() 1257 pinctrl_add_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe() 1267 pinctrl_remove_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe() 1321 err = gpiochip_add_data(&pc->gpio_chip, pc); in bcm2835_pinctrl_probe() [all …]
|
A D | pinctrl-bcm63xx.c | 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() 79 pc->dev = dev; in bcm63xx_pinctrl_probe() 80 pc->driver_data = driver_data; in bcm63xx_pinctrl_probe() 83 if (IS_ERR(pc->regs)) in bcm63xx_pinctrl_probe() 84 return PTR_ERR(pc->regs); in bcm63xx_pinctrl_probe() 93 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm63xx_pinctrl_probe() 94 if (IS_ERR(pc->pctl_dev)) in bcm63xx_pinctrl_probe() [all …]
|
/linux/drivers/ssb/ |
A D | driver_pcicore.c | 28 return ssb_read32(pc->dev, offset); in pcicore_read32() 79 if (pc->cardbusmode && (dev > 1)) in get_cfgspace_addr() 119 WARN_ON(!pc->hostmode); in ssb_extpci_read_config() 165 WARN_ON(!pc->hostmode); in ssb_extpci_write_config() 326 extpci_core = pc; in ssb_pcicore_init_hostmode() 344 pc->cardbusmode = 1; in ssb_pcicore_init_hostmode() 562 pc->hostmode = pcicore_is_in_hostmode(pc); in ssb_pcicore_init() 563 if (pc->hostmode) in ssb_pcicore_init() 566 if (!pc->hostmode) in ssb_pcicore_init() 730 if (pc->setup_done) in ssb_pcicore_dev_irqvecs_enable() [all …]
|
/linux/drivers/dma/mediatek/ |
A D | mtk-cqdma.c | 124 struct mtk_cqdma_pchan *pc; member 146 struct mtk_cqdma_pchan **pc; member 269 struct mtk_cqdma_pchan *pc = cvc->pc; in mtk_cqdma_issue_vchan_pending() local 354 mtk_cqdma_start(pc, cvd); in mtk_cqdma_consume_work_queue() 361 struct mtk_cqdma_pchan *pc = from_tasklet(pc, t, tasklet); in mtk_cqdma_tasklet_cb() local 383 enable_irq(pc->irq); in mtk_cqdma_tasklet_cb() 625 pc = cqdma->pc[i]; in mtk_cqdma_alloc_chan_resources() 630 if (!pc) in mtk_cqdma_alloc_chan_resources() 653 vc->pc = pc; in mtk_cqdma_alloc_chan_resources() 809 if (!cqdma->pc) in mtk_cqdma_probe() [all …]
|
/linux/arch/microblaze/kernel/ |
A D | unwind.c | 93 instr = *pc; in find_frame_creation() 102 frame_size, pc); in find_frame_creation() 108 return pc; in find_frame_creation() 191 if (!pc || !fp || (pc & 3) || (fp & 3)) { in microblaze_unwind_inner() 195 for (; pc != 0;) { in microblaze_unwind_inner() 222 pc -= ofs; in microblaze_unwind_inner() 236 if (unlikely(pc == task_pt_regs(task)->pc)) { in microblaze_unwind_inner() 238 loglvl, (void *) pc, in microblaze_unwind_inner() 253 pc = next_pc & ~3; in microblaze_unwind_inner() 294 unsigned long pc, fp; in microblaze_unwind() local [all …]
|
/linux/arch/csky/kernel/ |
A D | stacktrace.c | 19 unsigned long fp, sp, pc; in walk_stackframe() local 24 pc = instruction_pointer(regs); 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() 64 unsigned long sp, pc; in walk_stackframe() local 77 pc = thread_saved_lr(task); in walk_stackframe() 85 if (__kernel_text_address(pc) && unlikely(fn(pc, arg))) in walk_stackframe() 87 pc = (*ksp++) - 0x4; in walk_stackframe() 108 *p = pc; in save_wchan() 116 unsigned long pc = 0; in __get_wchan() local [all …]
|
/linux/arch/arm64/kernel/ |
A D | ftrace.c | 39 if (aarch64_insn_read((void *)pc, &replaced)) in ftrace_modify_code() 56 unsigned long pc; in ftrace_update_ftrace_func() local 63 return ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 85 unsigned long pc = rec->ip; in ftrace_make_call() local 87 long offset = (long)pc - (long)addr; in ftrace_make_call() 107 mod = __module_text_address(pc); in ftrace_make_call() 132 unsigned long pc = rec->ip; in ftrace_modify_call() local 183 unsigned long pc = rec->ip; in ftrace_make_nop() local 186 long offset = (long)pc - (long)addr; in ftrace_make_nop() 201 mod = __module_text_address(pc); in ftrace_make_nop() [all …]
|
/linux/arch/riscv/kernel/ |
A D | stacktrace.c | 24 unsigned long fp, sp, pc; in walk_stackframe() local 38 pc = task->thread.ra; in walk_stackframe() 45 if (unlikely(!__kernel_text_address(pc) || !fn(arg, pc))) in walk_stackframe() 58 pc = regs->ra; in walk_stackframe() 73 unsigned long sp, pc; in walk_stackframe() local 85 pc = task->thread.ra; in walk_stackframe() 93 if (__kernel_text_address(pc) && unlikely(!fn(arg, pc))) in walk_stackframe() 95 pc = (*ksp++) - 0x4; in walk_stackframe() 125 *p = pc; in save_wchan() 133 unsigned long pc = 0; in __get_wchan() local [all …]
|
/linux/arch/xtensa/kernel/ |
A D | stacktrace.c | 34 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() 138 frame.pc = pc; in xtensa_backtrace_kernel() [all …]
|
/linux/arch/sparc/kernel/ |
A D | traps_32.c | 35 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() 116 regs->pc, *(unsigned long *)regs->pc); in do_illegal_instruction() 143 instruction_dump ((unsigned long *) regs->pc); in do_memaccess_unaligned() 270 regs->pc); 271 regs->pc = regs->npc; 316 pc, npc, psr); 328 pc, npc, psr); [all …]
|
/linux/arch/sh/kernel/ |
A D | traps_32.c | 338 regs->pc = regs->pr; in handle_unaligned_access() 344 regs->pc += rm + 4; in handle_unaligned_access() 350 regs->pr = regs->pc + 4; in handle_unaligned_access() 351 regs->pc += rm + 4; in handle_unaligned_access() 371 regs->pc = rm; in handle_unaligned_access() 378 regs->pc = rm; in handle_unaligned_access() 442 regs->pr = regs->pc + 4; in handle_unaligned_access() 516 if (regs->pc & 1) { in do_address_error() 538 if (regs->pc & 1) in do_address_error() 662 regs->pr = regs->pc + 4; in emulate_branch() [all …]
|
/linux/arch/arm64/include/asm/ |
A D | preempt.h | 15 static inline void preempt_count_set(u64 pc) in preempt_count_set() argument 18 WRITE_ONCE(current_thread_info()->preempt.count, pc); in preempt_count_set() 46 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_add() local 47 pc += val; in __preempt_count_add() 48 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_add() 54 pc -= val; in __preempt_count_sub() 55 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_sub() 61 u64 pc = READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() local 64 WRITE_ONCE(ti->preempt.count, --pc); in __preempt_count_dec_and_test() 73 return !pc || !READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() [all …]
|