Lines Matching refs:newmap
1165 struct sdma_vl_map *oldmap, *newmap; in sdma_map_init() local
1181 newmap = kzalloc( in sdma_map_init()
1186 if (!newmap) in sdma_map_init()
1188 newmap->actual_vls = num_vls; in sdma_map_init()
1189 newmap->vls = roundup_pow_of_two(num_vls); in sdma_map_init()
1190 newmap->mask = (1 << ilog2(newmap->vls)) - 1; in sdma_map_init()
1193 newmap->engine_to_vl[i] = -1; in sdma_map_init()
1194 for (i = 0; i < newmap->vls; i++) { in sdma_map_init()
1198 if (i < newmap->actual_vls) { in sdma_map_init()
1202 newmap->map[i] = kzalloc( in sdma_map_init()
1206 if (!newmap->map[i]) in sdma_map_init()
1208 newmap->map[i]->mask = (1 << ilog2(sz)) - 1; in sdma_map_init()
1211 newmap->map[i]->sde[j] = in sdma_map_init()
1219 newmap->engine_to_vl[first_engine + j] = i; in sdma_map_init()
1222 newmap->map[i] = newmap->map[i % num_vls]; in sdma_map_init()
1232 rcu_assign_pointer(dd->sdma_map, newmap); in sdma_map_init()
1241 sdma_map_free(newmap); in sdma_map_init()