Searched refs:switch_ctx (Results 1 – 1 of 1) sorted by relevance
38 struct switch_ctx { struct59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths, in alloc_switch_ctx() argument62 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()[all …]