Lines Matching refs:ti

39 	struct dm_target *ti;
55 dm_table_event(sc->ti->table);
61 static int get_stripe(struct dm_target *ti, struct stripe_c *sc,
71 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table),
85 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
95 ti->error = "Not enough arguments";
100 ti->error = "Invalid stripe count";
105 ti->error = "Invalid chunk_size";
109 width = ti->len;
111 ti->error = "Target length not divisible by "
118 ti->error = "Target length not divisible by "
127 ti->error = "Not enough destinations "
134 ti->error = "Memory allocation for striped context "
142 sc->ti = ti;
151 r = dm_set_target_max_io_len(ti, chunk_size);
157 ti->num_flush_bios = stripes;
158 ti->num_discard_bios = stripes;
159 ti->num_secure_erase_bios = stripes;
160 ti->num_write_same_bios = stripes;
161 ti->num_write_zeroes_bios = stripes;
175 r = get_stripe(ti, sc, i, argv);
177 ti->error = "Couldn't parse stripe destination";
179 dm_put_device(ti, sc->stripe[i].dev);
186 ti->private = sc;
191 static void stripe_dtr(struct dm_target *ti)
194 struct stripe_c *sc = (struct stripe_c *) ti->private;
197 dm_put_device(ti, sc->stripe[i].dev);
206 sector_t chunk = dm_target_offset(sc->ti, sector);
273 static int stripe_map(struct dm_target *ti, struct bio *bio)
275 struct stripe_c *sc = ti->private;
304 static long stripe_dax_direct_access(struct dm_target *ti, pgoff_t pgoff,
308 struct stripe_c *sc = ti->private;
325 static size_t stripe_dax_copy_from_iter(struct dm_target *ti, pgoff_t pgoff,
329 struct stripe_c *sc = ti->private;
344 static size_t stripe_dax_copy_to_iter(struct dm_target *ti, pgoff_t pgoff,
348 struct stripe_c *sc = ti->private;
363 static int stripe_dax_zero_page_range(struct dm_target *ti, pgoff_t pgoff,
368 struct stripe_c *sc = ti->private;
404 static void stripe_status(struct dm_target *ti, status_type_t type,
407 struct stripe_c *sc = (struct stripe_c *) ti->private;
434 static int stripe_end_io(struct dm_target *ti, struct bio *bio,
439 struct stripe_c *sc = ti->private;
470 static int stripe_iterate_devices(struct dm_target *ti,
473 struct stripe_c *sc = ti->private;
478 ret = fn(ti, sc->stripe[i].dev,
486 static void stripe_io_hints(struct dm_target *ti,
489 struct stripe_c *sc = ti->private;