/illumos-gate/usr/src/uts/sun/io/dada/impl/ |
H A D | dcd_resource.c | 123 struct dcd_pkt *pktp; local 136 pktp = (*tranp->tran_init_pkt)(ap, in_pktp, bp, cmdlen, 139 if (pktp == NULL) { 146 return (pktp);
|
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_scsa.c | 69 ghd_tran_sync_pkt(struct scsi_address *ap, struct scsi_pkt *pktp) argument 71 gcmd_t *gcmdp = PKTP2GCMDP(pktp); 96 struct scsi_pkt *pktp; local 104 pktp = scsi_hba_pkt_alloc(cccp->ccc_hba_dip, ap, cmdlen, statuslen, 106 if (pktp == NULL) { 111 gwp = (gwrap_t *)(pktp->pkt_ha_private); 127 gcmdp->cmd_pktp = pktp; 137 scsi_hba_pkt_free(ap, pktp); 141 return (pktp); 153 struct scsi_pkt *pktp) 151 ghd_pktfree(ccc_t *cccp, struct scsi_address *ap, struct scsi_pkt *pktp) argument 167 ghd_tran_init_pkt_attr(ccc_t *cccp, struct scsi_address *ap, struct scsi_pkt *pktp, struct buf *bp, int cmdlen, int statuslen, int tgtlen, int flags, int (*callback)(), caddr_t arg, int ccblen, ddi_dma_attr_t *sg_attrp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_send.c | 366 send_pkt_t *pktp; local 393 pktp = &srp->pktp[txfill_next]; 394 if (!pktp->tx_ready) { 422 ASSERT(pktp->txbuf_item != NULL); 423 txbuf_item = pktp->txbuf_item; 424 pktp->txbuf_item = NULL; 425 pktp->tx_ready = B_FALSE; 443 if (pktp->vlan_tci != 0) { 444 hw_sbd_p->vlan_tci = pktp 499 send_pkt_t *pktp; local [all...] |
H A D | bge_impl.h | 530 send_pkt_t *pktp; member in struct:send_ring
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_util.c | 104 cpqary3_pkt_t *pktp; local 146 pktp = MEM2PVTPKT(local); 148 if (!pktp) 157 scsi_pktp = pktp->scsi_cmd_pkt; 161 pktp->cmd_start_time;
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_iocb.c | 269 ql_req_pkt(ql_adapter_state_t *vha, request_t **pktp) argument 303 *pktp = ha->request_ring_ptr;
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_buf.c | 399 rds_data_hdr_t *pktp; local 510 pktp = (rds_data_hdr_t *)(uintptr_t)mp; 511 pktp->dh_bufid = (uintptr_t)&bp[ix]; 519 pktp = (rds_data_hdr_t *)(uintptr_t)mp; 520 pktp->dh_bufid = (uintptr_t)&bp[nbuf - 1];
|
H A D | rdsib_ep.c | 1569 rds_data_hdr_t *pktp; local 1605 pktp = (rds_data_hdr_t *)(uintptr_t)bp1->buf_ds.ds_va; 1606 pktp->dh_datalen = UserBufferSize; 1607 pktp->dh_npkts = npkts - pktno; 1608 pktp->dh_psn = pktno; 1609 pktp->dh_sendport = sendport; 1610 pktp->dh_recvport = recvport; 1614 ret = uiomove((uint8_t *)pktp + RDS_DATA_HDR_SZ, 1621 pktp->dh_datalen = residual; 2214 rds_data_hdr_t *pktp, *pktp local [all...] |
H A D | rdsib_ib.c | 873 rds_data_hdr_t *pktp; local 941 pktp = (rds_data_hdr_t *)(uintptr_t)bp->buf_ds.ds_va; 942 ASSERT(pktp->dh_datalen != 0); 946 ep->ep_myip, pktp->dh_sendport, pktp->dh_recvport, 947 pktp->dh_npkts, pktp->dh_psn); 950 pktp->dh_npkts, pktp->dh_psn); 952 if (pktp [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_resource.c | 132 scsi_dmafree_attr(struct scsi_pkt *pktp) argument 135 (struct scsi_pkt_cache_wrapper *)pktp; 138 if (ddi_dma_unbind_handle(pktp->pkt_handle) != 144 pktp->pkt_numcookies = 0; 161 struct scsi_pkt *pktp = &(pktw->pcw_pkt); local 168 ASSERT(pktp->pkt_numcookies == 0); 171 status = ddi_dma_buf_bind_handle(pktp->pkt_handle, bp, dma_flags, 173 &pktp->pkt_numcookies); 182 if (ddi_dma_numwin(pktp->pkt_handle, 207 pktp 215 struct scsi_pkt *pktp = &(pktw->pcw_pkt); local 516 scsi_free_cache_pkt(struct scsi_address *ap, struct scsi_pkt *pktp) argument 567 struct scsi_pkt *pktp; local [all...] |
/illumos-gate/usr/src/uts/intel/io/dktp/dcdev/ |
H A D | gda.c | 127 register struct cmpkt *pktp; local 131 pktp = in_pktp; 133 pktp = CTL_PKTALLOC(objp, callback, arg); 134 if (pktp == NULL) 140 if (CTL_MEMSETUP(objp, pktp, bp, callback, arg) == 143 CTL_PKTFREE(objp, pktp); 147 bp->av_back = (struct buf *)pktp; 148 pktp->cp_bp = bp; 150 pktp->cp_retry = 0; 151 pktp 162 gda_free(opaque_t objp, struct cmpkt *pktp, struct buf *bp) argument 246 gda_errmsg(struct scsi_device *devp, struct cmpkt *pktp, char *label, int severity, daddr_t blkno, daddr_t err_blkno, char **cmdvec, char **senvec) argument [all...] |
H A D | dadk.c | 53 static void dadk_restart(void *pktp); 54 static void dadk_pktcb(struct cmpkt *pktp); 61 static int dadk_chkerr(struct cmpkt *pktp); 62 static int dadk_ioprep(struct dadk *dadkp, struct cmpkt *pktp); 63 static int dadk_iosetup(struct dadk *dadkp, struct cmpkt *pktp); 64 static int dadk_ioretry(struct cmpkt *pktp, int action); 133 static void dadk_recorderr(struct cmpkt *pktp, struct dadkio_rwcmd *rwcmdp); 678 struct cmpkt *pktp; local 692 pktp = dadk_pktprep(dadkp, NULL, bp, dadk_polldone, NULL, NULL); 693 if (!pktp) { 825 struct cmpkt *pktp; local 1146 struct cmpkt *pktp; local 1163 dadk_ioprep(struct dadk *dadkp, struct cmpkt *pktp) argument 1183 dadk_iosetup(struct dadk *dadkp, struct cmpkt *pktp) argument 1227 struct cmpkt *pktp; local 1248 struct cmpkt *pktp = (struct cmpkt *)vpktp; local 1256 dadk_ioretry(struct cmpkt *pktp, int action) argument 1306 dadk_pktcb(struct cmpkt *pktp) argument 1380 dadk_chkerr(struct cmpkt *pktp) argument 1478 dadk_recorderr(struct cmpkt *pktp, struct dadkio_rwcmd *rwcmdp) argument 1531 struct cmpkt *pktp; local 1544 struct cmpkt *pktp; local 1692 struct cmpkt *pktp; local 1717 struct cmpkt *pktp; local 1789 struct cmpkt *pktp; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 298 corrupt(volatile char *pktp, volatile char *pstop, char *buf, argument 304 int li = rand() % (pstop - pktp - 1) + 1; 305 volatile char *pp = pktp; 308 if (pktp < buf || pktp > bufstop) 311 for (pp = pktp; pp < pe; pp += li) { 329 volatile char *pktp; local 364 pktp = (char *)hdrp + sizeof (*hdrp); 423 if (pktp + nhdrp->sbh_msglen > bufstop) { 425 nhdrp->sbh_msglen = bufstop - pktp; 693 cap_write(struct sb_hdr *hdrp, char *pktp, int num, int flags) argument [all...] |
H A D | snoop_display.c | 75 process_pkt(struct sb_hdr *hdrp, char *pktp, int num, int flags) argument 97 dlc_header = pktp;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.c | 823 struct sockaddr *sa, socklen_t *salenptr, struct my_in_pktinfo *pktp, u_char *ttl) 857 if (pktp) { 865 memset(pktp, 0, sizeof(struct my_in_pktinfo)); 866 pktp->ipi_ifindex = -1; 879 (msg.msg_flags & MSG_CTRUNC) || pktp == NULL) 897 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; 903 pktp->ipi_ifindex = tmp->ipi_ifindex; 911 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; 926 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); 930 * pktp 822 recvfrom_flags(int fd, void *ptr, size_t nbytes, int *flagsp, struct sockaddr *sa, socklen_t *salenptr, struct my_in_pktinfo *pktp, u_char *ttl) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | lcp.c | 2957 u_char pkt[4+256], *pktp; local 2982 pktp = pkt; 2983 PUTLONG(lcp_magic, pktp); 2990 *pktp++ = i; 2995 *pktp++ = i; 2999 fsm_sdata(f, CODE_ECHOREQ, lcp_echo_number++ & 0xFF, pkt, pktp - pkt); 3049 u_char pkt[4 + sizeof(identstr)], *pktp; local 3060 pktp = pkt; 3061 PUTLONG(lcp_magic, pktp); 3063 BCOPY(identstr, pktp, idle 3104 u_char *pktp; local [all...] |
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vsw_ldc.h | 453 def_msg_t pktp; member in struct:vsw_ctrl_task
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_disk.c | 45 static int ata_disk_abort(opaque_t ctl_data, cmpkt_t *pktp); 50 static void ata_disk_pktfree(opaque_t ctl_data, cmpkt_t *pktp); 51 static cmpkt_t *ata_disk_memsetup(opaque_t ctl_data, cmpkt_t *pktp, 53 static void ata_disk_memfree(opaque_t ctl_data, cmpkt_t *pktp); 54 static cmpkt_t *ata_disk_iosetup(opaque_t ctl_data, cmpkt_t *pktp); 55 static int ata_disk_transport(opaque_t ctl_data, cmpkt_t *pktp); 898 ata_disk_abort(opaque_t ctl_data, cmpkt_t *pktp) argument 1239 cmpkt_t *pktp) 1241 gcmd_t *gcmdp = CPKT2GCMD(pktp); 1282 cmpkt_t *pktp; local 1234 ata_disk_do_ioctl( int (*func)(ata_ctl_t *, ata_drv_t *, ata_pkt_t *), void *arg, ata_ctl_t *ata_ctlp, gtgt_t *gtgtp, cmpkt_t *pktp) argument 1344 ata_disk_pktfree(opaque_t ctl_data, cmpkt_t *pktp) argument 1367 ata_disk_memsetup( opaque_t ctl_data, cmpkt_t *pktp, struct buf *bp, int (*callback)(caddr_t), caddr_t arg) argument 1453 ata_disk_memfree(opaque_t ctl_data, cmpkt_t *pktp) argument 1476 ata_disk_iosetup(opaque_t ctl_data, cmpkt_t *pktp) argument 1716 ata_disk_transport(opaque_t ctl_data, cmpkt_t *pktp) argument 2186 cmpkt_t *pktp; local [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 1924 struct scsi_pkt *pktp; local 1938 pktp = scsi_hba_pkt_alloc(vhci->vhci_dip, 1942 if (pktp == NULL) { 1947 vpkt = (struct vhci_pkt *)(pktp->pkt_ha_private); 1951 vpkt->vpkt_tgt_pkt = pktp;
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | sd.c | 1221 struct scsi_pkt *pktp, struct buf *bp, struct sd_xbuf *xp); 1357 static int sd_setup_next_rw_pkt(struct sd_lun *un, struct scsi_pkt *pktp, 1379 static void sdintr(struct scsi_pkt *pktp); 1412 struct scsi_pkt *pktp); 1432 struct sd_xbuf *xp, struct scsi_pkt *pktp); 1438 struct sd_xbuf *xp, struct scsi_pkt *pktp); 1440 struct sd_xbuf *xp, struct scsi_pkt *pktp); 1442 struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp); 1444 struct sd_xbuf *xp, struct scsi_pkt *pktp); 1447 struct sd_xbuf *xp, struct scsi_pkt *pktp); 13689 struct scsi_pkt *pktp = NULL; local 14008 sd_setup_next_rw_pkt(struct sd_lun *un, struct scsi_pkt *pktp, struct buf *bp, diskaddr_t lba, uint32_t blockcount) argument 14094 struct scsi_pkt *pktp; local 14275 struct scsi_pkt *pktp; local 14998 struct scsi_pkt *pktp; local 15377 struct scsi_pkt *pktp; local 15653 struct scsi_pkt *pktp; local 16264 sd_send_request_sense_command(struct sd_lun *un, struct buf *bp, struct scsi_pkt *pktp) argument 16826 sdintr(struct scsi_pkt *pktp) argument 17272 struct scsi_pkt *pktp; local 17311 sd_pkt_status_good(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 17491 sd_handle_auto_request_sense(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 17614 struct scsi_pkt *pktp; local 17779 sd_decode_sense(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 17971 struct scsi_pkt *pktp; local 18066 scsi_vu_errmsg(SD_SCSI_DEVP(un), pktp, sd_label, severity, local 18082 sd_sense_key_no_sense(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18112 sd_sense_key_recoverable_error(struct sd_lun *un, uint8_t *sense_datap, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18170 sd_sense_key_not_ready(struct sd_lun *un, uint8_t *sense_datap, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18441 sd_sense_key_medium_or_hardware_error(struct sd_lun *un, uint8_t *sense_datap, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18538 sd_sense_key_illegal_request(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18571 sd_sense_key_unit_attention(struct sd_lun *un, uint8_t *sense_datap, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18724 sd_sense_key_fail_command(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18754 sd_sense_key_blank_check(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18789 sd_sense_key_aborted_command(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18825 sd_sense_key_default(struct sd_lun *un, uint8_t *sense_datap, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 18876 struct scsi_pkt *pktp; local 19005 sd_pkt_reason_cmd_incomplete(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19050 sd_pkt_reason_cmd_tran_err(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19088 sd_pkt_reason_cmd_reset(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19126 sd_pkt_reason_cmd_aborted(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19163 sd_pkt_reason_cmd_timeout(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19199 sd_pkt_reason_cmd_unx_bus_free(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19230 sd_pkt_reason_cmd_tag_reject(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19269 sd_pkt_reason_default(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19298 sd_pkt_status_check_condition(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19350 sd_pkt_status_busy(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19444 sd_pkt_status_reservation_conflict(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19526 sd_pkt_status_qfull(struct sd_lun *un, struct buf *bp, struct sd_xbuf *xp, struct scsi_pkt *pktp) argument 19561 sd_reset_target(struct sd_lun *un, struct scsi_pkt *pktp) argument 19770 struct scsi_pkt *pktp = arg; local 26228 sd_scsi_poll(struct sd_lun *un, struct scsi_pkt *pktp) argument 30393 sd_faultinjection(struct scsi_pkt *pktp) argument 31590 sd_ssc_extract_info(sd_ssc_t *ssc, struct sd_lun *un, struct scsi_pkt *pktp, struct buf *bp, struct sd_xbuf *xp) argument [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas.c | 13727 struct scsi_pkt *pktp = NULL; local 13754 pktp = scsi_init_pkt(ap, (struct scsi_pkt *)NULL, 13757 if (pktp == NULL) { 13760 bcopy(cdb, pktp->pkt_cdbp, cdblen); 13761 pktp->pkt_flags = FLAG_NOPARITY; 13762 if (scsi_poll(pktp) < 0) { 13765 if (((struct scsi_status *)pktp->pkt_scbp)->sts_chk) { 13769 *resid = pktp->pkt_resid; 13774 if (pktp) { 13775 scsi_destroy_pkt(pktp); [all...] |