Searched refs:max_lba (Results 1 – 11 of 11) sorted by relevance
/drivers/mtd/ |
D | sm_ftl.c | 211 *block = do_div(offset, ftl->max_lba); in sm_break_offset() 573 ftl->max_lba = 250; in sm_get_media_info() 582 ftl->max_lba = 500; in sm_get_media_info() 592 ftl->max_lba = 250; in sm_get_media_info() 599 ftl->max_lba = 500; in sm_get_media_info() 605 ftl->max_lba = 1000; in sm_get_media_info() 614 ftl->max_lba = 1000; in sm_get_media_info() 681 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis() 757 zone->lba_to_phys_table = kmalloc_array(ftl->max_lba, 2, GFP_KERNEL); in sm_init_zone() 761 memset(zone->lba_to_phys_table, -1, ftl->max_lba * 2); in sm_init_zone() [all …]
|
D | sm_ftl.h | 35 int max_lba; /* maximum lba in a zone */ member
|
/drivers/usb/storage/ |
D | alauda.c | 917 u16 lba, max_lba; in alauda_read_data() local 943 max_lba = MEDIA_INFO(us).capacity >> (blockshift + pageshift); in alauda_read_data() 957 if (lba >= max_lba) { in alauda_read_data() 959 lba, max_lba); in alauda_read_data() 1018 u16 lba, max_lba; in alauda_write_data() local 1045 max_lba = MEDIA_INFO(us).capacity >> (pageshift + blockshift); in alauda_write_data() 1057 if (lba >= max_lba) { in alauda_write_data() 1059 lba, max_lba); in alauda_write_data()
|
D | sddr55.c | 647 unsigned short max_lba; in sddr55_read_map() local 704 max_lba = info->max_log_blks; in sddr55_read_map() 705 if (max_lba > 1000) in sddr55_read_map() 706 max_lba = 1000; in sddr55_read_map() 738 if (lba >= max_lba) { in sddr55_read_map()
|
/drivers/scsi/ |
D | sd_zbc.c | 600 sector_t max_lba; in sd_zbc_check_capacity() local 611 max_lba = get_unaligned_be64(&buf[8]); in sd_zbc_check_capacity() 612 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity() 617 (unsigned long long)max_lba + 1); in sd_zbc_check_capacity() 618 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity()
|
/drivers/scsi/cxlflash/ |
D | superpipe.c | 414 gli->max_lba = be64_to_cpu(*((__be64 *)&cmd_buf[0])); in read_cap16() 423 __func__, gli->max_lba, gli->blk_len, rc); in read_cap16() 1345 if (gli->max_lba == 0) { in cxlflash_disk_attach() 1355 dev_dbg(dev, "%s: LBA = %016llx\n", __func__, gli->max_lba); in cxlflash_disk_attach() 1475 attach->last_lba = gli->max_lba; in cxlflash_disk_attach() 1778 u64 prev_lba = gli->max_lba; in process_sense() 1805 if (prev_lba != gli->max_lba) in process_sense() 1808 gli->max_lba); in process_sense() 1893 last_lba = gli->max_lba; in cxlflash_disk_verify() 2010 last_lba = gli->max_lba; in cxlflash_disk_direct_open()
|
D | superpipe.h | 40 u64 max_lba; /* from read cap(16) */ member
|
D | vlun.c | 379 blka->ba_lun.lsize = gli->max_lba + 1; in init_vlun()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_warpdrive.c | 232 raid_device->max_lba = le64_to_cpu(vol_pg0->MaxLBA); in mpt3sas_init_warpdrive_properties() 275 if (v_lba + io_size - 1 > raid_device->max_lba) in mpt3sas_setup_direct_io()
|
D | mpt3sas_base.h | 708 u64 max_lba; member
|
/drivers/ata/ |
D | libata-scsi.c | 3390 u64 max_lba, opt_lba; in ata_scsi_report_zones_complete() local 3397 max_lba = get_unaligned_le64(&hdr[8]); in ata_scsi_report_zones_complete() 3401 put_unaligned_be64(max_lba, &hdr[8]); in ata_scsi_report_zones_complete()
|