Searched refs:scsi_pkt (Results 1 - 25 of 83) sorted by relevance

1234

/illumos-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 *);
79 * Private wrapper for scsi_pkt's allocated via scsi_init_cache_pkt()
82 struct scsi_pkt pcw_pk
[all...]
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);
H A Dscsi_pkt.h49 struct scsi_pkt { struct
53 void (*pkt_comp)(struct scsi_pkt *); /* completion routine */
64 * The DDI does not allow a driver to allocate it's own scsi_pkt(9S),
66 * "sizeof (struct scsi_pkt)". If the driver has such dependencies, it
68 * allocate a scsi_pkt is via scsi_hba_pkt_alloc(9F), or the newer
73 * NB: Until we can trust drivers to follow DDI scsi_pkt(9S) allocation
76 * scsi_pkt allocation interfaces must have been used. This means that
78 * knows nothing about how an HBA drivers performs scsi_pkt allocation.
83 * proper DDI scsi_pkt allocation interfaces is too great given the
275 int scsi_transport(struct scsi_pkt *pk
[all...]
H A Dscsi_watch.h38 struct scsi_pkt *pkt;
H A Dscsi_types.h77 #include <sys/scsi/scsi_pkt.h>
/illumos-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)
85 static struct scsi_pkt *
96 struct scsi_pkt *pktp;
125 * save the the scsi_pkt ptr in gcmd_t.
153 struct scsi_pkt *pktp)
161 /* free the scsi_pkt and the GHD and HBA private areas */
166 struct scsi_pkt *
169 struct scsi_pkt *pktp,
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_scsa.h47 struct scsi_pkt *pktp);
50 struct scsi_pkt *pktp);
/illumos-gate/usr/src/uts/common/sys/scsi/impl/
H A Dtransport.h102 struct scsi_pkt *pkt);
110 struct scsi_pkt *pkt);
123 struct scsi_pkt *(*tran_init_pkt)(
125 struct scsi_pkt *pkt,
137 struct scsi_pkt *pkt);
141 struct scsi_pkt *pkt);
145 struct scsi_pkt *pkt);
171 struct scsi_pkt *pkt);
261 /* tran_setup_pkt(9E) related scsi_pkt fields */
263 struct scsi_pkt *pk
[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,
H A Duscsi.h204 int scsi_uscsi_pktinit(struct uscsi_cmd *, struct scsi_pkt *);
208 int scsi_uscsi_pktfini(struct scsi_pkt *, struct uscsi_cmd *);
/illumos-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))
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_resource.c132 scsi_dmafree_attr(struct scsi_pkt *pktp)
149 scsi_pkt2bp(struct scsi_pkt *pkt)
161 struct scsi_pkt *pktp = &(pktw->pcw_pkt);
215 struct scsi_pkt *pktp = &(pktw->pcw_pkt);
266 void scsi_free_cache_pkt(struct scsi_address *, struct scsi_pkt *);
268 struct scsi_pkt *
269 scsi_init_cache_pkt(struct scsi_address *ap, struct scsi_pkt *in_pktp,
288 * scsi_pkt, scsi_pkt_cache_wrapper, hba private data,
293 * the first structure field scsi_pkt in the struct
299 * | struct scsi_pkt | struc
[all...]
H A Dscsi_control.c36 scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt)
76 scsi_terminate_task(struct scsi_address *ap, struct scsi_pkt *pkt)
H A Dscsi_transport.c69 scsi_callback_done(struct scsi_pkt *pkt)
72 "%s: duplicate scsi_callback_done() on same scsi_pkt(9s)",
79 scsi_flag_nointr_comp(struct scsi_pkt *pkt)
104 scsi_transport(struct scsi_pkt *pkt)
121 * The DDI does not allow drivers to allocate their own scsi_pkt(9S),
123 * "sizeof (struct scsi_pkt)". While this has been the case for years,
125 * by kmem_cache_alloc()). The correct way to allocate a scsi_pkt
136 * scsi_pkt we are about to start was correctly allocated. The
139 * first scsi_pkt.
146 cmn_err(CE_WARN, "%s: violates DDI scsi_pkt(
[all...]
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;
232 struct scsi_pkt *pkt = NULL;
280 rqpkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL,
304 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, mmcbp,
314 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, NULL,
321 pkt = scsi_init_pkt(ROUTE, (struct scsi_pkt *)NULL, NULL,
873 scsi_watch_request_intr(struct scsi_pkt *pk
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Demul64cmd.h44 * - Allocated at same time as scsi_pkt by scsi_hba_pkt_alloc(9E)
45 * - Pointed to by pkt_ha_private field in scsi_pkt
49 struct scsi_pkt *cmd_pkt; /* scsi_pkt reference */
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_scsa.h53 * Wrapper around scsi_pkt.
56 struct scsi_pkt *cmd_pkt; /* actual SCSI Packet */
78 size_t pmcs_set_resid(struct scsi_pkt *, size_t, uint32_t);
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_transport.c26 static int cpqary3_transport(struct scsi_address *, struct scsi_pkt *);
28 static int cpqary3_abort(struct scsi_address *, struct scsi_pkt *);
31 static int cpqary3_dma_alloc(cpqary3_t *, struct scsi_pkt *,
33 static int cpqary3_dma_move(struct scsi_pkt *, struct buf *, cpqary3_t *);
34 static int cpqary3_handle_flag_nointr(cpqary3_cmdpvt_t *, struct scsi_pkt *);
36 static void cpqary3_dmafree(struct scsi_address *, struct scsi_pkt *);
37 static void cpqary3_dma_sync(struct scsi_address *, struct scsi_pkt *);
38 static void cpqary3_destroy_pkt(struct scsi_address *, struct scsi_pkt *);
39 static struct scsi_pkt *cpqary3_init_pkt(struct scsi_address *,
40 struct scsi_pkt *, struc
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Demul64.c79 static int emul64_scsi_start(struct scsi_address *ap, struct scsi_pkt *pkt);
81 static int emul64_scsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);
86 static struct scsi_pkt *emul64_scsi_init_pkt(struct scsi_address *ap,
87 struct scsi_pkt *pkt, struct buf *bp, int cmdlen, int statuslen,
90 struct scsi_pkt *pkt);
91 static void emul64_scsi_dmafree(struct scsi_address *ap, struct scsi_pkt *pkt);
92 static void emul64_scsi_sync_pkt(struct scsi_address *ap, struct scsi_pkt *pkt);
124 struct scsi_pkt *pkt);
799 * Return Values : pointer to scsi_pkt, or NULL
808 static struct scsi_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)
277 bsd_scsi_test_unit_ready(struct scsi_pkt *pkt)
284 bsd_scsi_request_sense(struct scsi_pkt *pkt)
290 bsd_scsi_inq_page0(struct scsi_pkt *pk
[all...]
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Datapi.c41 static int atapi_tran_abort(struct scsi_address *ap, struct scsi_pkt *spktp);
46 static struct scsi_pkt *atapi_tran_init_pkt(struct scsi_address *ap,
47 struct scsi_pkt *spktp, struct buf *bp, int cmdlen, int statuslen,
50 struct scsi_pkt *spktp);
51 static void atapi_tran_dmafree(struct scsi_address *ap, struct scsi_pkt *spktp);
53 struct scsi_pkt *spktp);
54 static int atapi_tran_start(struct scsi_address *ap, struct scsi_pkt *spktp);
426 struct scsi_pkt *spktp)
597 static struct scsi_pkt *
600 struct scsi_pkt *spkt
[all...]
/illumos-gate/usr/src/uts/common/sys/scsi/targets/
H A Dsgendef.h75 struct scsi_pkt *sgen_cmdpkt; /* scsi packet for command */
78 struct scsi_pkt *sgen_rqspkt; /* request sense packet */
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/
H A Dasym_sun.c124 struct scsi_pkt *pkt;
189 struct scsi_pkt *pkt;
224 struct scsi_pkt *pkt;
440 struct scsi_pkt *pkt;
/illumos-gate/usr/src/uts/sun/sys/scsi/adapters/
H A Dfascmd.h40 * Note that the target driver's view of things is the scsi_pkt that is
66 struct scsi_pkt *cmd_pkt; /* the generic packet itself */

Completed in 145 milliseconds

1234