/drivers/scsi/ |
D | scsi_priv.h | 11 struct scsi_device; 53 extern int scsi_get_device_flags(struct scsi_device *sdev, 56 extern int scsi_get_device_flags_keyed(struct scsi_device *sdev, 84 extern int scsi_maybe_unblock_host(struct scsi_device *sdev); 85 extern void scsi_device_unbusy(struct scsi_device *sdev); 90 extern struct request_queue *scsi_alloc_queue(struct scsi_device *sdev); 91 extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev); 136 extern int scsi_sysfs_add_sdev(struct scsi_device *); 140 extern void scsi_sysfs_device_initialize(struct scsi_device *); 141 extern int scsi_sysfs_target_initialize(struct scsi_device *); [all …]
|
D | scsi.c | 231 struct scsi_cmnd *scsi_get_command(struct scsi_device *dev, gfp_t gfp_mask) in scsi_get_command() 562 struct scsi_device *sdev = cmd->device; in scsi_finish_command() 617 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() 647 int scsi_track_queue_full(struct scsi_device *sdev, int depth) in scsi_track_queue_full() 685 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer, in scsi_vpd_inquiry() 731 int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, in scsi_get_vpd_page() 779 void scsi_attach_vpd(struct scsi_device *sdev) in scsi_attach_vpd() 883 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer, in scsi_report_opcode() 927 int scsi_device_get(struct scsi_device *sdev) in scsi_device_get() 952 void scsi_device_put(struct scsi_device *sdev) in scsi_device_put() [all …]
|
D | scsi_sysfs.c | 418 struct scsi_device *sdev; in scsi_device_cls_release() 426 struct scsi_device *sdev; in scsi_device_dev_release_usercontext() 431 sdev = container_of(work, struct scsi_device, ew.work); in scsi_device_dev_release_usercontext() 468 struct scsi_device *sdp = to_scsi_device(dev); in scsi_device_dev_release() 481 struct scsi_device *sdp; in scsi_bus_match() 494 struct scsi_device *sdev; in scsi_bus_uevent() 544 struct scsi_device *sdev; \ 569 struct scsi_device *sdev; \ 591 struct scsi_device *sdev; \ 632 struct scsi_device *sdev = to_scsi_device(dev); in sdev_show_device_busy() [all …]
|
D | scsi_lib.c | 54 struct scsi_device *device = cmd->device; in scsi_set_blocked() 88 struct scsi_device *sdev = cmd->device; in scsi_mq_requeue_cmd() 110 struct scsi_device *device = cmd->device; in __scsi_queue_insert() 182 int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute() 232 int scsi_execute_req_flags(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute_req_flags() 275 void scsi_device_unbusy(struct scsi_device *sdev) in scsi_device_unbusy() 310 static void scsi_single_lun_run(struct scsi_device *current_sdev) in scsi_single_lun_run() 313 struct scsi_device *sdev, *tmp; in scsi_single_lun_run() 349 static inline bool scsi_device_is_busy(struct scsi_device *sdev) in scsi_device_is_busy() 384 struct scsi_device *sdev; in scsi_starved_list_run() [all …]
|
D | scsi_dh.c | 79 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() 129 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() 152 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() 159 int scsi_dh_add_device(struct scsi_device *sdev) in scsi_dh_add_device() 173 void scsi_dh_release_device(struct scsi_device *sdev) in scsi_dh_release_device() 240 struct scsi_device *sdev; in scsi_dh_activate() 287 struct scsi_device *sdev; in scsi_dh_set_params() 309 struct scsi_device *sdev; in scsi_dh_attach() 348 struct scsi_device *sdev; in scsi_dh_attached_handler_name()
|
D | ses.c | 56 struct scsi_device *sdev = to_scsi_device(dev); in ses_probe() 86 static int ses_recv_diag(struct scsi_device *sdev, int page_code, in ses_recv_diag() 120 static int ses_send_diag(struct scsi_device *sdev, int page_code, in ses_send_diag() 147 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor() 177 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_get_page2_descriptor() 386 struct scsi_device *sdev; 477 struct scsi_device *sdev, in ses_enclosure_data_process() 581 struct scsi_device *sdev, in ses_match_to_enclosure() 584 struct scsi_device *edev_sdev = to_scsi_device(edev->edev.parent); in ses_match_to_enclosure() 605 struct scsi_device *sdev = to_scsi_device(cdev->parent); in ses_intf_add() [all …]
|
D | 53c700.h | 107 static inline char *NCR_700_get_sense_cmnd(struct scsi_device *SDp) in NCR_700_get_sense_cmnd() 115 NCR_700_set_depth(struct scsi_device *SDp, __u8 depth) in NCR_700_set_depth() 122 NCR_700_get_depth(struct scsi_device *SDp) in NCR_700_get_depth() 129 NCR_700_is_flag_set(struct scsi_device *SDp, __u32 flag) in NCR_700_is_flag_set() 134 NCR_700_is_flag_clear(struct scsi_device *SDp, __u32 flag) in NCR_700_is_flag_clear() 139 NCR_700_set_flag(struct scsi_device *SDp, __u32 flag) in NCR_700_set_flag() 144 NCR_700_clear_flag(struct scsi_device *SDp, __u32 flag) in NCR_700_clear_flag() 156 NCR_700_get_tag_neg_state(struct scsi_device *SDp) in NCR_700_get_tag_neg_state() 162 NCR_700_set_tag_neg_state(struct scsi_device *SDp, in NCR_700_set_tag_neg_state()
|
D | scsi_ioctl.c | 88 static int ioctl_internal_command(struct scsi_device *sdev, char *cmd, in ioctl_internal_command() 139 int scsi_set_medium_removal(struct scsi_device *sdev, char state) in scsi_set_medium_removal() 172 static int scsi_ioctl_get_pci(struct scsi_device *sdev, void __user *arg) in scsi_ioctl_get_pci() 199 int scsi_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) in scsi_ioctl() 276 int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev, int cmd, in scsi_ioctl_block_when_processing_errors()
|
D | scsi_error.c | 123 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() 183 struct scsi_device *sdev = scmd->device; in scsi_abort_command() 311 int scsi_block_when_processing_errors(struct scsi_device *sdev) in scsi_block_when_processing_errors() 336 struct scsi_device *sdev; in scsi_eh_prt_fail_stats() 377 static void scsi_report_lun_change(struct scsi_device *sdev) in scsi_report_lun_change() 388 static void scsi_report_sense(struct scsi_device *sdev, in scsi_report_sense() 457 struct scsi_device *sdev = scmd->device; in scsi_check_sense() 607 static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) in scsi_handle_queue_ramp_up() 610 struct scsi_device *tmp_sdev; in scsi_handle_queue_ramp_up() 639 static void scsi_handle_queue_full(struct scsi_device *sdev) in scsi_handle_queue_full() [all …]
|
D | scsi_scan.c | 184 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() 214 static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget, in scsi_alloc_sdev() 217 struct scsi_device *sdev; in scsi_alloc_sdev() 566 static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result, in scsi_probe_lun() 772 static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result, in scsi_add_lun() 1062 struct scsi_device **sdevp, in scsi_probe_and_add_lun() 1066 struct scsi_device *sdev; in scsi_probe_and_add_lun() 1319 struct scsi_device *sdev; in scsi_report_lun_scan() 1479 struct scsi_device *__scsi_add_device(struct Scsi_Host *shost, uint channel, in __scsi_add_device() 1482 struct scsi_device *sdev = ERR_PTR(-ENODEV); in __scsi_add_device() [all …]
|
D | sd.c | 158 struct scsi_device *sdp = sdkp->device; in cache_type_store() 226 struct scsi_device *sdp = sdkp->device; in manage_start_stop_show() 236 struct scsi_device *sdp = sdkp->device; in manage_start_stop_store() 265 struct scsi_device *sdp = sdkp->device; in allow_restart_store() 338 struct scsi_device *sdp = sdkp->device; in protection_mode_show() 398 struct scsi_device *sdp = sdkp->device; in provisioning_mode_store() 463 struct scsi_device *sdp = sdkp->device; in max_write_same_blocks_store() 597 struct scsi_device *sdev = sdkp->device; in scsi_disk_put() 717 struct scsi_device *sdp = cmd->device; in sd_setup_discard_cmnd() 842 struct scsi_device *sdp = cmd->device; in sd_setup_write_same_cmnd() [all …]
|
D | sd.h | 64 struct scsi_device *device; 149 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() 154 static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t blocks) in logical_to_bytes()
|
D | scsi_pm.c | 229 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_suspend() 257 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_resume() 297 int scsi_autopm_get_device(struct scsi_device *sdev) in scsi_autopm_get_device() 310 void scsi_autopm_put_device(struct scsi_device *sdev) in scsi_autopm_put_device()
|
/drivers/scsi/osd/ |
D | osd_uld.c | 327 BUG_ON(od->scsi_device != oud->od.scsi_device); in osduld_put_device() 374 struct scsi_device *scsi_device = oud->od.scsi_device; in __detect_osd() local 382 oud, scsi_device, scsi_device->request_queue); in __detect_osd() 383 error = scsi_test_unit_ready(scsi_device, 10*HZ, 5, NULL); in __detect_osd() 398 struct scsi_device *scsi_device = oud->od.scsi_device; in __remove() local 406 scsi_device_put(scsi_device); in __remove() 420 struct scsi_device *scsi_device = to_scsi_device(dev); in osd_probe() local 426 if (scsi_device->type != TYPE_OSD) in osd_probe() 466 scsi_device_get(scsi_device); in osd_probe() 467 osd_dev_init(&oud->od, scsi_device); in osd_probe() [all …]
|
/drivers/scsi/cxlflash/ |
D | superpipe.h | 71 struct scsi_device *sdev; 77 struct scsi_device *sdev; 123 int cxlflash_vlun_resize(struct scsi_device *, struct dk_cxlflash_resize *); 124 int _cxlflash_vlun_resize(struct scsi_device *, struct ctx_info *, 127 int cxlflash_disk_release(struct scsi_device *, struct dk_cxlflash_release *); 128 int _cxlflash_disk_release(struct scsi_device *, struct ctx_info *, 131 int cxlflash_disk_clone(struct scsi_device *, struct dk_cxlflash_clone *); 133 int cxlflash_disk_virtual_open(struct scsi_device *, void *); 149 int cxlflash_manage_lun(struct scsi_device *, struct dk_cxlflash_manage_lun *);
|
D | lunmgt.c | 33 static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid) in create_local() 59 static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid) in create_global() 130 static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid) in find_and_create_lun() 225 int cxlflash_manage_lun(struct scsi_device *sdev, in cxlflash_manage_lun()
|
/drivers/scsi/device_handler/ |
D | scsi_dh_emc.c | 119 static int trespass_endio(struct scsi_device *sdev, char *sense) in trespass_endio() 160 static int parse_sp_info_reply(struct scsi_device *sdev, in parse_sp_info_reply() 214 static char * parse_sp_model(struct scsi_device *sdev, unsigned char *buffer) in parse_sp_model() 267 static struct request *get_req(struct scsi_device *sdev, int cmd, in get_req() 318 static int send_inquiry_cmd(struct scsi_device *sdev, int page, in send_inquiry_cmd() 351 static int send_trespass_cmd(struct scsi_device *sdev, in send_trespass_cmd() 400 static int clariion_check_sense(struct scsi_device *sdev, in clariion_check_sense() 448 static int clariion_prep_fn(struct scsi_device *sdev, struct request *req) in clariion_prep_fn() 461 static int clariion_std_inquiry(struct scsi_device *sdev, in clariion_std_inquiry() 500 static int clariion_send_inquiry(struct scsi_device *sdev, in clariion_send_inquiry() [all …]
|
D | scsi_dh_alua.c | 93 struct scsi_device *rtpg_sdev; 101 struct scsi_device *sdev; 117 struct scsi_device *sdev, 119 static void alua_check(struct scsi_device *sdev, bool force); 138 static int submit_rtpg(struct scsi_device *sdev, unsigned char *buff, in submit_rtpg() 167 static int submit_stpg(struct scsi_device *sdev, int group_id, in submit_stpg() 225 static struct alua_port_group *alua_alloc_pg(struct scsi_device *sdev, in alua_alloc_pg() 281 static int alua_check_tpgs(struct scsi_device *sdev) in alua_check_tpgs() 333 static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h, in alua_check_vpd() 422 static int alua_check_sense(struct scsi_device *sdev, in alua_check_sense() [all …]
|
D | scsi_dh_rdac.c | 166 struct scsi_device *ms_sdev; 187 struct scsi_device *sdev; 265 static struct request *get_rdac_req(struct scsi_device *sdev, in get_rdac_req() 295 static struct request *rdac_failover_get(struct scsi_device *sdev, in rdac_failover_get() 368 u8 *array_id, struct scsi_device *sdev) in get_controller() 403 static int submit_inquiry(struct scsi_device *sdev, int page_code, in submit_inquiry() 434 static int get_lun_info(struct scsi_device *sdev, struct rdac_dh_data *h, in get_lun_info() 460 static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h) in check_ownership() 509 static int initialize_controller(struct scsi_device *sdev, in initialize_controller() 537 static int set_mode_select(struct scsi_device *sdev, struct rdac_dh_data *h) in set_mode_select() [all …]
|
D | scsi_dh_hp_sw.c | 45 struct scsi_device *sdev; 59 static int tur_done(struct scsi_device *sdev, unsigned char *sense) in tur_done() 106 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() 159 static int start_done(struct scsi_device *sdev, unsigned char *sense) in start_done() 262 static int hp_sw_prep_fn(struct scsi_device *sdev, struct request *req) in hp_sw_prep_fn() 285 static int hp_sw_activate(struct scsi_device *sdev, in hp_sw_activate() 308 static int hp_sw_bus_attach(struct scsi_device *sdev) in hp_sw_bus_attach() 335 static void hp_sw_bus_detach( struct scsi_device *sdev ) in hp_sw_bus_detach()
|
/drivers/s390/scsi/ |
D | zfcp_ext.h | 36 struct zfcp_port *, struct scsi_device *, u8, u8); 63 extern void zfcp_erp_set_lun_status(struct scsi_device *, u32); 64 extern void zfcp_erp_clear_lun_status(struct scsi_device *, u32); 65 extern void zfcp_erp_lun_reopen(struct scsi_device *, int, char *); 66 extern void zfcp_erp_lun_shutdown(struct scsi_device *, int, char *); 67 extern void zfcp_erp_lun_shutdown_wait(struct scsi_device *, char *); 159 extern struct scsi_device *zfcp_unit_sdev(struct zfcp_unit *unit);
|
D | zfcp_erp.c | 91 static void zfcp_erp_action_dismiss_lun(struct scsi_device *sdev) in zfcp_erp_action_dismiss_lun() 101 struct scsi_device *sdev; in zfcp_erp_action_dismiss_port() 130 struct scsi_device *sdev) in zfcp_erp_required_act() 182 struct scsi_device *sdev) in zfcp_erp_setup_act() 245 struct scsi_device *sdev, in zfcp_erp_action_enqueue() 406 static void zfcp_erp_lun_block(struct scsi_device *sdev, int clear_mask) in zfcp_erp_lun_block() 412 static void _zfcp_erp_lun_reopen(struct scsi_device *sdev, int clear, char *id, in _zfcp_erp_lun_reopen() 435 void zfcp_erp_lun_reopen(struct scsi_device *sdev, int clear, char *id) in zfcp_erp_lun_reopen() 453 void zfcp_erp_lun_shutdown(struct scsi_device *sdev, int clear, char *id) in zfcp_erp_lun_shutdown() 469 void zfcp_erp_lun_shutdown_wait(struct scsi_device *sdev, char *id) in zfcp_erp_lun_shutdown_wait() [all …]
|
/drivers/message/fusion/ |
D | mptscsih.h | 119 extern void mptscsih_slave_destroy(struct scsi_device *device); 120 extern int mptscsih_slave_configure(struct scsi_device *device); 125 extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capac… 131 extern int mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth);
|
/drivers/target/ |
D | target_core_pscsi.c | 150 struct scsi_device *sdev) in pscsi_tape_read_blocksize() 180 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() 199 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() 233 pscsi_get_inquiry_vpd_device_ident(struct scsi_device *sdev, in pscsi_get_inquiry_vpd_device_ident() 303 struct scsi_device *sd) in pscsi_add_device_to_list() 369 static int pscsi_create_type_disk(struct se_device *dev, struct scsi_device *sd) in pscsi_create_type_disk() 413 static int pscsi_create_type_nondisk(struct se_device *dev, struct scsi_device *sd) in pscsi_create_type_nondisk() 444 struct scsi_device *sd; in pscsi_configure_device() 571 struct scsi_device *sd = pdv->pdv_sd; in pscsi_free_device() 604 struct scsi_device *sd = pdv->pdv_sd; in pscsi_transport_complete() [all …]
|
D | target_core_pscsi.h | 22 struct scsi_device; 47 struct scsi_device *pdv_sd;
|