Lines Matching refs:buffer
146 const u8 *buffer;
151 buffer = bi->bi_clone;
153 buffer = bi->bi_bh->b_data;
154 buffer += bi->bi_offset;
155 byte = buffer + (rbm->offset / GFS2_NBBY);
214 * gfs2_bitfit - Search an rgrp's bitmap buffer to find a bit-pair representing
216 * @buf: the buffer that holds the bitmaps
217 * @len: the length (in bytes) of the buffer
218 * @goal: start search at this block's bit-pair (within @buffer)
221 * Scope of @goal and returned block number is only within this bitmap buffer,
222 * not entire rgrp or filesystem. @buffer will be offset from the actual
223 * beginning of a bitmap block buffer, skipping any header structures, but
224 * headers are always a multiple of 64 bits long so that the buffer is
227 * The size of the buffer is in bytes, but is it assumed that it is
231 * Return: the block number (bitmap buffer scope) that was found
428 * @buffer: the buffer that holds the bitmaps
429 * @buflen: the length (in bytes) of the buffer
435 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer,
438 const u8 *byte = buffer;
439 const u8 *end = buffer + buflen;
1151 const u8 *buffer = NULL;
1156 buffer = bi->bi_bh->b_data + bi->bi_offset;
1159 goal = gfs2_bitfit(buffer, bi->bi_bytes, goal,
1745 u8 *buffer;
1765 buffer = bh->b_data + bi->bi_offset;
1768 buffer = bi->bi_clone + bi->bi_offset;
1769 offset = gfs2_bitfit(buffer, bi->bi_bytes, rbm->offset, state);
2226 * Add the bitmap buffer to the transaction.