/linux/drivers/pinctrl/ |
A D | core.c | 221 pindesc->pctldev = pctldev; in pinctrl_register_one_pin() 965 if (pctldev) in add_setting() 966 setting->pctldev = pctldev; in add_setting() 1504 if (!IS_ERR(pctldev->p) && !IS_ERR(pctldev->hog_sleep)) in pinctrl_force_sleep() 1516 if (!IS_ERR(pctldev->p) && !IS_ERR(pctldev->hog_default)) in pinctrl_force_default() 1862 struct pinctrl_dev *pctldev = setting->pctldev; in pinctrl_show() local 1897 strcmp(dev_name(pctldev->dev), pctldev->desc->name)) { in pinctrl_init_device_debugfs() 1998 pctldev = kzalloc(sizeof(*pctldev), GFP_KERNEL); in pinctrl_init_controller() 2059 pctldev->p = create_pinctrl(pctldev->dev, pctldev); in pinctrl_claim_hogs() 2103 pinctrl_free_pindescs(pctldev, pctldev->desc->pins, in pinctrl_enable() [all …]
|
A D | pinmux.c | 118 dev_err(pctldev->dev, in pin_request() 129 dev_err(pctldev->dev, in pin_request() 136 dev_err(pctldev->dev, in pin_request() 154 dev_err(pctldev->dev, in pin_request() 216 dev_err(pctldev->dev, in pin_free() 343 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_map_to_setting() local 371 dev_err(pctldev->dev, in pinmux_map_to_setting() 380 dev_err(pctldev->dev, in pinmux_map_to_setting() 407 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_enable_setting() local 488 struct pinctrl_dev *pctldev = setting->pctldev; in pinmux_disable_setting() local [all …]
|
A D | pinconf.c | 31 dev_err(pctldev->dev, in pinconf_check_ops() 62 dev_dbg(pctldev->dev, in pin_config_get_for_pin() 78 if (!pctldev) { in pin_config_group_get() 88 dev_dbg(pctldev->dev, in pin_config_group_get() 110 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_map_to_setting() local 150 struct pinctrl_dev *pctldev = setting->pctldev; in pinconf_apply_setting() local 170 dev_err(pctldev->dev, in pinconf_apply_setting() 178 dev_err(pctldev->dev, in pinconf_apply_setting() 187 dev_err(pctldev->dev, in pinconf_apply_setting() 220 if (pctldev) in pinconf_show_config() [all …]
|
A D | pinmux.h | 14 int pinmux_check_ops(struct pinctrl_dev *pctldev); 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 60 static inline void pinmux_free_gpio(struct pinctrl_dev *pctldev, in pinmux_free_gpio() argument 100 struct pinctrl_dev *pctldev); 115 struct pinctrl_dev *pctldev) in pinmux_init_device_debugfs() argument 140 pinmux_generic_get_function_name(struct pinctrl_dev *pctldev, 151 int pinmux_generic_add_function(struct pinctrl_dev *pctldev, [all …]
|
A D | pinconf-generic.c | 122 if (pctldev->desc->num_custom_params && in pinconf_generic_dump_pins() 123 pctldev->desc->custom_conf_items) in pinconf_generic_dump_pins() 125 pctldev->desc->custom_conf_items, in pinconf_generic_dump_pins() 126 pctldev->desc->num_custom_params, in pinconf_generic_dump_pins() 142 if (!pctldev->desc->num_custom_params || in pinconf_generic_dump_config() 143 !pctldev->desc->custom_conf_items) in pinconf_generic_dump_config() 240 struct pinctrl_dev *pctldev, in pinconf_generic_parse_dt_config() argument 253 if (pctldev) in pinconf_generic_parse_dt_config() 260 if (pctldev && pctldev->desc->num_custom_params && in pinconf_generic_parse_dt_config() 261 pctldev->desc->custom_params) in pinconf_generic_parse_dt_config() [all …]
|
A 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); 206 int pinctrl_generic_get_group_pins(struct pinctrl_dev *pctldev, 217 int pinctrl_generic_remove_group(struct pinctrl_dev *pctldev, 224 int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name); 226 int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, 232 return radix_tree_lookup(&pctldev->pin_desc_tree, pin); in pin_desc_get() 236 pinctrl_find_gpio_range_from_pin_nolock(struct pinctrl_dev *pctldev, 239 extern int pinctrl_force_sleep(struct pinctrl_dev *pctldev); [all …]
|
A 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 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 118 static inline void pinconf_generic_dump_config(struct pinctrl_dev *pctldev, in pinconf_generic_dump_config() argument [all …]
|
A D | devicetree.c | 25 struct pinctrl_dev *pctldev; member 40 if (pctldev) { in dt_free_map() 66 struct pinctrl_dev *pctldev, in dt_remember_or_free_map() argument 82 if (pctldev) in dt_remember_or_free_map() 91 dt_map->pctldev = pctldev; in dt_remember_or_free_map() 99 dt_free_map(pctldev, map, num_maps); in dt_remember_or_free_map() 114 struct pinctrl_dev *pctldev = NULL; in dt_to_map_one_config() local 140 pctldev = hog_pctldev; in dt_to_map_one_config() 144 if (pctldev) in dt_to_map_one_config() 158 ops = pctldev->desc->pctlops; in dt_to_map_one_config() [all …]
|
A D | pinctrl-rk805.c | 220 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_groups_count() 228 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_name() 238 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_pins() 256 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_funcs_count() 264 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_func_name() 282 static int _rk805_pinctrl_set_mux(struct pinctrl_dev *pctldev, in _rk805_pinctrl_set_mux() argument 309 static int rk805_pinctrl_set_mux(struct pinctrl_dev *pctldev, in rk805_pinctrl_set_mux() argument 317 return _rk805_pinctrl_set_mux(pctldev, offset, mux); in rk805_pinctrl_set_mux() 358 static int rk805_pinconf_get(struct pinctrl_dev *pctldev, in rk805_pinconf_get() argument 379 static int rk805_pinconf_set(struct pinctrl_dev *pctldev, in rk805_pinconf_set() argument [all …]
|
A D | pinctrl-at91-pio4.c | 541 grp = atmel_pctl_find_group_by_pin(pctldev, pin_id); in atmel_pctl_xlate_pinfunc() 617 ret = pinctrl_utils_add_map_configs(pctldev, map, in atmel_pctl_dt_subnode_to_map() 663 pinctrl_utils_free_map(pctldev, *map, *num_maps); in atmel_pctl_dt_node_to_map() 715 conf = atmel_pin_config_read(pctldev, pin); in atmel_pmx_set_mux() 719 atmel_pin_config_write(pctldev, pin, conf); in atmel_pmx_set_mux() 741 res = atmel_pin_config_read(pctldev, pin_id); in atmel_conf_pin_config_group_get() 802 conf = atmel_pin_config_read(pctldev, pin_id); in atmel_conf_pin_config_group_set() 812 dev_dbg(pctldev->dev, "%s: pin=%u, config=0x%lx\n", in atmel_conf_pin_config_group_set() 892 dev_warn(pctldev->dev, in atmel_conf_pin_config_group_set() 900 atmel_pin_config_write(pctldev, pin_id, conf); in atmel_conf_pin_config_group_set() [all …]
|
A D | pinctrl-zynqmp.c | 95 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_groups_count() 136 dev_err(pctldev->dev, "request failed for pin %u\n", pin); in zynqmp_pinmux_request_pin() 191 static int zynqmp_pinmux_set_mux(struct pinctrl_dev *pctldev, in zynqmp_pinmux_set_mux() argument 204 dev_err(pctldev->dev, "set mux failed for pin %u\n", in zynqmp_pinmux_set_mux() 220 dev_err(pctldev->dev, "free pin failed for pin %u\n", in zynqmp_pinmux_release_pin() 248 static int zynqmp_pinconf_cfg_get(struct pinctrl_dev *pctldev, in zynqmp_pinconf_cfg_get() argument 310 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_get() 393 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set() 407 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set() 422 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set() [all …]
|
A D | pinctrl-axp209.c | 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() 212 struct axp20x_pctl *pctl = pinctrl_dev_get_drvdata(pctldev); in axp20x_pmx_func_name() 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() 238 return axp20x_pmx_set(pctldev, group, in axp20x_pmx_set_mux() 268 return axp20x_pmx_set(pctldev, offset, in axp20x_pmx_gpio_set_direction() 271 return axp20x_pmx_set(pctldev, offset, in axp20x_pmx_gpio_set_direction() [all …]
|
/linux/drivers/pinctrl/uniphier/ |
A D | pinctrl-uniphier-core.c | 37 struct pinctrl_dev *pctldev; member 358 dev_err(pctldev->dev, in uniphier_conf_pin_bias_set() 369 dev_err(pctldev->dev, in uniphier_conf_pin_bias_set() 383 dev_err(pctldev->dev, in uniphier_conf_pin_bias_set() 395 dev_err(pctldev->dev, in uniphier_conf_pin_bias_set() 439 dev_err(pctldev->dev, in uniphier_conf_pin_drive_set() 500 ret = uniphier_conf_pin_bias_set(pctldev, pin, in uniphier_conf_pin_config_set() 510 dev_err(pctldev->dev, in uniphier_conf_pin_config_set() 534 ret = uniphier_conf_pin_config_set(pctldev, pins[i], in uniphier_conf_pin_config_group_set() 904 if (IS_ERR(priv->pctldev)) { in uniphier_pinctrl_probe() [all …]
|
/linux/include/linux/pinctrl/ |
A 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, 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); 170 struct pinctrl_dev *pctldev); [all …]
|
A 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,
|
/linux/drivers/pinctrl/aspeed/ |
A D | pinctrl-aspeed.h | 85 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 …]
|
A D | pinctrl-aspeed.c | 13 int aspeed_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in aspeed_pinctrl_get_groups_count() argument 28 int aspeed_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in aspeed_pinctrl_get_group_pins() argument 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 61 int aspeed_pinmux_get_fn_groups(struct pinctrl_dev *pctldev, in aspeed_pinmux_get_fn_groups() argument 376 int aspeed_gpio_request_enable(struct pinctrl_dev *pctldev, in aspeed_gpio_request_enable() argument 540 pdata = pinctrl_dev_get_drvdata(pctldev); in aspeed_pin_config_get() 577 pdata = pinctrl_dev_get_drvdata(pctldev); in aspeed_pin_config_set() 629 rc = aspeed_pin_config_get(pctldev, pins[0], config); in aspeed_pin_config_group_get() [all …]
|
/linux/drivers/pinctrl/spear/ |
A D | pinctrl-spear.c | 116 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_groups_cnt() 124 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_name() 132 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_pins() 151 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_dt_node_to_map() 216 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_funcs_count() 224 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_func_name() 233 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_func_groups() 244 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_endisable() 306 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gpio_request_endisable() 335 static void gpio_disable_free(struct pinctrl_dev *pctldev, in gpio_disable_free() argument [all …]
|
/linux/drivers/pinctrl/tegra/ |
A D | pinctrl-tegra.c | 42 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_groups_count() 50 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_name() 73 seq_printf(s, " %s", dev_name(pctldev->dev)); in tegra_pinctrl_pin_dbg_show() 105 struct device *dev = pctldev->dev; in tegra_pinctrl_dt_subnode_to_map() 129 ret = pinctrl_utils_add_config(pctldev, &configs, in tegra_pinctrl_dt_subnode_to_map() 159 ret = pinctrl_utils_add_map_mux(pctldev, map, in tegra_pinctrl_dt_subnode_to_map() 167 ret = pinctrl_utils_add_map_configs(pctldev, map, in tegra_pinctrl_dt_subnode_to_map() 200 pinctrl_utils_free_map(pctldev, *map, in tegra_pinctrl_dt_node_to_map() 311 group = tegra_pinctrl_get_group(pctldev, offset); in tegra_pinctrl_gpio_request_enable() 337 group = tegra_pinctrl_get_group(pctldev, offset); in tegra_pinctrl_gpio_disable_free() [all …]
|
/linux/drivers/pinctrl/nomadik/ |
A D | pinctrl-abx500.c | 81 struct pinctrl_dev *pctldev; member 448 struct pinctrl_dev *pctldev, in abx500_gpio_dbg_show_one() argument 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 518 struct pinctrl_dev *pctldev, in abx500_gpio_dbg_show_one() argument 624 ret = abx500_set_mode(pct->pctldev, &pct->chip, in abx500_gpio_request_enable() 781 ret = pinctrl_utils_reserve_map(pctldev, map, in abx500_dt_subnode_to_map() 788 gpio_name = abx500_find_pin_name(pctldev, pin); in abx500_dt_subnode_to_map() 814 ret = abx500_dt_subnode_to_map(pctldev, np, map, in abx500_dt_node_to_map() 1047 if (IS_ERR(pct->pctldev)) { in abx500_gpio_probe() [all …]
|
/linux/drivers/pinctrl/visconti/ |
A D | pinctrl-common.c | 36 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() 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() 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 175 struct visconti_pinctrl *priv = pinctrl_dev_get_drvdata(pctldev); in visconti_get_group_pins() 194 struct visconti_pinctrl *priv = pinctrl_dev_get_drvdata(pctldev); in visconti_get_functions_count() [all …]
|
/linux/drivers/pinctrl/freescale/ |
A 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() 218 static int imx1_dt_node_to_map(struct pinctrl_dev *pctldev, in imx1_dt_node_to_map() argument 268 pin_get_name(pctldev, grp->pins[i].pin_id); in imx1_dt_node_to_map() 274 dev_dbg(pctldev->dev, "maps: function %s group %s num %d\n", in imx1_dt_node_to_map() 280 static void imx1_dt_free_map(struct pinctrl_dev *pctldev, in imx1_dt_free_map() argument 385 static int imx1_pinconf_get(struct pinctrl_dev *pctldev, in imx1_pinconf_get() argument 395 static int imx1_pinconf_set(struct pinctrl_dev *pctldev, in imx1_pinconf_set() argument 406 pin_desc_get(pctldev, pin_id)->name); in imx1_pinconf_set() 417 imx1_pinconf_get(pctldev, pin_id, &config); in imx1_pinconf_dbg_show() [all …]
|
A 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() 46 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_group_pins() 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 230 static int mxs_pinconf_get(struct pinctrl_dev *pctldev, in mxs_pinconf_get() argument 236 static int mxs_pinconf_set(struct pinctrl_dev *pctldev, in mxs_pinconf_set() argument [all …]
|
/linux/drivers/pinctrl/intel/ |
A D | pinctrl-merrifield.c | 427 struct pinctrl_dev *pctldev; member 513 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_groups_count() 521 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_name() 529 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_pins() 539 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_pin_dbg_show() 592 static int mrfld_pinmux_set_mux(struct pinctrl_dev *pctldev, in mrfld_pinmux_set_mux() argument 849 ret = mrfld_get_group_pins(pctldev, group, &pins, &npins); in mrfld_config_group_get() 853 ret = mrfld_config_get(pctldev, pins[0], config); in mrfld_config_group_get() 868 ret = mrfld_get_group_pins(pctldev, group, &pins, &npins); in mrfld_config_group_set() 945 if (IS_ERR(mp->pctldev)) { in mrfld_pinctrl_probe() [all …]
|
/linux/drivers/pinctrl/sprd/ |
A D | pinctrl-sprd.c | 225 static int sprd_pctrl_group_pins(struct pinctrl_dev *pctldev, in sprd_pctrl_group_pins() argument 242 static int sprd_dt_node_to_map(struct pinctrl_dev *pctldev, in sprd_dt_node_to_map() argument 304 ret = pinctrl_utils_add_map_mux(pctldev, map, in sprd_dt_node_to_map() 317 group_or_pin = pin_get_name(pctldev, pin_id); in sprd_dt_node_to_map() 322 ret = pinctrl_utils_add_map_configs(pctldev, map, in sprd_dt_node_to_map() 336 seq_printf(s, "%s", dev_name(pctldev->dev)); in sprd_pctrl_dbg_show() 384 static int sprd_pmx_set_mux(struct pinctrl_dev *pctldev, in sprd_pmx_set_mux() argument 755 return sprd_pinconf_get(pctldev, pin_id, config); in sprd_pinconf_group_get() 810 ret = sprd_pinconf_get_config(pctldev, pin_id, &config); in sprd_pinconf_dbg_show() 837 name = pin_get_name(pctldev, pin_id); in sprd_pinconf_group_dbg_show() [all …]
|