Home
last modified time | relevance | path

Searched refs:pctrl (Results 1 – 25 of 40) sorted by relevance

12

/drivers/pinctrl/qcom/
Dpinctrl-msm.c61 struct pinctrl_dev *pctrl; member
84 static u32 msm_readl_##name(struct msm_pinctrl *pctrl, \
87 return readl(pctrl->regs[g->tile] + g->name##_reg); \
89 static void msm_writel_##name(u32 val, struct msm_pinctrl *pctrl, \
92 writel(val, pctrl->regs[g->tile] + g->name##_reg); \
101 static void msm_ack_intr_status(struct msm_pinctrl *pctrl, in MSM_ACCESSOR()
106 msm_writel_intr_status(val, pctrl, g); in MSM_ACCESSOR()
111 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in msm_get_groups_count() local
113 return pctrl->soc->ngroups; in msm_get_groups_count()
119 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in msm_get_group_name() local
[all …]
Dpinctrl-ssbi-gpio.c89 struct pinctrl_dev *pctrl; member
125 static int pm8xxx_read_bank(struct pm8xxx_gpio *pctrl, in pm8xxx_read_bank() argument
131 ret = regmap_write(pctrl->regmap, pin->reg, val); in pm8xxx_read_bank()
133 dev_err(pctrl->dev, "failed to select bank %d\n", bank); in pm8xxx_read_bank()
137 ret = regmap_read(pctrl->regmap, pin->reg, &val); in pm8xxx_read_bank()
139 dev_err(pctrl->dev, "failed to read register %d\n", bank); in pm8xxx_read_bank()
146 static int pm8xxx_write_bank(struct pm8xxx_gpio *pctrl, in pm8xxx_write_bank() argument
156 ret = regmap_write(pctrl->regmap, pin->reg, val); in pm8xxx_write_bank()
158 dev_err(pctrl->dev, "failed to write register\n"); in pm8xxx_write_bank()
165 struct pm8xxx_gpio *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_groups_count() local
[all …]
Dpinctrl-lpass-lpi.c256 struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in lpi_gpio_get_groups_count() local
258 return pctrl->data->ngroups; in lpi_gpio_get_groups_count()
264 struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in lpi_gpio_get_group_name() local
266 return pctrl->data->groups[group].name; in lpi_gpio_get_group_name()
274 struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in lpi_gpio_get_group_pins() local
276 *pins = pctrl->data->groups[group].pins; in lpi_gpio_get_group_pins()
277 *num_pins = pctrl->data->groups[group].npins; in lpi_gpio_get_group_pins()
292 struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in lpi_gpio_get_functions_count() local
294 return pctrl->data->nfunctions; in lpi_gpio_get_functions_count()
300 struct lpi_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in lpi_gpio_get_function_name() local
[all …]
Dpinctrl-ssbi-mpp.c127 struct pinctrl_dev *pctrl; member
164 static int pm8xxx_mpp_update(struct pm8xxx_mpp *pctrl, in pm8xxx_mpp_update() argument
233 ret = regmap_write(pctrl->regmap, pin->reg, val); in pm8xxx_mpp_update()
235 dev_err(pctrl->dev, "failed to write register\n"); in pm8xxx_mpp_update()
242 struct pm8xxx_mpp *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_groups_count() local
244 return pctrl->npins; in pm8xxx_get_groups_count()
259 struct pm8xxx_mpp *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_group_pins() local
261 *pins = &pctrl->desc.pins[group].number; in pm8xxx_get_group_pins()
291 struct pm8xxx_mpp *pctrl = pinctrl_dev_get_drvdata(pctldev); in pm8xxx_get_function_groups() local
294 *num_groups = pctrl->npins; in pm8xxx_get_function_groups()
[all …]
/drivers/pinctrl/actions/
Dpinctrl-owl.c69 static u32 owl_read_field(struct owl_pinctrl *pctrl, u32 reg, in owl_read_field() argument
74 tmp = readl_relaxed(pctrl->base + reg); in owl_read_field()
80 static void owl_write_field(struct owl_pinctrl *pctrl, u32 reg, u32 arg, in owl_write_field() argument
88 owl_update_bits(pctrl->base + reg, mask, (arg << bit)); in owl_write_field()
93 struct owl_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrldev); in owl_get_groups_count() local
95 return pctrl->soc->ngroups; in owl_get_groups_count()
101 struct owl_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrldev); in owl_get_group_name() local
103 return pctrl->soc->groups[group].name; in owl_get_group_name()
111 struct owl_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrldev); in owl_get_group_pins() local
113 *pins = pctrl->soc->groups[group].pads; in owl_get_group_pins()
[all …]
/drivers/pinctrl/intel/
Dpinctrl-intel.c101 static struct intel_community *intel_get_community(struct intel_pinctrl *pctrl, in intel_get_community() argument
107 for (i = 0; i < pctrl->ncommunities; i++) { in intel_get_community()
108 community = &pctrl->communities[i]; in intel_get_community()
114 dev_warn(pctrl->dev, "failed to find community for pin %u\n", pin); in intel_get_community()
134 static void __iomem *intel_get_padcfg(struct intel_pinctrl *pctrl, in intel_get_padcfg() argument
141 community = intel_get_community(pctrl, pin); in intel_get_padcfg()
154 static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_owned_by_host() argument
161 community = intel_get_community(pctrl, pin); in intel_pad_owned_by_host()
179 static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_acpi_mode() argument
186 community = intel_get_community(pctrl, pin); in intel_pad_acpi_mode()
[all …]
Dpinctrl-cherryview.c567 static u32 chv_pctrl_readl(struct intel_pinctrl *pctrl, unsigned int offset) in chv_pctrl_readl() argument
569 const struct intel_community *community = &pctrl->communities[0]; in chv_pctrl_readl()
574 static void chv_pctrl_writel(struct intel_pinctrl *pctrl, unsigned int offset, u32 value) in chv_pctrl_writel() argument
576 const struct intel_community *community = &pctrl->communities[0]; in chv_pctrl_writel()
584 static void __iomem *chv_padreg(struct intel_pinctrl *pctrl, unsigned int offset, in chv_padreg() argument
587 const struct intel_community *community = &pctrl->communities[0]; in chv_padreg()
596 static u32 chv_readl(struct intel_pinctrl *pctrl, unsigned int pin, unsigned int offset) in chv_readl() argument
598 return readl(chv_padreg(pctrl, pin, offset)); in chv_readl()
601 static void chv_writel(struct intel_pinctrl *pctrl, unsigned int pin, unsigned int offset, u32 valu… in chv_writel() argument
603 void __iomem *reg = chv_padreg(pctrl, pin, offset); in chv_writel()
[all …]
/drivers/pinctrl/berlin/
Dberlin.c37 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinctrl_get_group_count() local
39 return pctrl->desc->ngroups; in berlin_pinctrl_get_group_count()
45 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinctrl_get_group_name() local
47 return pctrl->desc->groups[group].name; in berlin_pinctrl_get_group_name()
55 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinctrl_dt_node_to_map() local
66 dev_err(pctrl->dev, in berlin_pinctrl_dt_node_to_map()
73 dev_err(pctrl->dev, in berlin_pinctrl_dt_node_to_map()
81 dev_err(pctrl->dev, "can't reserve map: %d\n", ret); in berlin_pinctrl_dt_node_to_map()
90 dev_err(pctrl->dev, "can't add map: %d\n", ret); in berlin_pinctrl_dt_node_to_map()
107 struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); in berlin_pinmux_get_functions_count() local
[all …]
/drivers/pinctrl/renesas/
Dpinctrl-rzg2l.c140 static void rzg2l_pinctrl_set_pfc_mode(struct rzg2l_pinctrl *pctrl, in rzg2l_pinctrl_set_pfc_mode() argument
146 spin_lock_irqsave(&pctrl->lock, flags); in rzg2l_pinctrl_set_pfc_mode()
149 reg = readw(pctrl->base + PM(port)); in rzg2l_pinctrl_set_pfc_mode()
151 writew(reg, pctrl->base + PM(port)); in rzg2l_pinctrl_set_pfc_mode()
154 reg = readb(pctrl->base + PMC(port)); in rzg2l_pinctrl_set_pfc_mode()
155 writeb(reg & ~BIT(pin), pctrl->base + PMC(port)); in rzg2l_pinctrl_set_pfc_mode()
158 writel(0x0, pctrl->base + PWPR); /* B0WI=0, PFCWE=0 */ in rzg2l_pinctrl_set_pfc_mode()
159 writel(PWPR_PFCWE, pctrl->base + PWPR); /* B0WI=0, PFCWE=1 */ in rzg2l_pinctrl_set_pfc_mode()
162 reg = readl(pctrl->base + PFC(port)); in rzg2l_pinctrl_set_pfc_mode()
164 writel(reg | (func << (pin * 4)), pctrl->base + PFC(port)); in rzg2l_pinctrl_set_pfc_mode()
[all …]
/drivers/pinctrl/
Dpinctrl-zynqmp.c72 struct pinctrl_dev *pctrl; member
95 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_groups_count() local
97 return pctrl->ngroups; in zynqmp_pctrl_get_groups_count()
103 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_group_name() local
105 return pctrl->groups[selector].name; in zynqmp_pctrl_get_group_name()
113 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_group_pins() local
115 *pins = pctrl->groups[selector].pins; in zynqmp_pctrl_get_group_pins()
116 *npins = pctrl->groups[selector].npins; in zynqmp_pctrl_get_group_pins()
145 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pmux_get_functions_count() local
147 return pctrl->nfuncs; in zynqmp_pmux_get_functions_count()
[all …]
Dpinctrl-zynq.c41 struct pinctrl_dev *pctrl; member
826 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pctrl_get_groups_count() local
828 return pctrl->ngroups; in zynq_pctrl_get_groups_count()
834 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pctrl_get_group_name() local
836 return pctrl->groups[selector].name; in zynq_pctrl_get_group_name()
844 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pctrl_get_group_pins() local
846 *pins = pctrl->groups[selector].pins; in zynq_pctrl_get_group_pins()
847 *num_pins = pctrl->groups[selector].npins; in zynq_pctrl_get_group_pins()
863 struct zynq_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynq_pmux_get_functions_count() local
865 return pctrl->nfuncs; in zynq_pmux_get_functions_count()
[all …]
Dpinctrl-bm1880.c919 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pctrl_get_groups_count() local
921 return pctrl->ngroups; in bm1880_pctrl_get_groups_count()
927 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pctrl_get_group_name() local
929 return pctrl->groups[selector].name; in bm1880_pctrl_get_group_name()
937 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pctrl_get_group_pins() local
939 *pins = pctrl->groups[selector].pins; in bm1880_pctrl_get_group_pins()
940 *num_pins = pctrl->groups[selector].npins; in bm1880_pctrl_get_group_pins()
956 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pmux_get_functions_count() local
958 return pctrl->nfuncs; in bm1880_pmux_get_functions_count()
964 struct bm1880_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in bm1880_pmux_get_function_name() local
[all …]
Dpinctrl-amd.c867 return amd_pinconf_set(gpio_dev->pctrl, pin, &config, 1); in amd_gpio_set_config()
879 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_irq_init()
890 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_irq_init()
908 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_should_save()
927 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_suspend()
948 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_resume()
1041 gpio_dev->pctrl = devm_pinctrl_register(&pdev->dev, &amd_pinctrl_desc, in amd_gpio_probe()
1043 if (IS_ERR(gpio_dev->pctrl)) { in amd_gpio_probe()
1045 return PTR_ERR(gpio_dev->pctrl); in amd_gpio_probe()
Dpinctrl-lantiq.c337 info->pctrl = devm_pinctrl_register(&pdev->dev, desc, info); in ltq_pinctrl_register()
338 if (IS_ERR(info->pctrl)) { in ltq_pinctrl_register()
340 return PTR_ERR(info->pctrl); in ltq_pinctrl_register()
Dpinctrl-lantiq.h64 struct pinctrl_dev *pctrl; member
Dpinctrl-keembay.c115 struct pinctrl_dev *pctrl; member
1535 pinctrl_generic_add_group(kpc->pctrl, kmb_grp->name, in keembay_build_groups()
1552 kpc->pctrl = devm_pinctrl_register(kpc->dev, &keembay_pinctrl_desc, kpc); in keembay_pinctrl_reg()
1554 return PTR_ERR_OR_ZERO(kpc->pctrl); in keembay_pinctrl_reg()
1605 pinmux_generic_add_function(kpc->pctrl, in keembay_add_functions()
Dpinctrl-amd.h96 struct pinctrl_dev *pctrl; member
/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1861 static int npcm7xx_gpio_of(struct npcm7xx_pinctrl *pctrl) in npcm7xx_gpio_of() argument
1869 for_each_available_child_of_node(pctrl->dev->of_node, np) in npcm7xx_gpio_of()
1873 dev_err(pctrl->dev, in npcm7xx_gpio_of()
1878 pctrl->gpio_bank[id].base = in npcm7xx_gpio_of()
1883 dev_err(pctrl->dev, in npcm7xx_gpio_of()
1889 ret = bgpio_init(&pctrl->gpio_bank[id].gc, in npcm7xx_gpio_of()
1890 pctrl->dev, 4, in npcm7xx_gpio_of()
1891 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of()
1893 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of()
1897 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of()
[all …]
/drivers/phy/hisilicon/
Dphy-hi3660-usb3.c60 struct regmap *pctrl; member
78 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, val); in hi3660_phy_init()
154 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, val); in hi3660_phy_exit()
189 priv->pctrl = syscon_regmap_lookup_by_phandle(dev->of_node, in hi3660_phy_probe()
191 if (IS_ERR(priv->pctrl)) { in hi3660_phy_probe()
193 return PTR_ERR(priv->pctrl); in hi3660_phy_probe()
Dphy-hi3670-usb3.c128 struct regmap *pctrl; member
355 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, in hi3670_config_phy_clock()
361 ret = regmap_update_bits(priv->pctrl, in hi3670_config_phy_clock()
566 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, in hi3670_phy_exit()
606 priv->pctrl = syscon_regmap_lookup_by_phandle(dev->of_node, in hi3670_phy_probe()
608 if (IS_ERR(priv->pctrl)) { in hi3670_phy_probe()
610 return PTR_ERR(priv->pctrl); in hi3670_phy_probe()
/drivers/pinctrl/mediatek/
Dpinctrl-moore.c554 err = pinctrl_generic_add_group(hw->pctrl, group->name, in mtk_build_groups()
574 err = pinmux_generic_add_function(hw->pctrl, func->name, in mtk_build_functions()
645 &hw->pctrl); in mtk_moore_pinctrl_probe()
666 err = pinctrl_enable(hw->pctrl); in mtk_moore_pinctrl_probe()
/drivers/mtd/devices/
Ddocg3.c1618 int pctrl, mode; in asic_mode_show() local
1621 pctrl = doc_register_readb(docg3, DOC_ASICMODE); in asic_mode_show()
1622 mode = pctrl & 0x03; in asic_mode_show()
1627 pctrl, in asic_mode_show()
1628 pctrl & DOC_ASICMODE_RAM_WE ? 1 : 0, in asic_mode_show()
1629 pctrl & DOC_ASICMODE_RSTIN_RESET ? 1 : 0, in asic_mode_show()
1630 pctrl & DOC_ASICMODE_BDETCT_RESET ? 1 : 0, in asic_mode_show()
1631 pctrl & DOC_ASICMODE_MDWREN ? 1 : 0, in asic_mode_show()
1632 pctrl & DOC_ASICMODE_POWERDOWN ? 1 : 0, in asic_mode_show()
/drivers/nvme/target/
Dpassthru.c36 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl() local
58 max_hw_sectors = min_not_zero(pctrl->max_segments << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
59 pctrl->max_hw_sectors); in nvmet_passthru_override_id_ctrl()
/drivers/crypto/gemini/
Dsl3516-ce-core.c52 ce->pctrl = dma_alloc_coherent(ce->dev, sizeof(struct pkt_control_ecb), in sl3516_ce_desc_init()
54 if (!ce->pctrl) in sl3516_ce_desc_init()
71 dma_free_coherent(ce->dev, sizeof(struct pkt_control_ecb), ce->pctrl, in sl3516_ce_free_descs()
Dsl3516-ce.h260 void *pctrl; member

12