Home
last modified time | relevance | path

Searched refs:new_pba (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/usb/storage/
Dsddr55.c318 unsigned int new_pba; in sddr55_write_data() local
469 new_pba = (status[3] + (status[4] << 8) + (status[5] << 16)) in sddr55_write_data()
474 info->pba_to_lba[new_pba] = BAD_BLOCK; in sddr55_write_data()
482 lba, pba, new_pba); in sddr55_write_data()
485 info->lba_to_pba[lba] = new_pba; in sddr55_write_data()
489 if (info->pba_to_lba[new_pba] != UNUSED_BLOCK) { in sddr55_write_data()
491 new_pba, info->pba_to_lba[new_pba]); in sddr55_write_data()
499 info->pba_to_lba[new_pba] = lba % 1000; in sddr55_write_data()
Dalauda.c804 u16 pba, lbap, new_pba; in alauda_write_lba() local
829 new_pba = alauda_find_unused_pba(&MEDIA_INFO(us), zone); in alauda_write_lba()
830 if (!new_pba) { in alauda_write_lba()
883 result = alauda_write_block(us, new_pba, blockbuffer); in alauda_write_lba()
887 new_pba_offset = new_pba - (zone * zonesize); in alauda_write_lba()
889 MEDIA_INFO(us).lba_to_pba[zone][lba_offset] = new_pba; in alauda_write_lba()
890 usb_stor_dbg(us, "Remapped LBA %d to PBA %d\n", lba, new_pba); in alauda_write_lba()
/Linux-v5.4/drivers/memstick/core/
Dms_block.c1114 u16 pba, new_pba; in msb_update_block() local
1127 new_pba = msb_get_free_block(msb, in msb_update_block()
1130 if (new_pba == MS_BLOCK_INVALID) { in msb_update_block()
1136 new_pba); in msb_update_block()
1137 error = msb_write_block(msb, new_pba, lba, sg, offset); in msb_update_block()
1139 msb_mark_bad(msb, new_pba); in msb_update_block()
1148 msb->lba_to_pba_table[lba] = new_pba; in msb_update_block()