Lines Matching refs:switch_ctx
38 struct switch_ctx { struct
59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths, in alloc_switch_ctx() argument
62 struct switch_ctx *sctx; in alloc_switch_ctx()
64 sctx = kzalloc(sizeof(struct switch_ctx) + nr_paths * sizeof(struct switch_path), in alloc_switch_ctx()
79 struct switch_ctx *sctx = ti->private; in alloc_region_table()
126 static void switch_get_position(struct switch_ctx *sctx, unsigned long region_nr, in switch_get_position()
140 static unsigned switch_region_table_read(struct switch_ctx *sctx, unsigned long region_nr) in switch_region_table_read()
154 static unsigned switch_get_path_nr(struct switch_ctx *sctx, sector_t offset) in switch_get_path_nr()
174 static void switch_region_table_write(struct switch_ctx *sctx, unsigned long region_nr, in switch_region_table_write()
192 static void initialise_region_table(struct switch_ctx *sctx) in initialise_region_table()
206 struct switch_ctx *sctx = ti->private; in parse_path()
235 struct switch_ctx *sctx = ti->private; in switch_dtr()
255 …{1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number o… in switch_ctr()
260 struct switch_ctx *sctx; in switch_ctr()
321 struct switch_ctx *sctx = ti->private; in switch_map()
373 static int process_set_region_mappings(struct switch_ctx *sctx, in process_set_region_mappings()
473 struct switch_ctx *sctx = ti->private; in switch_message()
491 struct switch_ctx *sctx = ti->private; in switch_status()
517 struct switch_ctx *sctx = ti->private; in switch_ioctl()
540 struct switch_ctx *sctx = ti->private; in switch_iterate_devices()