Lines Matching refs:new_map
817 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local
829 new_map = devm_kcalloc(pctldev->dev, in st_pctl_dt_node_to_map()
830 map_num, sizeof(*new_map), GFP_KERNEL); in st_pctl_dt_node_to_map()
831 if (!new_map) in st_pctl_dt_node_to_map()
836 devm_kfree(pctldev->dev, new_map); in st_pctl_dt_node_to_map()
840 *map = new_map; in st_pctl_dt_node_to_map()
842 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map()
843 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map()
844 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map()
848 new_map++; in st_pctl_dt_node_to_map()
850 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in st_pctl_dt_node_to_map()
851 new_map[i].data.configs.group_or_pin = in st_pctl_dt_node_to_map()
853 new_map[i].data.configs.configs = &grp->pin_conf[i].config; in st_pctl_dt_node_to_map()
854 new_map[i].data.configs.num_configs = 1; in st_pctl_dt_node_to_map()