Lines Matching refs:i
24 int i; in bt_has_free_tags() local
26 for (i = 0; i < bt->map_nr; i++) { in bt_has_free_tags()
27 struct blk_align_bitmap *bm = &bt->map[i]; in bt_has_free_tags()
76 int i, wake_index; in blk_mq_tag_wakeup_all() local
80 for (i = 0; i < BT_WAIT_QUEUES; i++) { in blk_mq_tag_wakeup_all()
181 int index, i, tag; in __bt_get() local
189 for (i = 0; i < bt->map_nr; i++) { in __bt_get()
319 int i, wake_index; in bt_wake_ptr() local
322 for (i = 0; i < BT_WAIT_QUEUES; i++) { in bt_wake_ptr()
398 int bit, i; in bt_for_each() local
400 for (i = 0; i < bt->map_nr; i++) { in bt_for_each()
401 struct blk_align_bitmap *bm = &bt->map[i]; in bt_for_each()
429 unsigned int i, used; in bt_unused_tags() local
431 for (i = 0, used = 0; i < bt->map_nr; i++) { in bt_unused_tags()
432 struct blk_align_bitmap *bm = &bt->map[i]; in bt_unused_tags()
447 int i; in bt_update_count() local
449 for (i = 0; i < bt->map_nr; i++) { in bt_update_count()
450 bt->map[i].depth = min(map_depth, tags_per_word); in bt_update_count()
451 map_depth -= bt->map[i].depth; in bt_update_count()
465 int i; in bt_alloc() local
509 for (i = 0; i < BT_WAIT_QUEUES; i++) { in bt_alloc()
510 init_waitqueue_head(&bt->bs[i].wait); in bt_alloc()
511 atomic_set(&bt->bs[i].wait_cnt, bt->wake_cnt); in bt_alloc()