• Home
  • Raw
  • Download

Lines Matching refs:length

238 		      bool is_reading, u64 offset, u64 length,  in ore_get_rw_state()  argument
246 if (layout->parity && length) { in ore_get_rw_state()
254 num_stripes = div_u64_rem(length, stripe_size, &remainder); in ore_get_rw_state()
286 if (length) { in ore_get_rw_state()
287 ore_calc_stripe_info(layout, offset, length, &ios->si); in ore_get_rw_state()
288 ios->length = ios->si.length; in ore_get_rw_state()
289 ios->nr_pages = (ios->length + PAGE_SIZE - 1) / PAGE_SIZE; in ore_get_rw_state()
439 _LLU(per_dev->length)); in ore_check_io()
447 u64 offset = (ios->offset + ios->length) - residual; in ore_check_io()
517 u64 length, struct ore_striping_info *si) in ore_calc_stripe_info() argument
568 si->length = T - H; in ore_calc_stripe_info()
569 if (si->length > length) in ore_calc_stripe_info()
570 si->length = length; in ore_calc_stripe_info()
624 per_dev->length += len; in _ore_add_stripe_unit()
646 u64 length = ios->length; in _prepare_for_striping() local
654 BUG_ON(length > si->length); in _prepare_for_striping()
660 while (length) { in _prepare_for_striping()
665 if (!per_dev->length) { in _prepare_for_striping()
686 if (cur_len >= length) in _prepare_for_striping()
687 cur_len = length; in _prepare_for_striping()
697 length -= cur_len; in _prepare_for_striping()
700 if (unlikely((dev == si->par_dev) || (!length && ios->sp2d))) { in _prepare_for_striping()
701 if (!length && ios->sp2d) { in _prepare_for_striping()
711 cur_len = length; in _prepare_for_striping()
713 if (!per_dev->length) { in _prepare_for_striping()
798 if (ios->pages && !master_dev->length) in _write_mirror()
831 per_dev->length = master_dev->length; in _write_mirror()
841 per_dev->offset, bio, per_dev->length); in _write_mirror()
846 _LLU(per_dev->length), dev); in _write_mirror()
853 (ios->si.unit_off + ios->length > in _write_mirror()
858 ios->kern_buff, ios->length); in _write_mirror()
865 _LLU(ios->length), per_dev->dev); in _write_mirror()
921 if (ios->pages && !per_dev->length) in _ore_read_mirror()
944 per_dev->bio, per_dev->length); in _ore_read_mirror()
949 _LLU(per_dev->offset), _LLU(per_dev->length), in _ore_read_mirror()