Lines Matching refs:off
55 static unsigned int ol_dqblk_block(struct super_block *sb, int c, int off) in ol_dqblk_block() argument
59 return ol_quota_chunk_block(sb, c) + 1 + off / epb; in ol_dqblk_block()
62 static unsigned int ol_dqblk_block_off(struct super_block *sb, int c, int off) in ol_dqblk_block_off() argument
66 return (off % epb) * sizeof(struct ocfs2_local_disk_dqblk); in ol_dqblk_block_off()
70 static loff_t ol_dqblk_off(struct super_block *sb, int c, int off) in ol_dqblk_off() argument
72 return (ol_dqblk_block(sb, c, off) << sb->s_blocksize_bits) + in ol_dqblk_off()
73 ol_dqblk_block_off(sb, c, off); in ol_dqblk_off()
77 static inline unsigned int ol_dqblk_file_block(struct super_block *sb, loff_t off) in ol_dqblk_file_block() argument
79 return off >> sb->s_blocksize_bits; in ol_dqblk_file_block()
82 static inline unsigned int ol_dqblk_block_offset(struct super_block *sb, loff_t off) in ol_dqblk_block_offset() argument
84 return off & ((1 << sb->s_blocksize_bits) - 1); in ol_dqblk_block_offset()
88 static int ol_dqblk_chunk_off(struct super_block *sb, int c, loff_t off) in ol_dqblk_chunk_off() argument
92 return ((off >> sb->s_blocksize_bits) - in ol_dqblk_chunk_off()
94 + ((unsigned int)(off & ((1 << sb->s_blocksize_bits) - 1))) / in ol_dqblk_chunk_off()