• Home
  • Raw
  • Download

Lines Matching refs:offset

278 		     _LLU(per_dev->offset), per_dev->length,  in _ore_add_sg_seg()
287 sge->offset = per_dev->offset; in _ore_add_sg_seg()
295 per_dev->offset += cur_len; in _ore_add_sg_seg()
309 next_sge->offset = sge->offset + sge->len + cur_len; in _ore_add_sg_seg()
367 per_dev->offset = si->obj_offset; in _add_to_r4w()
369 } else if (si->obj_offset != (per_dev->offset + per_dev->length)) { in _add_to_r4w()
370 u64 gap = si->obj_offset - (per_dev->offset + per_dev->length); in _add_to_r4w()
393 ore_calc_stripe_info(ios->layout, ios->offset, 0, &si); in _add_to_r4w_first_page()
405 static int _add_to_r4w_last_page(struct ore_io_state *ios, u64 *offset) in _add_to_r4w_last_page() argument
411 ore_calc_stripe_info(ios->layout, *offset, 0, &si); in _add_to_r4w_last_page()
418 *offset += pg_len; in _add_to_r4w_last_page()
421 p, c, _LLU(*offset), pg_len, si.dev, si.par_dev); in _add_to_r4w_last_page()
473 u64 offset = ios->si.first_stripe_start; in _read_4_write_first_stripe() local
476 if (offset == ios->offset) /* Go to start collect $200 */ in _read_4_write_first_stripe()
483 offset, ios->offset, min_p, max_p); in _read_4_write_first_stripe()
486 ore_calc_stripe_info(ios->layout, offset, 0, &read_si); in _read_4_write_first_stripe()
488 offset += min_p * PAGE_SIZE; in _read_4_write_first_stripe()
495 if (ios->offset % PAGE_SIZE) in _read_4_write_first_stripe()
502 *pp = ios->r4w->get_page(ios->private, offset, in _read_4_write_first_stripe()
513 offset += PAGE_SIZE; in _read_4_write_first_stripe()
515 offset += (sp2d->pages_in_unit - p) * PAGE_SIZE; in _read_4_write_first_stripe()
526 u64 offset; in _read_4_write_last_stripe() local
531 offset = ios->offset + ios->length; in _read_4_write_last_stripe()
532 if (offset % PAGE_SIZE) in _read_4_write_last_stripe()
533 _add_to_r4w_last_page(ios, &offset); in _read_4_write_last_stripe()
536 last_stripe_end = div_u64(offset + bytes_in_stripe - 1, bytes_in_stripe) in _read_4_write_last_stripe()
538 if (offset == last_stripe_end) /* Optimize for the aligned case */ in _read_4_write_last_stripe()
541 ore_calc_stripe_info(ios->layout, offset, 0, &read_si); in _read_4_write_last_stripe()
552 offset, last_stripe_end, min_p, max_p); in _read_4_write_last_stripe()
554 while (offset < last_stripe_end) { in _read_4_write_last_stripe()
562 page = ios->r4w->get_page(ios->private, offset, in _read_4_write_last_stripe()
574 offset += PAGE_SIZE; in _read_4_write_last_stripe()
578 ore_calc_stripe_info(ios->layout, offset, 0, &read_si); in _read_4_write_last_stripe()
648 per_dev->offset += si->cur_pg * PAGE_SIZE; in _ore_add_parity_unit()