Home
last modified time | relevance | path

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

12345678910>>...54

/linux/drivers/pinctrl/meson/
H A Dpinctrl-meson.c66 * @pc: the pinctrl instance
72 static int meson_get_bank(struct meson_pinctrl *pc, unsigned int pin, in meson_get_bank() argument
77 for (i = 0; i < pc->data->num_banks; i++) { in meson_get_bank()
78 if (pin >= pc->data->banks[i].first && in meson_get_bank()
79 pin <= pc->data->banks[i].last) { in meson_get_bank()
80 *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()
[all …]
/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/pinctrl/bcm/
H A Dpinctrl-bcm2835.c252 static inline u32 bcm2835_gpio_rd(struct bcm2835_pinctrl *pc, unsigned reg) in bcm2835_gpio_rd() argument
254 return readl(pc->base + reg); in bcm2835_gpio_rd()
257 static inline void bcm2835_gpio_wr(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_wr() argument
260 writel(val, pc->base + reg); in bcm2835_gpio_wr()
263 static inline int bcm2835_gpio_get_bit(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_get_bit() argument
267 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit()
271 static inline void bcm2835_gpio_set_bit(struct bcm2835_pinctrl *pc, in bcm2835_gpio_set_bit() argument
275 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit()
279 struct bcm2835_pinctrl *pc, unsigned pin) in bcm2835_pinctrl_fsel_get() argument
281 u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); in bcm2835_pinctrl_fsel_get()
[all …]
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/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 in control_cache_alloc_check()
311 hpi_check_control_cache_single(struct hpi_control_cache_single * pC,struct hpi_message * phm,struct hpi_response * phr) hpi_check_control_cache_single() argument
555 hpi_cmn_control_cache_sync_to_msg_single(struct hpi_control_cache_single * pC,struct hpi_message * phm,struct hpi_response * phr) hpi_cmn_control_cache_sync_to_msg_single() argument
616 struct hpi_control_cache_single *pC; hpi_cmn_control_cache_sync_to_msg() local
[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/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/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/drivers/pwm/
H A Dpwm-airoha.c160 static int airoha_pwm_get_bucket(struct airoha_pwm *pc, int bucket, in airoha_pwm_get_bucket() argument
163 struct regmap *map = pc->regmap; in airoha_pwm_get_bucket()
195 static int airoha_pwm_get_generator(struct airoha_pwm *pc, u32 duty_ticks, in airoha_pwm_get_generator() argument
205 for (i = 0; i < ARRAY_SIZE(pc->buckets); i++) { in airoha_pwm_get_generator()
206 struct airoha_pwm_bucket *bucket = &pc->buckets[i]; in airoha_pwm_get_generator()
267 static void airoha_pwm_release_bucket_config(struct airoha_pwm *pc, in airoha_pwm_release_bucket_config() argument
273 if (!test_bit(hwpwm, pc->initialized)) in airoha_pwm_release_bucket_config()
276 bucket = pc->channel_bucket[hwpwm]; in airoha_pwm_release_bucket_config()
277 pc->buckets[bucket].used--; in airoha_pwm_release_bucket_config()
280 static int airoha_pwm_apply_bucket_config(struct airoha_pwm *pc, unsigned int bucket, in airoha_pwm_apply_bucket_config() argument
[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 …]
H A Dpwm-intel-lgm.c55 struct lgm_pwm_chip *pc = to_lgm_pwm_chip(chip); in lgm_pwm_enable() local
56 struct regmap *regmap = pc->regmap; in lgm_pwm_enable()
65 struct lgm_pwm_chip *pc = to_lgm_pwm_chip(chip); in lgm_pwm_apply() local
70 if (state->polarity != PWM_POLARITY_NORMAL || state->period < pc->period) in lgm_pwm_apply()
76 duty_cycle = min_t(u64, state->duty_cycle, pc->period); in lgm_pwm_apply()
77 val = duty_cycle * LGM_PWM_MAX_DUTY_CYCLE / pc->period; in lgm_pwm_apply()
79 ret = regmap_update_bits(pc->regmap, LGM_PWM_FAN_CON0, LGM_PWM_FAN_DC_MSK, in lgm_pwm_apply()
90 struct lgm_pwm_chip *pc = to_lgm_pwm_chip(chip); in lgm_pwm_get_state() local
93 state->enabled = regmap_test_bits(pc->regmap, LGM_PWM_FAN_CON0, in lgm_pwm_get_state()
96 state->period = pc->period; /* fixed period */ in lgm_pwm_get_state()
[all …]
/linux/arch/loongarch/kernel/
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/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/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/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/tools/testing/selftests/kvm/arm64/
H A Ddebug-exceptions.c38 #define PC(v) ((u64)&(v)) macro
242 GUEST_ASSERT_EQ(sw_bp_addr, PC(sw_bp)); in guest_code()
246 install_hw_bp(bpn, PC(hw_bp)); in guest_code()
248 GUEST_ASSERT_EQ(hw_bp_addr, PC(hw_bp)); in guest_code()
252 install_hw_bp(bpn, PC(bp_svc)); in guest_code()
254 GUEST_ASSERT_EQ(hw_bp_addr, PC(bp_svc)); in guest_code()
255 GUEST_ASSERT_EQ(svc_addr, PC(bp_svc) + 4); in guest_code()
259 install_hw_bp(bpn, PC(bp_brk)); in guest_code()
261 GUEST_ASSERT_EQ(sw_bp_addr, PC(bp_brk)); in guest_code()
262 GUEST_ASSERT_EQ(hw_bp_addr, PC(bp_br in guest_code()
469 u64 pc, cmd; test_single_step_from_userspace() local
[all...]
/linux/arch/arm/kernel/
H A Dstacktrace.c18 * hence the new PC value rather than LR should be used for backtrace.
22 * stmdb sp!, {fp, ip, lr, pc}
26 * ldm sp, {fp, sp, pc}
28 * When compiled with clang, pc and sp are not pushed. A simple function
38 * ldm {..., fp, pc}
51 unsigned long pc = frame->pc; in frame_pointer_check() local
58 if (pc >= (unsigned long)&call_with_stack && in frame_pointer_check()
59 pc < (unsigned long)&call_with_stack_end) in frame_pointer_check()
86 * When we unwind through an exception stack, include the saved PC in unwind_frame()
101 frame->pc = regs->ARM_pc; in unwind_frame()
[all …]
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_context.c81 struct i915_gem_proto_context *pc; in live_context() local
86 pc = proto_context_create(fpriv, i915, 0); in live_context()
87 if (IS_ERR(pc)) in live_context()
88 return ERR_CAST(pc); in live_context()
90 ctx = i915_gem_create_context(i915, pc); in live_context()
91 proto_context_close(i915, pc); in live_context()
115 struct i915_gem_proto_context *pc; in kernel_context() local
117 pc = proto_context_create(NULL, i915, 0); in kernel_context()
118 if (IS_ERR(pc)) in kernel_context()
119 return ERR_CAST(pc); in kernel_context()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c84 static long ptrace_getreg_pc(pid_t pid, void **pc) in ptrace_getreg_pc() argument
93 *pc = (void *)regs.nip; in ptrace_getreg_pc()
98 static long ptrace_setreg_pc(pid_t pid, void *pc) in ptrace_setreg_pc() argument
107 regs.nip = (unsigned long)pc; in ptrace_setreg_pc()
218 * semantics. E.g., if ptrace changes the child PC, we don't even execute the
222 * Both should increment the perf counter. We also test changing the PC somewhere
232 void *pc; /* Most recently fetched child PC value */ in same_watch_addr_test() local
264 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test()
265 FAIL_IF_MSG(pc != same_watch_addr_load, "Child did not stop on load instruction"); in same_watch_addr_test()
279 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test()
[all …]

12345678910>>...54