/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 50 static struct regmap *mtk_get_regmap(struct mtk_pinctrl *pctl, in mtk_get_regmap() argument 53 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap() 54 return pctl->regmap2; in mtk_get_regmap() 55 return pctl->regmap1; in mtk_get_regmap() 58 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port() argument 61 return ((pin >> pctl->devdata->mode_shf) & pctl->devdata->port_mask) in mtk_get_port() 62 << pctl->devdata->port_shf; in mtk_get_port() 71 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pmx_gpio_set_direction() local 73 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction() 74 bit = BIT(offset & pctl->devdata->mode_mask); in mtk_pmx_gpio_set_direction() [all …]
|
/openbmc/linux/drivers/pinctrl/pxa/ |
H A D | pinctrl-pxa2xx.c | 26 struct pxa_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pxa2xx_pctrl_get_groups_count() local 28 return pctl->ngroups; in pxa2xx_pctrl_get_groups_count() 34 struct pxa_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pxa2xx_pctrl_get_group_name() local 35 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pctrl_get_group_name() 45 struct pxa_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pxa2xx_pctrl_get_group_pins() local 46 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pctrl_get_group_pins() 65 pxa_desc_by_func_group(struct pxa_pinctrl *pctl, const char *pin_name, in pxa_desc_by_func_group() argument 71 for (i = 0; i < pctl->npins; i++) { in pxa_desc_by_func_group() 72 const struct pxa_desc_pin *pin = pctl->ppins + i; in pxa_desc_by_func_group() 88 struct pxa_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pxa2xx_pmx_gpio_set_direction() local [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-stmfx.c | 106 struct stmfx_pinctrl *pctl = gpiochip_get_data(gc); in stmfx_gpio_get() local 112 ret = regmap_read(pctl->stmfx->map, reg, &value); in stmfx_gpio_get() 119 struct stmfx_pinctrl *pctl = gpiochip_get_data(gc); in stmfx_gpio_set() local 123 regmap_write_bits(pctl->stmfx->map, reg + get_reg(offset), in stmfx_gpio_set() 129 struct stmfx_pinctrl *pctl = gpiochip_get_data(gc); in stmfx_gpio_get_direction() local 135 ret = regmap_read(pctl->stmfx->map, reg, &val); in stmfx_gpio_get_direction() 150 struct stmfx_pinctrl *pctl = gpiochip_get_data(gc); in stmfx_gpio_direction_input() local 154 return regmap_write_bits(pctl->stmfx->map, reg, mask, 0); in stmfx_gpio_direction_input() 160 struct stmfx_pinctrl *pctl = gpiochip_get_data(gc); in stmfx_gpio_direction_output() local 166 return regmap_write_bits(pctl->stmfx->map, reg, mask, mask); in stmfx_gpio_direction_output() [all …]
|
H A D | pinctrl-sx150x.c | 372 static bool sx150x_pin_is_oscio(struct sx150x_pinctrl *pctl, unsigned int pin) in sx150x_pin_is_oscio() argument 374 if (pin >= pctl->data->npins) in sx150x_pin_is_oscio() 378 if (pctl->data->model != SX150X_789) in sx150x_pin_is_oscio() 381 return !strcmp(pctl->data->pins[pin].name, "oscio"); in sx150x_pin_is_oscio() 387 struct sx150x_pinctrl *pctl = gpiochip_get_data(chip); in sx150x_gpio_get_direction() local 391 if (sx150x_pin_is_oscio(pctl, offset)) in sx150x_gpio_get_direction() 394 ret = regmap_read(pctl->regmap, pctl->data->reg_dir, &value); in sx150x_gpio_get_direction() 406 struct sx150x_pinctrl *pctl = gpiochip_get_data(chip); in sx150x_gpio_get() local 410 if (sx150x_pin_is_oscio(pctl, offset)) in sx150x_gpio_get() 413 ret = regmap_read(pctl->regmap, pctl->data->reg_data, &value); in sx150x_gpio_get() [all …]
|
H A D | pinctrl-apple-gpio.c | 81 static void apple_gpio_set_reg(struct apple_gpio_pinctrl *pctl, in apple_gpio_set_reg() argument 84 regmap_update_bits(pctl->map, REG_GPIO(pin), mask, value); in apple_gpio_set_reg() 87 static u32 apple_gpio_get_reg(struct apple_gpio_pinctrl *pctl, in apple_gpio_get_reg() argument 93 ret = regmap_read(pctl->map, REG_GPIO(pin), &val); in apple_gpio_get_reg() 108 struct apple_gpio_pinctrl *pctl; in apple_gpio_dt_node_to_map() local 118 pctl = pinctrl_dev_get_drvdata(pctldev); in apple_gpio_dt_node_to_map() 122 dev_err(pctl->dev, in apple_gpio_dt_node_to_map() 148 function_name = pinmux_generic_get_function_name(pctl->pctldev, func); in apple_gpio_dt_node_to_map() 149 ret = pinctrl_utils_add_map_mux(pctl->pctldev, map, in apple_gpio_dt_node_to_map() 176 struct apple_gpio_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in apple_gpio_pinmux_set() local [all …]
|
H A D | pinctrl-axp209.c | 134 struct axp20x_pctl *pctl = gpiochip_get_data(chip); in axp20x_gpio_get() local 140 ret = regmap_read(pctl->regmap, AXP20X_GPIO3_CTRL, &val); in axp20x_gpio_get() 146 ret = regmap_read(pctl->regmap, AXP20X_GPIO20_SS, &val); in axp20x_gpio_get() 150 return !!(val & BIT(offset + pctl->desc->gpio_status_offset)); in axp20x_gpio_get() 156 struct axp20x_pctl *pctl = gpiochip_get_data(chip); in axp20x_gpio_get_direction() local 162 ret = regmap_read(pctl->regmap, AXP20X_GPIO3_CTRL, &val); in axp20x_gpio_get_direction() 175 ret = regmap_read(pctl->regmap, reg, &val); in axp20x_gpio_get_direction() 208 struct axp20x_pctl *pctl = gpiochip_get_data(chip); in axp20x_gpio_set() local 213 regmap_update_bits(pctl->regmap, AXP20X_GPIO3_CTRL, in axp20x_gpio_set() 224 regmap_update_bits(pctl->regmap, reg, in axp20x_gpio_set() [all …]
|
H A D | pinctrl-da9062.c | 45 static int da9062_pctl_get_pin_mode(struct da9062_pctl *pctl, in da9062_pctl_get_pin_mode() argument 48 struct regmap *regmap = pctl->da9062->regmap; in da9062_pctl_get_pin_mode() 61 static int da9062_pctl_set_pin_mode(struct da9062_pctl *pctl, in da9062_pctl_set_pin_mode() argument 64 struct regmap *regmap = pctl->da9062->regmap; in da9062_pctl_set_pin_mode() 76 pctl->pin_config[offset] = mode_req; in da9062_pctl_set_pin_mode() 83 struct da9062_pctl *pctl = gpiochip_get_data(gc); in da9062_gpio_get() local 84 struct regmap *regmap = pctl->da9062->regmap; in da9062_gpio_get() 88 gpio_mode = da9062_pctl_get_pin_mode(pctl, offset); in da9062_gpio_get() 113 struct da9062_pctl *pctl = gpiochip_get_data(gc); in da9062_gpio_set() local 114 struct regmap *regmap = pctl->da9062->regmap; in da9062_gpio_set() [all …]
|
H A D | pinctrl-pistachio.c | 95 struct pistachio_pinctrl *pctl; member 832 static inline u32 pctl_readl(struct pistachio_pinctrl *pctl, u32 reg) in pctl_readl() argument 834 return readl(pctl->base + reg); in pctl_readl() 837 static inline void pctl_writel(struct pistachio_pinctrl *pctl, u32 val, u32 reg) in pctl_writel() argument 839 writel(val, pctl->base + reg); in pctl_writel() 882 struct pistachio_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pistachio_pinctrl_get_groups_count() local 884 return pctl->ngroups; in pistachio_pinctrl_get_groups_count() 890 struct pistachio_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pistachio_pinctrl_get_group_name() local 892 return pctl->groups[group].name; in pistachio_pinctrl_get_group_name() 900 struct pistachio_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in pistachio_pinctrl_get_group_pins() local [all …]
|
H A D | pinctrl-equilibrium.c | 264 *find_pinbank_via_pin(struct eqbr_pinctrl_drv_data *pctl, unsigned int pin) in find_pinbank_via_pin() argument 269 for (i = 0; i < pctl->nr_banks; i++) { in find_pinbank_via_pin() 270 bank = &pctl->pin_banks[i]; in find_pinbank_via_pin() 287 static int eqbr_set_pin_mux(struct eqbr_pinctrl_drv_data *pctl, in eqbr_set_pin_mux() argument 295 bank = find_pinbank_via_pin(pctl, pin); in eqbr_set_pin_mux() 297 dev_err(pctl->dev, "Couldn't find pin bank for pin %u\n", pin); in eqbr_set_pin_mux() 304 dev_err(pctl->dev, in eqbr_set_pin_mux() 310 raw_spin_lock_irqsave(&pctl->lock, flags); in eqbr_set_pin_mux() 312 raw_spin_unlock_irqrestore(&pctl->lock, flags); in eqbr_set_pin_mux() 319 struct eqbr_pinctrl_drv_data *pctl = pinctrl_dev_get_drvdata(pctldev); in eqbr_pinmux_set_mux() local [all …]
|
/openbmc/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.c | 61 static void sunxi_mux_reg(const struct sunxi_pinctrl *pctl, in sunxi_mux_reg() argument 67 *reg = bank * pctl->bank_mem_size + MUX_REGS_OFFSET + in sunxi_mux_reg() 73 static void sunxi_data_reg(const struct sunxi_pinctrl *pctl, in sunxi_data_reg() argument 79 *reg = bank * pctl->bank_mem_size + DATA_REGS_OFFSET + in sunxi_data_reg() 85 static void sunxi_dlevel_reg(const struct sunxi_pinctrl *pctl, in sunxi_dlevel_reg() argument 89 u32 offset = pin % PINS_PER_BANK * pctl->dlevel_field_width; in sunxi_dlevel_reg() 91 *reg = bank * pctl->bank_mem_size + DLEVEL_REGS_OFFSET + in sunxi_dlevel_reg() 94 *mask = (BIT(pctl->dlevel_field_width) - 1) << *shift; in sunxi_dlevel_reg() 97 static void sunxi_pull_reg(const struct sunxi_pinctrl *pctl, in sunxi_pull_reg() argument 103 *reg = bank * pctl->bank_mem_size + pctl->pull_regs_offset + in sunxi_pull_reg() [all …]
|
/openbmc/linux/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.c | 83 struct mvebu_pinctrl *pctl, unsigned pid) in mvebu_pinctrl_find_group_by_pid() argument 86 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid() 87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid() 88 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid() 89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() 90 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid() 96 struct mvebu_pinctrl *pctl, const char *name) in mvebu_pinctrl_find_group_by_name() argument 100 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_name() 101 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name() 102 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name() [all …]
|
/openbmc/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 210 struct stm32_pinctrl *pctl = dev_get_drvdata(bank->gpio_chip.parent); in stm32_gpio_request() local 214 range = pinctrl_find_gpio_range_from_pin_nolock(pctl->pctl_dev, pin); in stm32_gpio_request() 216 dev_err(pctl->dev, "pin %d not in range.\n", pin); in stm32_gpio_request() 295 struct stm32_pinctrl *pctl = dev_get_drvdata(bank->gpio_chip.parent); in stm32_gpio_init_valid_mask() local 309 dev_dbg(pctl->dev, "No access to gpio %d - %d\n", bank->bank_nr, i); in stm32_gpio_init_valid_mask() 381 struct stm32_pinctrl *pctl = dev_get_drvdata(bank->gpio_chip.parent); in stm32_gpio_irq_request_resources() local 390 dev_err(pctl->dev, "unable to lock HW IRQ %lu for IRQ\n", in stm32_gpio_irq_request_resources() 441 struct stm32_pinctrl *pctl = dev_get_drvdata(bank->gpio_chip.parent); in stm32_gpio_domain_activate() local 444 if (pctl->hwlock) { in stm32_gpio_domain_activate() 445 ret = hwspin_lock_timeout_in_atomic(pctl->hwlock, in stm32_gpio_domain_activate() [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_pwork.c | 42 struct xfs_pwork_ctl *pctl; in xfs_pwork_work() local 46 pctl = pwork->pctl; in xfs_pwork_work() 47 error = pctl->work_fn(pctl->mp, pwork); in xfs_pwork_work() 48 if (error && !pctl->error) in xfs_pwork_work() 49 pctl->error = error; in xfs_pwork_work() 50 if (atomic_dec_and_test(&pctl->nr_work)) in xfs_pwork_work() 51 wake_up(&pctl->poll_wait); in xfs_pwork_work() 62 struct xfs_pwork_ctl *pctl, in xfs_pwork_init() argument 74 pctl->wq = alloc_workqueue("%s-%d", in xfs_pwork_init() 77 if (!pctl->wq) in xfs_pwork_init() [all …]
|
H A D | xfs_pwork.h | 32 struct xfs_pwork_ctl *pctl; member 35 #define XFS_PWORK_SINGLE_THREADED { .pctl = NULL } 40 struct xfs_pwork_ctl *pctl) in xfs_pwork_ctl_want_abort() argument 42 return pctl && pctl->error; in xfs_pwork_ctl_want_abort() 50 return xfs_pwork_ctl_want_abort(pwork->pctl); in xfs_pwork_want_abort() 53 int xfs_pwork_init(struct xfs_mount *mp, struct xfs_pwork_ctl *pctl, 55 void xfs_pwork_queue(struct xfs_pwork_ctl *pctl, struct xfs_pwork *pwork); 56 int xfs_pwork_destroy(struct xfs_pwork_ctl *pctl); 57 void xfs_pwork_poll(struct xfs_pwork_ctl *pctl);
|
/openbmc/u-boot/drivers/ram/rockchip/ |
H A D | sdram_rk322x.c | 27 struct rk322x_ddr_pctl *pctl; member 153 static void send_command(struct rk322x_ddr_pctl *pctl, in send_command() argument 156 writel((START_CMD | (rank << 20) | arg | cmd), &pctl->mcmd); in send_command() 158 while (readl(&pctl->mcmd) & START_CMD) in send_command() 165 struct rk322x_ddr_pctl *pctl = chan->pctl; in memory_init() local 169 send_command(pctl, 3, DESELECT_CMD, 0); in memory_init() 171 send_command(pctl, 3, PREA_CMD, 0); in memory_init() 172 send_command(pctl, 3, MRS_CMD, in memory_init() 177 send_command(pctl, 3, MRS_CMD, in memory_init() 182 send_command(pctl, 3, MRS_CMD, in memory_init() [all …]
|
H A D | dmc-rk3368.c | 27 struct rk3368_ddr_pctl *pctl; member 192 static void send_command(struct rk3368_ddr_pctl *pctl, u32 rank, u32 cmd) in send_command() argument 197 writel(mcmd, &pctl->mcmd); in send_command() 198 while (readl(&pctl->mcmd) & START_CMD) in send_command() 202 static void send_mrs(struct rk3368_ddr_pctl *pctl, in send_mrs() argument 208 writel(mcmd, &pctl->mcmd); in send_mrs() 209 while (readl(&pctl->mcmd) & START_CMD) in send_mrs() 213 static int memory_init(struct rk3368_ddr_pctl *pctl, in memory_init() argument 221 * Power up DRAM by DDR_PCTL_POWCTL[0] register of PCTL and in memory_init() 223 * of PCTL. in memory_init() [all …]
|
H A D | sdram_rk3188.c | 28 struct rk3288_ddr_pctl *pctl; member 172 static void dfi_cfg(struct rk3288_ddr_pctl *pctl, u32 dramtype) in dfi_cfg() argument 174 writel(DFI_INIT_START, &pctl->dfistcfg0); in dfi_cfg() 176 &pctl->dfistcfg1); in dfi_cfg() 177 writel(DFI_PARITY_INTR_EN | DFI_PARITY_EN, &pctl->dfistcfg2); in dfi_cfg() 179 &pctl->dfilpcfg0); in dfi_cfg() 181 writel(2 << TCTRL_DELAY_TIME_SHIFT, &pctl->dfitctrldelay); in dfi_cfg() 182 writel(1 << TPHY_WRDATA_TIME_SHIFT, &pctl->dfitphywrdata); in dfi_cfg() 183 writel(0xf << TPHY_RDLAT_TIME_SHIFT, &pctl->dfitphyrdlat); in dfi_cfg() 184 writel(2 << TDRAM_CLK_DIS_TIME_SHIFT, &pctl->dfitdramclkdis); in dfi_cfg() [all …]
|
H A D | sdram_rk3288.c | 30 struct rk3288_ddr_pctl *pctl; member 171 static void dfi_cfg(struct rk3288_ddr_pctl *pctl, u32 dramtype) in dfi_cfg() argument 173 writel(DFI_INIT_START, &pctl->dfistcfg0); in dfi_cfg() 175 &pctl->dfistcfg1); in dfi_cfg() 176 writel(DFI_PARITY_INTR_EN | DFI_PARITY_EN, &pctl->dfistcfg2); in dfi_cfg() 178 &pctl->dfilpcfg0); in dfi_cfg() 180 writel(2 << TCTRL_DELAY_TIME_SHIFT, &pctl->dfitctrldelay); in dfi_cfg() 181 writel(1 << TPHY_WRDATA_TIME_SHIFT, &pctl->dfitphywrdata); in dfi_cfg() 182 writel(0xf << TPHY_RDLAT_TIME_SHIFT, &pctl->dfitphyrdlat); in dfi_cfg() 183 writel(2 << TDRAM_CLK_DIS_TIME_SHIFT, &pctl->dfitdramclkdis); in dfi_cfg() [all …]
|
/openbmc/linux/arch/arc/boot/dts/ |
H A D | abilis_tb101.dtsi | 31 pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */ 34 pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */ 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ 40 pctl_tsin_p1: pctl-tsin-p1 { /* Parallel TS-in 1 */ 44 pctl_tsin_s2: pctl-tsin-s2 { /* Serial TS-in 2 */ 47 pctl_tsin_s3: pctl-tsin-s3 { /* Serial TS-in 3 */ 50 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */ 53 pctl_tsin_p3: pctl-tsin-p3 { /* Parallel TS-in 3 */ 57 pctl_tsin_s4: pctl-tsin-s4 { /* Serial TS-in 4 */ 60 pctl_tsin_s5: pctl-tsin-s5 { /* Serial TS-in 5 */ [all …]
|
H A D | abilis_tb100.dtsi | 31 pctl_tsin_s0: pctl-tsin-s0 { /* Serial TS-in 0 */ 34 pctl_tsin_s1: pctl-tsin-s1 { /* Serial TS-in 1 */ 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ 40 pctl_tsin_p1: pctl-tsin-p1 { /* Parallel TS-in 1 */ 44 pctl_tsin_s2: pctl-tsin-s2 { /* Serial TS-in 2 */ 47 pctl_tsin_s3: pctl-tsin-s3 { /* Serial TS-in 3 */ 50 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */ 53 pctl_tsin_p3: pctl-tsin-p3 { /* Parallel TS-in 3 */ 57 pctl_tsin_s4: pctl-tsin-s4 { /* Serial TS-in 4 */ 60 pctl_tsin_s5: pctl-tsin-s5 { /* Serial TS-in 5 */ [all …]
|
/openbmc/u-boot/arch/arm/mach-rockchip/rk3036/ |
H A D | sdram_rk3036.c | 29 struct rk3036_ddr_pctl *pctl; member 443 static void send_command(struct rk3036_ddr_pctl *pctl, in send_command() argument 446 writel((START_CMD | (rank << 20) | arg | cmd), &pctl->mcmd); in send_command() 448 while (readl(&pctl->mcmd) & START_CMD) in send_command() 454 struct rk3036_ddr_pctl *pctl = priv->pctl; in memory_init() local 456 send_command(pctl, 3, DESELECT_CMD, 0); in memory_init() 458 send_command(pctl, 3, PREA_CMD, 0); in memory_init() 459 send_command(pctl, 3, MRS_CMD, in memory_init() 464 send_command(pctl, 3, MRS_CMD, in memory_init() 469 send_command(pctl, 3, MRS_CMD, in memory_init() [all …]
|
/openbmc/linux/drivers/pinctrl/sunplus/ |
H A D | sppctl.c | 174 static void sppctl_func_set(struct sppctl_pdata *pctl, u8 func, u8 val) in sppctl_func_set() argument 203 writel(reg, pctl->moon2_base + offset); in sppctl_func_set() 226 static void sppctl_gmx_set(struct sppctl_pdata *pctl, u8 reg_off, u8 bit_off, u8 bit_sz, in sppctl_gmx_set() argument 239 writel(reg, pctl->moon1_base + reg_off * 4); in sppctl_gmx_set() 523 static int sppctl_gpio_new(struct platform_device *pdev, struct sppctl_pdata *pctl) in sppctl_gpio_new() argument 532 pctl->spp_gchip = spp_gchip; in sppctl_gpio_new() 534 spp_gchip->gpioxt_base = pctl->gpioxt_base; in sppctl_gpio_new() 535 spp_gchip->first_base = pctl->first_base; in sppctl_gpio_new() 556 pctl->pctl_grange.npins = gchip->ngpio; in sppctl_gpio_new() 557 pctl->pctl_grange.name = gchip->label; in sppctl_gpio_new() [all …]
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-asxx-defs.h | 226 uint64_t pctl:5; member 230 uint64_t pctl:5; 237 uint64_t pctl:4; member 241 uint64_t pctl:4; 252 uint64_t pctl:4; member 256 uint64_t pctl:4; 306 uint64_t pctl:5; member 308 uint64_t pctl:5; 319 uint64_t pctl:5; member 321 uint64_t pctl:5; [all …]
|
/openbmc/linux/drivers/pinctrl/sprd/ |
H A D | pinctrl-sprd.c | 147 * @pctl: pointer to the pinctrl handle 153 struct pinctrl_dev *pctl; member 212 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_count() local 213 struct sprd_pinctrl_soc_info *info = pctl->info; in sprd_pctrl_group_count() 221 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_name() local 222 struct sprd_pinctrl_soc_info *info = pctl->info; in sprd_pctrl_group_name() 232 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_pins() local 233 struct sprd_pinctrl_soc_info *info = pctl->info; in sprd_pctrl_group_pins() 249 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_dt_node_to_map() local 259 grp = sprd_pinctrl_find_group_by_name(pctl, np->name); in sprd_dt_node_to_map() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | core_titan.c | 237 union TPAchipPCTL pctl; in titan_query_agp() local 240 pctl.pctl_q_whole = port->pctl.csr; in titan_query_agp() 242 return pctl.pctl_r_bits.apctl_v_agp_present; in titan_query_agp() 341 port->pctl.csr |= pctl_m_mwin; in titan_init_one_pachip_port() 643 union TPAchipPCTL pctl; in titan_agp_configure() local 645 pctl.pctl_q_whole = port->pctl.csr; in titan_agp_configure() 648 pctl.pctl_r_bits.apctl_v_agp_sba_en = agp->mode.bits.sba; in titan_agp_configure() 651 pctl.pctl_r_bits.apctl_v_agp_rate = 0; /* 1x */ in titan_agp_configure() 653 pctl.pctl_r_bits.apctl_v_agp_rate = 1; /* 2x */ in titan_agp_configure() 656 pctl.pctl_r_bits.apctl_v_agp_rate = 2; /* 4x */ in titan_agp_configure() [all …]
|