• Home
  • Raw
  • Download

Lines Matching refs:bl

491 static inline int bio_list_empty(const struct bio_list *bl)  in bio_list_empty()  argument
493 return bl->head == NULL; in bio_list_empty()
496 static inline void bio_list_init(struct bio_list *bl) in bio_list_init() argument
498 bl->head = bl->tail = NULL; in bio_list_init()
503 #define bio_list_for_each(bio, bl) \ argument
504 for (bio = (bl)->head; bio; bio = bio->bi_next)
506 static inline unsigned bio_list_size(const struct bio_list *bl) in bio_list_size() argument
511 bio_list_for_each(bio, bl) in bio_list_size()
517 static inline void bio_list_add(struct bio_list *bl, struct bio *bio) in bio_list_add() argument
521 if (bl->tail) in bio_list_add()
522 bl->tail->bi_next = bio; in bio_list_add()
524 bl->head = bio; in bio_list_add()
526 bl->tail = bio; in bio_list_add()
529 static inline void bio_list_add_head(struct bio_list *bl, struct bio *bio) in bio_list_add_head() argument
531 bio->bi_next = bl->head; in bio_list_add_head()
533 bl->head = bio; in bio_list_add_head()
535 if (!bl->tail) in bio_list_add_head()
536 bl->tail = bio; in bio_list_add_head()
539 static inline void bio_list_merge(struct bio_list *bl, struct bio_list *bl2) in bio_list_merge() argument
544 if (bl->tail) in bio_list_merge()
545 bl->tail->bi_next = bl2->head; in bio_list_merge()
547 bl->head = bl2->head; in bio_list_merge()
549 bl->tail = bl2->tail; in bio_list_merge()
552 static inline void bio_list_merge_init(struct bio_list *bl, in bio_list_merge_init() argument
555 bio_list_merge(bl, bl2); in bio_list_merge_init()
559 static inline void bio_list_merge_head(struct bio_list *bl, in bio_list_merge_head() argument
565 if (bl->head) in bio_list_merge_head()
566 bl2->tail->bi_next = bl->head; in bio_list_merge_head()
568 bl->tail = bl2->tail; in bio_list_merge_head()
570 bl->head = bl2->head; in bio_list_merge_head()
573 static inline struct bio *bio_list_peek(struct bio_list *bl) in bio_list_peek() argument
575 return bl->head; in bio_list_peek()
578 static inline struct bio *bio_list_pop(struct bio_list *bl) in bio_list_pop() argument
580 struct bio *bio = bl->head; in bio_list_pop()
583 bl->head = bl->head->bi_next; in bio_list_pop()
584 if (!bl->head) in bio_list_pop()
585 bl->tail = NULL; in bio_list_pop()
593 static inline struct bio *bio_list_get(struct bio_list *bl) in bio_list_get() argument
595 struct bio *bio = bl->head; in bio_list_get()
597 bl->head = bl->tail = NULL; in bio_list_get()