Lines Matching refs:new_map
288 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local
306 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); in rockchip_dt_node_to_map()
307 if (!new_map) in rockchip_dt_node_to_map()
310 *map = new_map; in rockchip_dt_node_to_map()
316 kfree(new_map); in rockchip_dt_node_to_map()
319 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map()
320 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map()
321 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map()
325 new_map++; in rockchip_dt_node_to_map()
327 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map()
328 new_map[i].data.configs.group_or_pin = in rockchip_dt_node_to_map()
330 new_map[i].data.configs.configs = grp->data[i].configs; in rockchip_dt_node_to_map()
331 new_map[i].data.configs.num_configs = grp->data[i].nconfigs; in rockchip_dt_node_to_map()