Lines Matching refs:device
50 struct scsi_device *sdp = sdkp->device;
87 * For internal use during device validation.
97 struct scsi_device *sdp = sdkp->device;
144 * satify the device constraint (max_hw_sectors, max_segments, etc).
185 * sd_zbc_zone_sectors - Get the device zone size in number of 512B sectors.
190 return logical_to_sectors(sdkp->device, sdkp->zone_blocks);
197 sector_t capacity = logical_to_sectors(sdkp->device, sdkp->capacity);
205 /* Not a zoned device */
218 sectors_to_logical(sdkp->device, sector), true);
252 /* Not a zoned device */
255 if (sdkp->device->changed)
305 scsi_device_put(sdkp->device);
347 * requeued. So make sure that the scsi device does not go away
350 if (scsi_device_get(sdkp->device)) {
361 wp_offset = sectors_to_logical(sdkp->device, wp_offset);
391 sector_t block = sectors_to_logical(sdkp->device, sector);
511 * device queue zone write pointer offset cahce.
539 * sd_zbc_check_zoned_characteristics - Check zoned block device characteristics
549 if (scsi_get_vpd_page(sdkp->device, 0xb6, buf, 64)) {
555 if (sdkp->device->type != TYPE_ZBC) {
585 * sd_zbc_check_capacity - Check the device capacity
590 * Get the device zone size and check that the device capacity as reported
610 /* The max_lba field is the capacity of this device */
625 if (logical_to_sectors(sdkp->device, zone_blocks) > UINT_MAX) {
747 max_append = min_t(u32, logical_to_sectors(sdkp->device, zone_blocks),
776 /* Check zoned block device characteristics (unconstrained reads) */
781 /* Check the device capacity reported by report zones */
797 sdkp->device->use_16_for_rw = 1;
798 sdkp->device->use_10_for_rw = 0;