Home
last modified time | relevance | path

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

123456

/drivers/pinctrl/meson/
Dpinctrl-meson.c72 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()
110 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_groups_count() local
112 return pc->data->num_groups; in meson_get_groups_count()
118 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_name() local
120 return pc->data->groups[selector].name; in meson_get_group_name()
126 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_pins() local
[all …]
Dpinctrl-meson8-pmx.c32 static void meson8_pmx_disable_other_groups(struct meson_pinctrl *pc, in meson8_pmx_disable_other_groups() argument
39 for (i = 0; i < pc->data->num_groups; i++) { in meson8_pmx_disable_other_groups()
40 group = &pc->data->groups[i]; in meson8_pmx_disable_other_groups()
48 regmap_update_bits(pc->reg_mux, in meson8_pmx_disable_other_groups()
59 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson8_pmx_set_mux() local
60 struct meson_pmx_func *func = &pc->data->funcs[func_num]; in meson8_pmx_set_mux()
61 struct meson_pmx_group *group = &pc->data->groups[group_num]; in meson8_pmx_set_mux()
66 dev_dbg(pc->dev, "enable function %s, group %s\n", func->name, in meson8_pmx_set_mux()
74 meson8_pmx_disable_other_groups(pc, group->pins[i], group_num); in meson8_pmx_set_mux()
78 ret = regmap_update_bits(pc->reg_mux, pmx_data->reg * 4, in meson8_pmx_set_mux()
[all …]
Dpinctrl-meson-axg-pmx.c29 static int meson_axg_pmx_get_bank(struct meson_pinctrl *pc, in meson_axg_pmx_get_bank() argument
34 struct meson_axg_pmx_data *pmx = pc->data->pmx_data; in meson_axg_pmx_get_bank()
60 static int meson_axg_pmx_update_function(struct meson_pinctrl *pc, in meson_axg_pmx_update_function() argument
68 ret = meson_axg_pmx_get_bank(pc, pin, &bank); in meson_axg_pmx_update_function()
74 ret = regmap_update_bits(pc->reg_mux, reg << 2, in meson_axg_pmx_update_function()
85 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_axg_pmx_set_mux() local
86 struct meson_pmx_func *func = &pc->data->funcs[func_num]; in meson_axg_pmx_set_mux()
87 struct meson_pmx_group *group = &pc->data->groups[group_num]; in meson_axg_pmx_set_mux()
91 dev_dbg(pc->dev, "enable function %s, group %s\n", func->name, in meson_axg_pmx_set_mux()
95 ret = meson_axg_pmx_update_function(pc, group->pins[i], in meson_axg_pmx_set_mux()
[all …]
/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 …]
Dbcma_private.h123 u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
124 void bcma_core_pci_early_init(struct bcma_drv_pci *pc);
125 void bcma_core_pci_init(struct bcma_drv_pci *pc);
126 void bcma_core_pci_up(struct bcma_drv_pci *pc);
127 void bcma_core_pci_down(struct bcma_drv_pci *pc);
129 static inline void bcma_core_pci_early_init(struct bcma_drv_pci *pc) in bcma_core_pci_early_init() argument
131 WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); in bcma_core_pci_early_init()
133 static inline void bcma_core_pci_init(struct bcma_drv_pci *pc) in bcma_core_pci_init() argument
136 WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); in bcma_core_pci_init()
155 bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc);
[all …]
/drivers/pwm/
Dpwm-sti.c123 static int sti_pwm_get_prescale(struct sti_pwm_chip *pc, unsigned long period, in sti_pwm_get_prescale() argument
126 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_get_prescale()
131 clk_rate = clk_get_rate(pc->pwm_clk); in sti_pwm_get_prescale()
133 dev_err(pc->dev, "failed to get clock rate\n"); in sti_pwm_get_prescale()
167 struct sti_pwm_chip *pc = to_sti_pwmchip(chip); in sti_pwm_config() local
168 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_config()
170 struct pwm_device *cur = pc->cur; in sti_pwm_config()
171 struct device *dev = pc->dev; in sti_pwm_config()
175 ncfg = hweight_long(pc->configured); in sti_pwm_config()
196 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 clk_rate = clk_get_rate(pc->clk); in rockchip_pwm_get_state()
77 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state()
78 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state()
81 tmp = readl_relaxed(pc->base + pc->data->regs.duty); in rockchip_pwm_get_state()
82 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state()
85 val = readl_relaxed(pc->base + pc->data->regs.ctrl); in rockchip_pwm_get_state()
88 if (pc->data->supports_polarity && !(val & PWM_DUTY_POSITIVE)) in rockchip_pwm_get_state()
[all …]
Dpwm-tiecap.c53 struct ecap_pwm_chip *pc = to_ecap_pwm_chip(chip); in ecap_pwm_config() local
61 c = pc->clk_rate; in ecap_pwm_config()
70 c = pc->clk_rate; in ecap_pwm_config()
76 pm_runtime_get_sync(pc->chip.dev); in ecap_pwm_config()
78 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config()
83 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_config()
87 writel(duty_cycles, pc->mmio_base + CAP2); in ecap_pwm_config()
88 writel(period_cycles, pc->mmio_base + CAP1); in ecap_pwm_config()
95 writel(duty_cycles, pc->mmio_base + CAP4); in ecap_pwm_config()
96 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-mediatek.c73 struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); in pwm_mediatek_clk_enable() local
76 ret = clk_prepare_enable(pc->clk_top); in pwm_mediatek_clk_enable()
80 ret = clk_prepare_enable(pc->clk_main); in pwm_mediatek_clk_enable()
84 ret = clk_prepare_enable(pc->clk_pwms[pwm->hwpwm]); in pwm_mediatek_clk_enable()
91 clk_disable_unprepare(pc->clk_main); in pwm_mediatek_clk_enable()
93 clk_disable_unprepare(pc->clk_top); in pwm_mediatek_clk_enable()
101 struct pwm_mediatek_chip *pc = to_pwm_mediatek_chip(chip); in pwm_mediatek_clk_disable() local
103 clk_disable_unprepare(pc->clk_pwms[pwm->hwpwm]); in pwm_mediatek_clk_disable()
104 clk_disable_unprepare(pc->clk_main); in pwm_mediatek_clk_disable()
105 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()
64 struct bcm2835_pwm *pc = to_bcm2835_pwm(chip); in bcm2835_pwm_config() local
65 unsigned long rate = clk_get_rate(pc->clk); in bcm2835_pwm_config()
70 dev_err(pc->dev, "failed to get clock rate\n"); in bcm2835_pwm_config()
81 pc->base + DUTY(pwm->hwpwm)); in bcm2835_pwm_config()
[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-tegra.c98 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_config() local
117 if (period_ns < pc->min_period_ns) in tegra_pwm_config()
133 if (pc->soc->num_channels == 1) { in tegra_pwm_config()
148 err = clk_set_rate(pc->clk, required_clk_rate); in tegra_pwm_config()
153 pc->clk_rate = clk_get_rate(pc->clk); in tegra_pwm_config()
156 rate = pc->clk_rate >> PWM_DUTY_WIDTH; in tegra_pwm_config()
184 err = clk_prepare_enable(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()
203 struct tegra_pwm_chip *pc = to_tegra_pwm_chip(chip); in tegra_pwm_enable() local
[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 …]
/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 …]
/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c244 static inline u32 bcm2835_gpio_rd(struct bcm2835_pinctrl *pc, unsigned reg) in bcm2835_gpio_rd() argument
246 return readl(pc->base + reg); in bcm2835_gpio_rd()
249 static inline void bcm2835_gpio_wr(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_wr() argument
252 writel(val, pc->base + reg); in bcm2835_gpio_wr()
255 static inline int bcm2835_gpio_get_bit(struct bcm2835_pinctrl *pc, unsigned reg, in bcm2835_gpio_get_bit() argument
259 return (bcm2835_gpio_rd(pc, reg) >> GPIO_REG_SHIFT(bit)) & 1; in bcm2835_gpio_get_bit()
263 static inline void bcm2835_gpio_set_bit(struct bcm2835_pinctrl *pc, in bcm2835_gpio_set_bit() argument
267 bcm2835_gpio_wr(pc, reg, BIT(GPIO_REG_SHIFT(bit))); in bcm2835_gpio_set_bit()
271 struct bcm2835_pinctrl *pc, unsigned pin) in bcm2835_pinctrl_fsel_get() argument
273 u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); in bcm2835_pinctrl_fsel_get()
[all …]
/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 …]
/drivers/ide/
Dide-floppy.c67 struct ide_atapi_pc *pc = drive->pc; in ide_floppy_callback() local
68 struct request *rq = pc->rq; in ide_floppy_callback()
69 int uptodate = pc->error ? 0 : 1; in ide_floppy_callback()
73 if (drive->failed_pc == pc) in ide_floppy_callback()
76 if (pc->c[0] == GPCMD_READ_10 || pc->c[0] == GPCMD_WRITE_10 || in ide_floppy_callback()
79 else if (pc->c[0] == GPCMD_REQUEST_SENSE) { in ide_floppy_callback()
83 if (!pc->error) { in ide_floppy_callback()
109 struct ide_atapi_pc *pc) in ide_floppy_report_error() argument
119 floppy->drive->name, pc->c[0], floppy->sense_key, in ide_floppy_report_error()
126 struct ide_atapi_pc *pc) in ide_floppy_issue_pc() argument
[all …]
Dide-floppy_ioctl.c39 struct ide_atapi_pc *pc, in ide_floppy_get_format_capacities() argument
53 ide_floppy_create_read_capacity_cmd(pc); in ide_floppy_get_format_capacities()
55 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { in ide_floppy_get_format_capacities()
99 static void ide_floppy_create_format_unit_cmd(struct ide_atapi_pc *pc, in ide_floppy_create_format_unit_cmd() argument
103 ide_init_pc(pc); in ide_floppy_create_format_unit_cmd()
104 pc->c[0] = GPCMD_FORMAT_UNIT; in ide_floppy_create_format_unit_cmd()
105 pc->c[1] = 0x17; in ide_floppy_create_format_unit_cmd()
117 pc->req_xfer = 12; in ide_floppy_create_format_unit_cmd()
118 pc->flags |= PC_FLAG_WRITING; in ide_floppy_create_format_unit_cmd()
121 static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_floppy_get_sfrp_bit() argument
[all …]
Dide-tape.c272 struct ide_atapi_pc *pc = drive->failed_pc; in idetape_analyze_error() local
285 if (pc->flags & PC_FLAG_DMA_ERROR) in idetape_analyze_error()
293 if ((pc->c[0] == READ_6 || pc->c[0] == WRITE_6) in idetape_analyze_error()
295 && pc->c[4] == 0 && pc->c[3] == 0 && pc->c[2] == 0) { in idetape_analyze_error()
298 pc->error = 0; in idetape_analyze_error()
300 pc->flags |= PC_FLAG_ABORT; in idetape_analyze_error()
303 if (pc->c[0] == READ_6 && (sense[2] & 0x80)) { in idetape_analyze_error()
304 pc->error = IDE_DRV_ERROR_FILEMARK; in idetape_analyze_error()
305 pc->flags |= PC_FLAG_ABORT; in idetape_analyze_error()
307 if (pc->c[0] == WRITE_6) { in idetape_analyze_error()
[all …]
Dide-atapi.c80 void ide_init_pc(struct ide_atapi_pc *pc) in ide_init_pc() argument
82 memset(pc, 0, sizeof(*pc)); in ide_init_pc()
91 struct ide_atapi_pc *pc, void *buf, unsigned int bufflen) in ide_queue_pc_tail() argument
98 ide_req(rq)->special = pc; in ide_queue_pc_tail()
107 memcpy(scsi_req(rq)->cmd, pc->c, 12); in ide_queue_pc_tail()
120 struct ide_atapi_pc pc; in ide_do_test_unit_ready() local
122 ide_init_pc(&pc); in ide_do_test_unit_ready()
123 pc.c[0] = TEST_UNIT_READY; in ide_do_test_unit_ready()
125 return ide_queue_pc_tail(drive, disk, &pc, NULL, 0); in ide_do_test_unit_ready()
131 struct ide_atapi_pc pc; in ide_do_start_stop() local
[all …]
/drivers/oprofile/
Dcpu_buffer.c238 unsigned long pc, unsigned long event) in op_add_sample() argument
247 sample->eip = pc; in op_add_sample()
262 log_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc, in log_sample() argument
269 if (pc == ESCAPE_CODE) { in log_sample()
277 if (op_add_sample(cpu_buf, pc, event)) in log_sample()
298 __oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, in __oprofile_add_ext_sample() argument
309 if (!log_sample(cpu_buf, pc, backtrace, is_kernel, event, task)) in __oprofile_add_ext_sample()
321 void oprofile_add_ext_hw_sample(unsigned long pc, struct pt_regs * const regs, in oprofile_add_ext_hw_sample() argument
325 __oprofile_add_ext_sample(pc, regs, event, is_kernel, task); in oprofile_add_ext_hw_sample()
328 void oprofile_add_ext_sample(unsigned long pc, struct pt_regs * const regs, in oprofile_add_ext_sample() argument
[all …]
/drivers/pinctrl/
Dpinctrl-st.c204 #define pc_to_bank(pc) \ argument
205 container_of(pc, struct st_gpio_bank, pc)
316 struct st_pio_control pc; member
369 return &bank->pc; in st_get_pio_control()
383 static void st_pinconf_set_config(struct st_pio_control *pc, in st_pinconf_set_config() argument
386 struct regmap_field *output_enable = pc->oe; in st_pinconf_set_config()
387 struct regmap_field *pull_up = pc->pu; in st_pinconf_set_config()
388 struct regmap_field *open_drain = pc->od; in st_pinconf_set_config()
417 static void st_pctl_set_function(struct st_pio_control *pc, in st_pctl_set_function() argument
420 struct regmap_field *alt = pc->alt; in st_pctl_set_function()
[all …]
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c125 u8 *pc; in pcan_msg_add_rec() local
130 pc = pm->rec_ptr + 1; in pcan_msg_add_rec()
141 *pc++ = va_arg(ap, int); in pcan_msg_add_rec()
142 *pc++ = va_arg(ap, int); in pcan_msg_add_rec()
143 *pc++ = va_arg(ap, int); in pcan_msg_add_rec()
144 *(__le32 *)pc = cpu_to_le32(va_arg(ap, u32)); in pcan_msg_add_rec()
145 pc += 4; in pcan_msg_add_rec()
146 memcpy(pc, va_arg(ap, int *), i); in pcan_msg_add_rec()
147 pc += i; in pcan_msg_add_rec()
152 *pc++ = va_arg(ap, int); in pcan_msg_add_rec()
[all …]

123456