Lines Matching refs:pctldev
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()
126 pctldev->desc->num_custom_params, in pinconf_generic_dump_pins()
130 void pinconf_generic_dump_config(struct pinctrl_dev *pctldev, in pinconf_generic_dump_config() argument
142 if (!pctldev->desc->num_custom_params || in pinconf_generic_dump_config()
143 !pctldev->desc->custom_conf_items) in pinconf_generic_dump_config()
146 for (i = 0; i < pctldev->desc->num_custom_params; i++) { in pinconf_generic_dump_config()
148 pctldev->desc->custom_conf_items[i].param) in pinconf_generic_dump_config()
151 pctldev->desc->custom_conf_items[i].display, 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()
254 max_cfg += pctldev->desc->num_custom_params; 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()
262 parse_dt_cfg(np, pctldev->desc->custom_params, in pinconf_generic_parse_dt_config()
263 pctldev->desc->num_custom_params, cfg, &ncfg); in pinconf_generic_parse_dt_config()
292 int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev, in pinconf_generic_dt_subnode_to_map() argument
299 struct device *dev = pctldev->dev; in pinconf_generic_dt_subnode_to_map()
331 ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, in pinconf_generic_dt_subnode_to_map()
346 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, in pinconf_generic_dt_subnode_to_map()
353 ret = pinctrl_utils_add_map_mux(pctldev, map, in pinconf_generic_dt_subnode_to_map()
361 ret = pinctrl_utils_add_map_configs(pctldev, map, in pinconf_generic_dt_subnode_to_map()
376 int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev, in pinconf_generic_dt_node_to_map() argument
388 ret = pinconf_generic_dt_subnode_to_map(pctldev, np_config, map, in pinconf_generic_dt_node_to_map()
394 ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map, in pinconf_generic_dt_node_to_map()
402 pinctrl_utils_free_map(pctldev, *map, *num_maps); in pinconf_generic_dt_node_to_map()
407 void pinconf_generic_dt_free_map(struct pinctrl_dev *pctldev, in pinconf_generic_dt_free_map() argument
411 pinctrl_utils_free_map(pctldev, map, num_maps); in pinconf_generic_dt_free_map()