Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/include/linux/pinctrl/
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,
116 void (*pin_dbg_show) (struct pinctrl_dev *pctldev, struct seq_file *s,
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);
174 extern struct pinctrl_dev *pinctrl_register(struct pinctrl_desc *pctldesc,
[all …]
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,
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,
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()
/linux-6.6.21/drivers/pinctrl/
Dpinmux.h18 struct pinctrl_dev;
25 int pinmux_check_ops(struct pinctrl_dev *pctldev);
29 bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin);
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()
58 static inline bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, in pinmux_can_be_used_for_gpio()
64 static inline int pinmux_request_gpio(struct pinctrl_dev *pctldev, in pinmux_request_gpio()
71 static inline void pinmux_free_gpio(struct pinctrl_dev *pctldev, in pinmux_free_gpio()
[all …]
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);
213 const char *pinctrl_generic_get_group_name(struct pinctrl_dev *pctldev,
216 int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev,
221 struct group_desc *pinctrl_generic_get_group(struct pinctrl_dev *pctldev,
224 int pinctrl_generic_add_group(struct pinctrl_dev *pctldev, const char *name,
227 int pinctrl_generic_remove_group(struct pinctrl_dev *pctldev,
232 struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *dev_name);
[all …]
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()
71 static inline int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, in pinconf_set_config()
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,
[all …]
Dcore.c74 const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev) in pinctrl_dev_get_name()
81 const char *pinctrl_dev_get_devname(struct pinctrl_dev *pctldev) in pinctrl_dev_get_devname()
87 void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev) in pinctrl_dev_get_drvdata()
100 struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *devname) in get_pinctrl_dev_from_devname()
102 struct pinctrl_dev *pctldev; in get_pinctrl_dev_from_devname()
122 struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np) in get_pinctrl_dev_from_of_node()
124 struct pinctrl_dev *pctldev; in get_pinctrl_dev_from_of_node()
144 int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name) in pin_get_from_name()
167 const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin) in pin_get_name()
183 static void pinctrl_free_pindescs(struct pinctrl_dev *pctldev, in pinctrl_free_pindescs()
[all …]
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,
Dpinconf.c25 int pinconf_check_ops(struct pinctrl_dev *pctldev) in pinconf_check_ops()
56 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, in pin_config_get_for_pin()
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()
200 int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, in pinconf_set_config()
214 static void pinconf_show_config(struct seq_file *s, struct pinctrl_dev *pctldev, in pinconf_show_config()
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()
[all …]
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()
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 …]
Dpinmux.c35 int pinmux_check_ops(struct pinctrl_dev *pctldev) in pinmux_check_ops()
87 bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin) in pinmux_can_be_used_for_gpio()
111 static int pin_request(struct pinctrl_dev *pctldev, in pin_request()
210 static const char *pin_free(struct pinctrl_dev *pctldev, int pin, in pin_free()
265 int pinmux_request_gpio(struct pinctrl_dev *pctldev, in pinmux_request_gpio()
290 void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin, in pinmux_free_gpio()
306 int pinmux_gpio_direction(struct pinctrl_dev *pctldev, in pinmux_gpio_direction()
323 static int pinmux_func_name_to_selector(struct pinctrl_dev *pctldev, in pinmux_func_name_to_selector()
346 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_map_to_setting()
410 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_enable_setting()
[all …]
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()
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()
/linux-6.6.21/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.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()
223 int aspeed_pinmux_set_mux(struct pinctrl_dev *pctldev, unsigned int function, in aspeed_pinmux_set_mux()
377 int aspeed_gpio_request_enable(struct pinctrl_dev *pctldev, in aspeed_gpio_request_enable()
448 struct pinctrl_dev *pctl; in aspeed_pinctrl_probe()
[all …]
/linux-6.6.21/drivers/pinctrl/freescale/
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,
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()
46 static int mxs_get_group_pins(struct pinctrl_dev *pctldev, unsigned group, in mxs_get_group_pins()
57 static void mxs_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in mxs_pin_dbg_show()
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()
172 static const char *mxs_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in mxs_pinctrl_get_func_name()
180 static int mxs_pinctrl_get_func_groups(struct pinctrl_dev *pctldev, in mxs_pinctrl_get_func_groups()
[all …]
/linux-6.6.21/drivers/pinctrl/spear/
Dpinctrl-spear.c116 static int spear_pinctrl_get_groups_cnt(struct pinctrl_dev *pctldev) in spear_pinctrl_get_groups_cnt()
123 static const char *spear_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_name()
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()
223 static const char *spear_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in spear_pinctrl_get_func_name()
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()
[all …]
/linux-6.6.21/drivers/pinctrl/uniphier/
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()
52 static const char *uniphier_pctl_get_group_name(struct pinctrl_dev *pctldev, in uniphier_pctl_get_group_name()
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()
283 static int uniphier_conf_pin_input_enable_get(struct pinctrl_dev *pctldev, in uniphier_conf_pin_input_enable_get()
309 static int uniphier_conf_pin_config_get(struct pinctrl_dev *pctldev, in uniphier_conf_pin_config_get()
[all …]
/linux-6.6.21/drivers/pinctrl/intel/
Dpinctrl-intel.h246 struct pinctrl_dev *pctldev;
271 int intel_get_groups_count(struct pinctrl_dev *pctldev);
272 const char *intel_get_group_name(struct pinctrl_dev *pctldev, unsigned int group);
273 int intel_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group,
276 int intel_get_functions_count(struct pinctrl_dev *pctldev);
277 const char *intel_get_function_name(struct pinctrl_dev *pctldev, unsigned int function);
278 int intel_get_function_groups(struct pinctrl_dev *pctldev, unsigned int function,
/linux-6.6.21/drivers/pinctrl/visconti/
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 …]
/linux-6.6.21/drivers/pinctrl/nxp/
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()
161 static inline int s32_regmap_update(struct pinctrl_dev *pctldev, unsigned int pin, in s32_regmap_update()
177 static int s32_get_groups_count(struct pinctrl_dev *pctldev) in s32_get_groups_count()
185 static const char *s32_get_group_name(struct pinctrl_dev *pctldev, in s32_get_group_name()
194 static int s32_get_group_pins(struct pinctrl_dev *pctldev, in s32_get_group_pins()
207 static void s32_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in s32_pin_dbg_show()
[all …]
/linux-6.6.21/drivers/pinctrl/bcm/
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