Home
last modified time | relevance | path

Searched full:pc (Results 1 – 25 of 1451) sorted by relevance

12345678910>>...59

/linux/drivers/bcma/
H A 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 …]
H A 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/drivers/pwm/
H A Dpwm-sti.c116 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, in sti_pwm_get_prescale() argument
123 clk_rate = clk_get_rate(pc->pwm_clk); in sti_pwm_get_prescale()
125 dev_err(pc->dev, "failed to get clock rate\n"); in sti_pwm_get_prescale()
133 value *= pc->max_pwm_cnt + 1; in sti_pwm_get_prescale()
139 if (ps > pc->max_prescale) in sti_pwm_get_prescale()
159 struct sti_pwm_chip *pc = to_sti_pwmchip(chip); in sti_pwm_config() local
161 struct pwm_device *cur = pc->cur; in sti_pwm_config()
162 struct device *dev = pc->dev; in sti_pwm_config()
166 ncfg = hweight_long(pc->configured); in sti_pwm_config()
187 ret = clk_enable(pc->pwm_clk); in sti_pwm_config()
[all …]
H A Dpwm-rockchip.c65 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip); in rockchip_pwm_get_state() local
66 u64 prescaled_ns = (u64)pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state()
67 u32 enable_conf = pc->data->enable_conf; in rockchip_pwm_get_state()
73 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state()
77 ret = clk_enable(pc->clk); in rockchip_pwm_get_state()
81 clk_rate = clk_get_rate(pc->clk); in rockchip_pwm_get_state()
83 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state()
87 tmp = readl_relaxed(pc->base + pc->data->regs.duty); in rockchip_pwm_get_state()
91 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_get_state()
94 if (pc->data->supports_polarity && !(val & PWM_DUTY_POSITIVE)) in rockchip_pwm_get_state()
[all …]
H A Dpwm-bcm2835.c39 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_request() local
42 value = readl(pc->base + PWM_CONTROL); in bcm2835_pwm_request()
45 writel(value, pc->base + PWM_CONTROL); in bcm2835_pwm_request()
52 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_free() local
55 value = readl(pc->base + PWM_CONTROL); in bcm2835_pwm_free()
57 writel(value, pc->base + PWM_CONTROL); in bcm2835_pwm_free()
64 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_apply() local
84 max_period = DIV_ROUND_UP_ULL((u64)U32_MAX * NSEC_PER_SEC + NSEC_PER_SEC / 2, pc->rate) - 1; in bcm2835_pwm_apply()
90 period_cycles = DIV_ROUND_CLOSEST_ULL(state->period * pc->rate, NSEC_PER_SEC); in bcm2835_pwm_apply()
96 writel(period_cycles, pc->base + PERIOD(pwm->hwpwm)); in bcm2835_pwm_apply()
[all …]
H A Dpwm-tegra.c84 static inline u32 pwm_readl(struct tegra_pwm_chip *pc, unsigned int offset) in pwm_readl() argument
86 return readl(pc->regs + (offset << 4)); in pwm_readl()
89 static inline void pwm_writel(struct tegra_pwm_chip *pc, unsigned int offset, u32 value) in pwm_writel() argument
91 writel(value, pc->regs + (offset << 4)); in pwm_writel()
97 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_config() local
116 if (period_ns < pc->min_period_ns) in tegra_pwm_config()
132 if (pc->soc->num_channels == 1) { in tegra_pwm_config()
147 if (required_clk_rate > clk_round_rate(pc->clk, required_clk_rate)) in tegra_pwm_config()
163 pc->clk_rate = clk_get_rate(pc->clk); in tegra_pwm_config()
167 rate = mul_u64_u64_div_u64(pc->clk_rate, period_ns, in tegra_pwm_config()
[all …]
H A Dpwm-spear.c78 struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); in spear_pwm_config() local
93 clk_rate = clk_get_rate(pc->clk); in spear_pwm_config()
122 ret = clk_enable(pc->clk); in spear_pwm_config()
126 spear_pwm_writel(pc, pwm->hwpwm, PWMCR, in spear_pwm_config()
128 spear_pwm_writel(pc, pwm->hwpwm, PWMDCR, dc); in spear_pwm_config()
129 spear_pwm_writel(pc, pwm->hwpwm, PWMPCR, pv); in spear_pwm_config()
130 clk_disable(pc->clk); in spear_pwm_config()
137 struct spear_pwm_chip *pc = to_spear_pwm_chip(chip); in spear_pwm_enable() local
141 rc = clk_enable(pc->clk); in spear_pwm_enable()
145 val = spear_pwm_readl(pc, pwm->hwpwm, PWMCR); in spear_pwm_enable()
[all …]
/linux/drivers/ssb/
H A 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/drivers/dma/mediatek/
H A Dmtk-cqdma.c92 * channel (PC)
93 * @queue: Queue for the PDs issued to this PC
94 * @base: The mapped register I/O base of this PC
95 * @irq: The IRQ that this PC are using
96 * @refcnt: Track how many VCs are using this PC
97 * @tasklet: Tasklet for this PC
98 * @lock: Lock protect agaisting multiple VCs access PC
109 /* lock to protect PC */
117 * @pc: The pointer to the underlying PC
123 struct mtk_cqdma_pchan *pc; member
[all …]
/linux/sound/pci/asihpi/
H A Dhpicmn.c176 static unsigned int control_cache_alloc_check(struct hpi_control_cache *pC) in control_cache_alloc_check() argument
180 if (!pC) in control_cache_alloc_check()
183 if (pC->init) in control_cache_alloc_check()
184 return pC->init; in control_cache_alloc_check()
186 if (!pC->p_cache) in control_cache_alloc_check()
189 if (pC->control_count && pC->cache_size_in_bytes) { in control_cache_alloc_check()
193 p_master_cache = (char *)pC->p_cache; in control_cache_alloc_check()
195 pC->control_count); in control_cache_alloc_check()
196 for (i = 0; i < pC->control_count; i++) { in control_cache_alloc_check()
202 if (control_index >= pC->control_count) { in control_cache_alloc_check()
[all …]
/linux/arch/arm/probes/kprobes/
H A Dtest-arm.c65 TEST_R( op s "vc r6, r",7, VAL1,", pc, lsl #3") \ in kprobe_arm_test_cases()
67 TEST_R( op s "vc r6, pc, r",7, VAL1,", asr #5") \ in kprobe_arm_test_cases()
78 TEST( op s " r4, pc" ", #0x00005a00") in kprobe_arm_test_cases()
92 TEST_R ( op "vs r",7, VAL1,", pc, lsl #3") \ in kprobe_arm_test_cases()
94 TEST_R( op "vs pc, r",7, VAL1,", asr #5") \ in kprobe_arm_test_cases()
114 TEST( op s "vs r7, pc, lsl #3") \ in kprobe_arm_test_cases()
150 TEST_SUPPORTED("mov pc, #0x1000"); in kprobe_arm_test_cases()
152 TEST_SUPPORTED("cmp pc, #0x1000"); in kprobe_arm_test_cases()
155 /* Data-processing with PC and a shift count in a register */ in kprobe_arm_test_cases()
156 TEST_UNSUPPORTED(__inst_arm(0xe15c0f1e) " @ cmp r12, r14, asl pc") in kprobe_arm_test_cases()
[all …]
/linux/arch/csky/kernel/
H A Dstacktrace.c19 unsigned long fp, sp, pc; in walk_stackframe() local
24 pc = instruction_pointer(regs); in walk_stackframe()
29 pc = (unsigned long)walk_stackframe; in walk_stackframe()
34 pc = thread_saved_lr(task); in walk_stackframe()
41 if (unlikely(!__kernel_text_address(pc) || fn(pc, arg))) in walk_stackframe()
53 pc = ftrace_graph_ret_addr(current, NULL, frame->ra, in walk_stackframe()
63 unsigned long sp, pc; in walk_stackframe() local
68 pc = instruction_pointer(regs); in walk_stackframe()
71 pc = (unsigned long)walk_stackframe; in walk_stackframe()
75 pc = thread_saved_lr(task); in walk_stackframe()
[all …]
/linux/drivers/pinctrl/bcm/
H A 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
72 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in bcm63xx_pinctrl_probe()
73 if (!pc) in bcm63xx_pinctrl_probe()
76 platform_set_drvdata(pdev, pc); in bcm63xx_pinctrl_probe()
78 pc->dev = dev; in bcm63xx_pinctrl_probe()
79 pc->driver_data = driver_data; in bcm63xx_pinctrl_probe()
81 pc->regs = syscon_node_to_regmap(dev->parent->of_node); in bcm63xx_pinctrl_probe()
82 if (IS_ERR(pc->regs)) in bcm63xx_pinctrl_probe()
[all …]
/linux/arch/microblaze/kernel/
H A Dunwind.c71 * initial PC is in).
72 * @pc : Program counter at which to begin the search
74 * Return - PC at which stack frame creation occurs
77 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()
[all …]
/linux/arch/xtensa/kernel/
H A Dstacktrace.c36 unsigned long pc = regs->pc; in xtensa_backtrace_user() local
43 frame.pc = pc; in xtensa_backtrace_user()
46 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
73 /* Get the PC from a0 and a1. */ in xtensa_backtrace_user()
74 pc = MAKE_PC_FROM_RA(a0, pc); in xtensa_backtrace_user()
81 frame.pc = pc; in xtensa_backtrace_user()
84 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
98 pc = MAKE_PC_FROM_RA(a0, pc); in xtensa_backtrace_user()
108 frame.pc = pc; in xtensa_backtrace_user()
111 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
[all …]
/linux/arch/riscv/kernel/
H A Dstacktrace.c35 unsigned long fp, sp, pc; in walk_stackframe() local
42 pc = instruction_pointer(regs); in walk_stackframe()
46 pc = (unsigned long)walk_stackframe; in walk_stackframe()
52 pc = task->thread.ra; in walk_stackframe()
58 if (unlikely(!__kernel_text_address(pc) || (level++ >= 0 && !fn(arg, pc)))) in walk_stackframe()
67 if (regs && (regs->epc == pc) && fp_is_valid(frame->ra, sp)) { in walk_stackframe()
70 pc = regs->ra; in walk_stackframe()
73 pc = ftrace_graph_ret_addr(current, &graph_idx, frame->ra, in walk_stackframe()
75 if (pc >= (unsigned long)handle_exception && in walk_stackframe()
76 pc < (unsigned long)&ret_from_exception_end) { in walk_stackframe()
[all …]
/linux/arch/loongarch/kernel/
H A Dunwind_prologue.c66 static inline bool fix_exception(unsigned long pc) in fix_exception() argument
74 if (scan_handlers(pc - pcpu_handlers[cpu])) in fix_exception()
78 return scan_handlers(pc - eentry); in fix_exception()
83 * tracing. Prologue analysis will stop soon because PC is at entry.
85 static inline bool fix_ftrace(unsigned long pc) in fix_ftrace() argument
88 return pc == (unsigned long)ftrace_call + LOONGARCH_INSN_SIZE; in fix_ftrace()
96 if (!fix_exception(state->pc) && !fix_ftrace(state->pc)) in unwind_state_fixup()
115 unsigned long size, offset, pc; in unwind_by_prologue() local
127 state->pc = regs->csr_era; in unwind_by_prologue()
134 * When first is not set, the PC is a return address in the previous frame. in unwind_by_prologue()
[all …]
H A Dinst.c17 unsigned long pc = regs->csr_era; in simu_pc() local
21 if (pc & 3) { in simu_pc()
22 pr_warn("%s: invalid pc 0x%lx\n", __func__, pc); in simu_pc()
28 regs->regs[rd] = pc + sign_extend64(imm << 2, 21); in simu_pc()
31 regs->regs[rd] = pc + sign_extend64(imm << 12, 31); in simu_pc()
34 regs->regs[rd] = pc + sign_extend64(imm << 18, 37); in simu_pc()
37 regs->regs[rd] = pc + sign_extend64(imm << 12, 31); in simu_pc()
51 unsigned long pc = regs->csr_era; in simu_branch() local
53 if (pc & 3) { in simu_branch()
54 pr_warn("%s: invalid pc 0x%lx\n", __func__, pc); in simu_branch()
[all …]
/linux/drivers/usb/serial/
H A Dipaq.c60 { USB_DEVICE(0x045E, 0x0400) }, /* Windows Powered Pocket PC 2002 */
61 { USB_DEVICE(0x045E, 0x0401) }, /* Windows Powered Pocket PC 2002 */
62 { USB_DEVICE(0x045E, 0x0402) }, /* Windows Powered Pocket PC 2002 */
63 { USB_DEVICE(0x045E, 0x0403) }, /* Windows Powered Pocket PC 2002 */
64 { USB_DEVICE(0x045E, 0x0404) }, /* Windows Powered Pocket PC 2002 */
65 { USB_DEVICE(0x045E, 0x0405) }, /* Windows Powered Pocket PC 2002 */
66 { USB_DEVICE(0x045E, 0x0406) }, /* Windows Powered Pocket PC 2002 */
67 { USB_DEVICE(0x045E, 0x0407) }, /* Windows Powered Pocket PC 2002 */
68 { USB_DEVICE(0x045E, 0x0408) }, /* Windows Powered Pocket PC 2002 */
69 { USB_DEVICE(0x045E, 0x0409) }, /* Windows Powered Pocket PC 2002 */
[all …]
/linux/arch/sh/kernel/
H A Dtraps_32.c99 * - note that PC _may not_ point to the faulting instruction
240 case 9: /* mov.w @(disp,PC),Rn */ in handle_unaligned_ins()
241 srcu = (unsigned char __user *)regs->pc; in handle_unaligned_ins()
257 case 0xd: /* mov.l @(disp,PC),Rn */ in handle_unaligned_ins()
258 srcu = (unsigned char __user *)(regs->pc & ~0x3); in handle_unaligned_ins()
281 * - fetches the instruction from PC+2
288 void __user *addr = (void __user *)(regs->pc + in handle_delayslot()
308 * - if the branch would be taken PC points to the branch
309 * - if the branch would not be taken, PC points to delay-slot
311 * - PC always points to delayed branch
[all …]
/linux/arch/m68k/ifpsp060/src/
H A Dftest.S72 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 …]
/linux/arch/sparc/kernel/
H A Dtraps_32.c36 static void instruction_dump(unsigned long *pc) in instruction_dump() argument
40 if((((unsigned long) pc) & 3)) in instruction_dump()
44 printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>'); in instruction_dump()
89 instruction_dump ((unsigned long *) regs->pc); in die_if_kernel()
105 (void __user *)regs->pc, type - 0x80); in do_hw_interrupt()
108 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_illegal_instruction() argument
114 printk("Ill instr. at pc=%08lx instruction is %08lx\n", in do_illegal_instruction()
115 regs->pc, *(unsigned long *)regs->pc); in do_illegal_instruction()
118 send_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)pc, current); in do_illegal_instruction()
121 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_priv_instruction() argument
[all …]
/linux/Documentation/admin-guide/media/
H A Dgspca-cardlist.rst24 spca500 041e:400a Creative PC-CAM 300
25 sunplus 041e:400b Creative PC-CAM 600
26 sunplus 041e:4012 PC-Cam350
225 gl860 05e3:0503 Genesys Logic PC Camera
226 gl860 05e3:f191 Genesys Logic PC Camera
228 spca561 060b:a001 Maxell Compact Pc PM3
230 topro 06a2:0003 TP6800 PC Camera, CmoX CX0342 webcam
251 spca505 0733:0430 Intel PC Camera Pro
282 mars 093a:050f Mars-Semi Pc-Camera
297 pac7311 093a:260e Gigaware VGA PC Camera, Trust WB-3350p, SIGMA cam 2350
[all …]
/linux/drivers/comedi/drivers/
H A Dni_labpc.c4 * Driver for National Instruments Lab-PC series boards and compatibles
10 * Description: National Instruments Lab-PC (& compatibles)
11 * Devices: [National Instruments] Lab-PC-1200 (lab-pc-1200),
12 * Lab-PC-1200AI (lab-pc-1200ai), Lab-PC+ (lab-pc+)
22 * Tested with lab-pc-1200. For the older Lab-PC+, not all input
27 * Kernel-level ISA plug-and-play support for the lab-pc-1200 boards
39 * The Lab-pc+ has quirky chanlist requirements when scanning multiple
42 * like lab-pc+ or scan up from channel zero. Chanlists consisting of all
47 * 320502b (lab-pc+)
58 .name = "lab-pc-1200",
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Ddebug-exceptions.c38 #define PC(v) ((uint64_t)&(v)) macro
244 GUEST_ASSERT_EQ(sw_bp_addr, PC(sw_bp)); in guest_code()
248 install_hw_bp(bpn, PC(hw_bp)); in guest_code()
250 GUEST_ASSERT_EQ(hw_bp_addr, PC(hw_bp)); in guest_code()
254 install_hw_bp(bpn, PC(bp_svc)); in guest_code()
256 GUEST_ASSERT_EQ(hw_bp_addr, PC(bp_svc)); in guest_code()
257 GUEST_ASSERT_EQ(svc_addr, PC(bp_svc) + 4); in guest_code()
261 install_hw_bp(bpn, PC(bp_brk)); in guest_code()
263 GUEST_ASSERT_EQ(sw_bp_addr, PC(bp_brk)); in guest_code()
264 GUEST_ASSERT_EQ(hw_bp_addr, PC(bp_brk)); in guest_code()
[all …]

12345678910>>...59