Lines Matching refs:scsi_disk

102 static void sd_config_discard(struct scsi_disk *, unsigned int);
103 static void sd_config_write_same(struct scsi_disk *);
119 static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer);
133 static void sd_set_flush_flag(struct scsi_disk *sdkp) in sd_set_flush_flag()
151 struct scsi_disk *sdkp = to_scsi_disk(dev); in cache_type_store()
219 struct scsi_disk *sdkp = to_scsi_disk(dev); in manage_start_stop_show()
229 struct scsi_disk *sdkp = to_scsi_disk(dev); in manage_start_stop_store()
248 struct scsi_disk *sdkp = to_scsi_disk(dev); in allow_restart_show()
258 struct scsi_disk *sdkp = to_scsi_disk(dev); in allow_restart_store()
279 struct scsi_disk *sdkp = to_scsi_disk(dev); in cache_type_show()
289 struct scsi_disk *sdkp = to_scsi_disk(dev); in FUA_show()
299 struct scsi_disk *sdkp = to_scsi_disk(dev); in protection_type_show()
308 struct scsi_disk *sdkp = to_scsi_disk(dev); in protection_type_store()
331 struct scsi_disk *sdkp = to_scsi_disk(dev); in protection_mode_show()
353 struct scsi_disk *sdkp = to_scsi_disk(dev); in app_tag_own_show()
363 struct scsi_disk *sdkp = to_scsi_disk(dev); in thin_provisioning_show()
383 struct scsi_disk *sdkp = to_scsi_disk(dev); in provisioning_mode_show()
392 struct scsi_disk *sdkp = to_scsi_disk(dev); in provisioning_mode_store()
429 struct scsi_disk *sdkp = to_scsi_disk(dev); in zeroing_mode_show()
438 struct scsi_disk *sdkp = to_scsi_disk(dev); in zeroing_mode_store()
458 struct scsi_disk *sdkp = to_scsi_disk(dev); in max_medium_access_timeouts_show()
468 struct scsi_disk *sdkp = to_scsi_disk(dev); in max_medium_access_timeouts_store()
484 struct scsi_disk *sdkp = to_scsi_disk(dev); in max_write_same_blocks_show()
493 struct scsi_disk *sdkp = to_scsi_disk(dev); in max_write_same_blocks_store()
525 struct scsi_disk *sdkp = to_scsi_disk(dev); in zoned_cap_show()
541 struct scsi_disk *sdkp = to_scsi_disk(dev); in max_retries_store()
563 struct scsi_disk *sdkp = to_scsi_disk(dev); in max_retries_show()
664 struct scsi_disk *sdkp = data; in sd_sec_submit()
782 static void sd_config_discard(struct scsi_disk *sdkp, unsigned int mode) in sd_config_discard()
838 struct scsi_disk *sdkp = scsi_disk(rq->q->disk); in sd_setup_unmap_cmnd()
874 struct scsi_disk *sdkp = scsi_disk(rq->q->disk); in sd_setup_write_same16_cmnd()
906 struct scsi_disk *sdkp = scsi_disk(rq->q->disk); in sd_setup_write_same10_cmnd()
937 struct scsi_disk *sdkp = scsi_disk(rq->q->disk); in sd_setup_write_zeroes_cmnd()
961 static void sd_config_write_same(struct scsi_disk *sdkp) in sd_config_write_same()
1024 struct scsi_disk *sdkp = scsi_disk(rq->q->disk); in sd_setup_flush_cmnd()
1117 struct scsi_disk *sdkp = scsi_disk(rq->q->disk); in sd_setup_read_write_cmnd()
1233 switch (scsi_disk(rq->q->disk)->provisioning_mode) { in sd_init_command()
1280 struct scsi_disk *sdkp) in sd_need_revalidate()
1312 struct scsi_disk *sdkp = scsi_disk(bdev->bd_disk); in sd_open()
1384 struct scsi_disk *sdkp = scsi_disk(disk); in sd_release()
1399 struct scsi_disk *sdkp = scsi_disk(bdev->bd_disk); in sd_getgeo()
1440 struct scsi_disk *sdkp = scsi_disk(disk); in sd_ioctl()
1467 static void set_media_not_present(struct scsi_disk *sdkp) in set_media_not_present()
1478 static int media_not_present(struct scsi_disk *sdkp, in media_not_present()
1508 struct scsi_disk *sdkp = disk->private_data; in sd_check_events()
1574 static int sd_sync_cache(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr) in sd_sync_cache()
1641 struct scsi_disk *sdkp = dev_get_drvdata(dev); in sd_rescan()
1649 struct scsi_device *sdev = scsi_disk(disk)->device; in sd_get_unique_id()
1707 struct scsi_disk *sdkp = scsi_disk(bdev->bd_disk); in sd_pr_command()
1780 struct scsi_disk *sdkp = scsi_disk(disk); in scsi_disk_free_disk()
1814 struct scsi_disk *sdkp = scsi_disk(scsi_cmd_to_rq(scmd)->q->disk); in sd_eh_reset()
1834 struct scsi_disk *sdkp = scsi_disk(scsi_cmd_to_rq(scmd)->q->disk); in sd_eh_action()
1931 struct scsi_disk *sdkp = scsi_disk(req->q->disk); in sd_done()
2043 sd_spinup_disk(struct scsi_disk *sdkp) in sd_spinup_disk()
2173 static int sd_read_protection_type(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_protection_type()
2198 static void sd_config_protection(struct scsi_disk *sdkp) in sd_config_protection()
2221 static void read_capacity_error(struct scsi_disk *sdkp, struct scsi_device *sdp, in read_capacity_error()
2253 static int read_capacity_16(struct scsi_disk *sdkp, struct scsi_device *sdp, in read_capacity_16()
2344 static int read_capacity_10(struct scsi_disk *sdkp, struct scsi_device *sdp, in read_capacity_10()
2421 sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_capacity()
2520 sd_print_capacity(struct scsi_disk *sdkp, in sd_print_capacity()
2547 sd_do_mode_sense(struct scsi_disk *sdkp, int dbd, int modepage, in sd_do_mode_sense()
2568 sd_read_write_protect_flag(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_write_protect_flag()
2627 sd_read_cache_type(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_cache_type()
2804 static void sd_read_app_tag_own(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_app_tag_own()
2850 static void sd_read_block_limits(struct scsi_disk *sdkp) in sd_read_block_limits()
2911 static void sd_read_block_characteristics(struct scsi_disk *sdkp) in sd_read_block_characteristics()
2969 static void sd_read_block_provisioning(struct scsi_disk *sdkp) in sd_read_block_provisioning()
2991 static void sd_read_write_same(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_write_same()
3024 static void sd_read_security(struct scsi_disk *sdkp, unsigned char *buffer) in sd_read_security()
3038 static inline sector_t sd64_to_sectors(struct scsi_disk *sdkp, u8 *buf) in sd64_to_sectors()
3047 static void sd_read_cpr(struct scsi_disk *sdkp) in sd_read_cpr()
3118 static bool sd_validate_min_xfer_size(struct scsi_disk *sdkp) in sd_validate_min_xfer_size()
3146 static bool sd_validate_opt_xfer_size(struct scsi_disk *sdkp, in sd_validate_opt_xfer_size()
3211 struct scsi_disk *sdkp = scsi_disk(disk); in sd_revalidate_disk()
3350 struct scsi_device *sdev = scsi_disk(disk)->device; in sd_unlock_native_capacity()
3423 struct scsi_disk *sdkp; in sd_probe()
3571 struct scsi_disk *sdkp = dev_get_drvdata(dev); in sd_remove()
3585 struct scsi_disk *sdkp = to_scsi_disk(dev); in scsi_disk_release()
3595 static int sd_start_stop_device(struct scsi_disk *sdkp, int start) in sd_start_stop_device()
3637 struct scsi_disk *sdkp = dev_get_drvdata(dev); in sd_shutdown()
3658 struct scsi_disk *sdkp = dev_get_drvdata(dev); in sd_suspend_common()
3715 struct scsi_disk *sdkp = dev_get_drvdata(dev); in sd_resume()
3741 struct scsi_disk *sdkp = dev_get_drvdata(dev); in sd_resume_runtime()
3847 void sd_print_sense_hdr(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr) in sd_print_sense_hdr()
3853 void sd_print_result(const struct scsi_disk *sdkp, const char *msg, int result) in sd_print_result()