Lines Matching refs:configs
42 struct sh_pfc_pin_config *configs; member
81 unsigned long *configs, in sh_pfc_map_add_config() argument
86 cfgs = kmemdup(configs, num_configs * sizeof(*cfgs), in sh_pfc_map_add_config()
92 map->data.configs.group_or_pin = group_or_pin; in sh_pfc_map_add_config()
93 map->data.configs.configs = cfgs; in sh_pfc_map_add_config()
94 map->data.configs.num_configs = num_configs; in sh_pfc_map_add_config()
108 unsigned long *configs; in sh_pfc_dt_subnode_to_map() local
125 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in sh_pfc_dt_subnode_to_map()
164 if (configs) in sh_pfc_dt_subnode_to_map()
185 if (configs) { in sh_pfc_dt_subnode_to_map()
188 configs, num_configs); in sh_pfc_dt_subnode_to_map()
196 if (!configs) { in sh_pfc_dt_subnode_to_map()
204 configs, num_configs); in sh_pfc_dt_subnode_to_map()
213 kfree(configs); in sh_pfc_dt_subnode_to_map()
228 kfree(map[i].data.configs.configs); in sh_pfc_dt_free_map()
329 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_func_set_mux()
355 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_gpio_request_enable()
397 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_gpio_disable_free()
414 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_gpio_set_direction()
422 if (pin->configs) { in sh_pfc_gpio_set_direction()
424 if (!(pin->configs & dir)) in sh_pfc_gpio_set_direction()
463 return pin->configs & SH_PFC_PIN_CFG_PULL_UP; in sh_pfc_pinconf_validate()
466 return pin->configs & SH_PFC_PIN_CFG_PULL_DOWN; in sh_pfc_pinconf_validate()
510 unsigned long *configs, unsigned num_configs) in sh_pfc_pinconf_set() argument
519 param = pinconf_to_config_param(configs[i]); in sh_pfc_pinconf_set()
546 unsigned long *configs, in sh_pfc_pinconf_group_set() argument
558 sh_pfc_pinconf_set(pctldev, pins[i], configs, num_configs); in sh_pfc_pinconf_group_set()
583 pmx->configs = devm_kzalloc(pfc->dev, in sh_pfc_map_pins()
584 sizeof(*pmx->configs) * pfc->info->nr_pins, in sh_pfc_map_pins()
586 if (unlikely(!pmx->configs)) in sh_pfc_map_pins()
591 struct sh_pfc_pin_config *cfg = &pmx->configs[i]; in sh_pfc_map_pins()