Searched refs:nr_paths (Results 1 – 1 of 1) sorted by relevance
41 unsigned nr_paths; /* Number of paths in path_list. */ member59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths, in alloc_switch_ctx() argument64 sctx = kzalloc(sizeof(struct switch_ctx) + nr_paths * sizeof(struct switch_path), in alloc_switch_ctx()77 static int alloc_region_table(struct dm_target *ti, unsigned nr_paths) in alloc_region_table() argument90 (region_table_slot_t)1 << sctx->region_table_entry_bits < nr_paths) in alloc_region_table()169 if (unlikely(path_nr >= sctx->nr_paths)) in switch_get_path_nr()200 if (++path_nr >= sctx->nr_paths) in initialise_region_table()212 &sctx->path_list[sctx->nr_paths].dmdev); in parse_path()220 dm_put_device(ti, sctx->path_list[sctx->nr_paths].dmdev); in parse_path()224 sctx->path_list[sctx->nr_paths].start = start; in parse_path()[all …]