Home
last modified time | relevance | path

Searched refs:pinctrl_dev (Results 1 – 25 of 161) sorted by relevance

1234567

/openbmc/linux/include/linux/pinctrl/
H A Dpinctrl.h25 struct pinctrl_dev;
109 int (*get_groups_count) (struct pinctrl_dev *pctldev);
110 const char *(*get_group_name) (struct pinctrl_dev *pctldev,
112 int (*get_group_pins) (struct pinctrl_dev *pctldev,
118 int (*dt_node_to_map) (struct pinctrl_dev *pctldev,
121 void (*dt_free_map) (struct pinctrl_dev *pctldev,
170 struct pinctrl_dev **pctldev);
171 extern int pinctrl_enable(struct pinctrl_dev *pctldev);
182 struct pinctrl_dev **pctldev);
190 struct pinctrl_dev *pctldev);
[all …]
H A Dpinmux.h16 struct pinctrl_dev;
60 int (*request) (struct pinctrl_dev *pctldev, unsigned offset);
61 int (*free) (struct pinctrl_dev *pctldev, unsigned offset);
62 int (*get_functions_count) (struct pinctrl_dev *pctldev);
63 const char *(*get_function_name) (struct pinctrl_dev *pctldev,
65 int (*get_function_groups) (struct pinctrl_dev *pctldev,
69 int (*set_mux) (struct pinctrl_dev *pctldev, unsigned func_selector,
71 int (*gpio_request_enable) (struct pinctrl_dev *pctldev,
74 void (*gpio_disable_free) (struct pinctrl_dev *pctldev,
77 int (*gpio_set_direction) (struct pinctrl_dev *pctldev,
H A Dpinconf.h16 struct pinctrl_dev;
42 int (*pin_config_get) (struct pinctrl_dev *pctldev,
45 int (*pin_config_set) (struct pinctrl_dev *pctldev,
49 int (*pin_config_group_get) (struct pinctrl_dev *pctldev,
52 int (*pin_config_group_set) (struct pinctrl_dev *pctldev,
56 void (*pin_config_dbg_show) (struct pinctrl_dev *pctldev,
59 void (*pin_config_group_dbg_show) (struct pinctrl_dev *pctldev,
62 void (*pin_config_config_dbg_show) (struct pinctrl_dev *pctldev,
H A Dpinconf-generic.h20 struct pinctrl_dev;
194 int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev,
198 int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev,
201 void pinconf_generic_dt_free_map(struct pinctrl_dev *pctldev,
204 static inline int pinconf_generic_dt_node_to_map_group(struct pinctrl_dev *pctldev, in pinconf_generic_dt_node_to_map_group()
212 static inline int pinconf_generic_dt_node_to_map_pin(struct pinctrl_dev *pctldev, in pinconf_generic_dt_node_to_map_pin()
220 static inline int pinconf_generic_dt_node_to_map_all(struct pinctrl_dev *pctldev, in pinconf_generic_dt_node_to_map_all()
/openbmc/linux/drivers/pinctrl/
H A Dpinmux.h18 struct pinctrl_dev;
25 int pinmux_check_ops(struct pinctrl_dev *pctldev);
31 int pinmux_request_gpio(struct pinctrl_dev *pctldev,
34 void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin,
36 int pinmux_gpio_direction(struct pinctrl_dev *pctldev,
48 static inline int pinmux_check_ops(struct pinctrl_dev *pctldev) in pinmux_check_ops()
71 static inline void pinmux_free_gpio(struct pinctrl_dev *pctldev, in pinmux_free_gpio()
111 struct pinctrl_dev *pctldev);
126 struct pinctrl_dev *pctldev) in pinmux_init_device_debugfs()
151 pinmux_generic_get_function_name(struct pinctrl_dev *pctldev,
[all …]
H A Dcore.h52 struct pinctrl_dev { struct
144 struct pinctrl_dev *pctldev;
170 struct pinctrl_dev *pctldev;
211 int pinctrl_generic_get_group_count(struct pinctrl_dev *pctldev);
216 int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev,
227 int pinctrl_generic_remove_group(struct pinctrl_dev *pctldev,
234 int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name);
236 int pinctrl_get_group_selector(struct pinctrl_dev *pctldev,
246 pinctrl_find_gpio_range_from_pin_nolock(struct pinctrl_dev *pctldev,
249 extern int pinctrl_force_sleep(struct pinctrl_dev *pctldev);
[all …]
H A Dpinconf.h19 struct pinctrl_dev;
25 int pinconf_check_ops(struct pinctrl_dev *pctldev);
32 int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin,
39 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin,
46 static inline int pinconf_check_ops(struct pinctrl_dev *pctldev) in pinconf_check_ops()
85 struct pinctrl_dev *pctldev);
100 struct pinctrl_dev *pctldev) in pinconf_init_device_debugfs()
113 void pinconf_generic_dump_pins(struct pinctrl_dev *pctldev,
117 void pinconf_generic_dump_config(struct pinctrl_dev *pctldev,
121 static inline void pinconf_generic_dump_pins(struct pinctrl_dev *pctldev, in pinconf_generic_dump_pins()
[all …]
H A Dcore.c102 struct pinctrl_dev *pctldev; in get_pinctrl_dev_from_devname()
124 struct pinctrl_dev *pctldev; in get_pinctrl_dev_from_of_node()
333 struct pinctrl_dev *pctldev; in pinctrl_ready_for_gpio_range()
386 struct pinctrl_dev *pctldev; in pinctrl_get_device_gpio_range()
439 struct pinctrl_dev *pctldev; in pinctrl_find_and_add_gpio_range()
758 struct pinctrl_dev *pctldev; in pinctrl_gpio_can_use_line()
794 struct pinctrl_dev *pctldev; in pinctrl_gpio_request()
2004 static struct pinctrl_dev *
2186 struct pinctrl_dev *p; in pinctrl_register_and_init()
2246 struct pinctrl_dev *pctldev = *(struct pinctrl_dev **)res; in devm_pinctrl_dev_release()
[all …]
H A Dpinctrl-utils.h14 struct pinctrl_dev;
17 int pinctrl_utils_reserve_map(struct pinctrl_dev *pctldev,
20 int pinctrl_utils_add_map_mux(struct pinctrl_dev *pctldev,
24 int pinctrl_utils_add_map_configs(struct pinctrl_dev *pctldev,
29 int pinctrl_utils_add_config(struct pinctrl_dev *pctldev,
32 void pinctrl_utils_free_map(struct pinctrl_dev *pctldev,
H A Dpinconf.c25 int pinconf_check_ops(struct pinctrl_dev *pctldev) in pinconf_check_ops()
73 struct pinctrl_dev *pctldev; in pin_config_group_get()
110 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_map_to_setting()
150 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_apply_setting()
238 struct pinctrl_dev *pctldev; in pinconf_show_map()
262 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_show_setting()
291 static void pinconf_dump_pin(struct pinctrl_dev *pctldev, in pinconf_dump_pin()
304 struct pinctrl_dev *pctldev = s->private; in pinconf_pins_show()
333 static void pinconf_dump_group(struct pinctrl_dev *pctldev, in pinconf_dump_group()
347 struct pinctrl_dev *pctldev = s->private; in pinconf_groups_show()
[all …]
H A Dpinctrl-mlxbf3.c30 struct pinctrl_dev *pctl;
124 static int mlxbf3_get_groups_count(struct pinctrl_dev *pctldev) in mlxbf3_get_groups_count()
130 static const char *mlxbf3_get_group_name(struct pinctrl_dev *pctldev, in mlxbf3_get_group_name()
136 static int mlxbf3_get_group_pins(struct pinctrl_dev *pctldev, in mlxbf3_get_group_pins()
167 static int mlxbf3_pmx_get_funcs_count(struct pinctrl_dev *pctldev) in mlxbf3_pmx_get_funcs_count()
172 static const char *mlxbf3_pmx_get_func_name(struct pinctrl_dev *pctldev, in mlxbf3_pmx_get_func_name()
178 static int mlxbf3_pmx_get_groups(struct pinctrl_dev *pctldev, in mlxbf3_pmx_get_groups()
189 static int mlxbf3_pmx_set(struct pinctrl_dev *pctldev, in mlxbf3_pmx_set()
212 static int mlxbf3_gpio_request_enable(struct pinctrl_dev *pctldev, in mlxbf3_gpio_request_enable()
H A Dpinctrl-lantiq.c19 static int ltq_get_group_count(struct pinctrl_dev *pctrldev) in ltq_get_group_count()
25 static const char *ltq_get_group_name(struct pinctrl_dev *pctrldev, in ltq_get_group_name()
34 static int ltq_get_group_pins(struct pinctrl_dev *pctrldev, in ltq_get_group_pins()
47 static void ltq_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, in ltq_pinctrl_dt_free_map()
59 static void ltq_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in ltq_pinctrl_pin_dbg_show()
66 static void ltq_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev, in ltq_pinctrl_dt_subnode_to_map()
148 static int ltq_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, in ltq_pinctrl_dt_node_to_map()
181 static int ltq_pmx_func_count(struct pinctrl_dev *pctrldev) in ltq_pmx_func_count()
188 static const char *ltq_pmx_func_name(struct pinctrl_dev *pctrldev, in ltq_pmx_func_name()
199 static int ltq_pmx_get_groups(struct pinctrl_dev *pctrldev, in ltq_pmx_get_groups()
[all …]
H A Dpinmux.c35 int pinmux_check_ops(struct pinctrl_dev *pctldev) in pinmux_check_ops()
111 static int pin_request(struct pinctrl_dev *pctldev, in pin_request()
265 int pinmux_request_gpio(struct pinctrl_dev *pctldev, in pinmux_request_gpio()
346 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_map_to_setting()
410 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_enable_setting()
491 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_disable_setting()
544 struct pinctrl_dev *pctldev = s->private; in pinmux_functions_show()
586 struct pinctrl_dev *pctldev = s->private; in pinmux_pins_show()
666 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_show_setting()
684 struct pinctrl_dev *pctldev = sfile->private; in pinmux_select()
[all …]
H A Dpinctrl-loongson2.c44 struct pinctrl_dev *pcdev;
166 static int loongson2_get_groups_count(struct pinctrl_dev *pcdev) in loongson2_get_groups_count()
171 static const char *loongson2_get_group_name(struct pinctrl_dev *pcdev, in loongson2_get_group_name()
177 static int loongson2_get_group_pins(struct pinctrl_dev *pcdev, unsigned int selector, in loongson2_get_group_pins()
186 static void loongson2_pin_dbg_show(struct pinctrl_dev *pcdev, struct seq_file *s, in loongson2_pin_dbg_show()
201 static int loongson2_pmx_set_mux(struct pinctrl_dev *pcdev, unsigned int func_num, in loongson2_pmx_set_mux()
223 static int loongson2_pmx_get_funcs_count(struct pinctrl_dev *pcdev) in loongson2_pmx_get_funcs_count()
228 static const char *loongson2_pmx_get_func_name(struct pinctrl_dev *pcdev, in loongson2_pmx_get_func_name()
234 static int loongson2_pmx_get_groups(struct pinctrl_dev *pcdev, in loongson2_pmx_get_groups()
H A Dpinctrl-da850-pupd.c25 struct pinctrl_dev *pinctrl;
35 static int da850_pupd_get_groups_count(struct pinctrl_dev *pctldev) in da850_pupd_get_groups_count()
40 static const char *da850_pupd_get_group_name(struct pinctrl_dev *pctldev, in da850_pupd_get_group_name()
46 static int da850_pupd_get_group_pins(struct pinctrl_dev *pctldev, in da850_pupd_get_group_pins()
64 static int da850_pupd_pin_config_group_get(struct pinctrl_dev *pctldev, in da850_pupd_pin_config_group_get()
100 static int da850_pupd_pin_config_group_set(struct pinctrl_dev *pctldev, in da850_pupd_pin_config_group_set()
/openbmc/linux/drivers/pinctrl/aspeed/
H A 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,
101 int aspeed_gpio_request_enable(struct pinctrl_dev *pctldev,
107 int aspeed_pin_config_get(struct pinctrl_dev *pctldev, unsigned int offset,
111 int aspeed_pin_config_group_get(struct pinctrl_dev *pctldev,
[all …]
H A Dpinctrl-aspeed.c14 int aspeed_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in aspeed_pinctrl_get_groups_count()
21 const char *aspeed_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in aspeed_pinctrl_get_group_name()
29 int aspeed_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in aspeed_pinctrl_get_group_pins()
41 void aspeed_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in aspeed_pinctrl_pin_dbg_show()
47 int aspeed_pinmux_get_fn_count(struct pinctrl_dev *pctldev) in aspeed_pinmux_get_fn_count()
54 const char *aspeed_pinmux_get_fn_name(struct pinctrl_dev *pctldev, in aspeed_pinmux_get_fn_name()
62 int aspeed_pinmux_get_fn_groups(struct pinctrl_dev *pctldev, in aspeed_pinmux_get_fn_groups()
377 int aspeed_gpio_request_enable(struct pinctrl_dev *pctldev, in aspeed_gpio_request_enable()
448 struct pinctrl_dev *pctl; in aspeed_pinctrl_probe()
615 int aspeed_pin_config_group_get(struct pinctrl_dev *pctldev, in aspeed_pin_config_group_get()
[all …]
/openbmc/linux/drivers/pinctrl/freescale/
H A Dpinctrl-imx.h75 struct pinctrl_dev *pctl;
94 int (*gpio_set_direction)(struct pinctrl_dev *pctldev,
98 int (*imx_pinconf_get)(struct pinctrl_dev *pctldev, unsigned int pin_id,
100 int (*imx_pinconf_set)(struct pinctrl_dev *pctldev, unsigned int pin_id,
128 int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id,
130 int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id,
H A Dpinctrl-mxs.c26 struct pinctrl_dev *pctl;
31 static int mxs_get_groups_count(struct pinctrl_dev *pctldev) in mxs_get_groups_count()
38 static const char *mxs_get_group_name(struct pinctrl_dev *pctldev, in mxs_get_group_name()
63 static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev, in mxs_dt_node_to_map()
141 static void mxs_dt_free_map(struct pinctrl_dev *pctldev, in mxs_dt_free_map()
165 static int mxs_pinctrl_get_funcs_count(struct pinctrl_dev *pctldev) in mxs_pinctrl_get_funcs_count()
233 static int mxs_pinconf_get(struct pinctrl_dev *pctldev, in mxs_pinconf_get()
239 static int mxs_pinconf_set(struct pinctrl_dev *pctldev, in mxs_pinconf_set()
246 static int mxs_pinconf_group_get(struct pinctrl_dev *pctldev, in mxs_pinconf_group_get()
256 static int mxs_pinconf_group_set(struct pinctrl_dev *pctldev, in mxs_pinconf_group_set()
[all …]
/openbmc/linux/drivers/pinctrl/spear/
H A Dpinctrl-spear.c116 static int spear_pinctrl_get_groups_cnt(struct pinctrl_dev *pctldev) in spear_pinctrl_get_groups_cnt()
131 static int spear_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_pins()
142 static void spear_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in spear_pinctrl_pin_dbg_show()
148 static int spear_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_node_to_map()
200 static void spear_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_free_map()
216 static int spear_pinctrl_get_funcs_count(struct pinctrl_dev *pctldev) in spear_pinctrl_get_funcs_count()
231 static int spear_pinctrl_get_func_groups(struct pinctrl_dev *pctldev, in spear_pinctrl_get_func_groups()
243 static int spear_pinctrl_endisable(struct pinctrl_dev *pctldev, in spear_pinctrl_endisable()
305 static int gpio_request_endisable(struct pinctrl_dev *pctldev, in gpio_request_endisable()
331 static int gpio_request_enable(struct pinctrl_dev *pctldev, in gpio_request_enable()
[all …]
/openbmc/linux/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier-core.c39 struct pinctrl_dev *pctldev;
45 static int uniphier_pctl_get_groups_count(struct pinctrl_dev *pctldev) in uniphier_pctl_get_groups_count()
60 static int uniphier_pctl_get_group_pins(struct pinctrl_dev *pctldev, in uniphier_pctl_get_group_pins()
74 static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev, in uniphier_pctl_pin_dbg_show()
149 static int uniphier_conf_get_drvctrl_data(struct pinctrl_dev *pctldev, in uniphier_conf_get_drvctrl_data()
206 static int uniphier_conf_pin_bias_get(struct pinctrl_dev *pctldev, in uniphier_conf_pin_bias_get()
257 static int uniphier_conf_pin_drive_get(struct pinctrl_dev *pctldev, in uniphier_conf_pin_drive_get()
309 static int uniphier_conf_pin_config_get(struct pinctrl_dev *pctldev, in uniphier_conf_pin_config_get()
343 static int uniphier_conf_pin_bias_set(struct pinctrl_dev *pctldev, in uniphier_conf_pin_bias_set()
418 static int uniphier_conf_pin_drive_set(struct pinctrl_dev *pctldev, in uniphier_conf_pin_drive_set()
[all …]
/openbmc/linux/drivers/pinctrl/intel/
H A Dpinctrl-intel.h250 struct pinctrl_dev *pctldev;
275 int intel_get_groups_count(struct pinctrl_dev *pctldev);
276 const char *intel_get_group_name(struct pinctrl_dev *pctldev, unsigned int group);
277 int intel_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group,
280 int intel_get_functions_count(struct pinctrl_dev *pctldev);
281 const char *intel_get_function_name(struct pinctrl_dev *pctldev, unsigned int function);
282 int intel_get_function_groups(struct pinctrl_dev *pctldev, unsigned int function,
/openbmc/linux/drivers/pinctrl/visconti/
H A Dpinctrl-common.c27 struct pinctrl_dev *pctl;
36 static int visconti_pin_config_set(struct pinctrl_dev *pctldev, in visconti_pin_config_set()
122 static int visconti_pin_config_group_set(struct pinctrl_dev *pctldev, in visconti_pin_config_group_set()
155 static int visconti_get_groups_count(struct pinctrl_dev *pctldev) in visconti_get_groups_count()
162 static const char *visconti_get_group_name(struct pinctrl_dev *pctldev, in visconti_get_group_name()
170 static int visconti_get_group_pins(struct pinctrl_dev *pctldev, in visconti_get_group_pins()
192 static int visconti_get_functions_count(struct pinctrl_dev *pctldev) in visconti_get_functions_count()
199 static const char *visconti_get_function_name(struct pinctrl_dev *pctldev, in visconti_get_function_name()
207 static int visconti_get_function_groups(struct pinctrl_dev *pctldev, in visconti_get_function_groups()
220 static int visconti_set_mux(struct pinctrl_dev *pctldev, in visconti_set_mux()
[all …]
/openbmc/linux/drivers/pinctrl/nxp/
H A Dpinctrl-s32cc.c94 struct pinctrl_dev *pctl;
105 s32_get_region(struct pinctrl_dev *pctldev, unsigned int pin) in s32_get_region()
121 static inline int s32_check_pin(struct pinctrl_dev *pctldev, in s32_check_pin()
127 static inline int s32_regmap_read(struct pinctrl_dev *pctldev, in s32_regmap_read()
143 static inline int s32_regmap_write(struct pinctrl_dev *pctldev, in s32_regmap_write()
177 static int s32_get_groups_count(struct pinctrl_dev *pctldev) in s32_get_groups_count()
194 static int s32_get_group_pins(struct pinctrl_dev *pctldev, in s32_get_group_pins()
265 static int s32_dt_node_to_map(struct pinctrl_dev *pctldev, in s32_dt_node_to_map()
360 static int s32_pmx_get_groups(struct pinctrl_dev *pctldev, in s32_pmx_get_groups()
587 static int s32_pinconf_get(struct pinctrl_dev *pctldev, in s32_pinconf_get()
[all …]
/openbmc/linux/drivers/pinctrl/bcm/
H A Dpinctrl-bcm6328.c269 static int bcm6328_pinctrl_get_group_count(struct pinctrl_dev *pctldev) in bcm6328_pinctrl_get_group_count()
274 static const char *bcm6328_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in bcm6328_pinctrl_get_group_name()
280 static int bcm6328_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in bcm6328_pinctrl_get_group_pins()
290 static int bcm6328_pinctrl_get_func_count(struct pinctrl_dev *pctldev) in bcm6328_pinctrl_get_func_count()
295 static const char *bcm6328_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in bcm6328_pinctrl_get_func_name()
301 static int bcm6328_pinctrl_get_groups(struct pinctrl_dev *pctldev, in bcm6328_pinctrl_get_groups()
324 static int bcm6328_pinctrl_set_mux(struct pinctrl_dev *pctldev, in bcm6328_pinctrl_set_mux()
336 static int bcm6328_gpio_request_enable(struct pinctrl_dev *pctldev, in bcm6328_gpio_request_enable()

1234567