Lines Matching refs:lba

188 		unsigned int lba,
220 if (lba >= info->max_log_blks)
223 pba = info->lba_to_pba[lba];
232 pages, pba, lba, page);
235 /* no pba for this lba, fill with zeroes */
294 lba++;
307 unsigned int lba,
347 if (lba >= info->max_log_blks)
350 pba = info->lba_to_pba[lba];
363 pages, pba, lba, page);
368 /* no pba allocated for this lba, find a free pba to use */
374 /* set pba to first block in zone lba is in */
375 pba = (lba / 1000) * 1024;
377 usb_stor_dbg(us, "No PBA for LBA %04X\n", lba);
408 pba, lba);
420 /* set the lba into the command, modulo 1000 */
421 command[0] = LSB_of(lba % 1000);
422 command[6] = MSB_of(lba % 1000);
482 lba, pba, new_pba);
484 /* update the lba<->pba maps, note new_pba might be the same as pba */
485 info->lba_to_pba[lba] = new_pba;
498 /* update the pba<->lba maps for new_pba */
499 info->pba_to_lba[new_pba] = lba % 1000;
502 lba++;
646 unsigned short lba;
703 /* set maximum lba */
716 lba = short_pack(buffer[i * 2], buffer[i * 2 + 1]);
736 info->pba_to_lba[i] = lba;
738 if (lba >= max_lba) {
742 if (info->lba_to_pba[lba + zone * 1000] != NOT_ALLOCATED &&
746 lba + zone * 1000);
750 if (lba<0x10 || (lba>=0x3E0 && lba<0x3EF))
751 usb_stor_dbg(us, "LBA %04X <-> PBA %04X\n", lba, i);
753 info->lba_to_pba[lba + zone * 1000] = i;
789 unsigned int lba;
934 lba = page >> info->blockshift;
939 if (lba >= info->max_log_blks) {
942 lba, info->max_log_blks - 1);
949 pba = info->lba_to_pba[lba];
953 pba, lba, page, pages);
955 return sddr55_write_data(us, lba, page, pages);
958 pba, lba, page, pages);
960 return sddr55_read_data(us, lba, page, pages);