Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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-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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/pinctrl/intel/
Dpinctrl-intel.c91 static struct intel_community *intel_get_community(struct intel_pinctrl *pctrl, in intel_get_community() argument
97 for (i = 0; i < pctrl->ncommunities; i++) { in intel_get_community()
98 community = &pctrl->communities[i]; in intel_get_community()
104 dev_warn(pctrl->dev, "failed to find community for pin %u\n", pin); in intel_get_community()
124 static void __iomem *intel_get_padcfg(struct intel_pinctrl *pctrl, in intel_get_padcfg() argument
131 community = intel_get_community(pctrl, pin); in intel_get_padcfg()
144 static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_owned_by_host() argument
151 community = intel_get_community(pctrl, pin); in intel_pad_owned_by_host()
169 static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_acpi_mode() argument
176 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/pinctrl/
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.c769 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_irq_init()
780 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_irq_init()
798 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_should_save()
817 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_suspend()
838 struct pinctrl_desc *desc = gpio_dev->pctrl->desc; in amd_gpio_resume()
932 gpio_dev->pctrl = devm_pinctrl_register(&pdev->dev, &amd_pinctrl_desc, in amd_gpio_probe()
934 if (IS_ERR(gpio_dev->pctrl)) { in amd_gpio_probe()
936 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-amd.h95 struct pinctrl_dev *pctrl; member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/staging/hikey9xx/
Dphy-hi3670-usb3.c128 struct regmap *pctrl; member
365 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, in hi3670_config_phy_clock()
371 ret = regmap_update_bits(priv->pctrl, in hi3670_config_phy_clock()
576 ret = regmap_write(priv->pctrl, PCTRL_PERI_CTRL3, in hi3670_phy_exit()
616 priv->pctrl = syscon_regmap_lookup_by_phandle(dev->of_node, in hi3670_phy_probe()
618 if (IS_ERR(priv->pctrl)) { in hi3670_phy_probe()
620 return PTR_ERR(priv->pctrl); in hi3670_phy_probe()
/kernel/linux/linux-5.10/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()
643 &hw->pctrl); in mtk_moore_pinctrl_probe()
664 err = pinctrl_enable(hw->pctrl); in mtk_moore_pinctrl_probe()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/
Dhi3670-clock.txt12 - "hisilicon,hi3670-pctrl"
Dhi3660-clock.txt12 - "hisilicon,hi3660-pctrl"
/kernel/linux/linux-5.10/drivers/nvme/target/
Dpassthru.c26 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl() local
48 max_hw_sectors = min_not_zero(pctrl->max_segments << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
49 pctrl->max_hw_sectors); in nvmet_passthru_override_id_ctrl()
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dfimc-is.h247 struct pinctrl *pctrl; member
/kernel/linux/linux-5.10/arch/arm64/boot/dts/hisilicon/
Dhi3660.dtsi352 pctrl: pctrl@e8a09000 { label
353 compatible = "hisilicon,hi3660-pctrl", "syscon";
1166 hisilicon,pctrl-syscon = <&pctrl>;
Dhi3670.dtsi161 pctrl: pctrl@e8a09000 { label
162 compatible = "hisilicon,hi3670-pctrl", "syscon";
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-s3c2410.c117 struct pinctrl *pctrl; member
1114 i2c->pctrl = devm_pinctrl_get_select_default(i2c->dev); in s3c24xx_i2c_probe()
1119 else if (IS_ERR(i2c->pctrl) && s3c24xx_i2c_parse_dt_gpio(i2c)) in s3c24xx_i2c_probe()

12