• Home
  • Raw
  • Download

Lines Matching refs:dev

458 			unsigned dev = per_dev->dev - ios->oc->first_dev;  in ore_check_io()  local
459 struct ore_dev *od = ios->oc->ods[dev]; in ore_check_io()
461 on_dev_error(ios, od, dev, osi.osd_err_pri, in ore_check_io()
569 si->dev = (group_width + group_width + C - RxP) % in ore_calc_stripe_info()
576 si->dev = C; in ore_calc_stripe_info()
579 si->dev *= layout->mirrors_p1; in ore_calc_stripe_info()
599 osd_request_queue(_ios_od(ios, per_dev->dev)); in _ore_add_stripe_unit()
662 unsigned dev, unsigned first_dev, in _add_parity_units() argument
672 per_dev = &ios->per_dev[dev - first_dev]; in _add_parity_units()
678 per_dev->dev = dev; in _add_parity_units()
688 dev = ((dev + mirrors_p1) % devs_in_group) + first_dev; in _add_parity_units()
704 unsigned dev = si->dev; in _prepare_for_striping() local
705 unsigned first_dev = dev - (dev % devs_in_group); in _prepare_for_striping()
719 &ios->per_dev[dev - first_dev]; in _prepare_for_striping()
724 per_dev->dev = dev; in _prepare_for_striping()
725 if (dev == si->dev) { in _prepare_for_striping()
726 WARN_ON(dev == si->par_dev); in _prepare_for_striping()
748 dev = ((dev + mirrors_p1) % devs_in_group) + first_dev; in _prepare_for_striping()
750 if (unlikely((dev == si->par_dev) || (!length && ios->sp2d))) { in _prepare_for_striping()
755 dev = si->par_dev; in _prepare_for_striping()
763 ret = _add_parity_units(ios, si, dev, first_dev, in _prepare_for_striping()
839 unsigned dev = ios->per_dev[cur_comp].dev; in _write_mirror() local
846 for (; cur_comp < last_comp; ++cur_comp, ++dev) { in _write_mirror()
850 or = osd_start_request(_ios_od(ios, dev), GFP_KERNEL); in _write_mirror()
877 per_dev->dev = dev; in _write_mirror()
890 _LLU(per_dev->length), dev); in _write_mirror()
893 per_dev->dev = ios->si.dev + dev; in _write_mirror()
909 _LLU(ios->length), per_dev->dev); in _write_mirror()
914 ios->out_attr_len, dev); in _write_mirror()
968 first_dev = per_dev->dev + first_dev % ios->layout->mirrors_p1; in _ore_read_mirror()
1096 ti->first_group_dev = ti->si.dev - (ti->si.dev % layout->group_width); in _calc_trunk_info()
1134 else if (i < ti.si.dev) /* dev within this group */ in ore_truncate()
1137 else if (i == ti.si.dev) in ore_truncate()