Lines Matching refs:nmaps
490 int nmaps; in starfive_dt_node_to_map() local
493 nmaps = 0; in starfive_dt_node_to_map()
513 nmaps += 2; in starfive_dt_node_to_map()
515 nmaps += 1; in starfive_dt_node_to_map()
523 map = kcalloc(nmaps, sizeof(*map), GFP_KERNEL); in starfive_dt_node_to_map()
527 nmaps = 0; in starfive_dt_node_to_map()
565 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in starfive_dt_node_to_map()
566 map[nmaps].data.mux.function = np->name; in starfive_dt_node_to_map()
567 map[nmaps].data.mux.group = grpname; in starfive_dt_node_to_map()
568 nmaps += 1; in starfive_dt_node_to_map()
598 &map[nmaps].data.configs.configs, in starfive_dt_node_to_map()
599 &map[nmaps].data.configs.num_configs); in starfive_dt_node_to_map()
607 if (map[nmaps].data.configs.num_configs == 0) in starfive_dt_node_to_map()
610 map[nmaps].type = PIN_MAP_TYPE_CONFIGS_GROUP; in starfive_dt_node_to_map()
611 map[nmaps].data.configs.group_or_pin = grpname; in starfive_dt_node_to_map()
612 nmaps += 1; in starfive_dt_node_to_map()
622 *num_maps = nmaps; in starfive_dt_node_to_map()
629 pinctrl_utils_free_map(pctldev, map, nmaps); in starfive_dt_node_to_map()