Lines Matching refs:bip
2139 struct bio **bip;
2151 bip = &sh->dev[dd_idx].towrite;
2152 if (*bip == NULL && sh->dev[dd_idx].written == NULL)
2155 bip = &sh->dev[dd_idx].toread;
2156 while (*bip && (*bip)->bi_sector < bi->bi_sector) {
2157 if ((*bip)->bi_sector + ((*bip)->bi_size >> 9) > bi->bi_sector)
2159 bip = & (*bip)->bi_next;
2161 if (*bip && (*bip)->bi_sector < bi->bi_sector + ((bi->bi_size)>>9))
2164 BUG_ON(*bip && bi->bi_next && (*bip) != bi->bi_next);
2165 if (*bip)
2166 bi->bi_next = *bip;
2167 *bip = bi;