Lines Matching refs:configs
41 struct sh_pfc_pin_config *configs; member
84 unsigned long *configs, in sh_pfc_map_add_config() argument
89 cfgs = kmemdup(configs, num_configs * sizeof(*cfgs), in sh_pfc_map_add_config()
95 map->data.configs.group_or_pin = group_or_pin; in sh_pfc_map_add_config()
96 map->data.configs.configs = cfgs; in sh_pfc_map_add_config()
97 map->data.configs.num_configs = num_configs; in sh_pfc_map_add_config()
114 unsigned long *configs; in sh_pfc_dt_subnode_to_map() local
148 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in sh_pfc_dt_subnode_to_map()
188 if (configs) in sh_pfc_dt_subnode_to_map()
209 if (configs) { in sh_pfc_dt_subnode_to_map()
212 configs, num_configs); in sh_pfc_dt_subnode_to_map()
220 if (!configs) { in sh_pfc_dt_subnode_to_map()
228 configs, num_configs); in sh_pfc_dt_subnode_to_map()
237 kfree(configs); in sh_pfc_dt_subnode_to_map()
252 kfree(map[i].data.configs.configs); in sh_pfc_dt_free_map()
358 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_func_set_mux()
377 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_func_set_mux()
395 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_gpio_request_enable()
429 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_gpio_disable_free()
456 if (pin->configs) { in sh_pfc_gpio_set_direction()
458 if (!(pin->configs & dir)) in sh_pfc_gpio_set_direction()
577 return pin->configs & SH_PFC_PIN_CFG_PULL_UP_DOWN; in sh_pfc_pinconf_validate()
580 return pin->configs & SH_PFC_PIN_CFG_PULL_UP; in sh_pfc_pinconf_validate()
583 return pin->configs & SH_PFC_PIN_CFG_PULL_DOWN; in sh_pfc_pinconf_validate()
586 return pin->configs & SH_PFC_PIN_CFG_DRIVE_STRENGTH; in sh_pfc_pinconf_validate()
589 return pin->configs & SH_PFC_PIN_CFG_IO_VOLTAGE; in sh_pfc_pinconf_validate()
667 unsigned long *configs, unsigned num_configs) in sh_pfc_pinconf_set() argument
676 param = pinconf_to_config_param(configs[i]); in sh_pfc_pinconf_set()
696 pinconf_to_config_argument(configs[i]); in sh_pfc_pinconf_set()
707 unsigned int mV = pinconf_to_config_argument(configs[i]); in sh_pfc_pinconf_set()
742 unsigned long *configs, in sh_pfc_pinconf_group_set() argument
754 ret = sh_pfc_pinconf_set(pctldev, pins[i], configs, num_configs); in sh_pfc_pinconf_group_set()
782 pmx->configs = devm_kcalloc(pfc->dev, in sh_pfc_map_pins()
783 pfc->info->nr_pins, sizeof(*pmx->configs), in sh_pfc_map_pins()
785 if (unlikely(!pmx->configs)) in sh_pfc_map_pins()