• Home
  • Raw
  • Download

Lines Matching refs:lba

738 	unsigned int lba, maxlba, pba;  in sddr09_read_data()  local
745 lba = address >> info->blockshift; in sddr09_read_data()
748 if (lba >= maxlba) in sddr09_read_data()
774 if (lba >= maxlba) { in sddr09_read_data()
776 lba, maxlba); in sddr09_read_data()
782 pba = info->lba_to_pba[lba]; in sddr09_read_data()
787 pages, lba, page); in sddr09_read_data()
800 pages, pba, lba, page); in sddr09_read_data()
816 lba++; in sddr09_read_data()
825 sddr09_find_unused_pba(struct sddr09_card_info *info, unsigned int lba) { in sddr09_find_unused_pba() argument
829 zonestart = (lba/1000) << 10; in sddr09_find_unused_pba()
851 sddr09_write_lba(struct us_data *us, unsigned int lba, in sddr09_write_lba() argument
863 lbap = ((lba % 1000) << 1) | 0x1000; in sddr09_write_lba()
866 pba = info->lba_to_pba[lba]; in sddr09_write_lba()
869 pba = sddr09_find_unused_pba(info, lba); in sddr09_write_lba()
875 info->pba_to_lba[pba] = lba; in sddr09_write_lba()
876 info->lba_to_pba[lba] = pba; in sddr09_write_lba()
930 usb_stor_dbg(us, "Rewrite PBA %d (LBA %d)\n", pba, lba); in sddr09_write_lba()
963 unsigned int lba, maxlba, page, pages; in sddr09_write_data() local
972 lba = address >> info->blockshift; in sddr09_write_data()
975 if (lba >= maxlba) in sddr09_write_data()
1019 if (lba >= maxlba) { in sddr09_write_data()
1021 lba, maxlba); in sddr09_write_data()
1030 result = sddr09_write_lba(us, lba, page, pages, in sddr09_write_data()
1036 lba++; in sddr09_write_data()
1203 unsigned int lba, lbact; in sddr09_read_map() local
1321 lba = short_pack(ptr[7], ptr[6]); in sddr09_read_map()
1322 lba = (lba & 0x07FF) >> 1; in sddr09_read_map()
1333 if (lba >= 1000) { in sddr09_read_map()
1336 lba, i); in sddr09_read_map()
1340 lba += 1000*(i/0x400); in sddr09_read_map()
1342 if (info->lba_to_pba[lba] != UNDEF) { in sddr09_read_map()
1345 lba, info->lba_to_pba[lba], i); in sddr09_read_map()
1349 info->pba_to_lba[i] = lba; in sddr09_read_map()
1350 info->lba_to_pba[lba] = i; in sddr09_read_map()