Home
last modified time | relevance | path

Searched refs:scsi_device (Results 1 – 25 of 197) sorted by relevance

12345678

/Linux-v6.1/include/scsi/
Dscsi_device.h107 struct scsi_device { struct
260 container_of(d, struct scsi_device, sdev_gendev) argument
262 container_of(d, struct scsi_device, sdev_dev)
274 sdev_prefix_printk(const char *, const struct scsi_device *, const char *,
308 struct scsi_device *starget_sdev_user;
347 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target()
357 extern struct scsi_device *__scsi_add_device(struct Scsi_Host *,
362 extern void scsi_remove_device(struct scsi_device *);
364 void scsi_attach_vpd(struct scsi_device *sdev);
366 extern struct scsi_device *scsi_device_from_queue(struct request_queue *q);
[all …]
Dscsi_dh.h55 enum scsi_disposition (*check_sense)(struct scsi_device *,
57 int (*attach)(struct scsi_device *);
58 void (*detach)(struct scsi_device *);
59 int (*activate)(struct scsi_device *, activate_complete, void *);
60 blk_status_t (*prep_fn)(struct scsi_device *, struct request *);
61 int (*set_params)(struct scsi_device *, const char *);
62 void (*rescan)(struct scsi_device *);
Dscsi_host.h18 struct scsi_device;
104 int (*ioctl)(struct scsi_device *dev, unsigned int cmd,
115 int (*compat_ioctl)(struct scsi_device *dev, unsigned int cmd,
172 int (* slave_alloc)(struct scsi_device *);
203 int (* slave_configure)(struct scsi_device *);
214 void (* slave_destroy)(struct scsi_device *);
271 int (* change_queue_depth)(struct scsi_device *, int);
306 int (* bios_param)(struct scsi_device *, struct block_device *,
315 void (*unlock_native_capacity)(struct scsi_device *);
Dscsi_transport_sas.h197 u64 sas_get_address(struct scsi_device *);
198 unsigned int sas_tlr_supported(struct scsi_device *);
199 unsigned int sas_is_tlr_enabled(struct scsi_device *);
200 void sas_disable_tlr(struct scsi_device *);
201 void sas_enable_tlr(struct scsi_device *);
230 int sas_read_port_mode_page(struct scsi_device *);
Dscsi_ioctl.h22 struct scsi_device;
46 int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev,
48 int scsi_ioctl(struct scsi_device *sdev, fmode_t mode, int cmd,
Dscsi_dbg.h6 struct scsi_device;
12 extern void scsi_print_sense_hdr(const struct scsi_device *, const char *,
15 extern void __scsi_print_sense(const struct scsi_device *, const char *name,
Dscsi_eh.h9 struct scsi_device;
17 extern int scsi_block_when_processing_errors(struct scsi_device *);
30 extern int scsi_ioctl_reset(struct scsi_device *, int __user *);
/Linux-v6.1/drivers/scsi/
Dscsi_priv.h13 struct scsi_device;
46 void scsi_init_command(struct scsi_device *dev, struct scsi_cmnd *cmd);
65 extern blist_flags_t scsi_get_device_flags(struct scsi_device *sdev,
68 extern blist_flags_t scsi_get_device_flags_keyed(struct scsi_device *sdev,
100 extern int scsi_maybe_unblock_host(struct scsi_device *sdev);
101 extern void scsi_device_unbusy(struct scsi_device *sdev, struct scsi_cmnd *cmd);
106 extern void scsi_start_queue(struct scsi_device *sdev);
147 extern int scsi_sysfs_add_sdev(struct scsi_device *);
151 extern void scsi_sysfs_device_initialize(struct scsi_device *);
152 extern int scsi_sysfs_target_initialize(struct scsi_device *);
[all …]
Dscsi.c160 struct scsi_device *sdev = cmd->device; in scsi_finish_command()
205 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth()
217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth()
254 int scsi_track_queue_full(struct scsi_device *sdev, int depth) in scsi_track_queue_full()
292 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer, in scsi_vpd_inquiry()
324 static int scsi_get_vpd_size(struct scsi_device *sdev, u8 page) in scsi_get_vpd_size()
362 int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, in scsi_get_vpd_page()
400 static struct scsi_vpd *scsi_get_vpd_buf(struct scsi_device *sdev, u8 page) in scsi_get_vpd_buf()
437 static void scsi_update_vpd_page(struct scsi_device *sdev, u8 page, in scsi_update_vpd_page()
464 void scsi_attach_vpd(struct scsi_device *sdev) in scsi_attach_vpd()
[all …]
Dscsi_lib.c82 struct scsi_device *device = cmd->device; in scsi_set_blocked()
146 struct scsi_device *device = cmd->device; in __scsi_queue_insert()
207 int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in __scsi_execute()
291 void scsi_device_unbusy(struct scsi_device *sdev, struct scsi_cmnd *cmd) in scsi_device_unbusy()
317 static void scsi_single_lun_run(struct scsi_device *current_sdev) in scsi_single_lun_run()
320 struct scsi_device *sdev, *tmp; in scsi_single_lun_run()
356 static inline bool scsi_device_is_busy(struct scsi_device *sdev) in scsi_device_is_busy()
388 struct scsi_device *sdev; in scsi_starved_list_run()
411 struct scsi_device, starved_entry); in scsi_starved_list_run()
452 struct scsi_device *sdev = q->queuedata; in scsi_run_queue()
[all …]
Dscsi_sysfs.c438 struct scsi_device *sdev; in scsi_device_cls_release()
446 struct scsi_device *sdev; in scsi_device_dev_release_usercontext()
455 sdev = container_of(work, struct scsi_device, ew.work); in scsi_device_dev_release_usercontext()
526 struct scsi_device *sdp = to_scsi_device(dev); in scsi_device_dev_release()
544 struct scsi_device *sdp; in scsi_bus_match()
557 struct scsi_device *sdev; in scsi_bus_uevent()
606 struct scsi_device *sdev; \
631 struct scsi_device *sdev; \
653 struct scsi_device *sdev; \
694 struct scsi_device *sdev = to_scsi_device(dev); in sdev_show_device_busy()
[all …]
Dscsi_dh.c71 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver()
124 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach()
163 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach()
170 void scsi_dh_add_device(struct scsi_device *sdev) in scsi_dh_add_device()
186 void scsi_dh_release_device(struct scsi_device *sdev) in scsi_dh_release_device()
253 struct scsi_device *sdev; in scsi_dh_activate()
300 struct scsi_device *sdev; in scsi_dh_set_params()
322 struct scsi_device *sdev; in scsi_dh_attach()
361 struct scsi_device *sdev; in scsi_dh_attached_handler_name()
D53c700.h107 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()
Dses.c47 struct scsi_device *sdev = to_scsi_device(dev); in ses_probe()
77 static int ses_recv_diag(struct scsi_device *sdev, int page_code, in ses_recv_diag()
118 static int ses_send_diag(struct scsi_device *sdev, int page_code, in ses_send_diag()
152 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor()
182 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_get_page2_descriptor()
421 struct scsi_device *sdev;
512 struct scsi_device *sdev, in ses_enclosure_data_process()
616 struct scsi_device *sdev, in ses_match_to_enclosure()
619 struct scsi_device *edev_sdev = to_scsi_device(edev->edev.parent); in ses_match_to_enclosure()
640 struct scsi_device *sdev = to_scsi_device(cdev->parent); in ses_intf_add()
[all …]
Dsd.h85 struct scsi_device *device;
205 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors()
210 static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t blocks) in logical_to_bytes()
215 static inline sector_t bytes_to_logical(struct scsi_device *sdev, unsigned int bytes) in bytes_to_logical()
220 static inline sector_t sectors_to_logical(struct scsi_device *sdev, sector_t sector) in sectors_to_logical()
Dscsi_ioctl.c67 static int ioctl_internal_command(struct scsi_device *sdev, char *cmd, in ioctl_internal_command()
121 int scsi_set_medium_removal(struct scsi_device *sdev, char state) in scsi_set_medium_removal()
154 static int scsi_ioctl_get_pci(struct scsi_device *sdev, void __user *arg) in scsi_ioctl_get_pci()
176 static int sg_set_timeout(struct scsi_device *sdev, int __user *p) in sg_set_timeout()
186 static int sg_get_reserved_size(struct scsi_device *sdev, int __user *p) in sg_get_reserved_size()
194 static int sg_set_reserved_size(struct scsi_device *sdev, int __user *p) in sg_set_reserved_size()
218 static int scsi_get_idlun(struct scsi_device *sdev, void __user *argp) in scsi_get_idlun()
232 static int scsi_send_start_stop(struct scsi_device *sdev, int data) in scsi_send_start_stop()
345 static int scsi_fill_sghdr_rq(struct scsi_device *sdev, struct request *rq, in scsi_fill_sghdr_rq()
407 static int sg_io(struct scsi_device *sdev, struct sg_io_hdr *hdr, fmode_t mode) in sg_io()
[all …]
/Linux-v6.1/drivers/scsi/cxlflash/
Dsuperpipe.h64 struct scsi_device *sdev;
70 struct scsi_device *sdev;
117 int cxlflash_vlun_resize(struct scsi_device *sdev,
119 int _cxlflash_vlun_resize(struct scsi_device *sdev, struct ctx_info *ctxi,
122 int cxlflash_disk_release(struct scsi_device *sdev,
124 int _cxlflash_disk_release(struct scsi_device *sdev, struct ctx_info *ctxi,
127 int cxlflash_disk_clone(struct scsi_device *sdev,
130 int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg);
148 int cxlflash_manage_lun(struct scsi_device *sdev,
/Linux-v6.1/drivers/s390/scsi/
Dzfcp_ext.h36 struct zfcp_port *, struct scsi_device *, u8, u8);
39 struct scsi_device *sdev, u8 want, u8 need);
54 extern void zfcp_dbf_scsi_common(char *tag, int level, struct scsi_device *sdev,
76 extern void zfcp_erp_set_lun_status(struct scsi_device *, u32);
77 extern void zfcp_erp_clear_lun_status(struct scsi_device *, u32);
78 extern void zfcp_erp_lun_reopen(struct scsi_device *, int, char *);
79 extern void zfcp_erp_lun_shutdown(struct scsi_device *, int, char *);
80 extern void zfcp_erp_lun_shutdown_wait(struct scsi_device *, char *);
137 extern struct zfcp_fsf_req *zfcp_fsf_fcp_task_mgmt(struct scsi_device *sdev,
195 extern struct scsi_device *zfcp_unit_sdev(struct zfcp_unit *unit);
Dzfcp_erp.c84 static void zfcp_erp_action_dismiss_lun(struct scsi_device *sdev) in zfcp_erp_action_dismiss_lun()
94 struct scsi_device *sdev; in zfcp_erp_action_dismiss_port()
123 struct zfcp_port *port, struct scsi_device *sdev) in zfcp_erp_handle_failed()
164 struct scsi_device *sdev) in zfcp_erp_required_act()
217 struct scsi_device *sdev) in zfcp_erp_setup_act()
284 struct scsi_device *sdev, in zfcp_erp_action_enqueue()
453 static void zfcp_erp_lun_block(struct scsi_device *sdev, int clear_mask) in zfcp_erp_lun_block()
459 static void _zfcp_erp_lun_reopen(struct scsi_device *sdev, int clear, in _zfcp_erp_lun_reopen()
479 void zfcp_erp_lun_reopen(struct scsi_device *sdev, int clear, char *dbftag) in zfcp_erp_lun_reopen()
497 void zfcp_erp_lun_shutdown(struct scsi_device *sdev, int clear, char *dbftag) in zfcp_erp_lun_shutdown()
[all …]
/Linux-v6.1/drivers/scsi/device_handler/
Dscsi_dh_hp_sw.c31 struct scsi_device *sdev;
43 static int tur_done(struct scsi_device *sdev, struct hp_sw_dh_data *h, in tur_done()
81 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur()
121 struct scsi_device *sdev = h->sdev; in hp_sw_start_stop()
162 static blk_status_t hp_sw_prep_fn(struct scsi_device *sdev, struct request *req) in hp_sw_prep_fn()
184 static int hp_sw_activate(struct scsi_device *sdev, in hp_sw_activate()
200 static int hp_sw_bus_attach(struct scsi_device *sdev) in hp_sw_bus_attach()
231 static void hp_sw_bus_detach( struct scsi_device *sdev ) in hp_sw_bus_detach()
Dscsi_dh_emc.c100 static int trespass_endio(struct scsi_device *sdev, in trespass_endio()
135 static int parse_sp_info_reply(struct scsi_device *sdev, in parse_sp_info_reply()
189 static char * parse_sp_model(struct scsi_device *sdev, unsigned char *buffer) in parse_sp_model()
235 static int send_trespass_cmd(struct scsi_device *sdev, in send_trespass_cmd()
283 static enum scsi_disposition clariion_check_sense(struct scsi_device *sdev, in clariion_check_sense()
331 static blk_status_t clariion_prep_fn(struct scsi_device *sdev, in clariion_prep_fn()
344 static int clariion_std_inquiry(struct scsi_device *sdev, in clariion_std_inquiry()
369 static int clariion_send_inquiry(struct scsi_device *sdev, in clariion_send_inquiry()
381 static int clariion_activate(struct scsi_device *sdev, in clariion_activate()
423 static int clariion_set_params(struct scsi_device *sdev, const char *params) in clariion_set_params()
[all …]
Dscsi_dh_alua.c80 struct scsi_device *rtpg_sdev;
88 struct scsi_device *sdev;
105 struct scsi_device *sdev,
107 static void alua_check(struct scsi_device *sdev, bool force);
126 static int submit_rtpg(struct scsi_device *sdev, unsigned char *buff, in submit_rtpg()
154 static int submit_stpg(struct scsi_device *sdev, int group_id, in submit_stpg()
211 static struct alua_port_group *alua_alloc_pg(struct scsi_device *sdev, in alua_alloc_pg()
268 static int alua_check_tpgs(struct scsi_device *sdev) in alua_check_tpgs()
320 static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h, in alua_check_vpd()
409 static enum scsi_disposition alua_check_sense(struct scsi_device *sdev, in alua_check_sense()
[all …]
Dscsi_dh_rdac.c166 struct scsi_device *ms_sdev;
187 struct scsi_device *sdev;
327 u8 *array_id, struct scsi_device *sdev) in get_controller()
362 static int get_lun_info(struct scsi_device *sdev, struct rdac_dh_data *h, in get_lun_info()
388 static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h) in check_ownership()
437 static int initialize_controller(struct scsi_device *sdev, in initialize_controller()
465 static int set_mode_select(struct scsi_device *sdev, struct rdac_dh_data *h) in set_mode_select()
485 static int mode_select_handle_sense(struct scsi_device *sdev, in mode_select_handle_sense()
531 struct scsi_device *sdev = ctlr->ms_sdev; in send_mode_select()
585 static int queue_mode_select(struct scsi_device *sdev, in queue_mode_select()
[all …]
/Linux-v6.1/drivers/message/fusion/
Dmptscsih.h119 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);
/Linux-v6.1/drivers/ufs/core/
Dufshpb.h224 struct scsi_device *sdev_ufs_lu;
293 static void ufshpb_init_hpb_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_init_hpb_lu()
294 static void ufshpb_destroy_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_destroy_lu()
307 void ufshpb_init_hpb_lu(struct ufs_hba *hba, struct scsi_device *sdev);
308 void ufshpb_destroy_lu(struct ufs_hba *hba, struct scsi_device *sdev);

12345678