Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/usb/storage/
Dsddr55.c61 int *pba_to_lba; /* physical to logical map */ member
242 if (info->pba_to_lba) in sddr55_status()
243 kfree(info->pba_to_lba); in sddr55_status()
245 info->pba_to_lba = NULL; in sddr55_status()
515 if (info->pba_to_lba[pba] == UNUSED_BLOCK) { in sddr55_write_data()
608 info->pba_to_lba[new_pba] = BAD_BLOCK; in sddr55_write_data()
618 info->pba_to_lba[pba] = UNUSED_BLOCK; in sddr55_write_data()
621 if (info->pba_to_lba[new_pba] != UNUSED_BLOCK) { in sddr55_write_data()
623 new_pba, info->pba_to_lba[new_pba]); in sddr55_write_data()
633 info->pba_to_lba[new_pba] = lba % 1000; in sddr55_write_data()
[all …]
Dsddr09.c933 if (info->pba_to_lba[i] == UNDEF) { in sddr09_find_unused_pba()
965 info->pba_to_lba[pba] = lba; in sddr09_write_lba()
1342 kfree(info->pba_to_lba); in sddr09_read_map()
1344 info->pba_to_lba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr09_read_map()
1346 if (info->lba_to_pba == NULL || info->pba_to_lba == NULL) { in sddr09_read_map()
1348 kfree(info->pba_to_lba); in sddr09_read_map()
1350 info->pba_to_lba = NULL; in sddr09_read_map()
1358 info->lba_to_pba[i] = info->pba_to_lba[i] = UNDEF; in sddr09_read_map()
1372 info->pba_to_lba[i] = lba; in sddr09_read_map()
1381 info->pba_to_lba[i] = UNUSABLE; in sddr09_read_map()
[all …]
Dsddr09.h42 int *pba_to_lba; /* physical to logical map */ member