Lines Matching refs:boff
531 size_t bidx, boff, bsize; in affs_do_read_folio_ofs() local
540 boff = tmp % bsize; in affs_do_read_folio_ofs()
546 tmp = min(bsize - boff, to - pos); in affs_do_read_folio_ofs()
548 memcpy_to_folio(folio, pos, AFFS_DATA(bh) + boff, tmp); in affs_do_read_folio_ofs()
552 boff = 0; in affs_do_read_folio_ofs()
562 u32 bidx, boff; in affs_extent_file_ofs() local
571 boff = size % bsize; in affs_extent_file_ofs()
572 if (boff) { in affs_extent_file_ofs()
576 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs()
577 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs()
578 memset(AFFS_DATA(bh) + boff, 0, tmp); in affs_extent_file_ofs()
695 u32 bidx, boff, bsize; in affs_write_end_ofs() local
717 boff = tmp % bsize; in affs_write_end_ofs()
718 if (boff) { in affs_write_end_ofs()
724 tmp = min(bsize - boff, to - from); in affs_write_end_ofs()
725 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_write_end_ofs()
726 memcpy(AFFS_DATA(bh) + boff, data + from, tmp); in affs_write_end_ofs()