Lines Matching refs:ap
32 #define A_TO_TRAN(ap) ((ap)->a_hba_tran)
58 dcd_alloc_consistent_buf(struct dcd_address *ap,
79 pdip = (A_TO_TRAN(ap))->tran_hba_dip;
119 dcd_init_pkt(struct dcd_address *ap, struct dcd_pkt *in_pktp,
124 dcd_hba_tran_t *tranp = ap->a_hba_tran;
136 pktp = (*tranp->tran_init_pkt)(ap, in_pktp, bp, cmdlen,
153 struct dcd_address *ap = P_TO_ADDR(pkt);
155 (*A_TO_TRAN(ap)->tran_destroy_pkt)(ap, pkt);
164 dcd_resalloc(struct dcd_address *ap, int cmdlen, int statuslen,
169 register dcd_hba_tran_t *tranp = ap->a_hba_tran;
174 pkt = (*tranp->tran_init_pkt) (ap, NULL, (struct buf *)dmatoken,
187 dcd_pktalloc(struct dcd_address *ap, int cmdlen, int statuslen,
192 struct dcd_hba_tran *tran = ap->a_hba_tran;
198 pkt = (*tran->tran_init_pkt) (ap, NULL, NULL, cmdlen, statuslen,
240 register struct dcd_address *ap = P_TO_ADDR(pkt);
242 (*A_TO_TRAN(ap)->tran_dmafree)(ap, pkt);
253 register struct dcd_address *ap = P_TO_ADDR(pkt);
255 (*A_TO_TRAN(ap)->tran_sync_pkt) (ap, pkt);
262 register struct dcd_address *ap = P_TO_ADDR(pkt);
264 (*A_TO_TRAN(ap)->tran_destroy_pkt)(ap, pkt);