Home
last modified time | relevance | path

Searched refs:pctl (Results 1 – 25 of 28) sorted by relevance

12

/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c38 sunxi_pinctrl_find_group_by_name(struct sunxi_pinctrl *pctl, const char *group) in sunxi_pinctrl_find_group_by_name() argument
42 for (i = 0; i < pctl->ngroups; i++) { in sunxi_pinctrl_find_group_by_name()
43 struct sunxi_pinctrl_group *grp = pctl->groups + i; in sunxi_pinctrl_find_group_by_name()
53 sunxi_pinctrl_find_function_by_name(struct sunxi_pinctrl *pctl, in sunxi_pinctrl_find_function_by_name() argument
56 struct sunxi_pinctrl_function *func = pctl->functions; in sunxi_pinctrl_find_function_by_name()
59 for (i = 0; i < pctl->nfunctions; i++) { in sunxi_pinctrl_find_function_by_name()
71 sunxi_pinctrl_desc_find_function_by_name(struct sunxi_pinctrl *pctl, in sunxi_pinctrl_desc_find_function_by_name() argument
77 for (i = 0; i < pctl->desc->npins; i++) { in sunxi_pinctrl_desc_find_function_by_name()
78 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_name()
96 sunxi_pinctrl_desc_find_function_by_pin(struct sunxi_pinctrl *pctl, in sunxi_pinctrl_desc_find_function_by_pin() argument
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c61 struct mvebu_pinctrl *pctl, unsigned pid) in mvebu_pinctrl_find_group_by_pid() argument
64 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid()
65 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid()
66 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid()
67 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid()
68 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid()
74 struct mvebu_pinctrl *pctl, const char *name) in mvebu_pinctrl_find_group_by_name() argument
77 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_name()
78 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name()
79 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name()
[all …]
/drivers/pinctrl/
Dpinctrl-tb10x.c493 struct pinctrl_dev *pctl; member
527 static int tb10x_get_groups_count(struct pinctrl_dev *pctl) in tb10x_get_groups_count() argument
529 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_groups_count()
533 static const char *tb10x_get_group_name(struct pinctrl_dev *pctl, unsigned n) in tb10x_get_group_name() argument
535 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_group_name()
539 static int tb10x_get_group_pins(struct pinctrl_dev *pctl, unsigned n, in tb10x_get_group_pins() argument
543 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_group_pins()
551 static int tb10x_dt_node_to_map(struct pinctrl_dev *pctl, in tb10x_dt_node_to_map() argument
568 ret = pinctrl_utils_reserve_map(pctl, map, &reserved_maps, in tb10x_dt_node_to_map()
573 ret = pinctrl_utils_add_map_mux(pctl, map, &reserved_maps, in tb10x_dt_node_to_map()
[all …]
Dpinctrl-as3722.c79 struct pinctrl_dev *pctl; member
587 as_pci->pctl = pinctrl_register(&as3722_pinctrl_desc, in as3722_pinctrl_probe()
589 if (!as_pci->pctl) { in as3722_pinctrl_probe()
615 pinctrl_unregister(as_pci->pctl); in as3722_pinctrl_probe()
624 pinctrl_unregister(as_pci->pctl); in as3722_pinctrl_remove()
Dpinctrl-tegra.c39 struct pinctrl_dev *pctl; member
689 pmx->pctl = pinctrl_register(&tegra_pinctrl_desc, &pdev->dev, pmx); in tegra_pinctrl_probe()
690 if (!pmx->pctl) { in tegra_pinctrl_probe()
695 pinctrl_add_gpio_range(pmx->pctl, &tegra_pinctrl_gpio_range); in tegra_pinctrl_probe()
709 pinctrl_unregister(pmx->pctl); in tegra_pinctrl_remove()
Dpinctrl-tz1090-pdc.c236 struct pinctrl_dev *pctl; member
262 static const char *tz1090_pdc_pinctrl_get_group_name(struct pinctrl_dev *pctl, in tz1090_pdc_pinctrl_get_group_name() argument
950 pmx->pctl = pinctrl_register(&tz1090_pdc_pinctrl_desc, &pdev->dev, pmx); in tz1090_pdc_pinctrl_probe()
951 if (!pmx->pctl) { in tz1090_pdc_pinctrl_probe()
967 pinctrl_unregister(pmx->pctl); in tz1090_pdc_pinctrl_remove()
Dpinctrl-u300.c665 struct pinctrl_dev *pctl; member
1070 upmx->pctl = pinctrl_register(&u300_pmx_desc, &pdev->dev, upmx); in u300_pmx_probe()
1071 if (!upmx->pctl) { in u300_pmx_probe()
1087 pinctrl_unregister(upmx->pctl); in u300_pmx_remove()
Dpinctrl-single.c211 struct pinctrl_dev *pctl; member
1488 if (pcs->pctl) in pcs_free_resources()
1489 pinctrl_unregister(pcs->pctl); in pcs_free_resources()
1807 return pinctrl_force_sleep(pcs->pctl); in pinctrl_single_suspend()
1818 return pinctrl_force_default(pcs->pctl); in pinctrl_single_resume()
1926 pcs->pctl = pinctrl_register(&pcs->desc, pcs->dev, pcs); in pcs_probe()
1927 if (!pcs->pctl) { in pcs_probe()
Dpinctrl-adi2.c147 struct pinctrl_dev *pctl; member
1071 pinctrl->pctl = pinctrl_register(&adi_pinmux_desc, &pdev->dev, pinctrl); in adi_pinctrl_probe()
1072 if (!pinctrl->pctl) { in adi_pinctrl_probe()
1086 pinctrl_unregister(pinctrl->pctl); in adi_pinctrl_remove()
Dpinctrl-palmas.c77 struct pinctrl_dev *pctl; member
1046 pci->pctl = pinctrl_register(&palmas_pinctrl_desc, &pdev->dev, pci); in palmas_pinctrl_probe()
1047 if (!pci->pctl) { in palmas_pinctrl_probe()
1058 pinctrl_unregister(pci->pctl); in palmas_pinctrl_remove()
Dpinctrl-tz1090.c963 struct pinctrl_dev *pctl; member
1965 pmx->pctl = pinctrl_register(&tz1090_pinctrl_desc, &pdev->dev, pmx); in tz1090_pinctrl_probe()
1966 if (!pmx->pctl) { in tz1090_pinctrl_probe()
1982 pinctrl_unregister(pmx->pctl); in tz1090_pinctrl_remove()
Dpinctrl-at91.c180 struct pinctrl_dev *pctl; member
1241 info->pctl = pinctrl_register(&at91_pinctrl_desc, &pdev->dev, info); in at91_pinctrl_probe()
1243 if (!info->pctl) { in at91_pinctrl_probe()
1252 pinctrl_add_gpio_range(info->pctl, &gpio_chips[i]->range); in at91_pinctrl_probe()
1266 pinctrl_unregister(info->pctl); in at91_pinctrl_remove()
Dpinctrl-bcm281xx.c1403 struct pinctrl_dev *pctl; in bcm281xx_pinctrl_probe() local
1430 pctl = pinctrl_register(&bcm281xx_pinctrl_desc, in bcm281xx_pinctrl_probe()
1433 if (!pctl) { in bcm281xx_pinctrl_probe()
Dpinctrl-st.c326 struct pinctrl_dev *pctl; member
1677 info->pctl = pinctrl_register(pctl_desc, &pdev->dev, info); in st_pctl_probe()
1678 if (!info->pctl) { in st_pctl_probe()
1684 pinctrl_add_gpio_range(info->pctl, &info->banks[i].range); in st_pctl_probe()
/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c36 struct pinctrl_dev *pctl; member
550 struct imx1_pinctrl *pctl, struct imx1_pinctrl_soc_info *info) in imx1_pinctrl_parse_dt() argument
635 ipctl->pctl = pinctrl_register(pctl_desc, &pdev->dev, ipctl); in imx1_pinctrl_core_probe()
636 if (!ipctl->pctl) { in imx1_pinctrl_core_probe()
643 pinctrl_unregister(ipctl->pctl); in imx1_pinctrl_core_probe()
657 pinctrl_unregister(ipctl->pctl); in imx1_pinctrl_core_remove()
Dpinctrl-mxs.c31 struct pinctrl_dev *pctl; member
525 d->pctl = pinctrl_register(&mxs_pinctrl_desc, &pdev->dev, d); in mxs_pinctrl_probe()
526 if (!d->pctl) { in mxs_pinctrl_probe()
544 pinctrl_unregister(d->pctl); in mxs_pinctrl_remove()
Dpinctrl-imx.c40 struct pinctrl_dev *pctl; member
613 ipctl->pctl = pinctrl_register(&imx_pinctrl_desc, &pdev->dev, ipctl); in imx_pinctrl_probe()
614 if (!ipctl->pctl) { in imx_pinctrl_probe()
628 pinctrl_unregister(ipctl->pctl); in imx_pinctrl_remove()
/drivers/media/platform/exynos4-is/
Dmedia-dev.c1162 struct fimc_pinctrl *pctl = &fmd->pinctl; in fimc_md_get_pinctrl() local
1164 pctl->pinctrl = devm_pinctrl_get(dev); in fimc_md_get_pinctrl()
1165 if (IS_ERR(pctl->pinctrl)) in fimc_md_get_pinctrl()
1166 return PTR_ERR(pctl->pinctrl); in fimc_md_get_pinctrl()
1168 pctl->state_default = pinctrl_lookup_state(pctl->pinctrl, in fimc_md_get_pinctrl()
1170 if (IS_ERR(pctl->state_default)) in fimc_md_get_pinctrl()
1171 return PTR_ERR(pctl->state_default); in fimc_md_get_pinctrl()
1173 pctl->state_idle = pinctrl_lookup_state(pctl->pinctrl, in fimc_md_get_pinctrl()
/drivers/pinctrl/spear/
Dpinctrl-spear.c398 pmx->pctl = pinctrl_register(&spear_pinctrl_desc, &pdev->dev, pmx); in spear_pinctrl_probe()
399 if (!pmx->pctl) { in spear_pinctrl_probe()
411 pinctrl_unregister(pmx->pctl); in spear_pinctrl_remove()
Dpinctrl-spear.h179 struct pinctrl_dev *pctl; member
/drivers/pinctrl/sh-pfc/
Dpinctrl.c36 struct pinctrl_dev *pctl; member
627 pmx->pctl = pinctrl_register(&pmx->pctl_desc, pfc->dev, pmx); in sh_pfc_register_pinctrl()
628 if (pmx->pctl == NULL) in sh_pfc_register_pinctrl()
638 pinctrl_unregister(pmx->pctl); in sh_pfc_unregister_pinctrl()
/drivers/isdn/hardware/mISDN/
Dw6692.c78 u8 pctl; member
585 card->pctl |= ((wch->bch.nr & 2) ? W_PCTL_PCX : 0);
586 WriteW6692(card, W_PCTL, card->pctl);
884 card->pctl = 0x80; in initW6692()
886 WriteW6692(card, W_PCTL, card->pctl); in initW6692()
889 card->pctl = W_PCTL_OE5 | W_PCTL_OE4 | W_PCTL_OE2 | in initW6692()
897 WriteW6692(card, W_PCTL, card->pctl); in initW6692()
/drivers/pinctrl/samsung/
Dpinctrl-samsung.h202 struct pinctrl_desc pctl; member
/drivers/pinctrl/nomadik/
Dpinctrl-nomadik.c279 struct pinctrl_dev *pctl; member
1955 return pinctrl_force_sleep(npct->pctl); in nmk_pinctrl_suspend()
1966 return pinctrl_force_default(npct->pctl); in nmk_pinctrl_resume()
2027 npct->pctl = pinctrl_register(&nmk_pinctrl_desc, &pdev->dev, npct); in nmk_pinctrl_probe()
2028 if (!npct->pctl) { in nmk_pinctrl_probe()
2035 pinctrl_add_gpio_range(npct->pctl, &npct->soc->gpio_ranges[i]); in nmk_pinctrl_probe()
/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c703 struct pvr2_ctrl *pctl; in pvr2_try_ext_ctrls() local
710 pctl = pvr2_hdw_get_ctrl_v4l(hdw, ctrl->id); in pvr2_try_ext_ctrls()
711 if (!pctl) { in pvr2_try_ext_ctrls()

12