Lines Matching refs:bh
50 struct buffer_head *bh;
52 bh = sb_bread(sb, *cur_index);
53 if (bh == NULL)
57 *length = (unsigned char) bh->b_data[*offset];
58 put_bh(bh);
59 bh = sb_bread(sb, ++(*cur_index));
60 if (bh == NULL)
62 *length |= (unsigned char) bh->b_data[0] << 8;
65 *length = (unsigned char) bh->b_data[*offset] |
66 (unsigned char) bh->b_data[*offset + 1] << 8;
70 return bh;
86 struct buffer_head **bh;
92 bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1,
93 sizeof(*bh), GFP_KERNEL);
94 if (bh == NULL)
115 bh[b] = sb_getblk(sb, cur_index);
116 if (bh[b] == NULL)
120 ll_rw_block(READ, b, bh);
128 bh[0] = get_block_length(sb, &cur_index, &offset, &length);
129 if (bh[0] == NULL)
147 bh[b] = sb_getblk(sb, ++cur_index);
148 if (bh[b] == NULL)
152 ll_rw_block(READ, b - 1, bh + 1);
172 wait_on_buffer(bh[k]);
173 if (!buffer_uptodate(bh[k]))
178 put_bh(bh[k++]);
182 msblk->stream.next_in = bh[k]->b_data + offset;
207 put_bh(bh[k++]);
234 wait_on_buffer(bh[i]);
235 if (!buffer_uptodate(bh[i]))
250 bh[k]->b_data + offset, avail);
256 put_bh(bh[k]);
260 kfree(bh);
268 put_bh(bh[k]);
272 kfree(bh);