Home
last modified time | relevance | path

Searched refs:scsi_pkt (Results 1 – 25 of 103) sorted by relevance

12345

/onnv-gate/usr/src/uts/common/sys/scsi/
H A Dscsi_resource.h68 struct scsi_pkt *scsi_init_pkt(struct scsi_address *,
69 struct scsi_pkt *, struct buf *, int, int, int, int,
71 void scsi_destroy_pkt(struct scsi_pkt *);
73 int scsi_pkt_allocated_correctly(struct scsi_pkt *);
74 struct scsi_pkt *scsi_dmaget(struct scsi_pkt *, opaque_t, int (*)(void));
75 void scsi_dmafree(struct scsi_pkt *);
76 void scsi_sync_pkt(struct scsi_pkt *);
82 struct scsi_pkt pcw_pkt;
102 struct buf *scsi_pkt2bp(struct scsi_pkt *);
121 struct scsi_pkt *scsi_pktalloc(struct scsi_address *, int, int, int (*)(void));
[all …]
H A Dscsi_pkt.h49 struct scsi_pkt { struct
53 void (*pkt_comp)(struct scsi_pkt *); /* completion routine */ argument
275 int scsi_transport(struct scsi_pkt *pkt);
H A Dscsi_ctl.h81 int scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);
86 int scsi_terminate_task(struct scsi_address *ap, struct scsi_pkt *pkt);
/onnv-gate/usr/src/uts/common/sys/scsi/impl/
H A Dtransport.h101 struct scsi_pkt *pkt);
109 struct scsi_pkt *pkt);
122 struct scsi_pkt *(*tran_init_pkt)(
124 struct scsi_pkt *pkt,
136 struct scsi_pkt *pkt);
140 struct scsi_pkt *pkt);
144 struct scsi_pkt *pkt);
170 struct scsi_pkt *pkt);
262 struct scsi_pkt *pkt,
266 struct scsi_pkt *pkt,
[all …]
H A Dservices.h51 int scsi_poll(struct scsi_pkt *);
52 struct scsi_pkt *get_pktiopb(struct scsi_address *,
55 void free_pktiopb(struct scsi_pkt *, caddr_t datap, int datalen);
73 void scsi_vu_errmsg(struct scsi_device *devp, struct scsi_pkt *pktp,
79 void scsi_errmsg(struct scsi_device *devp, struct scsi_pkt *pkt,
/onnv-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_resource.c134 scsi_dmafree_attr(struct scsi_pkt *pktp) in scsi_dmafree_attr()
151 scsi_pkt2bp(struct scsi_pkt *pkt) in scsi_pkt2bp()
163 struct scsi_pkt *pktp = &(pktw->pcw_pkt); in scsi_dma_buf_bind_attr()
217 struct scsi_pkt *pktp = &(pktw->pcw_pkt); in scsi_dmaget_attr()
268 void scsi_free_cache_pkt(struct scsi_address *, struct scsi_pkt *);
270 struct scsi_pkt *
271 scsi_init_cache_pkt(struct scsi_address *ap, struct scsi_pkt *in_pktp, in scsi_init_cache_pkt()
518 scsi_free_cache_pkt(struct scsi_address *ap, struct scsi_pkt *pktp) in scsi_free_cache_pkt()
564 struct scsi_pkt *
565 scsi_init_pkt(struct scsi_address *ap, struct scsi_pkt *in_pktp, in scsi_init_pkt()
[all …]
H A Dscsi_transport.c69 scsi_callback_done(struct scsi_pkt *pkt) in scsi_callback_done()
79 scsi_flag_nointr_comp(struct scsi_pkt *pkt) in scsi_flag_nointr_comp()
104 scsi_transport(struct scsi_pkt *pkt) in scsi_transport()
H A Dscsi_watch.c122 struct scsi_pkt *swr_pkt; /* TUR pkt itself */
123 struct scsi_pkt *swr_rqpkt; /* request sense pkt */
156 static void scsi_watch_request_intr(struct scsi_pkt *pkt);
231 struct scsi_pkt *rqpkt = NULL; in scsi_watch_request_submit_impl()
232 struct scsi_pkt *pkt = NULL; in scsi_watch_request_submit_impl()
280 rqpkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, in scsi_watch_request_submit_impl()
304 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, mmcbp, in scsi_watch_request_submit_impl()
314 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, NULL, in scsi_watch_request_submit_impl()
321 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, NULL, in scsi_watch_request_submit_impl()
873 scsi_watch_request_intr(struct scsi_pkt *pkt) in scsi_watch_request_intr()
H A Dscsi_control.c36 scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt) in scsi_abort()
76 scsi_terminate_task(struct scsi_address *ap, struct scsi_pkt *pkt) in scsi_terminate_task()
/onnv-gate/usr/src/uts/common/io/
H A Demul64.c78 static int emul64_scsi_start(struct scsi_address *ap, struct scsi_pkt *pkt);
80 static int emul64_scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);
85 static struct scsi_pkt *emul64_scsi_init_pkt(struct scsi_address *ap,
86 struct scsi_pkt *pkt, struct buf *bp, int cmdlen, int statuslen,
89 struct scsi_pkt *pkt);
90 static void emul64_scsi_dmafree(struct scsi_address *ap, struct scsi_pkt *pkt);
91 static void emul64_scsi_sync_pkt(struct scsi_address *ap, struct scsi_pkt *pkt);
123 struct scsi_pkt *pkt);
809 static struct scsi_pkt *
810 emul64_scsi_init_pkt(struct scsi_address *ap, struct scsi_pkt *pkt, in emul64_scsi_init_pkt()
[all …]
H A Demul64_bsd.c175 extern void emul64_check_cond(struct scsi_pkt *pkt, uchar_t key,
180 static int bsd_mode_sense_dad_mode_geometry(struct scsi_pkt *);
181 static int bsd_mode_sense_dad_mode_err_recov(struct scsi_pkt *);
182 static int bsd_mode_sense_modepage_disco_reco(struct scsi_pkt *);
183 static int bsd_mode_sense_dad_mode_format(struct scsi_pkt *);
184 static int bsd_mode_sense_dad_mode_cache(struct scsi_pkt *);
270 bsd_scsi_start_stop_unit(struct scsi_pkt *pkt) in bsd_scsi_start_stop_unit()
277 bsd_scsi_test_unit_ready(struct scsi_pkt *pkt) in bsd_scsi_test_unit_ready()
284 bsd_scsi_request_sense(struct scsi_pkt *pkt) in bsd_scsi_request_sense()
290 bsd_scsi_inq_page0(struct scsi_pkt *pkt, uchar_t pqdtype) in bsd_scsi_inq_page0()
[all …]
/onnv-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_scsa.h48 struct scsi_pkt *pktp);
51 struct scsi_pkt *pktp);
53 struct scsi_pkt *ghd_tran_init_pkt_attr(ccc_t *cccp, struct scsi_address *ap,
54 struct scsi_pkt *pktp, struct buf *bp,
H A Dghd_scsa.c36 static struct scsi_pkt *ghd_pktalloc(ccc_t *cccp, struct scsi_address *ap,
69 ghd_tran_sync_pkt(struct scsi_address *ap, struct scsi_pkt *pktp) in ghd_tran_sync_pkt()
85 static struct scsi_pkt *
96 struct scsi_pkt *pktp; in ghd_pktalloc()
153 struct scsi_pkt *pktp) in ghd_pktfree()
166 struct scsi_pkt *
169 struct scsi_pkt *pktp, in ghd_tran_init_pkt_attr()
/onnv-gate/usr/src/uts/common/sys/1394/targets/scsa1394/
H A Dcmd.h66 struct scsi_pkt *sc_pkt; /* corresponding scsi pkt */
113 struct scsi_pkt sc_scsi_pkt; /* must be last */
118 sizeof (struct scsi_pkt) + scsi_pkt_size())
121 scsi_pkt scsi_inquiry scsi_extended_sense scsi_cdb scsi_arq_status }))
124 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->sc_pkt))
/onnv-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Datapi.c40 static int atapi_tran_abort(struct scsi_address *ap, struct scsi_pkt *spktp);
45 static struct scsi_pkt *atapi_tran_init_pkt(struct scsi_address *ap,
46 struct scsi_pkt *spktp, struct buf *bp, int cmdlen, int statuslen,
49 struct scsi_pkt *spktp);
50 static void atapi_tran_dmafree(struct scsi_address *ap, struct scsi_pkt *spktp);
52 struct scsi_pkt *spktp);
53 static int atapi_tran_start(struct scsi_address *ap, struct scsi_pkt *spktp);
430 struct scsi_pkt *spktp) in atapi_tran_abort()
601 static struct scsi_pkt *
604 struct scsi_pkt *spktp, in atapi_tran_init_pkt()
[all …]
/onnv-gate/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_scsa.h47 struct scsi_pkt *pktp);
50 struct scsi_pkt *pktp);
/onnv-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c85 static int scsa1394_probe_tran(struct scsi_pkt *);
86 static struct scsi_pkt *scsa1394_scsi_init_pkt(struct scsi_address *,
87 struct scsi_pkt *, struct buf *, int, int, int, int,
90 struct scsi_pkt *);
91 static int scsa1394_scsi_start(struct scsi_address *, struct scsi_pkt *);
92 static int scsa1394_scsi_abort(struct scsi_address *, struct scsi_pkt *);
96 static void scsa1394_scsi_dmafree(struct scsi_address *, struct scsi_pkt *);
98 struct scsi_pkt *);
126 static void scsa1394_prepare_pkt(scsa1394_state_t *, struct scsi_pkt *);
1081 struct scsi_pkt *pkt; in scsa1394_probe_g0_nodata()
[all …]
/onnv-gate/usr/src/uts/common/io/scsi/targets/
H A Dses.c117 static int ses_decode_sense(struct scsi_pkt *pkt, int *err);
120 static void ses_callback(struct scsi_pkt *pkt);
1078 struct scsi_pkt *pkt; in ses_get_pkt()
1103 if (pkt == (struct scsi_pkt *)NULL) in ses_get_pkt()
1119 struct scsi_pkt *pkt = (struct scsi_pkt *)arg; in ses_restart()
1149 pkt = (struct scsi_pkt *)bp->av_back; in ses_restart()
1162 ses_callback(struct scsi_pkt *pkt) in ses_callback()
1268 pkt = (struct scsi_pkt *)bp->av_back; in ses_callback()
1305 if (scsi_transport((struct scsi_pkt *)bp->av_back) in ses_callback()
1308 (struct scsi_pkt *)bp->av_back); in ses_callback()
[all …]
/onnv-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_scsa.h56 struct scsi_pkt *cmd_pkt; /* actual SCSI Packet */
78 size_t pmcs_set_resid(struct scsi_pkt *, size_t, uint32_t);
/onnv-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas.h580 struct scsi_pkt *cmd_pkt;
615 struct scsi_pkt *pkt;
1705 static struct scsi_pkt *mrsas_tran_init_pkt(struct scsi_address *, register
1706 struct scsi_pkt *, struct buf *, int, int, int, int,
1709 register struct scsi_pkt *);
1710 static int mrsas_tran_abort(struct scsi_address *, struct scsi_pkt *);
1715 struct scsi_pkt *);
1716 static void mrsas_tran_dmafree(struct scsi_address *, struct scsi_pkt *);
1717 static void mrsas_tran_sync_pkt(struct scsi_address *, struct scsi_pkt *);
1744 static int mrsas_dma_alloc(struct mrsas_instance *, struct scsi_pkt *,
[all …]
/onnv-gate/usr/src/uts/common/io/mega_sas/
H A Dmegaraid_sas.h1360 struct scsi_pkt *cmd_pkt;
1394 struct scsi_pkt *pkt;
1595 static struct scsi_pkt *megasas_tran_init_pkt(struct scsi_address *, register
1596 struct scsi_pkt *, struct buf *, int, int, int, int,
1599 register struct scsi_pkt *);
1600 static int megasas_tran_abort(struct scsi_address *, struct scsi_pkt *);
1606 struct scsi_pkt *);
1607 static void megasas_tran_dmafree(struct scsi_address *, struct scsi_pkt *);
1608 static void megasas_tran_sync_pkt(struct scsi_address *, struct scsi_pkt *);
1646 static int megasas_dma_alloc(struct megasas_instance *, struct scsi_pkt *,
[all …]
/onnv-gate/usr/src/uts/intel/io/amr/
H A Damr.c139 struct scsi_pkt *pkt, int lun);
142 static void amr_set_arq_data(struct scsi_pkt *pkt, uchar_t key);
172 static int amr_tran_start(struct scsi_address *ap, struct scsi_pkt *pkt);
177 static struct scsi_pkt *amr_tran_init_pkt(struct scsi_address *ap,
178 struct scsi_pkt *pkt, struct buf *bp, int cmdlen, int statuslen,
180 static void amr_tran_destroy_pkt(struct scsi_address *ap, struct scsi_pkt *pkt);
181 static void amr_tran_dmafree(struct scsi_address *ap, struct scsi_pkt *pkt);
182 static void amr_tran_sync_pkt(struct scsi_address *ap, struct scsi_pkt *pkt);
715 struct scsi_pkt *pkt; in amr_periodic()
1494 amr_tran_start(struct scsi_address *ap, struct scsi_pkt *pkt) in amr_tran_start()
[all …]
/onnv-gate/usr/src/uts/common/io/scsi/conf/
H A Dscsi_confsubr.c292 struct scsi_pkt *rq_pkt = NULL; in scsi_slave_do_rqsense()
306 rq_pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, in scsi_slave_do_rqsense()
359 struct scsi_pkt *pkt; in scsi_slave()
367 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, NULL, in scsi_slave()
605 scsi_test_ereport_post(struct scsi_pkt *pkt, enum scsi_test_ctxt ctxt, in scsi_test_ereport_post()
904 scsi_test(struct scsi_pkt *pkt, enum scsi_test_ctxt ctxt) in scsi_test()
1089 struct scsi_pkt *inq_pkt = NULL; in scsi_hba_probe_pi()
1090 struct scsi_pkt *rq_pkt = NULL; in scsi_hba_probe_pi()
1118 inq_pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, in scsi_hba_probe_pi()
1222 rq_pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, in scsi_hba_probe_pi()
[all …]
/onnv-gate/usr/src/uts/common/sys/scsi/targets/
H A Dses.h45 #define BP_PKT(bp) ((struct scsi_pkt *)(bp)->av_back)
51 #define Scsipktp struct scsi_pkt *
195 _NOTE(SCHEME_PROTECTS_DATA("unique per pkt", scsi_pkt buf uio scsi_cdb))
H A Dsgendef.h75 struct scsi_pkt *sgen_cmdpkt; /* scsi packet for command */
78 struct scsi_pkt *sgen_rqspkt; /* request sense packet */

12345