Lines Matching refs:bbuf

205 		       size_t bit, struct bmp_buf *bbuf)  in bmp_buf_get()  argument
217 bbuf->bh = NULL; in bmp_buf_get()
220 &vcn, &bbuf->mi); in bmp_buf_get()
221 bbuf->b = b; in bmp_buf_get()
231 bbuf->buf = (ulong *)resident_data(b); in bmp_buf_get()
232 bbuf->bit = 0; in bmp_buf_get()
233 bbuf->nbits = data_size * 8; in bmp_buf_get()
253 bbuf->bh = bh; in bmp_buf_get()
265 bbuf->new_valid = vbo + blocksize; in bmp_buf_get()
266 if (bbuf->new_valid <= valid_size) in bmp_buf_get()
267 bbuf->new_valid = 0; in bmp_buf_get()
268 else if (bbuf->new_valid > data_size) in bmp_buf_get()
269 bbuf->new_valid = data_size; in bmp_buf_get()
279 bbuf->buf = (ulong *)bh->b_data; in bmp_buf_get()
280 bbuf->bit = 8 * (off & ~(size_t)sbi->block_mask); in bmp_buf_get()
281 bbuf->nbits = 8 * blocksize; in bmp_buf_get()
286 static void bmp_buf_put(struct bmp_buf *bbuf, bool dirty) in bmp_buf_put() argument
288 struct buffer_head *bh = bbuf->bh; in bmp_buf_put()
289 struct ATTRIB *b = bbuf->b; in bmp_buf_put()
293 bbuf->mi->dirty = true; in bmp_buf_put()
300 if (bbuf->new_valid) { in bmp_buf_put()
301 b->nres.valid_size = cpu_to_le64(bbuf->new_valid); in bmp_buf_put()
302 bbuf->mi->dirty = true; in bmp_buf_put()
320 struct bmp_buf bbuf; in indx_mark_used() local
322 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_used()
326 __set_bit_le(bit - bbuf.bit, bbuf.buf); in indx_mark_used()
328 bmp_buf_put(&bbuf, true); in indx_mark_used()
340 struct bmp_buf bbuf; in indx_mark_free() local
342 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_free()
346 __clear_bit_le(bit - bbuf.bit, bbuf.buf); in indx_mark_free()
348 bmp_buf_put(&bbuf, true); in indx_mark_free()