• Home
  • Raw
  • Download

Lines Matching refs:bl

581 static inline int bio_list_empty(const struct bio_list *bl)  in bio_list_empty()  argument
583 return bl->head == NULL; in bio_list_empty()
586 static inline void bio_list_init(struct bio_list *bl) in bio_list_init() argument
588 bl->head = bl->tail = NULL; in bio_list_init()
593 #define bio_list_for_each(bio, bl) \ argument
594 for (bio = (bl)->head; bio; bio = bio->bi_next)
596 static inline unsigned bio_list_size(const struct bio_list *bl) in bio_list_size() argument
601 bio_list_for_each(bio, bl) in bio_list_size()
607 static inline void bio_list_add(struct bio_list *bl, struct bio *bio) in bio_list_add() argument
611 if (bl->tail) in bio_list_add()
612 bl->tail->bi_next = bio; in bio_list_add()
614 bl->head = bio; in bio_list_add()
616 bl->tail = bio; in bio_list_add()
619 static inline void bio_list_add_head(struct bio_list *bl, struct bio *bio) in bio_list_add_head() argument
621 bio->bi_next = bl->head; in bio_list_add_head()
623 bl->head = bio; in bio_list_add_head()
625 if (!bl->tail) in bio_list_add_head()
626 bl->tail = bio; in bio_list_add_head()
629 static inline void bio_list_merge(struct bio_list *bl, struct bio_list *bl2) in bio_list_merge() argument
634 if (bl->tail) in bio_list_merge()
635 bl->tail->bi_next = bl2->head; in bio_list_merge()
637 bl->head = bl2->head; in bio_list_merge()
639 bl->tail = bl2->tail; in bio_list_merge()
642 static inline void bio_list_merge_head(struct bio_list *bl, in bio_list_merge_head() argument
648 if (bl->head) in bio_list_merge_head()
649 bl2->tail->bi_next = bl->head; in bio_list_merge_head()
651 bl->tail = bl2->tail; in bio_list_merge_head()
653 bl->head = bl2->head; in bio_list_merge_head()
656 static inline struct bio *bio_list_peek(struct bio_list *bl) in bio_list_peek() argument
658 return bl->head; in bio_list_peek()
661 static inline struct bio *bio_list_pop(struct bio_list *bl) in bio_list_pop() argument
663 struct bio *bio = bl->head; in bio_list_pop()
666 bl->head = bl->head->bi_next; in bio_list_pop()
667 if (!bl->head) in bio_list_pop()
668 bl->tail = NULL; in bio_list_pop()
676 static inline struct bio *bio_list_get(struct bio_list *bl) in bio_list_get() argument
678 struct bio *bio = bl->head; in bio_list_get()
680 bl->head = bl->tail = NULL; in bio_list_get()