Lines Matching refs:setting

962 	struct pinctrl_setting *setting;  in add_setting()  local
974 setting = kzalloc(sizeof(*setting), GFP_KERNEL); in add_setting()
975 if (!setting) in add_setting()
978 setting->type = map->type; in add_setting()
981 setting->pctldev = pctldev; in add_setting()
983 setting->pctldev = in add_setting()
985 if (!setting->pctldev) { in add_setting()
986 kfree(setting); in add_setting()
999 setting->dev_name = map->dev_name; in add_setting()
1003 ret = pinmux_map_to_setting(map, setting); in add_setting()
1007 ret = pinconf_map_to_setting(map, setting); in add_setting()
1014 kfree(setting); in add_setting()
1018 list_add_tail(&setting->node, &state->settings); in add_setting()
1152 struct pinctrl_setting *setting) in pinctrl_free_setting() argument
1154 switch (setting->type) { in pinctrl_free_setting()
1157 pinmux_disable_setting(setting); in pinctrl_free_setting()
1158 pinmux_free_setting(setting); in pinctrl_free_setting()
1162 pinconf_free_setting(setting); in pinctrl_free_setting()
1172 struct pinctrl_setting *setting, *n2; in pinctrl_free() local
1176 list_for_each_entry_safe(setting, n2, &state->settings, node) { in pinctrl_free()
1177 pinctrl_free_setting(state == p->state, setting); in pinctrl_free()
1178 list_del(&setting->node); in pinctrl_free()
1179 kfree(setting); in pinctrl_free()
1255 struct pinctrl_setting *setting, *setting2; in pinctrl_commit_state() local
1266 list_for_each_entry(setting, &old_state->settings, node) { in pinctrl_commit_state()
1267 if (setting->type != PIN_MAP_TYPE_MUX_GROUP) in pinctrl_commit_state()
1269 pinmux_disable_setting(setting); in pinctrl_commit_state()
1276 list_for_each_entry(setting, &state->settings, node) { in pinctrl_commit_state()
1277 switch (setting->type) { in pinctrl_commit_state()
1279 ret = pinmux_enable_setting(setting); in pinctrl_commit_state()
1294 if (p != setting->pctldev->p) in pinctrl_commit_state()
1295 pinctrl_link_add(setting->pctldev, p->dev); in pinctrl_commit_state()
1299 list_for_each_entry(setting, &state->settings, node) { in pinctrl_commit_state()
1300 switch (setting->type) { in pinctrl_commit_state()
1306 ret = pinconf_apply_setting(setting); in pinctrl_commit_state()
1318 if (p != setting->pctldev->p) in pinctrl_commit_state()
1319 pinctrl_link_add(setting->pctldev, p->dev); in pinctrl_commit_state()
1330 if (&setting2->node == &setting->node) in pinctrl_commit_state()
1865 struct pinctrl_setting *setting; in pinctrl_show() local
1879 list_for_each_entry(setting, &state->settings, node) { in pinctrl_show()
1880 struct pinctrl_dev *pctldev = setting->pctldev; in pinctrl_show()
1883 map_type(setting->type), in pinctrl_show()
1886 switch (setting->type) { in pinctrl_show()
1888 pinmux_show_setting(s, setting); in pinctrl_show()
1892 pinconf_show_setting(s, setting); in pinctrl_show()