Lines Matching +full:use +full:- +full:case

1 /* SPDX-License-Identifier: GPL-2.0 */
13 * Time out in seconds for disks and Magneto-opticals (which are slower).
37 * Number of sectors at the end of the device to avoid multi-sector
38 * accesses to in the case of last_sector_bug
56 SD_LBP_UNMAP, /* Use UNMAP command */
57 SD_LBP_WS16, /* Use WRITE SAME(16) with UNMAP bit */
58 SD_LBP_WS10, /* Use WRITE SAME(10) with UNMAP bit */
59 SD_LBP_ZERO, /* Use WRITE SAME(10) with zero payload */
64 SD_ZERO_WRITE = 0, /* Use WRITE(10/16) command */
65 SD_ZERO_WS, /* Use WRITE SAME(10/16) command */
66 SD_ZERO_WS16_UNMAP, /* Use WRITE SAME(16) with UNMAP */
67 SD_ZERO_WS10_UNMAP, /* Use WRITE SAME(10) with UNMAP */
133 return container_of(disk->private_data, struct scsi_disk, driver); in scsi_disk()
137 (sdsk)->disk ? \
138 sdev_prefix_printk(prefix, (sdsk)->device, \
139 (sdsk)->disk->disk_name, fmt, ##a) : \
140 sdev_printk(prefix, (sdsk)->device, fmt, ##a)
144 if ((sdsk)->first_scan) \
150 switch (scmd->cmnd[0]) { in scsi_medium_access_command()
151 case READ_6: in scsi_medium_access_command()
152 case READ_10: in scsi_medium_access_command()
153 case READ_12: in scsi_medium_access_command()
154 case READ_16: in scsi_medium_access_command()
155 case SYNCHRONIZE_CACHE: in scsi_medium_access_command()
156 case VERIFY: in scsi_medium_access_command()
157 case VERIFY_12: in scsi_medium_access_command()
158 case VERIFY_16: in scsi_medium_access_command()
159 case WRITE_6: in scsi_medium_access_command()
160 case WRITE_10: in scsi_medium_access_command()
161 case WRITE_12: in scsi_medium_access_command()
162 case WRITE_16: in scsi_medium_access_command()
163 case WRITE_SAME: in scsi_medium_access_command()
164 case WRITE_SAME_16: in scsi_medium_access_command()
165 case UNMAP: in scsi_medium_access_command()
167 case VARIABLE_LENGTH_CMD: in scsi_medium_access_command()
168 switch (scmd->cmnd[9]) { in scsi_medium_access_command()
169 case READ_32: in scsi_medium_access_command()
170 case VERIFY_32: in scsi_medium_access_command()
171 case WRITE_32: in scsi_medium_access_command()
172 case WRITE_SAME_32: in scsi_medium_access_command()
182 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors()
187 return blocks * sdev->sector_size; in logical_to_bytes()
192 return bytes >> ilog2(sdev->sector_size); in bytes_to_logical()
197 return sector >> (ilog2(sdev->sector_size) - 9); in sectors_to_logical()
214 return sdkp->zoned == 1 || sdkp->device->type == TYPE_ZBC; in sd_is_zoned()