Lines Matching refs:rbh
394 struct buffer_head *rbh = bh->b_private; in loop_end_io_transfer() local
396 rbh->b_end_io(rbh, uptodate); in loop_end_io_transfer()
405 struct buffer_head *rbh) in loop_get_buffer() argument
413 bh = rbh; in loop_get_buffer()
428 bh->b_size = rbh->b_size; in loop_get_buffer()
429 bh->b_dev = rbh->b_rdev; in loop_get_buffer()
449 bh->b_private = rbh; in loop_get_buffer()
453 bh->b_rsector = rbh->b_rsector + (lo->lo_offset >> 9); in loop_get_buffer()
461 static int loop_make_request(request_queue_t *q, int rw, struct buffer_head *rbh) in loop_make_request() argument
467 if (!buffer_locked(rbh)) in loop_make_request()
470 if (MINOR(rbh->b_rdev) >= max_loop) in loop_make_request()
473 lo = &loop_dev[MINOR(rbh->b_rdev)]; in loop_make_request()
490 rbh = blk_queue_bounce(q, rw, rbh); in loop_make_request()
501 set_bit(BH_Dirty, &rbh->b_state); in loop_make_request()
502 loop_add_bh(lo, rbh); in loop_make_request()
509 bh = loop_get_buffer(lo, rbh); in loop_make_request()
510 IV = loop_get_iv(lo, rbh->b_rsector); in loop_make_request()
513 if (lo_do_transfer(lo, WRITE, bh->b_data, rbh->b_data, in loop_make_request()
526 buffer_IO_error(rbh); in loop_make_request()
546 struct buffer_head *rbh = bh->b_private; in loop_handle_bh() local
547 unsigned long IV = loop_get_iv(lo, rbh->b_rsector); in loop_handle_bh()
549 ret = lo_do_transfer(lo, READ, bh->b_data, rbh->b_data, in loop_handle_bh()
552 rbh->b_end_io(rbh, !ret); in loop_handle_bh()