Home
last modified time | relevance | path

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

/drivers/scsi/
Dsd_zbc.c92 zone.start = logical_to_sectors(sdp, start_lba); in sd_zbc_parse_report()
93 zone.capacity = logical_to_sectors(sdp, get_unaligned_be64(&buf[8])); in sd_zbc_parse_report()
96 gran = logical_to_sectors(sdp, sdkp->zone_starting_lba_gran); in sd_zbc_parse_report()
115 zone.wp = logical_to_sectors(sdp, get_unaligned_be64(&buf[24])); in sd_zbc_parse_report()
239 return logical_to_sectors(sdkp->device, sdkp->zone_info.zone_blocks); in sd_zbc_zone_sectors()
667 logical_to_sectors(sdkp->device, zone_starting_lba_gran) > in sd_zbc_check_zoned_characteristics()
738 if (logical_to_sectors(sdkp->device, zone_blocks) > UINT_MAX) { in sd_zbc_check_capacity()
885 max_append = min_t(u32, logical_to_sectors(sdkp->device, zone_blocks), in sd_zbc_revalidate_zones()
Dsd.h208 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() function
Dsd.c1124 unsigned int mask = logical_to_sectors(sdp, 1) - 1; in sd_setup_read_write_cmnd()
1405 sector_t capacity = logical_to_sectors(sdp, sdkp->capacity); in sd_getgeo()
3065 return logical_to_sectors(sdkp->device, get_unaligned_be64(buf)); in sd64_to_sectors()
3307 q->limits.max_dev_sectors = logical_to_sectors(sdp, dev_max); in sd_revalidate_disk()
3317 rw_max = logical_to_sectors(sdp, sdkp->opt_xfer_blocks); in sd_revalidate_disk()
3320 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()
3345 set_capacity_and_notify(disk, logical_to_sectors(sdp, sdkp->capacity)); in sd_revalidate_disk()