Lines Matching defs:pos
37 int pos;
40 pos = pblk_ppa_to_pos(&dev->geo, *ppa);
42 pblk_err(pblk, "failed to mark bb, line:%d, pos:%d\n",
43 line->id, pos);
56 int pos = pblk_ppa_to_pos(geo, ppa_addr);
58 pblk_debug(pblk, "erase failed: line:%d, pos:%d\n", line->id, pos);
62 if (test_and_set_bit(pos, line->blk_bitmap))
63 pblk_err(pblk, "attempted to erase bb: line:%d, pos:%d\n",
64 line->id, pos);
85 int pos;
88 pos = pblk_ppa_to_pos(geo, rqd->ppa_addr);
89 chunk = &line->chks[pos];
806 int pos = pblk_ppa_to_pos(geo, ppa);
811 while (test_bit(pos, line->blk_bitmap)) {
819 pos = pblk_ppa_to_pos(geo, ppa);
1143 int pos = pblk_ppa_to_pos(geo, rlun->bppa);
1144 int state = line->chks[pos].state;
1774 int pos = pblk_ppa_to_pos(geo, rlun->bppa);
1775 int state = line->chks[pos].state;
1881 static void __pblk_down_chunk(struct pblk *pblk, int pos)
1883 struct pblk_lun *rlun = &pblk->luns[pos];
1901 int pos = pblk_ppa_to_pos(geo, ppa);
1903 __pblk_down_chunk(pblk, pos);
1911 int pos = pblk_ppa_to_pos(geo, ppa);
1916 if (test_and_set_bit(pos, lun_bitmap))
1919 __pblk_down_chunk(pblk, pos);
1927 int pos = pblk_ppa_to_pos(geo, ppa);
1929 rlun = &pblk->luns[pos];