Lines Matching refs:switch_ctx

39 struct switch_ctx {  struct
60 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned int nr_paths, in alloc_switch_ctx() argument
63 struct switch_ctx *sctx; in alloc_switch_ctx()
79 struct switch_ctx *sctx = ti->private; in alloc_region_table()
127 static void switch_get_position(struct switch_ctx *sctx, unsigned long region_nr, in switch_get_position()
141 static unsigned int switch_region_table_read(struct switch_ctx *sctx, unsigned long region_nr) in switch_region_table_read()
155 static unsigned int switch_get_path_nr(struct switch_ctx *sctx, sector_t offset) in switch_get_path_nr()
175 static void switch_region_table_write(struct switch_ctx *sctx, unsigned long region_nr, in switch_region_table_write()
193 static void initialise_region_table(struct switch_ctx *sctx) in initialise_region_table()
207 struct switch_ctx *sctx = ti->private; in parse_path()
236 struct switch_ctx *sctx = ti->private; in switch_dtr()
256 …{1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number o… in switch_ctr()
261 struct switch_ctx *sctx; in switch_ctr()
322 struct switch_ctx *sctx = ti->private; in switch_map()
374 static int process_set_region_mappings(struct switch_ctx *sctx, in process_set_region_mappings()
475 struct switch_ctx *sctx = ti->private; in switch_message()
493 struct switch_ctx *sctx = ti->private; in switch_status()
522 struct switch_ctx *sctx = ti->private; in switch_prepare_ioctl()
541 struct switch_ctx *sctx = ti->private; in switch_iterate_devices()