Lines Matching refs:ti

38 	struct dm_target *ti;
54 dm_table_event(sc->ti->table);
73 static int get_stripe(struct dm_target *ti, struct stripe_c *sc,
82 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table),
95 static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
105 ti->error = "Not enough arguments";
110 ti->error = "Invalid stripe count";
115 ti->error = "Invalid chunk_size";
119 width = ti->len;
121 ti->error = "Target length not divisible by "
128 ti->error = "Target length not divisible by "
137 ti->error = "Not enough destinations "
144 ti->error = "Memory allocation for striped context "
152 sc->ti = ti;
161 r = dm_set_target_max_io_len(ti, chunk_size);
167 ti->num_flush_bios = stripes;
168 ti->num_discard_bios = stripes;
169 ti->num_write_same_bios = stripes;
183 r = get_stripe(ti, sc, i, argv);
185 ti->error = "Couldn't parse stripe destination";
187 dm_put_device(ti, sc->stripe[i].dev);
194 ti->private = sc;
199 static void stripe_dtr(struct dm_target *ti)
202 struct stripe_c *sc = (struct stripe_c *) ti->private;
205 dm_put_device(ti, sc->stripe[i].dev);
214 sector_t chunk = dm_target_offset(sc->ti, sector);
281 static int stripe_map(struct dm_target *ti, struct bio *bio)
283 struct stripe_c *sc = ti->private;
322 static void stripe_status(struct dm_target *ti, status_type_t type,
325 struct stripe_c *sc = (struct stripe_c *) ti->private;
352 static int stripe_end_io(struct dm_target *ti, struct bio *bio, int error)
356 struct stripe_c *sc = ti->private;
389 static int stripe_iterate_devices(struct dm_target *ti,
392 struct stripe_c *sc = ti->private;
397 ret = fn(ti, sc->stripe[i].dev,
405 static void stripe_io_hints(struct dm_target *ti,
408 struct stripe_c *sc = ti->private;
415 static int stripe_merge(struct dm_target *ti, struct bvec_merge_data *bvm,
418 struct stripe_c *sc = ti->private;