Lines Matching defs:setting
711 struct pinctrl_setting *setting;
723 setting = kzalloc(sizeof(*setting), GFP_KERNEL);
724 if (setting == NULL) {
730 setting->type = map->type;
732 setting->pctldev = get_pinctrl_dev_from_devname(map->ctrl_dev_name);
733 if (setting->pctldev == NULL) {
734 kfree(setting);
747 setting->dev_name = map->dev_name;
751 ret = pinmux_map_to_setting(map, setting);
755 ret = pinconf_map_to_setting(map, setting);
762 kfree(setting);
766 list_add_tail(&setting->node, &state->settings);
828 * At this point the adding of a setting may:
832 * AND the setting is a hog. We cannot defer that, since
892 struct pinctrl_setting *setting)
894 switch (setting->type) {
897 pinmux_disable_setting(setting);
898 pinmux_free_setting(setting);
902 pinconf_free_setting(setting);
912 struct pinctrl_setting *setting, *n2;
916 list_for_each_entry_safe(setting, n2, &state->settings, node) {
917 pinctrl_free_setting(state == p->state, setting);
918 list_del(&setting->node);
919 kfree(setting);
986 struct pinctrl_setting *setting, *setting2;
995 * For each pinmux setting in the old state, forget SW's record
1000 list_for_each_entry(setting, &p->state->settings, node) {
1001 if (setting->type != PIN_MAP_TYPE_MUX_GROUP)
1003 pinmux_disable_setting(setting);
1010 list_for_each_entry(setting, &state->settings, node) {
1011 switch (setting->type) {
1013 ret = pinmux_enable_setting(setting);
1017 ret = pinconf_apply_setting(setting);
1034 dev_err(p->dev, "Error applying setting, reverse things back\n");
1037 if (&setting2->node == &setting->node)
1042 * than they were before applying the setting (We can't
1503 struct pinctrl_setting *setting;
1517 list_for_each_entry(setting, &state->settings, node) {
1518 struct pinctrl_dev *pctldev = setting->pctldev;
1521 map_type(setting->type),
1524 switch (setting->type) {
1526 pinmux_show_setting(s, setting);
1530 pinconf_show_setting(s, setting);