/Linux-v5.4/drivers/pinctrl/ |
D | core.c | 73 const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev) in pinctrl_dev_get_name() argument 76 return pctldev->desc->name; in pinctrl_dev_get_name() 80 const char *pinctrl_dev_get_devname(struct pinctrl_dev *pctldev) in pinctrl_dev_get_devname() argument 82 return dev_name(pctldev->dev); in pinctrl_dev_get_devname() 86 void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev) in pinctrl_dev_get_drvdata() argument 88 return pctldev->driver_data; in pinctrl_dev_get_drvdata() 101 struct pinctrl_dev *pctldev; in get_pinctrl_dev_from_devname() local 108 list_for_each_entry(pctldev, &pinctrldev_list, node) { in get_pinctrl_dev_from_devname() 109 if (!strcmp(dev_name(pctldev->dev), devname)) { in get_pinctrl_dev_from_devname() 112 return pctldev; in get_pinctrl_dev_from_devname() [all …]
|
D | pinmux.c | 31 int pinmux_check_ops(struct pinctrl_dev *pctldev) in pinmux_check_ops() argument 33 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_check_ops() 43 dev_err(pctldev->dev, "pinmux ops lacks necessary functions\n"); in pinmux_check_ops() 47 nfuncs = ops->get_functions_count(pctldev); in pinmux_check_ops() 49 const char *fname = ops->get_function_name(pctldev, in pinmux_check_ops() 52 dev_err(pctldev->dev, "pinmux ops has no name for function%u\n", in pinmux_check_ops() 82 bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin) in pinmux_can_be_used_for_gpio() argument 84 struct pin_desc *desc = pin_desc_get(pctldev, pin); in pinmux_can_be_used_for_gpio() 85 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_can_be_used_for_gpio() 105 static int pin_request(struct pinctrl_dev *pctldev, in pin_request() argument [all …]
|
D | pinconf.c | 25 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 …]
|
D | pinmux.h | 14 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 …]
|
D | pinconf-generic.c | 55 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 …]
|
D | core.h | 134 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 …]
|
D | pinconf.h | 15 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 …]
|
D | devicetree.c | 24 struct pinctrl_dev *pctldev; member 29 static void dt_free_map(struct pinctrl_dev *pctldev, in dt_free_map() argument 32 if (pctldev) { in dt_free_map() 33 const struct pinctrl_ops *ops = pctldev->desc->pctlops; in dt_free_map() 35 ops->dt_free_map(pctldev, map, num_maps); in dt_free_map() 49 dt_free_map(dt_map->pctldev, dt_map->map, in pinctrl_dt_free_maps() 58 struct pinctrl_dev *pctldev, in dt_remember_or_free_map() argument 68 if (pctldev) in dt_remember_or_free_map() 69 map[i].ctrl_dev_name = dev_name(pctldev->dev); in dt_remember_or_free_map() 75 dt_free_map(pctldev, map, num_maps); in dt_remember_or_free_map() [all …]
|
D | pinctrl-rk805.c | 215 static int rk805_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in rk805_pinctrl_get_groups_count() argument 217 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_groups_count() 222 static const char *rk805_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_group_name() argument 225 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_name() 230 static int rk805_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_group_pins() argument 235 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_pins() 251 static int rk805_pinctrl_get_funcs_count(struct pinctrl_dev *pctldev) in rk805_pinctrl_get_funcs_count() argument 253 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_funcs_count() 258 static const char *rk805_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_func_name() argument 261 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_func_name() [all …]
|
D | pinctrl-at91-pio4.c | 371 static unsigned int atmel_pin_config_read(struct pinctrl_dev *pctldev, in atmel_pin_config_read() argument 374 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pin_config_read() 387 static void atmel_pin_config_write(struct pinctrl_dev *pctldev, in atmel_pin_config_write() argument 390 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pin_config_write() 402 static int atmel_pctl_get_groups_count(struct pinctrl_dev *pctldev) in atmel_pctl_get_groups_count() argument 404 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_groups_count() 409 static const char *atmel_pctl_get_group_name(struct pinctrl_dev *pctldev, in atmel_pctl_get_group_name() argument 412 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_group_name() 417 static int atmel_pctl_get_group_pins(struct pinctrl_dev *pctldev, in atmel_pctl_get_group_pins() argument 421 struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); in atmel_pctl_get_group_pins() [all …]
|
D | pinctrl-axp209.c | 185 static int axp20x_pmx_set(struct pinctrl_dev *pctldev, unsigned int offset, in axp20x_pmx_set() argument 188 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_set() 199 static int axp20x_pmx_func_cnt(struct pinctrl_dev *pctldev) in axp20x_pmx_func_cnt() argument 201 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_cnt() 206 static const char *axp20x_pmx_func_name(struct pinctrl_dev *pctldev, in axp20x_pmx_func_name() argument 209 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_name() 214 static int axp20x_pmx_func_groups(struct pinctrl_dev *pctldev, in axp20x_pmx_func_groups() argument 219 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_groups() 227 static int axp20x_pmx_set_mux(struct pinctrl_dev *pctldev, in axp20x_pmx_set_mux() argument 230 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_set_mux() [all …]
|
/Linux-v5.4/include/linux/pinctrl/ |
D | pinctrl.h | 89 int (*get_groups_count) (struct pinctrl_dev *pctldev); 90 const char *(*get_group_name) (struct pinctrl_dev *pctldev, 92 int (*get_group_pins) (struct pinctrl_dev *pctldev, 96 void (*pin_dbg_show) (struct pinctrl_dev *pctldev, struct seq_file *s, 98 int (*dt_node_to_map) (struct pinctrl_dev *pctldev, 101 void (*dt_free_map) (struct pinctrl_dev *pctldev, 150 struct pinctrl_dev **pctldev); 151 extern int pinctrl_enable(struct pinctrl_dev *pctldev); 157 extern void pinctrl_unregister(struct pinctrl_dev *pctldev); 162 struct pinctrl_dev **pctldev); [all …]
|
D | pinmux.h | 61 int (*request) (struct pinctrl_dev *pctldev, unsigned offset); 62 int (*free) (struct pinctrl_dev *pctldev, unsigned offset); 63 int (*get_functions_count) (struct pinctrl_dev *pctldev); 64 const char *(*get_function_name) (struct pinctrl_dev *pctldev, 66 int (*get_function_groups) (struct pinctrl_dev *pctldev, 70 int (*set_mux) (struct pinctrl_dev *pctldev, unsigned func_selector, 72 int (*gpio_request_enable) (struct pinctrl_dev *pctldev, 75 void (*gpio_disable_free) (struct pinctrl_dev *pctldev, 78 int (*gpio_set_direction) (struct pinctrl_dev *pctldev,
|
D | pinconf.h | 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,
|
D | pinconf-generic.h | 184 int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev, 188 int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev, 191 void pinconf_generic_dt_free_map(struct pinctrl_dev *pctldev, 195 struct pinctrl_dev *pctldev, struct device_node *np_config, in pinconf_generic_dt_node_to_map_group() argument 198 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 203 struct pinctrl_dev *pctldev, struct device_node *np_config, in pinconf_generic_dt_node_to_map_pin() argument 206 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 211 struct pinctrl_dev *pctldev, struct device_node *np_config, in pinconf_generic_dt_node_to_map_all() argument 218 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all()
|
/Linux-v5.4/drivers/pinctrl/uniphier/ |
D | pinctrl-uniphier-core.c | 37 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 …]
|
/Linux-v5.4/drivers/pinctrl/aspeed/ |
D | pinctrl-aspeed.h | 51 int aspeed_pinctrl_get_groups_count(struct pinctrl_dev *pctldev); 52 const char *aspeed_pinctrl_get_group_name(struct pinctrl_dev *pctldev, 54 int aspeed_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, 57 void aspeed_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, 59 int aspeed_pinmux_get_fn_count(struct pinctrl_dev *pctldev); 60 const char *aspeed_pinmux_get_fn_name(struct pinctrl_dev *pctldev, 62 int aspeed_pinmux_get_fn_groups(struct pinctrl_dev *pctldev, 65 int aspeed_pinmux_set_mux(struct pinctrl_dev *pctldev, unsigned int function, 67 int aspeed_gpio_request_enable(struct pinctrl_dev *pctldev, 73 int aspeed_pin_config_get(struct pinctrl_dev *pctldev, unsigned int offset, [all …]
|
D | pinctrl-aspeed.c | 13 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 …]
|
/Linux-v5.4/drivers/pinctrl/spear/ |
D | pinctrl-spear.c | 114 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 …]
|
/Linux-v5.4/drivers/pinctrl/nomadik/ |
D | pinctrl-abx500.c | 81 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 …]
|
/Linux-v5.4/drivers/pinctrl/freescale/ |
D | pinctrl-imx1-core.c | 171 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 …]
|
D | pinctrl-mxs.c | 28 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 …]
|
/Linux-v5.4/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 40 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 …]
|
/Linux-v5.4/drivers/pinctrl/sh-pfc/ |
D | pinctrl.c | 48 static int sh_pfc_get_groups_count(struct pinctrl_dev *pctldev) in sh_pfc_get_groups_count() argument 50 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_groups_count() 55 static const char *sh_pfc_get_group_name(struct pinctrl_dev *pctldev, in sh_pfc_get_group_name() argument 58 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_name() 63 static int sh_pfc_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, in sh_pfc_get_group_pins() argument 66 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_pins() 74 static void sh_pfc_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in sh_pfc_pin_dbg_show() argument 102 static int sh_pfc_dt_subnode_to_map(struct pinctrl_dev *pctldev, in sh_pfc_dt_subnode_to_map() argument 107 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_dt_subnode_to_map() 241 static void sh_pfc_dt_free_map(struct pinctrl_dev *pctldev, in sh_pfc_dt_free_map() argument [all …]
|
/Linux-v5.4/drivers/pinctrl/intel/ |
D | pinctrl-merrifield.c | 423 struct pinctrl_dev *pctldev; member 507 static int mrfld_get_groups_count(struct pinctrl_dev *pctldev) in mrfld_get_groups_count() argument 509 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_groups_count() 514 static const char *mrfld_get_group_name(struct pinctrl_dev *pctldev, in mrfld_get_group_name() argument 517 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_name() 522 static int mrfld_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, in mrfld_get_group_pins() argument 525 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_pins() 532 static void mrfld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in mrfld_pin_dbg_show() argument 535 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_pin_dbg_show() 561 static int mrfld_get_functions_count(struct pinctrl_dev *pctldev) in mrfld_get_functions_count() argument [all …]
|