path_nr 156 drivers/md/dm-switch.c unsigned path_nr; path_nr 165 drivers/md/dm-switch.c path_nr = switch_region_table_read(sctx, p); path_nr 168 drivers/md/dm-switch.c if (unlikely(path_nr >= sctx->nr_paths)) path_nr 169 drivers/md/dm-switch.c path_nr = 0; path_nr 171 drivers/md/dm-switch.c return path_nr; path_nr 194 drivers/md/dm-switch.c unsigned path_nr = 0; path_nr 198 drivers/md/dm-switch.c switch_region_table_write(sctx, region_nr, path_nr); path_nr 199 drivers/md/dm-switch.c if (++path_nr >= sctx->nr_paths) path_nr 200 drivers/md/dm-switch.c path_nr = 0; path_nr 323 drivers/md/dm-switch.c unsigned path_nr = switch_get_path_nr(sctx, offset); path_nr 325 drivers/md/dm-switch.c bio_set_dev(bio, sctx->path_list[path_nr].dmdev->bdev); path_nr 326 drivers/md/dm-switch.c bio->bi_iter.bi_sector = sctx->path_list[path_nr].start + offset; path_nr 380 drivers/md/dm-switch.c unsigned long path_nr; path_nr 421 drivers/md/dm-switch.c path_nr = switch_region_table_read(sctx, region_index - cycle_length); path_nr 422 drivers/md/dm-switch.c switch_region_table_write(sctx, region_index, path_nr); path_nr 444 drivers/md/dm-switch.c path_nr = parse_hex(&string); path_nr 453 drivers/md/dm-switch.c if (unlikely(path_nr >= sctx->nr_paths)) { path_nr 454 drivers/md/dm-switch.c DMWARN("invalid set_region_mappings device: %lu >= %u", path_nr, sctx->nr_paths); path_nr 458 drivers/md/dm-switch.c switch_region_table_write(sctx, region_index, path_nr); path_nr 494 drivers/md/dm-switch.c int path_nr; path_nr 503 drivers/md/dm-switch.c for (path_nr = 0; path_nr < sctx->nr_paths; path_nr++) path_nr 504 drivers/md/dm-switch.c DMEMIT(" %s %llu", sctx->path_list[path_nr].dmdev->name, path_nr 505 drivers/md/dm-switch.c (unsigned long long)sctx->path_list[path_nr].start); path_nr 518 drivers/md/dm-switch.c unsigned path_nr; path_nr 520 drivers/md/dm-switch.c path_nr = switch_get_path_nr(sctx, 0); path_nr 522 drivers/md/dm-switch.c *bdev = sctx->path_list[path_nr].dmdev->bdev; path_nr 527 drivers/md/dm-switch.c if (ti->len + sctx->path_list[path_nr].start != path_nr 537 drivers/md/dm-switch.c int path_nr; path_nr 540 drivers/md/dm-switch.c for (path_nr = 0; path_nr < sctx->nr_paths; path_nr++) { path_nr 541 drivers/md/dm-switch.c r = fn(ti, sctx->path_list[path_nr].dmdev, path_nr 542 drivers/md/dm-switch.c sctx->path_list[path_nr].start, ti->len, data);