Lines Matching refs:pctldev
25 struct pinctrl_dev *pctldev; member
30 static void dt_free_map(struct pinctrl_dev *pctldev, in dt_free_map() argument
40 if (pctldev) { in dt_free_map()
41 const struct pinctrl_ops *ops = pctldev->desc->pctlops; in dt_free_map()
43 ops->dt_free_map(pctldev, map, num_maps); in dt_free_map()
57 dt_free_map(dt_map->pctldev, dt_map->map, in pinctrl_dt_free_maps()
66 struct pinctrl_dev *pctldev, in dt_remember_or_free_map() argument
82 if (pctldev) in dt_remember_or_free_map()
83 map[i].ctrl_dev_name = dev_name(pctldev->dev); 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()
143 pctldev = get_pinctrl_dev_from_of_node(np_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()
161 dev_name(pctldev->dev)); in dt_to_map_one_config()
164 ret = ops->dt_node_to_map(pctldev, np_config, &map, &num_maps); in dt_to_map_one_config()
179 return dt_remember_or_free_map(p, statename, pctldev, map, num_maps); in dt_to_map_one_config()
196 int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev) in pinctrl_dt_to_map() argument
265 ret = dt_to_map_one_config(p, pctldev, statename, in pinctrl_dt_to_map()