Lines Matching refs:bio

1987 	struct bio *bio;  in lbmRead()  local
1998 bio = bio_alloc(GFP_NOFS, 1); in lbmRead()
2000 bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9); in lbmRead()
2001 bio->bi_bdev = log->bdev; in lbmRead()
2002 bio->bi_io_vec[0].bv_page = bp->l_page; in lbmRead()
2003 bio->bi_io_vec[0].bv_len = LOGPSIZE; in lbmRead()
2004 bio->bi_io_vec[0].bv_offset = bp->l_offset; in lbmRead()
2006 bio->bi_vcnt = 1; in lbmRead()
2007 bio->bi_iter.bi_size = LOGPSIZE; in lbmRead()
2009 bio->bi_end_io = lbmIODone; in lbmRead()
2010 bio->bi_private = bp; in lbmRead()
2013 bio->bi_iter.bi_size = 0; in lbmRead()
2014 lbmIODone(bio, 0); in lbmRead()
2016 submit_bio(READ_SYNC, bio); in lbmRead()
2140 struct bio *bio; in lbmStartIO() local
2145 bio = bio_alloc(GFP_NOFS, 1); in lbmStartIO()
2146 bio->bi_iter.bi_sector = bp->l_blkno << (log->l2bsize - 9); in lbmStartIO()
2147 bio->bi_bdev = log->bdev; in lbmStartIO()
2148 bio->bi_io_vec[0].bv_page = bp->l_page; in lbmStartIO()
2149 bio->bi_io_vec[0].bv_len = LOGPSIZE; in lbmStartIO()
2150 bio->bi_io_vec[0].bv_offset = bp->l_offset; in lbmStartIO()
2152 bio->bi_vcnt = 1; in lbmStartIO()
2153 bio->bi_iter.bi_size = LOGPSIZE; in lbmStartIO()
2155 bio->bi_end_io = lbmIODone; in lbmStartIO()
2156 bio->bi_private = bp; in lbmStartIO()
2160 bio->bi_iter.bi_size = 0; in lbmStartIO()
2161 lbmIODone(bio, 0); in lbmStartIO()
2163 submit_bio(WRITE_SYNC, bio); in lbmStartIO()
2199 static void lbmIODone(struct bio *bio, int error) in lbmIODone() argument
2201 struct lbuf *bp = bio->bi_private; in lbmIODone()
2215 if (!test_bit(BIO_UPTODATE, &bio->bi_flags)) { in lbmIODone()
2221 bio_put(bio); in lbmIODone()