Home
last modified time | relevance | path

Searched refs:pctldev (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/pinctrl/
Dcore.c74 const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev) in pinctrl_dev_get_name() argument
77 return pctldev->desc->name; in pinctrl_dev_get_name()
81 const char *pinctrl_dev_get_devname(struct pinctrl_dev *pctldev) in pinctrl_dev_get_devname() argument
83 return dev_name(pctldev->dev); in pinctrl_dev_get_devname()
87 void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev) in pinctrl_dev_get_drvdata() argument
89 return pctldev->driver_data; in pinctrl_dev_get_drvdata()
102 struct pinctrl_dev *pctldev; in get_pinctrl_dev_from_devname() local
109 list_for_each_entry(pctldev, &pinctrldev_list, node) { in get_pinctrl_dev_from_devname()
110 if (!strcmp(dev_name(pctldev->dev), devname)) { in get_pinctrl_dev_from_devname()
113 return pctldev; in get_pinctrl_dev_from_devname()
[all …]
Dpinmux.c32 int pinmux_check_ops(struct pinctrl_dev *pctldev) in pinmux_check_ops() argument
34 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_check_ops()
44 dev_err(pctldev->dev, "pinmux ops lacks necessary functions\n"); in pinmux_check_ops()
48 nfuncs = ops->get_functions_count(pctldev); in pinmux_check_ops()
50 const char *fname = ops->get_function_name(pctldev, in pinmux_check_ops()
53 dev_err(pctldev->dev, "pinmux ops has no name for function%u\n", in pinmux_check_ops()
84 bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin) in pinmux_can_be_used_for_gpio() argument
86 struct pin_desc *desc = pin_desc_get(pctldev, pin); in pinmux_can_be_used_for_gpio()
87 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_can_be_used_for_gpio()
108 static int pin_request(struct pinctrl_dev *pctldev, in pin_request() argument
[all …]
Dpinconf.c25 int pinconf_check_ops(struct pinctrl_dev *pctldev) in pinconf_check_ops() argument
27 const struct pinconf_ops *ops = pctldev->desc->confops; in pinconf_check_ops()
31 dev_err(pctldev->dev, in pinconf_check_ops()
56 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, in pin_config_get_for_pin() argument
59 const struct pinconf_ops *ops = pctldev->desc->confops; in pin_config_get_for_pin()
62 dev_dbg(pctldev->dev, in pin_config_get_for_pin()
67 return ops->pin_config_get(pctldev, pin, config); in pin_config_get_for_pin()
73 struct pinctrl_dev *pctldev; in pin_config_group_get() local
77 pctldev = get_pinctrl_dev_from_devname(dev_name); in pin_config_group_get()
78 if (!pctldev) { in pin_config_group_get()
[all …]
Dpinconf-generic.c56 static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev, in pinconf_generic_dump_one() argument
71 ret = pin_config_group_get(dev_name(pctldev->dev), in pinconf_generic_dump_one()
74 ret = pin_config_get_for_pin(pctldev, pin, &config); in pinconf_generic_dump_one()
110 void pinconf_generic_dump_pins(struct pinctrl_dev *pctldev, struct seq_file *s, in pinconf_generic_dump_pins() argument
113 const struct pinconf_ops *ops = pctldev->desc->confops; in pinconf_generic_dump_pins()
120 pinconf_generic_dump_one(pctldev, s, gname, pin, conf_items, in pinconf_generic_dump_pins()
123 if (pctldev->desc->num_custom_params && in pinconf_generic_dump_pins()
124 pctldev->desc->custom_conf_items) in pinconf_generic_dump_pins()
125 pinconf_generic_dump_one(pctldev, s, gname, pin, in pinconf_generic_dump_pins()
126 pctldev->desc->custom_conf_items, in pinconf_generic_dump_pins()
[all …]
Dpinmux.h14 int pinmux_check_ops(struct pinctrl_dev *pctldev);
18 bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin);
20 int pinmux_request_gpio(struct pinctrl_dev *pctldev,
23 void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin,
25 int pinmux_gpio_direction(struct pinctrl_dev *pctldev,
37 static inline int pinmux_check_ops(struct pinctrl_dev *pctldev) in pinmux_check_ops() argument
47 static inline bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, in pinmux_can_be_used_for_gpio() argument
53 static inline int pinmux_request_gpio(struct pinctrl_dev *pctldev, in pinmux_request_gpio() argument
60 static inline void pinmux_free_gpio(struct pinctrl_dev *pctldev, in pinmux_free_gpio() argument
66 static inline int pinmux_gpio_direction(struct pinctrl_dev *pctldev, in pinmux_gpio_direction() argument
[all …]
Dcore.h134 struct pinctrl_dev *pctldev; member
160 struct pinctrl_dev *pctldev; member
201 int pinctrl_generic_get_group_count(struct pinctrl_dev *pctldev);
203 const char *pinctrl_generic_get_group_name(struct pinctrl_dev *pctldev,
206 int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev,
211 struct group_desc *pinctrl_generic_get_group(struct pinctrl_dev *pctldev,
214 int pinctrl_generic_add_group(struct pinctrl_dev *pctldev, const char *name,
217 int pinctrl_generic_remove_group(struct pinctrl_dev *pctldev,
224 int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name);
225 const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin);
[all …]
Dpinconf.h15 int pinconf_check_ops(struct pinctrl_dev *pctldev);
22 int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin,
29 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin,
36 static inline int pinconf_check_ops(struct pinctrl_dev *pctldev) in pinconf_check_ops() argument
61 static inline int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, in pinconf_set_config() argument
75 struct pinctrl_dev *pctldev);
90 struct pinctrl_dev *pctldev) in pinconf_init_device_debugfs() argument
103 void pinconf_generic_dump_pins(struct pinctrl_dev *pctldev,
107 void pinconf_generic_dump_config(struct pinctrl_dev *pctldev,
111 static inline void pinconf_generic_dump_pins(struct pinctrl_dev *pctldev, in pinconf_generic_dump_pins() argument
[all …]
Ddevicetree.c25 struct pinctrl_dev *pctldev; member
30 static void dt_free_map(struct pinctrl_dev *pctldev, in dt_free_map() argument
40 if (pctldev) { in dt_free_map()
41 const struct pinctrl_ops *ops = pctldev->desc->pctlops; in dt_free_map()
43 ops->dt_free_map(pctldev, map, num_maps); in dt_free_map()
57 dt_free_map(dt_map->pctldev, dt_map->map, in pinctrl_dt_free_maps()
66 struct pinctrl_dev *pctldev, in dt_remember_or_free_map() argument
82 if (pctldev) in dt_remember_or_free_map()
83 map[i].ctrl_dev_name = dev_name(pctldev->dev); in dt_remember_or_free_map()
91 dt_map->pctldev = pctldev; in dt_remember_or_free_map()
[all …]
Dpinctrl-rk805.c218 static int rk805_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in rk805_pinctrl_get_groups_count() argument
220 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_groups_count()
225 static const char *rk805_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_group_name() argument
228 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_name()
233 static int rk805_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_group_pins() argument
238 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_pins()
254 static int rk805_pinctrl_get_funcs_count(struct pinctrl_dev *pctldev) in rk805_pinctrl_get_funcs_count() argument
256 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_funcs_count()
261 static const char *rk805_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_func_name() argument
264 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_func_name()
[all …]
Dpinctrl-at91-pio4.c444 static unsigned int atmel_pin_config_read(struct pinctrl_dev *pctldev, in atmel_pin_config_read() argument
447 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pin_config_read()
460 static void atmel_pin_config_write(struct pinctrl_dev *pctldev, in atmel_pin_config_write() argument
463 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pin_config_write()
475 static int atmel_pctl_get_groups_count(struct pinctrl_dev *pctldev) in atmel_pctl_get_groups_count() argument
477 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_groups_count()
482 static const char *atmel_pctl_get_group_name(struct pinctrl_dev *pctldev, in atmel_pctl_get_group_name() argument
485 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_group_name()
490 static int atmel_pctl_get_group_pins(struct pinctrl_dev *pctldev, in atmel_pctl_get_group_pins() argument
495 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_group_pins()
[all …]
Dpinctrl-zynqmp.c93 static int zynqmp_pctrl_get_groups_count(struct pinctrl_dev *pctldev) in zynqmp_pctrl_get_groups_count() argument
95 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_groups_count()
100 static const char *zynqmp_pctrl_get_group_name(struct pinctrl_dev *pctldev, in zynqmp_pctrl_get_group_name() argument
103 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_group_name()
108 static int zynqmp_pctrl_get_group_pins(struct pinctrl_dev *pctldev, in zynqmp_pctrl_get_group_pins() argument
113 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_group_pins()
129 static int zynqmp_pinmux_request_pin(struct pinctrl_dev *pctldev, in zynqmp_pinmux_request_pin() argument
136 dev_err(pctldev->dev, "request failed for pin %u\n", pin); in zynqmp_pinmux_request_pin()
143 static int zynqmp_pmux_get_functions_count(struct pinctrl_dev *pctldev) in zynqmp_pmux_get_functions_count() argument
145 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pmux_get_functions_count()
[all …]
Dpinctrl-axp209.c195 static int axp20x_pmx_set(struct pinctrl_dev *pctldev, unsigned int offset, in axp20x_pmx_set() argument
198 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_set()
209 static int axp20x_pmx_func_cnt(struct pinctrl_dev *pctldev) in axp20x_pmx_func_cnt() argument
211 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_cnt()
216 static const char *axp20x_pmx_func_name(struct pinctrl_dev *pctldev, in axp20x_pmx_func_name() argument
219 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_name()
224 static int axp20x_pmx_func_groups(struct pinctrl_dev *pctldev, in axp20x_pmx_func_groups() argument
229 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_groups()
237 static int axp20x_pmx_set_mux(struct pinctrl_dev *pctldev, in axp20x_pmx_set_mux() argument
240 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_set_mux()
[all …]
/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c37 struct pinctrl_dev *pctldev; member
43 static int uniphier_pctl_get_groups_count(struct pinctrl_dev *pctldev) in uniphier_pctl_get_groups_count() argument
45 struct uniphier_pinctrl_priv *priv = pinctrl_dev_get_drvdata(pctldev); in uniphier_pctl_get_groups_count()
50 static const char *uniphier_pctl_get_group_name(struct pinctrl_dev *pctldev, in uniphier_pctl_get_group_name() argument
53 struct uniphier_pinctrl_priv *priv = pinctrl_dev_get_drvdata(pctldev); in uniphier_pctl_get_group_name()
58 static int uniphier_pctl_get_group_pins(struct pinctrl_dev *pctldev, in uniphier_pctl_get_group_pins() argument
63 struct uniphier_pinctrl_priv *priv = pinctrl_dev_get_drvdata(pctldev); in uniphier_pctl_get_group_pins()
72 static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev, in uniphier_pctl_pin_dbg_show() argument
75 const struct pin_desc *desc = pin_desc_get(pctldev, offset); in uniphier_pctl_pin_dbg_show()
147 static int uniphier_conf_get_drvctrl_data(struct pinctrl_dev *pctldev, in uniphier_conf_get_drvctrl_data() argument
[all …]
/drivers/pinctrl/spear/
Dpinctrl-spear.c115 static int spear_pinctrl_get_groups_cnt(struct pinctrl_dev *pctldev) in spear_pinctrl_get_groups_cnt() argument
117 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_groups_cnt()
122 static const char *spear_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_name() argument
125 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_name()
130 static int spear_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_pins() argument
133 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_pins()
141 static void spear_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in spear_pinctrl_pin_dbg_show() argument
147 static int spear_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_node_to_map() argument
152 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_dt_node_to_map()
199 static void spear_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_free_map() argument
[all …]
/drivers/pinctrl/aspeed/
Dpinctrl-aspeed.h85 int aspeed_pinctrl_get_groups_count(struct pinctrl_dev *pctldev);
86 const char *aspeed_pinctrl_get_group_name(struct pinctrl_dev *pctldev,
88 int aspeed_pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
91 void aspeed_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev,
93 int aspeed_pinmux_get_fn_count(struct pinctrl_dev *pctldev);
94 const char *aspeed_pinmux_get_fn_name(struct pinctrl_dev *pctldev,
96 int aspeed_pinmux_get_fn_groups(struct pinctrl_dev *pctldev,
99 int aspeed_pinmux_set_mux(struct pinctrl_dev *pctldev, unsigned int function,
101 int aspeed_gpio_request_enable(struct pinctrl_dev *pctldev,
107 int aspeed_pin_config_get(struct pinctrl_dev *pctldev, unsigned int offset,
[all …]
Dpinctrl-aspeed.c13 int aspeed_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in aspeed_pinctrl_get_groups_count() argument
15 struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); in aspeed_pinctrl_get_groups_count()
20 const char *aspeed_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in aspeed_pinctrl_get_group_name() argument
23 struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); in aspeed_pinctrl_get_group_name()
28 int aspeed_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in aspeed_pinctrl_get_group_pins() argument
32 struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); in aspeed_pinctrl_get_group_pins()
40 void aspeed_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in aspeed_pinctrl_pin_dbg_show() argument
43 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show()
46 int aspeed_pinmux_get_fn_count(struct pinctrl_dev *pctldev) in aspeed_pinmux_get_fn_count() argument
48 struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); in aspeed_pinmux_get_fn_count()
[all …]
/drivers/pinctrl/tegra/
Dpinctrl-tegra.c40 static int tegra_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in tegra_pinctrl_get_groups_count() argument
42 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_groups_count()
47 static const char *tegra_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in tegra_pinctrl_get_group_name() argument
50 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_name()
55 static int tegra_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in tegra_pinctrl_get_group_pins() argument
60 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_pins()
69 static void tegra_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in tegra_pinctrl_pin_dbg_show() argument
73 seq_printf(s, " %s", dev_name(pctldev->dev)); in tegra_pinctrl_pin_dbg_show()
99 static int tegra_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev, in tegra_pinctrl_dt_subnode_to_map() argument
105 struct device *dev = pctldev->dev; in tegra_pinctrl_dt_subnode_to_map()
[all …]
/drivers/pinctrl/nomadik/
Dpinctrl-abx500.c81 struct pinctrl_dev *pctldev; member
239 static int abx500_set_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, in abx500_set_mode() argument
242 struct abx500_pinctrl *pct = pinctrl_dev_get_drvdata(pctldev); in abx500_set_mode()
360 static int abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, in abx500_get_mode() argument
367 struct abx500_pinctrl *pct = pinctrl_dev_get_drvdata(pctldev); in abx500_get_mode()
448 struct pinctrl_dev *pctldev, in abx500_gpio_dbg_show_one() argument
452 struct abx500_pinctrl *pct = pinctrl_dev_get_drvdata(pctldev); in abx500_gpio_dbg_show_one()
493 mode = abx500_get_mode(pctldev, chip, offset); in abx500_gpio_dbg_show_one()
507 struct pinctrl_dev *pctldev = pct->pctldev; in abx500_gpio_dbg_show() local
511 abx500_gpio_dbg_show_one(s, pctldev, chip, i + 1, gpio); in abx500_gpio_dbg_show()
[all …]
/drivers/pinctrl/visconti/
Dpinctrl-common.c36 static int visconti_pin_config_set(struct pinctrl_dev *pctldev, in visconti_pin_config_set() argument
41 struct visconti_pinctrl *priv = pinctrl_dev_get_drvdata(pctldev); in visconti_pin_config_set()
122 static int visconti_pin_config_group_set(struct pinctrl_dev *pctldev, in visconti_pin_config_group_set() argument
127 struct visconti_pinctrl *priv = pinctrl_dev_get_drvdata(pctldev); in visconti_pin_config_group_set()
139 ret = visconti_pin_config_set(pctldev, pins[i], in visconti_pin_config_group_set()
155 static int visconti_get_groups_count(struct pinctrl_dev *pctldev) in visconti_get_groups_count() argument
157 struct visconti_pinctrl *priv = pinctrl_dev_get_drvdata(pctldev); in visconti_get_groups_count()
162 static const char *visconti_get_group_name(struct pinctrl_dev *pctldev, in visconti_get_group_name() argument
165 struct visconti_pinctrl *priv = pinctrl_dev_get_drvdata(pctldev); in visconti_get_group_name()
170 static int visconti_get_group_pins(struct pinctrl_dev *pctldev, in visconti_get_group_pins() argument
[all …]
/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c171 static int imx1_get_groups_count(struct pinctrl_dev *pctldev) in imx1_get_groups_count() argument
173 struct imx1_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx1_get_groups_count()
179 static const char *imx1_get_group_name(struct pinctrl_dev *pctldev, in imx1_get_group_name() argument
182 struct imx1_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx1_get_group_name()
188 static int imx1_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, in imx1_get_group_pins() argument
192 struct imx1_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx1_get_group_pins()
204 static void imx1_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in imx1_pin_dbg_show() argument
207 struct imx1_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx1_pin_dbg_show()
218 static int imx1_dt_node_to_map(struct pinctrl_dev *pctldev, in imx1_dt_node_to_map() argument
222 struct imx1_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx1_dt_node_to_map()
[all …]
Dpinctrl-mxs.c28 static int mxs_get_groups_count(struct pinctrl_dev *pctldev) in mxs_get_groups_count() argument
30 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_groups_count()
35 static const char *mxs_get_group_name(struct pinctrl_dev *pctldev, in mxs_get_group_name() argument
38 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_group_name()
43 static int mxs_get_group_pins(struct pinctrl_dev *pctldev, unsigned group, in mxs_get_group_pins() argument
46 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_group_pins()
54 static void mxs_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in mxs_pin_dbg_show() argument
57 seq_printf(s, " %s", dev_name(pctldev->dev)); in mxs_pin_dbg_show()
60 static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev, in mxs_dt_node_to_map() argument
138 static void mxs_dt_free_map(struct pinctrl_dev *pctldev, in mxs_dt_free_map() argument
[all …]
Dpinctrl-imx.c35 struct pinctrl_dev *pctldev, in imx_pinctrl_find_group_by_name() argument
41 for (i = 0; i < pctldev->num_groups; i++) { in imx_pinctrl_find_group_by_name()
42 grp = pinctrl_generic_get_group(pctldev, i); in imx_pinctrl_find_group_by_name()
50 static void imx_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in imx_pin_dbg_show() argument
53 seq_printf(s, "%s", dev_name(pctldev->dev)); in imx_pin_dbg_show()
56 static int imx_dt_node_to_map(struct pinctrl_dev *pctldev, in imx_dt_node_to_map() argument
60 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx_dt_node_to_map()
73 grp = imx_pinctrl_find_group_by_name(pctldev, np->name); in imx_dt_node_to_map()
123 pin_get_name(pctldev, pin->pin); in imx_dt_node_to_map()
142 dev_dbg(pctldev->dev, "maps: function %s group %s num %d\n", in imx_dt_node_to_map()
[all …]
/drivers/pinctrl/intel/
Dpinctrl-merrifield.c427 struct pinctrl_dev *pctldev; member
511 static int mrfld_get_groups_count(struct pinctrl_dev *pctldev) in mrfld_get_groups_count() argument
513 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_groups_count()
518 static const char *mrfld_get_group_name(struct pinctrl_dev *pctldev, in mrfld_get_group_name() argument
521 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_name()
526 static int mrfld_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, in mrfld_get_group_pins() argument
529 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_pins()
536 static void mrfld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in mrfld_pin_dbg_show() argument
539 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_pin_dbg_show()
565 static int mrfld_get_functions_count(struct pinctrl_dev *pctldev) in mrfld_get_functions_count() argument
[all …]
/drivers/pinctrl/sprd/
Dpinctrl-sprd.c208 static int sprd_pctrl_group_count(struct pinctrl_dev *pctldev) in sprd_pctrl_group_count() argument
210 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_count()
216 static const char *sprd_pctrl_group_name(struct pinctrl_dev *pctldev, in sprd_pctrl_group_name() argument
219 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_name()
225 static int sprd_pctrl_group_pins(struct pinctrl_dev *pctldev, in sprd_pctrl_group_pins() argument
230 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_pins()
242 static int sprd_dt_node_to_map(struct pinctrl_dev *pctldev, in sprd_dt_node_to_map() argument
247 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_dt_node_to_map()
282 ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, in sprd_dt_node_to_map()
298 ret = pinctrl_utils_reserve_map(pctldev, map, &reserved_maps, in sprd_dt_node_to_map()
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c49 struct pinctrl_dev *pctldev; member
172 static int mvebu_pinconf_group_get(struct pinctrl_dev *pctldev, in mvebu_pinconf_group_get() argument
175 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinconf_group_get()
184 static int mvebu_pinconf_group_set(struct pinctrl_dev *pctldev, in mvebu_pinconf_group_set() argument
188 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinconf_group_set()
204 static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, in mvebu_pinconf_group_dbg_show() argument
207 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinconf_group_dbg_show()
213 if (mvebu_pinconf_group_get(pctldev, gid, &config)) in mvebu_pinconf_group_dbg_show()
268 static int mvebu_pinmux_get_funcs_count(struct pinctrl_dev *pctldev) in mvebu_pinmux_get_funcs_count() argument
270 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinmux_get_funcs_count()
[all …]

12345