Lines Matching refs:bh
110 struct buffer_head *bh; in romfs_blk_read() local
118 bh = sb_bread(sb, pos >> ROMBSBITS); in romfs_blk_read()
119 if (!bh) in romfs_blk_read()
121 memcpy(buf, bh->b_data + offset, segment); in romfs_blk_read()
122 brelse(bh); in romfs_blk_read()
137 struct buffer_head *bh; in romfs_blk_strnlen() local
147 bh = sb_bread(sb, pos >> ROMBSBITS); in romfs_blk_strnlen()
148 if (!bh) in romfs_blk_strnlen()
150 buf = bh->b_data + offset; in romfs_blk_strnlen()
152 brelse(bh); in romfs_blk_strnlen()
170 struct buffer_head *bh; in romfs_blk_strcmp() local
179 bh = sb_bread(sb, pos >> ROMBSBITS); in romfs_blk_strcmp()
180 if (!bh) in romfs_blk_strcmp()
182 matched = (memcmp(bh->b_data + offset, str, segment) == 0); in romfs_blk_strcmp()
188 if (!bh->b_data[offset + segment]) in romfs_blk_strcmp()
193 brelse(bh); in romfs_blk_strcmp()
202 bh = sb_bread(sb, pos >> ROMBSBITS); in romfs_blk_strcmp()
203 if (!bh) in romfs_blk_strcmp()
205 matched = !bh->b_data[0]; in romfs_blk_strcmp()
206 brelse(bh); in romfs_blk_strcmp()