Lines Matching refs:pba
206 unsigned int pba;
231 pba = info->lba_to_pba[lba];
241 pages, pba, lba, page);
243 if (pba == NOT_ALLOCATED) {
244 /* no pba for this lba, fill with zeroes */
248 address = (pba << info->blockshift) + page;
326 unsigned int pba;
359 pba = info->lba_to_pba[lba];
373 pages, pba, lba, page);
377 if (pba == NOT_ALLOCATED) {
378 /* no pba allocated for this lba, find a free pba to use */
384 /* set pba to first block in zone lba is in */
385 pba = (lba / 1000) * 1024;
398 for (i = 0; i < max_pba; i++, pba++) {
399 if (info->pba_to_lba[pba] == UNUSED_BLOCK) {
400 found_pba = pba;
406 pba = found_pba;
408 if (pba == -1) {
417 US_DEBUGP("Allocating PBA %04X for LBA %04X\n", pba, lba);
423 address = (pba << info->blockshift) + page;
491 lba, pba, new_pba);
493 /* update the lba<->pba maps, note new_pba might be the same as pba */
495 info->pba_to_lba[pba] = UNUSED_BLOCK;
507 /* update the pba<->lba maps for new_pba */
795 unsigned int pba;
946 pba = info->lba_to_pba[lba];
951 pba, lba, page, pages);
957 pba, lba, page, pages);