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 */
71 * struct zoned_disk_info - Specific properties of a ZBC SCSI device.
89 * but otherwise not really needed. Do not use for refcounting.
164 return disk->private_data; in scsi_disk()
168 (sdsk)->disk ? \
169 sdev_prefix_printk(prefix, (sdsk)->device, \
170 (sdsk)->disk->disk_name, fmt, ##a) : \
171 sdev_printk(prefix, (sdsk)->device, fmt, ##a)
175 if ((sdsk)->first_scan) \
181 switch (scmd->cmnd[0]) { in scsi_medium_access_command()
182 case READ_6: in scsi_medium_access_command()
183 case READ_10: in scsi_medium_access_command()
184 case READ_12: in scsi_medium_access_command()
185 case READ_16: in scsi_medium_access_command()
186 case SYNCHRONIZE_CACHE: in scsi_medium_access_command()
187 case VERIFY: in scsi_medium_access_command()
188 case VERIFY_12: in scsi_medium_access_command()
189 case VERIFY_16: in scsi_medium_access_command()
190 case WRITE_6: in scsi_medium_access_command()
191 case WRITE_10: in scsi_medium_access_command()
192 case WRITE_12: in scsi_medium_access_command()
193 case WRITE_16: in scsi_medium_access_command()
194 case WRITE_SAME: in scsi_medium_access_command()
195 case WRITE_SAME_16: in scsi_medium_access_command()
196 case UNMAP: in scsi_medium_access_command()
198 case VARIABLE_LENGTH_CMD: in scsi_medium_access_command()
199 switch (scmd->cmnd[9]) { in scsi_medium_access_command()
200 case READ_32: in scsi_medium_access_command()
201 case VERIFY_32: in scsi_medium_access_command()
202 case WRITE_32: in scsi_medium_access_command()
203 case WRITE_SAME_32: in scsi_medium_access_command()
213 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors()
218 return blocks * sdev->sector_size; in logical_to_bytes()
223 return bytes >> ilog2(sdev->sector_size); in bytes_to_logical()
228 return sector >> (ilog2(sdev->sector_size) - 9); in sectors_to_logical()