nr_paths           41 drivers/md/dm-switch.c 	unsigned nr_paths;		/* Number of paths in path_list. */
nr_paths           59 drivers/md/dm-switch.c static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths,
nr_paths           64 drivers/md/dm-switch.c 	sctx = kzalloc(struct_size(sctx, path_list, nr_paths), GFP_KERNEL);
nr_paths           76 drivers/md/dm-switch.c static int alloc_region_table(struct dm_target *ti, unsigned nr_paths)
nr_paths           89 drivers/md/dm-switch.c 	       (region_table_slot_t)1 << sctx->region_table_entry_bits < nr_paths)
nr_paths          168 drivers/md/dm-switch.c 	if (unlikely(path_nr >= sctx->nr_paths))
nr_paths          199 drivers/md/dm-switch.c 		if (++path_nr >= sctx->nr_paths)
nr_paths          211 drivers/md/dm-switch.c 			  &sctx->path_list[sctx->nr_paths].dmdev);
nr_paths          219 drivers/md/dm-switch.c 		dm_put_device(ti, sctx->path_list[sctx->nr_paths].dmdev);
nr_paths          223 drivers/md/dm-switch.c 	sctx->path_list[sctx->nr_paths].start = start;
nr_paths          225 drivers/md/dm-switch.c 	sctx->nr_paths++;
nr_paths          237 drivers/md/dm-switch.c 	while (sctx->nr_paths--)
nr_paths          238 drivers/md/dm-switch.c 		dm_put_device(ti, sctx->path_list[sctx->nr_paths].dmdev);
nr_paths          262 drivers/md/dm-switch.c 	unsigned nr_paths, region_size, nr_optional_args;
nr_paths          268 drivers/md/dm-switch.c 	r = dm_read_arg(_args, &as, &nr_paths, &ti->error);
nr_paths          281 drivers/md/dm-switch.c 	if (as.argc != nr_paths * 2) {
nr_paths          286 drivers/md/dm-switch.c 	sctx = alloc_switch_ctx(ti, nr_paths, region_size);
nr_paths          302 drivers/md/dm-switch.c 	r = alloc_region_table(ti, nr_paths);
nr_paths          453 drivers/md/dm-switch.c 		if (unlikely(path_nr >= sctx->nr_paths)) {
nr_paths          454 drivers/md/dm-switch.c 			DMWARN("invalid set_region_mappings device: %lu >= %u", path_nr, sctx->nr_paths);
nr_paths          502 drivers/md/dm-switch.c 		DMEMIT("%u %u 0", sctx->nr_paths, sctx->region_size);
nr_paths          503 drivers/md/dm-switch.c 		for (path_nr = 0; path_nr < sctx->nr_paths; path_nr++)
nr_paths          540 drivers/md/dm-switch.c 	for (path_nr = 0; path_nr < sctx->nr_paths; path_nr++) {