Lines Matching refs:bsize
93 unsigned int bsize; member
608 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument
611 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits()
614 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) in nfs_block_bits()
616 bsize = 1 << nrbits; in nfs_block_bits()
621 return bsize; in nfs_block_bits()
637 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument
639 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size()
640 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size()
641 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size()
642 bsize = NFS_MAX_FILE_IO_SIZE; in nfs_block_size()
644 return nfs_block_bits(bsize, nrbitsp); in nfs_block_size()