Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/scsi/
Dsd_zbc.c95 zone.start = logical_to_sectors(sdp, start_lba); in sd_zbc_parse_report()
96 zone.capacity = logical_to_sectors(sdp, get_unaligned_be64(&buf[8])); in sd_zbc_parse_report()
99 gran = logical_to_sectors(sdp, sdkp->zone_starting_lba_gran); in sd_zbc_parse_report()
118 zone.wp = logical_to_sectors(sdp, get_unaligned_be64(&buf[24])); in sd_zbc_parse_report()
242 return logical_to_sectors(sdkp->device, sdkp->zone_info.zone_blocks); in sd_zbc_zone_sectors()
673 logical_to_sectors(sdkp->device, zone_starting_lba_gran) > in sd_zbc_check_zoned_characteristics()
744 if (logical_to_sectors(sdkp->device, zone_blocks) > UINT_MAX) { in sd_zbc_check_capacity()
879 logical_to_sectors(sdkp->device, zone_blocks)); in sd_zbc_revalidate_zones()
Dsd.h206 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() function
Dsd.c1191 unsigned int mask = logical_to_sectors(sdp, 1) - 1; in sd_setup_read_write_cmnd()
1473 sector_t capacity = logical_to_sectors(sdp, sdkp->capacity); in sd_getgeo()
3238 return logical_to_sectors(sdkp->device, get_unaligned_be64(buf)); in sd64_to_sectors()
3480 q->limits.max_dev_sectors = logical_to_sectors(sdp, dev_max); in sd_revalidate_disk()
3490 rw_max = logical_to_sectors(sdp, sdkp->opt_xfer_blocks); in sd_revalidate_disk()
3493 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()
3518 set_capacity_and_notify(disk, logical_to_sectors(sdp, sdkp->capacity)); in sd_revalidate_disk()