Lines Matching refs:buffer
128 const u8 *buffer;
133 buffer = bi->bi_clone;
135 buffer = bi->bi_bh->b_data;
136 buffer += bi->bi_offset;
137 byte = buffer + (rbm->offset / GFS2_NBBY);
198 * gfs2_bitfit - Search an rgrp's bitmap buffer to find a bit-pair representing
200 * @buf: the buffer that holds the bitmaps
201 * @len: the length (in bytes) of the buffer
202 * @goal: start search at this block's bit-pair (within @buffer)
205 * Scope of @goal and returned block number is only within this bitmap buffer,
206 * not entire rgrp or filesystem. @buffer will be offset from the actual
207 * beginning of a bitmap block buffer, skipping any header structures, but
208 * headers are always a multiple of 64 bits long so that the buffer is
211 * The size of the buffer is in bytes, but is it assumed that it is
215 * Return: the block number (bitmap buffer scope) that was found
402 * @buffer: the buffer that holds the bitmaps
403 * @buflen: the length (in bytes) of the buffer
409 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer,
412 const u8 *byte = buffer;
413 const u8 *end = buffer + buflen;
1134 const u8 *buffer = NULL;
1139 buffer = bi->bi_bh->b_data + bi->bi_offset;
1142 goal = gfs2_bitfit(buffer, bi->bi_bytes, goal,
1707 u8 *buffer;
1727 buffer = bh->b_data + bi->bi_offset;
1730 buffer = bi->bi_clone + bi->bi_offset;
1731 offset = gfs2_bitfit(buffer, bi->bi_bytes, rbm->offset, state);
2152 * Add the bitmap buffer to the transaction.