Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/mtd/
Dsm_ftl.c211 *block = do_div(offset, ftl->max_lba); in sm_break_offset()
579 ftl->max_lba = 250; in sm_get_media_info()
588 ftl->max_lba = 500; in sm_get_media_info()
598 ftl->max_lba = 250; in sm_get_media_info()
605 ftl->max_lba = 500; in sm_get_media_info()
611 ftl->max_lba = 1000; in sm_get_media_info()
621 ftl->max_lba = 1000; in sm_get_media_info()
688 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis()
764 zone->lba_to_phys_table = kmalloc_array(ftl->max_lba, 2, GFP_KERNEL); in sm_init_zone()
768 memset(zone->lba_to_phys_table, -1, ftl->max_lba * 2); in sm_init_zone()
[all …]
Dsm_ftl.h35 int max_lba; /* maximum lba in a zone */ member
/linux-6.6.21/drivers/usb/storage/
Dalauda.c917 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()
Dsddr55.c647 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()
/linux-6.6.21/drivers/scsi/
Dsd_zbc.c718 sector_t max_lba; in sd_zbc_check_capacity() local
729 max_lba = get_unaligned_be64(&buf[8]); in sd_zbc_check_capacity()
730 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity()
735 (unsigned long long)max_lba + 1); in sd_zbc_check_capacity()
736 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity()
/linux-6.6.21/drivers/scsi/mpt3sas/
Dmpt3sas_warpdrive.c232 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()
Dmpt3sas_base.h729 u64 max_lba; member
/linux-6.6.21/drivers/scsi/cxlflash/
Dsuperpipe.c415 gli->max_lba = be64_to_cpu(*((__be64 *)&cmd_buf[0])); in read_cap16()
424 __func__, gli->max_lba, gli->blk_len, rc); in read_cap16()
1346 if (gli->max_lba == 0) { in cxlflash_disk_attach()
1356 dev_dbg(dev, "%s: LBA = %016llx\n", __func__, gli->max_lba); in cxlflash_disk_attach()
1476 attach->last_lba = gli->max_lba; in cxlflash_disk_attach()
1779 u64 prev_lba = gli->max_lba; in process_sense()
1806 if (prev_lba != gli->max_lba) in process_sense()
1809 gli->max_lba); in process_sense()
1894 last_lba = gli->max_lba; in cxlflash_disk_verify()
2011 last_lba = gli->max_lba; in cxlflash_disk_direct_open()
Dsuperpipe.h40 u64 max_lba; /* from read cap(16) */ member
Dvlun.c379 blka->ba_lun.lsize = gli->max_lba + 1; in init_vlun()
/linux-6.6.21/drivers/usb/gadget/function/
Df_mass_storage.c1142 u32 max_lba; in do_read_capacity() local
1151 max_lba = curlun->num_sectors - 1; in do_read_capacity()
1153 max_lba = 0xffffffff; in do_read_capacity()
1154 put_unaligned_be32(max_lba, &buf[0]); /* Max logical block */ in do_read_capacity()
/linux-6.6.21/drivers/ata/
Dlibata-scsi.c3427 u64 max_lba, opt_lba; in ata_scsi_report_zones_complete() local
3434 max_lba = get_unaligned_le64(&hdr[8]); in ata_scsi_report_zones_complete()
3438 put_unaligned_be64(max_lba, &hdr[8]); in ata_scsi_report_zones_complete()