• Home
  • Raw
  • Download

Lines Matching refs:bl

19 static inline int bio_list_empty(const struct bio_list *bl)  in bio_list_empty()  argument
21 return bl->head == NULL; in bio_list_empty()
24 static inline void bio_list_init(struct bio_list *bl) in bio_list_init() argument
26 bl->head = bl->tail = NULL; in bio_list_init()
29 #define bio_list_for_each(bio, bl) \ argument
30 for (bio = (bl)->head; bio; bio = bio->bi_next)
32 static inline unsigned bio_list_size(const struct bio_list *bl) in bio_list_size() argument
37 bio_list_for_each(bio, bl) in bio_list_size()
43 static inline void bio_list_add(struct bio_list *bl, struct bio *bio) in bio_list_add() argument
47 if (bl->tail) in bio_list_add()
48 bl->tail->bi_next = bio; in bio_list_add()
50 bl->head = bio; in bio_list_add()
52 bl->tail = bio; in bio_list_add()
55 static inline void bio_list_merge(struct bio_list *bl, struct bio_list *bl2) in bio_list_merge() argument
60 if (bl->tail) in bio_list_merge()
61 bl->tail->bi_next = bl2->head; in bio_list_merge()
63 bl->head = bl2->head; in bio_list_merge()
65 bl->tail = bl2->tail; in bio_list_merge()
68 static inline void bio_list_merge_head(struct bio_list *bl, in bio_list_merge_head() argument
74 if (bl->head) in bio_list_merge_head()
75 bl2->tail->bi_next = bl->head; in bio_list_merge_head()
77 bl->tail = bl2->tail; in bio_list_merge_head()
79 bl->head = bl2->head; in bio_list_merge_head()
82 static inline struct bio *bio_list_pop(struct bio_list *bl) in bio_list_pop() argument
84 struct bio *bio = bl->head; in bio_list_pop()
87 bl->head = bl->head->bi_next; in bio_list_pop()
88 if (!bl->head) in bio_list_pop()
89 bl->tail = NULL; in bio_list_pop()
97 static inline struct bio *bio_list_get(struct bio_list *bl) in bio_list_get() argument
99 struct bio *bio = bl->head; in bio_list_get()
101 bl->head = bl->tail = NULL; in bio_list_get()