Home
last modified time | relevance | path

Searched refs:pctldev (Results 1 – 25 of 111) 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 …]
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 …]
Dpinconf-generic.c55 static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev, in pinconf_generic_dump_one() argument
70 ret = pin_config_group_get(dev_name(pctldev->dev), in pinconf_generic_dump_one()
73 ret = pin_config_get_for_pin(pctldev, pin, &config); in pinconf_generic_dump_one()
109 void pinconf_generic_dump_pins(struct pinctrl_dev *pctldev, struct seq_file *s, in pinconf_generic_dump_pins() argument
112 const struct pinconf_ops *ops = pctldev->desc->confops; in pinconf_generic_dump_pins()
119 pinconf_generic_dump_one(pctldev, s, gname, pin, conf_items, in pinconf_generic_dump_pins()
122 if (pctldev->desc->num_custom_params && in pinconf_generic_dump_pins()
123 pctldev->desc->custom_conf_items) in pinconf_generic_dump_pins()
124 pinconf_generic_dump_one(pctldev, s, gname, pin, in pinconf_generic_dump_pins()
125 pctldev->desc->custom_conf_items, in pinconf_generic_dump_pins()
[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.c449 static unsigned int atmel_pin_config_read(struct pinctrl_dev *pctldev, in atmel_pin_config_read() argument
452 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pin_config_read()
465 static void atmel_pin_config_write(struct pinctrl_dev *pctldev, in atmel_pin_config_write() argument
468 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pin_config_write()
480 static int atmel_pctl_get_groups_count(struct pinctrl_dev *pctldev) in atmel_pctl_get_groups_count() argument
482 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_groups_count()
487 static const char *atmel_pctl_get_group_name(struct pinctrl_dev *pctldev, in atmel_pctl_get_group_name() argument
490 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_group_name()
495 static int atmel_pctl_get_group_pins(struct pinctrl_dev *pctldev, in atmel_pctl_get_group_pins() argument
500 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.c188 static int axp20x_pmx_set(struct pinctrl_dev *pctldev, unsigned int offset, in axp20x_pmx_set() argument
191 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_set()
202 static int axp20x_pmx_func_cnt(struct pinctrl_dev *pctldev) in axp20x_pmx_func_cnt() argument
204 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_cnt()
209 static const char *axp20x_pmx_func_name(struct pinctrl_dev *pctldev, in axp20x_pmx_func_name() argument
212 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_name()
217 static int axp20x_pmx_func_groups(struct pinctrl_dev *pctldev, in axp20x_pmx_func_groups() argument
222 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_groups()
230 static int axp20x_pmx_set_mux(struct pinctrl_dev *pctldev, in axp20x_pmx_set_mux() argument
233 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/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/spear/
Dpinctrl-spear.c114 static int spear_pinctrl_get_groups_cnt(struct pinctrl_dev *pctldev) in spear_pinctrl_get_groups_cnt() argument
116 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_groups_cnt()
121 static const char *spear_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_name() argument
124 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_name()
129 static int spear_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_pins() argument
132 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_pins()
140 static void spear_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in spear_pinctrl_pin_dbg_show() argument
146 static int spear_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_node_to_map() argument
151 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_dt_node_to_map()
198 static void spear_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_free_map() argument
[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/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/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
162 static int mvebu_pinconf_group_get(struct pinctrl_dev *pctldev, in mvebu_pinconf_group_get() argument
165 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinconf_group_get()
174 static int mvebu_pinconf_group_set(struct pinctrl_dev *pctldev, in mvebu_pinconf_group_set() argument
178 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinconf_group_set()
194 static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, in mvebu_pinconf_group_dbg_show() argument
197 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinconf_group_dbg_show()
203 if (mvebu_pinconf_group_get(pctldev, gid, &config)) in mvebu_pinconf_group_dbg_show()
258 static int mvebu_pinmux_get_funcs_count(struct pinctrl_dev *pctldev) in mvebu_pinmux_get_funcs_count() argument
260 struct mvebu_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mvebu_pinmux_get_funcs_count()
[all …]

12345