Lines Matching refs:tr

129 static void g_raid_tr_raid1_rebuild_abort(struct g_raid_tr_object *tr);
130 static void g_raid_tr_raid1_maybe_rebuild(struct g_raid_tr_object *tr,
134 g_raid_tr_taste_raid1(struct g_raid_tr_object *tr, struct g_raid_volume *vol) in g_raid_tr_taste_raid1() argument
138 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_taste_raid1()
139 if (tr->tro_volume->v_raid_level != G_RAID_VOLUME_RL_RAID1 || in g_raid_tr_taste_raid1()
140 (tr->tro_volume->v_raid_level_qualifier != G_RAID_VOLUME_RLQ_R1SM && in g_raid_tr_taste_raid1()
141 tr->tro_volume->v_raid_level_qualifier != G_RAID_VOLUME_RLQ_R1MM)) in g_raid_tr_taste_raid1()
239 g_raid_tr_raid1_rebuild_some(struct g_raid_tr_object *tr) in g_raid_tr_raid1_rebuild_some() argument
245 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_raid1_rebuild_some()
251 g_raid_tr_raid1_rebuild_abort(tr); in g_raid_tr_raid1_rebuild_some()
288 g_raid_tr_raid1_rebuild_finish(struct g_raid_tr_object *tr) in g_raid_tr_raid1_rebuild_finish() argument
293 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_raid1_rebuild_finish()
295 G_RAID_DEBUG1(0, tr->tro_volume->v_softc, in g_raid_tr_raid1_rebuild_finish()
305 g_raid_tr_raid1_rebuild_abort(struct g_raid_tr_object *tr) in g_raid_tr_raid1_rebuild_abort() argument
312 vol = tr->tro_volume; in g_raid_tr_raid1_rebuild_abort()
313 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_raid1_rebuild_abort()
331 g_raid_unlock_range(tr->tro_volume, in g_raid_tr_raid1_rebuild_abort()
339 g_raid_tr_raid1_rebuild_start(struct g_raid_tr_object *tr) in g_raid_tr_raid1_rebuild_start() argument
345 vol = tr->tro_volume; in g_raid_tr_raid1_rebuild_start()
346 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_raid1_rebuild_start()
398 g_raid_tr_raid1_rebuild_some(tr); in g_raid_tr_raid1_rebuild_start()
402 g_raid_tr_raid1_maybe_rebuild(struct g_raid_tr_object *tr, in g_raid_tr_raid1_maybe_rebuild() argument
415 vol = tr->tro_volume; in g_raid_tr_raid1_maybe_rebuild()
416 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_raid1_maybe_rebuild()
433 g_raid_tr_raid1_rebuild_start(tr); in g_raid_tr_raid1_maybe_rebuild()
437 g_raid_tr_raid1_rebuild_abort(tr); in g_raid_tr_raid1_maybe_rebuild()
445 g_raid_tr_event_raid1(struct g_raid_tr_object *tr, in g_raid_tr_event_raid1() argument
449 g_raid_tr_update_state_raid1(tr->tro_volume, sd); in g_raid_tr_event_raid1()
454 g_raid_tr_start_raid1(struct g_raid_tr_object *tr) in g_raid_tr_start_raid1() argument
459 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_start_raid1()
460 vol = tr->tro_volume; in g_raid_tr_start_raid1()
467 g_raid_tr_stop_raid1(struct g_raid_tr_object *tr) in g_raid_tr_stop_raid1() argument
472 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_stop_raid1()
473 vol = tr->tro_volume; in g_raid_tr_stop_raid1()
523 g_raid_tr_iostart_raid1_read(struct g_raid_tr_object *tr, struct bio *bp) in g_raid_tr_iostart_raid1_read() argument
528 sd = g_raid_tr_raid1_select_read_disk(tr->tro_volume, bp, 0); in g_raid_tr_iostart_raid1_read()
530 tr->tro_volume->v_name)); in g_raid_tr_iostart_raid1_read()
542 g_raid_tr_iostart_raid1_write(struct g_raid_tr_object *tr, struct bio *bp) in g_raid_tr_iostart_raid1_write() argument
550 vol = tr->tro_volume; in g_raid_tr_iostart_raid1_write()
604 g_raid_tr_iostart_raid1(struct g_raid_tr_object *tr, struct bio *bp) in g_raid_tr_iostart_raid1() argument
609 vol = tr->tro_volume; in g_raid_tr_iostart_raid1()
610 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_iostart_raid1()
629 g_raid_tr_raid1_rebuild_some(tr); in g_raid_tr_iostart_raid1()
634 g_raid_tr_iostart_raid1_read(tr, bp); in g_raid_tr_iostart_raid1()
638 g_raid_tr_iostart_raid1_write(tr, bp); in g_raid_tr_iostart_raid1()
642 g_raid_tr_flush_common(tr, bp); in g_raid_tr_iostart_raid1()
652 g_raid_tr_iodone_raid1(struct g_raid_tr_object *tr, in g_raid_tr_iodone_raid1() argument
663 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_iodone_raid1()
664 vol = tr->tro_volume; in g_raid_tr_iodone_raid1()
685 g_raid_tr_raid1_rebuild_abort(tr); in g_raid_tr_iodone_raid1()
727 g_raid_tr_raid1_rebuild_abort(tr); in g_raid_tr_iodone_raid1()
737 g_raid_tr_raid1_rebuild_finish(tr); in g_raid_tr_iodone_raid1()
744 g_raid_tr_raid1_rebuild_abort(tr); in g_raid_tr_iodone_raid1()
757 g_raid_tr_raid1_rebuild_some(tr); in g_raid_tr_iodone_raid1()
899 g_raid_tr_kerneldump_raid1(struct g_raid_tr_object *tr, void *virtual, in g_raid_tr_kerneldump_raid1() argument
906 vol = tr->tro_volume; in g_raid_tr_kerneldump_raid1()
943 g_raid_tr_locked_raid1(struct g_raid_tr_object *tr, void *argp) in g_raid_tr_locked_raid1() argument
956 g_raid_tr_idle_raid1(struct g_raid_tr_object *tr) in g_raid_tr_idle_raid1() argument
960 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_idle_raid1()
964 g_raid_tr_raid1_rebuild_some(tr); in g_raid_tr_idle_raid1()
969 g_raid_tr_free_raid1(struct g_raid_tr_object *tr) in g_raid_tr_free_raid1() argument
973 trs = (struct g_raid_tr_raid1_object *)tr; in g_raid_tr_free_raid1()