Searched refs:switch_ctx (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-switch.c | 38 struct switch_ctx { struct 59 static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned nr_paths, in alloc_switch_ctx() 62 struct switch_ctx *sctx; in alloc_switch_ctx() 78 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 *sct in parse_path() [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-switch.c | 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() 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 *sct in parse_path() [all...] |
Completed in 2 milliseconds