Lines Matching defs:switch_ctx
38 struct switch_ctx {
59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths,
62 struct switch_ctx *sctx;
78 struct switch_ctx *sctx = ti->private;
126 static void switch_get_position(struct switch_ctx *sctx, unsigned long region_nr,
140 static unsigned switch_region_table_read(struct switch_ctx *sctx, unsigned long region_nr)
154 static unsigned switch_get_path_nr(struct switch_ctx *sctx, sector_t offset)
174 static void switch_region_table_write(struct switch_ctx *sctx, unsigned long region_nr,
192 static void initialise_region_table(struct switch_ctx *sctx)
206 struct switch_ctx *sctx = ti->private;
235 struct switch_ctx *sctx = ti->private;
255 {1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number of paths"},
260 struct switch_ctx *sctx;
321 struct switch_ctx *sctx = ti->private;
373 static int process_set_region_mappings(struct switch_ctx *sctx,
474 struct switch_ctx *sctx = ti->private;
492 struct switch_ctx *sctx = ti->private;
517 struct switch_ctx *sctx = ti->private;
536 struct switch_ctx *sctx = ti->private;