Lines Matching refs:bsize
530 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local
536 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs()
538 bidx = tmp / bsize; in affs_do_readpage_ofs()
539 boff = tmp % bsize; in affs_do_readpage_ofs()
545 tmp = min(bsize - boff, to - pos); in affs_do_readpage_ofs()
546 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_readpage_ofs()
565 u32 size, bsize; in affs_extent_file_ofs() local
569 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs()
572 bidx = size / bsize; in affs_extent_file_ofs()
573 boff = size % bsize; in affs_extent_file_ofs()
578 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs()
579 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs()
597 tmp = min(bsize, newsize - size); in affs_extent_file_ofs()
598 BUG_ON(tmp > bsize); in affs_extent_file_ofs()
618 size += bsize; in affs_extent_file_ofs()
697 u32 bidx, boff, bsize; in affs_write_end_ofs() local
712 bsize = AFFS_SB(sb)->s_data_blksize; in affs_write_end_ofs()
718 bidx = tmp / bsize; in affs_write_end_ofs()
719 boff = tmp % bsize; in affs_write_end_ofs()
726 tmp = min(bsize - boff, to - from); in affs_write_end_ofs()
727 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_write_end_ofs()
742 while (from + bsize <= to) { in affs_write_end_ofs()
747 memcpy(AFFS_DATA(bh), data + from, bsize); in affs_write_end_ofs()
752 AFFS_DATA_HEAD(bh)->size = cpu_to_be32(bsize); in affs_write_end_ofs()
770 written += bsize; in affs_write_end_ofs()
771 from += bsize; in affs_write_end_ofs()
779 tmp = min(bsize, to - from); in affs_write_end_ofs()
780 BUG_ON(tmp > bsize); in affs_write_end_ofs()