Lines Matching defs:switch_ctx
39 struct switch_ctx {
60 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned int nr_paths,
63 struct switch_ctx *sctx;
79 struct switch_ctx *sctx = ti->private;
127 static void switch_get_position(struct switch_ctx *sctx, unsigned long region_nr,
141 static unsigned int switch_region_table_read(struct switch_ctx *sctx, unsigned long region_nr)
155 static unsigned int switch_get_path_nr(struct switch_ctx *sctx, sector_t offset)
175 static void switch_region_table_write(struct switch_ctx *sctx, unsigned long region_nr,
193 static void initialise_region_table(struct switch_ctx *sctx)
207 struct switch_ctx *sctx = ti->private;
236 struct switch_ctx *sctx = ti->private;
256 {1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number of paths"},
261 struct switch_ctx *sctx;
322 struct switch_ctx *sctx = ti->private;
374 static int process_set_region_mappings(struct switch_ctx *sctx,
475 struct switch_ctx *sctx = ti->private;
493 struct switch_ctx *sctx = ti->private;
522 struct switch_ctx *sctx = ti->private;
541 struct switch_ctx *sctx = ti->private;