Home
last modified time | relevance | path

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

12345678910>>...28

/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 in meson_get_group_name()
127 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_get_group_pins() local
152 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_pmx_get_funcs_count() local
161 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_pmx_get_func_name() local
171 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_pmx_get_groups() local
180 meson_pinconf_set_gpio_bit(struct meson_pinctrl * pc,unsigned int pin,unsigned int reg_type,bool arg) meson_pinconf_set_gpio_bit() argument
198 meson_pinconf_get_gpio_bit(struct meson_pinctrl * pc,unsigned int pin,unsigned int reg_type) meson_pinconf_get_gpio_bit() argument
218 meson_pinconf_set_output(struct meson_pinctrl * pc,unsigned int pin,bool out) meson_pinconf_set_output() argument
225 meson_pinconf_get_output(struct meson_pinctrl * pc,unsigned int pin) meson_pinconf_get_output() argument
236 meson_pinconf_set_drive(struct meson_pinctrl * pc,unsigned int pin,bool high) meson_pinconf_set_drive() argument
243 meson_pinconf_get_drive(struct meson_pinctrl * pc,unsigned int pin) meson_pinconf_get_drive() argument
249 meson_pinconf_set_output_drive(struct meson_pinctrl * pc,unsigned int pin,bool high) meson_pinconf_set_output_drive() argument
262 meson_pinconf_disable_bias(struct meson_pinctrl * pc,unsigned int pin) meson_pinconf_disable_bias() argument
281 meson_pinconf_enable_bias(struct meson_pinctrl * pc,unsigned int pin,bool pull_up) meson_pinconf_enable_bias() argument
308 meson_pinconf_set_drive_strength(struct meson_pinctrl * pc,unsigned int pin,u16 drive_strength_ua) meson_pinconf_set_drive_strength() argument
352 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_pinconf_set() local
401 meson_pinconf_get_pull(struct meson_pinctrl * pc,unsigned int pin) meson_pinconf_get_pull() argument
435 meson_pinconf_get_drive_strength(struct meson_pinctrl * pc,unsigned int pin,u16 * drive_strength_ua) meson_pinconf_get_drive_strength() argument
480 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_pinconf_get() local
531 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); meson_pinconf_group_set() local
561 struct meson_pinctrl *pc = gpiochip_get_data(chip); meson_gpio_get_direction() local
590 struct meson_pinctrl *pc = gpiochip_get_data(chip); meson_gpio_get() local
605 meson_gpiolib_register(struct meson_pinctrl * pc) meson_gpiolib_register() argument
640 meson_map_resource(struct meson_pinctrl * pc,struct device_node * node,char * name) meson_map_resource() argument
665 meson_pinctrl_parse_dt(struct meson_pinctrl * pc) meson_pinctrl_parse_dt() argument
715 meson8_aobus_parse_dt_extra(struct meson_pinctrl * pc) meson8_aobus_parse_dt_extra() argument
726 meson_a1_parse_dt_extra(struct meson_pinctrl * pc) meson_a1_parse_dt_extra() argument
739 struct meson_pinctrl *pc; meson_pinctrl_probe() local
[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_DAT in bcma_pcie_mdio_set_phy()
58 bcma_pcie_mdio_read(struct bcma_drv_pci * pc,u16 device,u8 address) bcma_pcie_mdio_read() argument
101 bcma_pcie_mdio_write(struct bcma_drv_pci * pc,u16 device,u8 address,u16 data) bcma_pcie_mdio_write() argument
140 bcma_pcie_mdio_writeread(struct bcma_drv_pci * pc,u16 device,u8 address,u16 data) bcma_pcie_mdio_writeread() argument
151 bcma_core_pci_fixcfg(struct bcma_drv_pci * pc) bcma_core_pci_fixcfg() argument
173 bcma_core_pci_early_init(struct bcma_drv_pci * pc) bcma_core_pci_early_init() argument
192 bcma_pcicore_polarity_workaround(struct bcma_drv_pci * pc) bcma_pcicore_polarity_workaround() argument
204 bcma_pcicore_serdes_workaround(struct bcma_drv_pci * pc) bcma_pcicore_serdes_workaround() argument
221 bcma_core_pci_config_fixup(struct bcma_drv_pci * pc) bcma_core_pci_config_fixup() argument
240 bcma_core_pci_clientmode_init(struct bcma_drv_pci * pc) bcma_core_pci_clientmode_init() argument
246 bcma_core_pci_init(struct bcma_drv_pci * pc) bcma_core_pci_init() argument
261 struct bcma_drv_pci *pc; bcma_core_pci_power_save() local
285 bcma_core_pci_extend_L1timer(struct bcma_drv_pci * pc,bool extend) bcma_core_pci_extend_L1timer() argument
298 bcma_core_pci_up(struct bcma_drv_pci * pc) bcma_core_pci_up() argument
303 bcma_core_pci_down(struct bcma_drv_pci * pc) bcma_core_pci_down() argument
[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_ADD in bcma_pcie_write_config()
59 bcma_get_cfgspace_addr(struct bcma_drv_pci * pc,unsigned int dev,unsigned int func,unsigned int off) bcma_get_cfgspace_addr() argument
84 bcma_extpci_read_config(struct bcma_drv_pci * pc,unsigned int dev,unsigned int func,unsigned int off,void * buf,int len) bcma_extpci_read_config() argument
148 bcma_extpci_write_config(struct bcma_drv_pci * pc,unsigned int dev,unsigned int func,unsigned int off,const void * buf,int len) bcma_extpci_write_config() argument
236 struct bcma_drv_pci *pc; bcma_core_pci_hostmode_read_config() local
256 struct bcma_drv_pci *pc; bcma_core_pci_hostmode_write_config() local
271 bcma_find_pci_capability(struct bcma_drv_pci * pc,unsigned int dev,unsigned int func,u8 req_cap_id,unsigned char * buf,u32 * buflen) bcma_find_pci_capability() argument
340 bcma_core_pci_enable_crs(struct bcma_drv_pci * pc) bcma_core_pci_enable_crs() argument
387 bcma_core_pci_hostmode_init(struct bcma_drv_pci * pc) bcma_core_pci_hostmode_init() argument
[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 in pcicore_read16()
44 pcicore_write16(struct ssb_pcicore * pc,u16 offset,u16 value) pcicore_write16() argument
71 get_cfgspace_addr(struct ssb_pcicore * pc,unsigned int bus,unsigned int dev,unsigned int func,unsigned int off) get_cfgspace_addr() argument
110 ssb_extpci_read_config(struct ssb_pcicore * pc,unsigned int bus,unsigned int dev,unsigned int func,unsigned int off,void * buf,int len) ssb_extpci_read_config() argument
156 ssb_extpci_write_config(struct ssb_pcicore * pc,unsigned int bus,unsigned int dev,unsigned int func,unsigned int off,const void * buf,int len) ssb_extpci_write_config() argument
320 ssb_pcicore_init_hostmode(struct ssb_pcicore * pc) ssb_pcicore_init_hostmode() argument
397 pcicore_is_in_hostmode(struct ssb_pcicore * pc) pcicore_is_in_hostmode() argument
431 ssb_pcicore_fix_sprom_core_index(struct ssb_pcicore * pc) ssb_pcicore_fix_sprom_core_index() argument
441 ssb_pcicore_polarity_workaround(struct ssb_pcicore * pc) ssb_pcicore_polarity_workaround() argument
446 ssb_pcicore_serdes_workaround(struct ssb_pcicore * pc) ssb_pcicore_serdes_workaround() argument
459 ssb_pcicore_pci_setup_workarounds(struct ssb_pcicore * pc) ssb_pcicore_pci_setup_workarounds() argument
485 ssb_pcicore_pcie_setup_workarounds(struct ssb_pcicore * pc) ssb_pcicore_pcie_setup_workarounds() argument
533 ssb_pcicore_init_clientmode(struct ssb_pcicore * pc) ssb_pcicore_init_clientmode() argument
552 ssb_pcicore_init(struct ssb_pcicore * pc) ssb_pcicore_init() argument
570 ssb_pcie_read(struct ssb_pcicore * pc,u32 address) ssb_pcie_read() argument
576 ssb_pcie_write(struct ssb_pcicore * pc,u32 address,u32 data) ssb_pcie_write() argument
582 ssb_pcie_mdio_set_phy(struct ssb_pcicore * pc,u8 phy) ssb_pcie_mdio_set_phy() argument
605 ssb_pcie_mdio_read(struct ssb_pcicore * pc,u8 device,u8 address) ssb_pcie_mdio_read() argument
645 ssb_pcie_mdio_write(struct ssb_pcicore * pc,u8 device,u8 address,u16 data) ssb_pcie_mdio_write() argument
682 ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore * pc,struct ssb_device * dev) ssb_pcicore_dev_irqvecs_enable() argument
[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_RE in bcm2835_pinctrl_fsel_get()
291 bcm2835_pinctrl_fsel_set(struct bcm2835_pinctrl * pc,unsigned pin,enum bcm2835_fsel fsel) bcm2835_pinctrl_fsel_set() argument
331 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_direction_input() local
339 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_get() local
346 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_get_direction() local
362 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_set() local
372 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_direction_output() local
425 bcm2835_gpio_irq_handle_bank(struct bcm2835_pinctrl * pc,unsigned int bank,u32 mask) bcm2835_gpio_irq_handle_bank() argument
445 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_irq_handler() local
483 __bcm2835_gpio_irq_config(struct bcm2835_pinctrl * pc,unsigned reg,unsigned offset,bool enable) __bcm2835_gpio_irq_config() argument
497 bcm2835_gpio_irq_config(struct bcm2835_pinctrl * pc,unsigned offset,bool enable) bcm2835_gpio_irq_config() argument
527 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_irq_unmask() local
544 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_irq_mask() local
560 __bcm2835_gpio_irq_set_type_disabled(struct bcm2835_pinctrl * pc,unsigned offset,unsigned int type) __bcm2835_gpio_irq_set_type_disabled() argument
580 __bcm2835_gpio_irq_set_type_enabled(struct bcm2835_pinctrl * pc,unsigned offset,unsigned int type) __bcm2835_gpio_irq_set_type_enabled() argument
653 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_irq_set_type() local
680 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_irq_ack() local
689 struct bcm2835_pinctrl *pc = gpiochip_get_data(chip); bcm2835_gpio_irq_set_wake() local
751 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pctl_pin_dbg_show() local
775 bcm2835_pctl_dt_node_to_map_func(struct bcm2835_pinctrl * pc,struct device_node * np,u32 pin,u32 fnum,struct pinctrl_map ** maps) bcm2835_pctl_dt_node_to_map_func() argument
794 bcm2835_pctl_dt_node_to_map_pull(struct bcm2835_pinctrl * pc,struct device_node * np,u32 pin,u32 pull,struct pinctrl_map ** maps) bcm2835_pctl_dt_node_to_map_pull() argument
824 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pctl_dt_node_to_map() local
935 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pmx_free() local
976 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pmx_set() local
995 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pmx_gpio_set_direction() local
1018 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pinconf_get() local
1040 bcm2835_pull_config_set(struct bcm2835_pinctrl * pc,unsigned int pin,unsigned int arg) bcm2835_pull_config_set() argument
1065 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2835_pinconf_set() local
1115 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2711_pinconf_get() local
1151 bcm2711_pull_config_set(struct bcm2835_pinctrl * pc,unsigned int pin,unsigned int arg) bcm2711_pull_config_set() argument
1171 struct bcm2835_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); bcm2711_pinconf_set() local
1292 struct bcm2835_pinctrl *pc; bcm2835_pinctrl_probe() local
[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_obj(dev, *pc); 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 in bcm63xx_pinctrl_probe()
[all...]
/linux/drivers/dma/mediatek/
H A Dmtk-cqdma.c117 * @pc: The pointer to the underlying PC
123 struct mtk_cqdma_pchan *pc; member
136 * @pc: The pointer to all the underlying PCs
145 struct mtk_cqdma_pchan **pc; member
168 static u32 mtk_dma_read(struct mtk_cqdma_pchan *pc, u32 reg) in mtk_dma_read() argument
170 return readl(pc->base + reg); in mtk_dma_read()
173 static void mtk_dma_write(struct mtk_cqdma_pchan *pc, u32 reg, u32 val) in mtk_dma_write() argument
175 writel_relaxed(val, pc->base + reg); in mtk_dma_write()
178 static void mtk_dma_rmw(struct mtk_cqdma_pchan *pc, u32 reg, in mtk_dma_rmw() argument
183 val = mtk_dma_read(pc, re in mtk_dma_rmw()
189 mtk_dma_set(struct mtk_cqdma_pchan * pc,u32 reg,u32 val) mtk_dma_set() argument
194 mtk_dma_clr(struct mtk_cqdma_pchan * pc,u32 reg,u32 val) mtk_dma_clr() argument
204 mtk_cqdma_poll_engine_done(struct mtk_cqdma_pchan * pc,bool atomic) mtk_cqdma_poll_engine_done() argument
222 mtk_cqdma_hard_reset(struct mtk_cqdma_pchan * pc) mtk_cqdma_hard_reset() argument
230 mtk_cqdma_start(struct mtk_cqdma_pchan * pc,struct mtk_cqdma_vdesc * cvd) mtk_cqdma_start() argument
268 struct mtk_cqdma_pchan *pc = cvc->pc; mtk_cqdma_issue_vchan_pending() local
313 mtk_cqdma_consume_work_queue(struct mtk_cqdma_pchan * pc) mtk_cqdma_consume_work_queue() argument
360 struct mtk_cqdma_pchan *pc = from_tasklet(pc, t, tasklet); mtk_cqdma_tasklet_cb() local
614 struct mtk_cqdma_pchan *pc = NULL; mtk_cqdma_alloc_chan_resources() local
[all...]
/linux/arch/microblaze/kernel/
H A 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/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 …]
H A Dpwm-pxa.c70 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_config() local
77 c = clk_get_rate(pc->clk); in pxa_pwm_config()
95 writel(prescale | PWMCR_SD, pc->mmio_base + offset + PWMCR); in pxa_pwm_config()
96 writel(dc, pc->mmio_base + offset + PWMDCR); in pxa_pwm_config()
97 writel(pv, pc->mmio_base + offset + PWMPCR); in pxa_pwm_config()
105 struct pxa_pwm_chip *pc = to_pxa_pwm_chip(chip); in pxa_pwm_apply() local
112 err = clk_prepare_enable(pc->clk); in pxa_pwm_apply()
120 clk_disable_unprepare(pc->clk); in pxa_pwm_apply()
127 clk_disable_unprepare(pc->clk); in pxa_pwm_apply()
130 clk_disable_unprepare(pc->clk); in pxa_pwm_apply()
[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/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()
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()
122 unsigned long pc = regs->depc > VALID_DOUBLE_EXCEPTION_ADDRESS ? in xtensa_backtrace_kernel() local
[all …]
/linux/arch/arm64/include/asm/
H A Dpreempt.h15 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()
53 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_sub() local
54 pc -= val; in __preempt_count_sub()
55 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_sub()
60 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_add_return() local
62 pc += val; in __preempt_count_add_return()
[all …]
/linux/arch/x86/coco/sev/
H A Dsvsm.c100 struct svsm_pvalidate_call *pc) in svsm_build_ca_from_pfn_range() argument
105 pc->num_entries = 0; in svsm_build_ca_from_pfn_range()
106 pc->cur_index = 0; in svsm_build_ca_from_pfn_range()
108 pe = &pc->entry[0]; in svsm_build_ca_from_pfn_range()
120 pc->num_entries++; in svsm_build_ca_from_pfn_range()
121 if (pc->num_entries == SVSM_PVALIDATE_MAX_COUNT) in svsm_build_ca_from_pfn_range()
129 struct svsm_pvalidate_call *pc) in svsm_build_ca_from_psc_desc() argument
135 pc->num_entries = 0; in svsm_build_ca_from_psc_desc()
136 pc->cur_index = 0; in svsm_build_ca_from_psc_desc()
138 pe = &pc->entry[0]; in svsm_build_ca_from_psc_desc()
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-eic7700.c290 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); in eic7700_get_groups_count() local
292 return pc->desc.npins; in eic7700_get_groups_count()
297 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); in eic7700_get_group_name() local
299 return pc->desc.pins[selector].name; in eic7700_get_group_name()
305 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); in eic7700_get_group_pins() local
307 *pins = &pc->desc.pins[selector].number; in eic7700_get_group_pins()
326 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); in eic7700_pin_config_get() local
327 const struct eic7700_pin *pin_data = pc->desc.pins[pin].drv_data; in eic7700_pin_config_get()
334 value = readl_relaxed(pc->base + EIC7700_PIN_REG(pin)); in eic7700_pin_config_get()
371 struct eic7700_pinctrl *pc in eic7700_pin_config_set() local
442 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); eic7700_pin_config_dbg_show() local
463 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); eic7700_get_functions_count() local
470 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); eic7700_get_function_name() local
478 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); eic7700_get_function_groups() local
489 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); eic7700_set_mux() local
531 struct eic7700_pinctrl *pc = pinctrl_dev_get_drvdata(pctldev); eic7700_gpio_set_direction() local
555 eic7700_pinctrl_init_function_groups(struct device * dev,struct eic7700_pinctrl * pc,const char * const * function_names) eic7700_pinctrl_init_function_groups() argument
625 struct eic7700_pinctrl *pc; eic7700_pinctrl_probe() local
[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
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
126 send_sig_fault(SIGILL, ILL_PRVOPC, (void __user *)pc, current); in do_priv_instruction()
[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 in simu_branch()
303 larch_insn_gen_b(unsigned long pc,unsigned long dest) larch_insn_gen_b() argument
318 larch_insn_gen_bl(unsigned long pc,unsigned long dest) larch_insn_gen_bl() argument
[all...]
/linux/tools/testing/selftests/bpf/
H A Djit_disasm_helpers.c63 static int disasm_insn(LLVMDisasmContextRef ctx, uint8_t *image, __u32 len, __u32 pc, in disasm_insn() argument
68 cnt = LLVMDisasmInstruction(ctx, image + pc, len - pc, pc, in disasm_insn()
72 PRINT_FAIL("Can't disasm instruction at offset %d:", pc); in disasm_insn()
73 for (i = 0; i < 16 && pc + i < len; ++i) in disasm_insn()
74 printf(" %02x", image[pc + i]); in disasm_insn()
96 __u32 *label_pc, pc; in disasm_one_func() local
124 pc = 0; in disasm_one_func()
125 while (pc < le in disasm_one_func()
172 __u32 jited_funcs, len, pc; get_jited_program_text() local
[all...]
/linux/arch/sh/kernel/
H A Dtraps_32.c241 srcu = (unsigned char __user *)regs->pc; in handle_unaligned_ins()
258 srcu = (unsigned char __user *)(regs->pc & ~0x3); in handle_unaligned_ins()
288 void __user *addr = (void __user *)(regs->pc + in handle_delayslot()
356 regs->pc = regs->pr; in handle_unaligned_access()
362 regs->pc += rm + 4; in handle_unaligned_access()
368 regs->pr = regs->pc + 4; in handle_unaligned_access()
369 regs->pc += rm + 4; in handle_unaligned_access()
389 regs->pc = rm; in handle_unaligned_access()
395 regs->pr = regs->pc + 4; in handle_unaligned_access()
396 regs->pc = rm; in handle_unaligned_access()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_freq.c57 return &kobj_to_gt(dev->kobj.parent)->uc.guc.pc; in dev_to_pc()
70 struct xe_guc_pc *pc = dev_to_pc(dev); in act_freq_show() local
74 freq = xe_guc_pc_get_act_freq(pc); in act_freq_show()
84 struct xe_guc_pc *pc = dev_to_pc(dev); in cur_freq_show() local
89 ret = xe_guc_pc_get_cur_freq(pc, &freq); in cur_freq_show()
101 struct xe_guc_pc *pc = dev_to_pc(dev); in rp0_freq_show() local
103 return sysfs_emit(buf, "%d\n", xe_guc_pc_get_rp0_freq(pc)); in rp0_freq_show()
111 struct xe_guc_pc *pc = dev_to_pc(dev); in rpe_freq_show() local
115 freq = xe_guc_pc_get_rpe_freq(pc); in rpe_freq_show()
125 struct xe_guc_pc *pc = dev_to_pc(dev); in rpa_freq_show() local
[all …]
/linux/arch/arm/kernel/
H A Dstacktrace.c51 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()
101 frame->pc = regs->ARM_pc; in unwind_frame()
110 frame->pc = READ_ONCE_NOCHECK(*(unsigned long *)(fp + 4)); in unwind_frame()
114 frame->pc = READ_ONCE_NOCHECK(*(unsigned long *)(fp - 4)); in unwind_frame()
117 if (is_kretprobe_trampoline(frame->pc)) in unwind_frame()
118 frame->pc = kretprobe_find_ret_addr(frame->tsk, in unwind_frame()
122 if (in_entry_text(frame->pc)) in unwind_frame()
135 if (!fn(data, frame->pc)) in walk_stackframe()
[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/lib/
H A Dasn1_decoder.c178 size_t pc = 0, dp = 0, tdp = 0, len = 0; in asn1_ber_decoder() local
202 pc, machlen, dp, datalen, csp, jsp); in asn1_ber_decoder()
203 if (unlikely(pc >= machlen)) in asn1_ber_decoder()
205 op = machine[pc]; in asn1_ber_decoder()
206 if (unlikely(pc + asn1_op_lengths[op] > machlen)) in asn1_ber_decoder()
219 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
241 optag = machine[pc + 1]; in asn1_ber_decoder()
251 pc += asn1_op_lengths[op]; in asn1_ber_decoder()
343 act = machine[pc + 1]; in asn1_ber_decoder()
345 act = machine[pc + 2]; in asn1_ber_decoder()
[all …]

12345678910>>...28