Lines Matching defs:lba

195 		unsigned int lba,
227 if (lba >= info->max_log_blks)
230 pba = info->lba_to_pba[lba];
239 pages, pba, lba, page);
242 /* no pba for this lba, fill with zeroes */
301 lba++;
314 unsigned int lba,
354 if (lba >= info->max_log_blks)
357 pba = info->lba_to_pba[lba];
370 pages, pba, lba, page);
375 /* no pba allocated for this lba, find a free pba to use */
381 /* set pba to first block in zone lba is in */
382 pba = (lba / 1000) * 1024;
384 usb_stor_dbg(us, "No PBA for LBA %04X\n", lba);
415 pba, lba);
427 /* set the lba into the command, modulo 1000 */
428 command[0] = LSB_of(lba % 1000);
429 command[6] = MSB_of(lba % 1000);
489 lba, pba, new_pba);
491 /* update the lba<->pba maps, note new_pba might be the same as pba */
492 info->lba_to_pba[lba] = new_pba;
505 /* update the pba<->lba maps for new_pba */
506 info->pba_to_lba[new_pba] = lba % 1000;
509 lba++;
652 unsigned short lba;
709 /* set maximum lba */
720 lba = short_pack(buffer[i * 2], buffer[i * 2 + 1]);
738 info->pba_to_lba[i] = lba;
740 if (lba >= max_lba) {
744 if (info->lba_to_pba[lba + zone * 1000] != NOT_ALLOCATED &&
748 lba + zone * 1000);
752 if (lba<0x10 || (lba>=0x3E0 && lba<0x3EF))
753 usb_stor_dbg(us, "LBA %04X <-> PBA %04X\n", lba, i);
755 info->lba_to_pba[lba + zone * 1000] = i;
791 unsigned int lba;
927 lba = page >> info->blockshift;
932 if (lba >= info->max_log_blks) {
935 lba, info->max_log_blks - 1);
942 pba = info->lba_to_pba[lba];
946 pba, lba, page, pages);
948 return sddr55_write_data(us, lba, page, pages);
951 pba, lba, page, pages);
953 return sddr55_read_data(us, lba, page, pages);