Lines Matching refs:new_map
349 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local
366 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); in rockchip_dt_node_to_map()
367 if (!new_map) in rockchip_dt_node_to_map()
370 *map = new_map; in rockchip_dt_node_to_map()
376 kfree(new_map); in rockchip_dt_node_to_map()
379 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map()
380 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map()
381 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map()
385 new_map++; in rockchip_dt_node_to_map()
387 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map()
388 new_map[i].data.configs.group_or_pin = in rockchip_dt_node_to_map()
390 new_map[i].data.configs.configs = grp->data[i].configs; in rockchip_dt_node_to_map()
391 new_map[i].data.configs.num_configs = grp->data[i].nconfigs; in rockchip_dt_node_to_map()