Home
last modified time | relevance | path

Searched refs:scsi_target (Results 1 – 25 of 68) sorted by relevance

123

/linux/include/scsi/
H A Dscsi_transport_spi.h14 struct scsi_target;
95 void (*get_period)(struct scsi_target *);
96 void (*set_period)(struct scsi_target *, int);
97 void (*get_offset)(struct scsi_target *);
98 void (*set_offset)(struct scsi_target *, int);
99 void (*get_width)(struct scsi_target *);
100 void (*set_width)(struct scsi_target *, int);
101 void (*get_iu)(struct scsi_target *);
102 void (*set_iu)(struct scsi_target *, int);
103 void (*get_dt)(struct scsi_target *);
[all …]
H A Dscsi_device.h154 struct scsi_target *sdev_target;
335 struct scsi_target { struct
374 #define to_scsi_target(d) container_of(d, struct scsi_target, dev) argument
375 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() function
403 extern struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *,
405 extern struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *,
407 extern void starget_for_each_device(struct scsi_target *, void *,
409 extern void __starget_for_each_device(struct scsi_target *, void *,
476 extern void scsi_target_quiesce(struct scsi_target *);
477 extern void scsi_target_resume(struct scsi_target *);
[all …]
H A Dscsi_host.h19 struct scsi_target;
244 int (* target_alloc)(struct scsi_target *);
257 void (* target_destroy)(struct scsi_target *);
H A Dscsi_transport.h71 scsi_transport_target_data(struct scsi_target *starget) in scsi_transport_target_data()
H A Dlibsas.h387 starget_to_domain_dev(struct scsi_target *starget) { in starget_to_domain_dev()
685 extern int sas_target_alloc(struct scsi_target *);
705 extern void sas_target_destroy(struct scsi_target *);
H A Dlibiscsi.h29 struct scsi_target;
415 extern int iscsi_target_alloc(struct scsi_target *starget);
H A Dscsi_transport_fc.h679 void (*get_starget_node_name)(struct scsi_target *);
680 void (*get_starget_port_name)(struct scsi_target *);
681 void (*get_starget_port_id)(struct scsi_target *);
/linux/drivers/message/fusion/
H A Dmptspi.c87 static void mptspi_write_offset(struct scsi_target *, int);
88 static void mptspi_write_width(struct scsi_target *, int);
89 static int mptspi_write_spi_device_pg1(struct scsi_target *,
213 spi_min_period(scsi_target(sdev)) = factor; in mptspi_setTargetNegoParms()
214 spi_max_offset(scsi_target(sdev)) = offset; in mptspi_setTargetNegoParms()
215 spi_max_width(scsi_target(sdev)) = width; in mptspi_setTargetNegoParms()
397 static int mptspi_target_alloc(struct scsi_target *starget) in mptspi_target_alloc()
457 mptspi_target_destroy(struct scsi_target *starget) in mptspi_target_destroy()
471 mptspi_print_write_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) in mptspi_print_write_nego()
496 mptspi_print_read_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) in mptspi_print_read_nego()
[all …]
H A Dmptfc.c98 static int mptfc_target_alloc(struct scsi_target *starget);
101 static void mptfc_target_destroy(struct scsi_target *starget);
228 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_abort()
247 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_dev_reset()
546 mptfc_target_destroy(struct scsi_target *starget) in mptfc_target_destroy()
567 mptfc_target_alloc(struct scsi_target *starget) in mptfc_target_alloc()
639 struct scsi_target *starget; in mptfc_slave_alloc()
643 starget = scsi_target(sdev); in mptfc_slave_alloc()
683 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); in mptfc_qcmd()
1122 struct scsi_target *starget; in mptfc_setup_reset()
[all …]
H A Dmptsas.h155 struct scsi_target *starget;
/linux/drivers/scsi/
H A Dscsi_priv.h14 struct scsi_target;
176 extern void scsi_autopm_get_target(struct scsi_target *);
177 extern void scsi_autopm_put_target(struct scsi_target *);
181 static inline void scsi_autopm_get_target(struct scsi_target *t) {} in scsi_autopm_get_target()
182 static inline void scsi_autopm_put_target(struct scsi_target *t) {} in scsi_autopm_put_target()
H A Dscsi_scan.c278 static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget, in scsi_alloc_sdev()
389 static void scsi_target_destroy(struct scsi_target *starget) in scsi_target_destroy()
409 struct scsi_target *starget = to_scsi_target(dev); in scsi_target_dev_release()
426 static struct scsi_target *__scsi_find_target(struct device *parent, in __scsi_find_target()
429 struct scsi_target *starget, *found_starget = NULL; in __scsi_find_target()
458 struct scsi_target *starget in scsi_target_reap_ref_release()
459 = container_of(kref, struct scsi_target, reap_ref); in scsi_target_reap_ref_release()
474 static void scsi_target_reap_ref_put(struct scsi_target *starget) in scsi_target_reap_ref_put()
491 static struct scsi_target *scsi_alloc_target(struct device *parent, in scsi_alloc_target()
497 const int size = sizeof(struct scsi_target) in scsi_alloc_target()
[all …]
H A Dscsi_transport_spi.c215 struct scsi_target *starget = sdev->sdev_target; in spi_device_configure()
243 struct scsi_target *starget = to_scsi_target(dev); in spi_setup_transport_attrs()
275 struct scsi_target *starget = transport_class_to_starget(dev); \
290 struct scsi_target *starget = transport_class_to_starget(dev); \
305 struct scsi_target *starget = transport_class_to_starget(dev); \
322 struct scsi_target *starget = transport_class_to_starget(dev); \
340 struct scsi_target *starget = transport_class_to_starget(dev); \
404 struct scsi_target *starget = transport_class_to_starget(dev); in store_spi_revalidate()
484 struct scsi_target *starget = transport_class_to_starget(dev); in show_spi_transport_period()
500 struct scsi_target *starget = transport_class_to_starget(cdev); in store_spi_transport_period()
[all …]
H A Dscsi.c161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command()
832 void starget_for_each_device(struct scsi_target *starget, void *data, in starget_for_each_device()
860 void __starget_for_each_device(struct scsi_target *starget, void *data, in __starget_for_each_device()
889 struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *starget, in __scsi_device_lookup_by_target()
914 struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *starget, in scsi_device_lookup_by_target()
H A Dscsi_lib.c83 struct scsi_target *starget = scsi_target(device); in scsi_set_blocked()
386 struct scsi_target *starget = scsi_target(sdev); in scsi_device_unbusy()
419 struct scsi_target *starget = scsi_target(current_sdev); in scsi_single_lun_run()
451 static inline bool scsi_target_is_busy(struct scsi_target *starget) in scsi_target_is_busy()
499 if (scsi_target_is_busy(scsi_target(sdev))) { in scsi_starved_list_run()
540 if (scsi_target(sdev)->single_lun) in scsi_run_queue()
599 if (scsi_target(sdev)->single_lun || in scsi_run_queue_async()
1369 struct scsi_target *starget = scsi_target(sdev); in scsi_target_queue_ready()
1856 if (scsi_target(sdev)->can_queue > 0) in scsi_queue_rq()
1857 atomic_dec(&scsi_target(sdev)->target_busy); in scsi_queue_rq()
[all …]
H A Dscsi_pm.c235 void scsi_autopm_get_target(struct scsi_target *starget) in scsi_autopm_get_target()
240 void scsi_autopm_put_target(struct scsi_target *starget) in scsi_autopm_put_target()
H A Dscsi_sysfs.c1375 static int scsi_target_add(struct scsi_target *starget) in scsi_target_add()
1407 struct scsi_target *starget = sdev->sdev_target; in scsi_sysfs_add_sdev()
1525 scsi_target_reap(scsi_target(sdev)); in __scsi_remove_device()
1544 static void __scsi_remove_target(struct scsi_target *starget) in __scsi_remove_target()
1586 struct scsi_target *starget; in scsi_remove_target()
1651 struct scsi_target *starget = sdev->sdev_target; in scsi_sysfs_device_initialize()
/linux/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c596 static struct scsi_target ** in DEF_SCSI_QCMD()
597 ahd_linux_target_in_softc(struct scsi_target *starget) in DEF_SCSI_QCMD()
611 ahd_linux_target_alloc(struct scsi_target *starget) in ahd_linux_target_alloc()
617 struct scsi_target **ahd_targp = ahd_linux_target_in_softc(starget); in ahd_linux_target_alloc()
667 ahd_linux_target_destroy(struct scsi_target *starget) in ahd_linux_target_destroy()
669 struct scsi_target **ahd_targp = ahd_linux_target_in_softc(starget); in ahd_linux_target_destroy()
1324 struct scsi_target *starget; in ahd_platform_free()
1677 struct scsi_target *starget; in ahd_send_async()
2367 static void ahd_linux_set_width(struct scsi_target *starget, int width) in ahd_linux_set_width()
2381 static void ahd_linux_set_period(struct scsi_target *starget, int period) in ahd_linux_set_period()
[all …]
H A Daic7xxx_osm.c543 static inline struct scsi_target ** in DEF_SCSI_QCMD()
544 ahc_linux_target_in_softc(struct scsi_target *starget) in DEF_SCSI_QCMD()
558 ahc_linux_target_alloc(struct scsi_target *starget) in ahc_linux_target_alloc()
564 struct scsi_target **ahc_targp = ahc_linux_target_in_softc(starget); in ahc_linux_target_alloc()
627 ahc_linux_target_destroy(struct scsi_target *starget) in ahc_linux_target_destroy()
629 struct scsi_target **ahc_targp = ahc_linux_target_in_softc(starget); in ahc_linux_target_destroy()
639 struct scsi_target *starget = sdev->sdev_target; in ahc_linux_slave_alloc()
1220 struct scsi_target *starget; in ahc_platform_free()
1601 struct scsi_target *starget; in ahc_send_async()
2324 static void ahc_linux_set_width(struct scsi_target *starget, int width) in ahc_linux_set_width()
[all …]
/linux/drivers/s390/scsi/
H A Dzfcp_scsi.c70 struct fc_rport *rport = starget_to_rport(scsi_target(scpnt->device)); in zfcp_scsi_queuecommand()
115 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc()
293 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_task_mgmt_function()
345 struct scsi_target *starget = scsi_target(scpnt->device); in zfcp_scsi_eh_target_reset_handler()
/linux/drivers/scsi/snic/
H A Dsnic_disc.h93 (is_snic_target(((struct scsi_target *) st)->dev.parent) ? \
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_glue.c624 struct scsi_target *starget = scsi_target(cmd->device); in sym53c8xx_eh_target_reset_handler()
1933 static void sym2_set_offset(struct scsi_target *starget, int offset) in sym2_set_offset()
1943 static void sym2_set_period(struct scsi_target *starget, int period) in sym2_set_period()
1958 static void sym2_set_width(struct scsi_target *starget, int width) in sym2_set_width()
1973 static void sym2_set_dt(struct scsi_target *starget, int dt) in sym2_set_dt()
1988 static void sym2_set_iu(struct scsi_target *starget, int iu)
2001 static void sym2_set_qas(struct scsi_target *starget, int qas)
/linux/drivers/scsi/ibmvscsi/
H A Dibmvfc.c1229 static struct ibmvfc_target *__ibmvfc_get_target(struct scsi_target *starget) in __ibmvfc_get_target()
1250 static struct ibmvfc_target *ibmvfc_get_target(struct scsi_target *starget) in ibmvfc_get_target()
1379 static void ibmvfc_get_starget_node_name(struct scsi_target *starget) in ibmvfc_get_starget_node_name()
1394 static void ibmvfc_get_starget_port_name(struct scsi_target *starget) in ibmvfc_get_starget_port_name()
1409 static void ibmvfc_get_starget_port_id(struct scsi_target *starget) in ibmvfc_get_starget_port_id()
1830 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin()
1930 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_init_vfc_cmd()
1966 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in ibmvfc_queuecommand()
2343 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_reset_device()
2424 cmd_rport = starget_to_rport(scsi_target(evt->cmnd->device)); in ibmvfc_match_rport()
[all …]
/linux/drivers/scsi/bfa/
H A Dbfad_im.c370 struct scsi_target *starget = scsi_target(cmnd->device); in bfad_im_reset_target_handler()
954 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in bfad_im_slave_alloc()
1213 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); in bfad_im_queuecommand_lck()
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_os.c588 struct scsi_target *starget = (struct scsi_target *)data; in mpi3mr_count_tgt_pending()
597 if (scmd->device && (scsi_target(scmd->device) == starget)) in mpi3mr_count_tgt_pending()
1009 struct scsi_target *starget = scsi_target(sdev); in mpi3mr_change_queue_depth()
4482 struct scsi_target *starget; in mpi3mr_slave_destroy()
4488 starget = scsi_target(sdev); in mpi3mr_slave_destroy()
4522 static void mpi3mr_target_destroy(struct scsi_target *starget) in mpi3mr_target_destroy()
4567 struct scsi_target *starget; in mpi3mr_device_configure()
4575 starget = scsi_target(sdev); in mpi3mr_device_configure()
4617 struct scsi_target *starget; in mpi3mr_slave_alloc()
4621 starget = scsi_target(sdev); in mpi3mr_slave_alloc()
[all …]

123