Lines Matching refs:pba
166 unsigned int pba;
189 pba = info->lba_to_pba[lba];
199 pages, pba, lba, page);
201 if (pba == NOT_ALLOCATED) {
202 /* no pba for this lba, fill with zeroes */
206 address = (pba << info->blockshift) + page;
284 unsigned int pba;
315 pba = info->lba_to_pba[lba];
329 pages, pba, lba, page);
333 if (pba == NOT_ALLOCATED) {
334 /* no pba allocated for this lba, find a free pba to use */
340 /* set pba to first block in zone lba is in */
341 pba = (lba / 1000) * 1024;
354 for (i = 0; i < max_pba; i++, pba++) {
355 if (info->pba_to_lba[pba] == UNUSED_BLOCK) {
356 found_pba = pba;
362 pba = found_pba;
364 if (pba == -1) {
373 US_DEBUGP("Allocating PBA %04X for LBA %04X\n", pba, lba);
379 address = (pba << info->blockshift) + page;
447 lba, pba, new_pba);
449 /* update the lba<->pba maps, note new_pba might be the same as pba */
451 info->pba_to_lba[pba] = UNUSED_BLOCK;
463 /* update the pba<->lba maps for new_pba */
748 unsigned int pba;
899 pba = info->lba_to_pba[lba];
904 pba, lba, page, pages);
910 pba, lba, page, pages);