Lines Matching defs:bip
1241 struct bio **bip;
1253 bip = &sh->dev[dd_idx].towrite;
1254 if (*bip == NULL && sh->dev[dd_idx].written == NULL)
1257 bip = &sh->dev[dd_idx].toread;
1258 while (*bip && (*bip)->bi_sector < bi->bi_sector) {
1259 if ((*bip)->bi_sector + ((*bip)->bi_size >> 9) > bi->bi_sector)
1261 bip = & (*bip)->bi_next;
1263 if (*bip && (*bip)->bi_sector < bi->bi_sector + ((bi->bi_size)>>9))
1266 BUG_ON(*bip && bi->bi_next && (*bip) != bi->bi_next);
1267 if (*bip)
1268 bi->bi_next = *bip;
1269 *bip = bi;