Home
last modified time | relevance | path

Searched refs:max_lba (Results 1 – 10 of 10) sorted by relevance

/drivers/mtd/
Dsm_ftl.c214 *block = do_div(offset, ftl->max_lba); in sm_break_offset()
587 ftl->max_lba = 250; in sm_get_media_info()
596 ftl->max_lba = 500; in sm_get_media_info()
606 ftl->max_lba = 250; in sm_get_media_info()
613 ftl->max_lba = 500; in sm_get_media_info()
619 ftl->max_lba = 1000; in sm_get_media_info()
628 ftl->max_lba = 1000; in sm_get_media_info()
695 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis()
771 zone->lba_to_phys_table = kmalloc(ftl->max_lba * 2, GFP_KERNEL); in sm_init_zone()
775 memset(zone->lba_to_phys_table, -1, ftl->max_lba * 2); in sm_init_zone()
[all …]
Dsm_ftl.h38 int max_lba; /* maximum lba in a zone */ member
/drivers/usb/storage/
Dalauda.c922 u16 lba, max_lba; in alauda_read_data() local
948 max_lba = MEDIA_INFO(us).capacity >> (blockshift + pageshift); in alauda_read_data()
962 if (lba >= max_lba) { in alauda_read_data()
964 lba, max_lba); in alauda_read_data()
1023 u16 lba, max_lba; in alauda_write_data() local
1050 max_lba = MEDIA_INFO(us).capacity >> (pageshift + blockshift); in alauda_write_data()
1062 if (lba >= max_lba) { in alauda_write_data()
1064 lba, max_lba); in alauda_write_data()
Dsddr55.c658 unsigned short max_lba; in sddr55_read_map() local
715 max_lba = info->max_log_blks; in sddr55_read_map()
716 if (max_lba > 1000) in sddr55_read_map()
717 max_lba = 1000; in sddr55_read_map()
749 if (lba >= max_lba) { in sddr55_read_map()
/drivers/scsi/cxlflash/
Dsuperpipe.c393 gli->max_lba = be64_to_cpu(*((__be64 *)&cmd_buf[0])); in read_cap16()
403 __func__, gli->max_lba, gli->blk_len, rc); in read_cap16()
1304 if (gli->max_lba == 0) { in cxlflash_disk_attach()
1314 dev_dbg(dev, "%s: LBA = %016llX\n", __func__, gli->max_lba); in cxlflash_disk_attach()
1436 attach->last_lba = gli->max_lba; in cxlflash_disk_attach()
1725 u64 prev_lba = gli->max_lba; in process_sense()
1753 if (prev_lba != gli->max_lba) in process_sense()
1756 gli->max_lba); in process_sense()
1841 last_lba = gli->max_lba; in cxlflash_disk_verify()
1958 last_lba = gli->max_lba; in cxlflash_disk_direct_open()
Dsuperpipe.h47 u64 max_lba; /* from read cap(16) */ member
Dvlun.c383 blka->ba_lun.lsize = gli->max_lba + 1; in init_vlun()
/drivers/scsi/mpt3sas/
Dmpt3sas_warpdrive.c247 raid_device->max_lba = le64_to_cpu(vol_pg0->MaxLBA); in mpt3sas_init_warpdrive_properties()
320 if (v_lba + io_size - 1 > raid_device->max_lba) in mpt3sas_setup_direct_io()
Dmpt3sas_base.h548 u64 max_lba; member
/drivers/ata/
Dlibata-scsi.c3616 u64 max_lba, opt_lba; in ata_scsi_report_zones_complete() local
3623 max_lba = get_unaligned_le64(&hdr[8]); in ata_scsi_report_zones_complete()
3627 put_unaligned_be64(max_lba, &hdr[8]); in ata_scsi_report_zones_complete()