/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd.c | 77 (void *)cccp)); in ghd_doneq_init() 227 (*cccp->ccc_hba_complete)(cccp->ccc_hba_handle, gcmdp, TRUE); in ghd_doneq_process() 290 ccc_t *cccp, in ghd_register() argument 321 CCCP_INIT(cccp); in ghd_register() 329 mutex_init(&cccp->ccc_hba_mutex, NULL, MUTEX_DRIVER, cccp->ccc_iblock); in ghd_register() 348 ddi_remove_intr(cccp->ccc_hba_dip, 0, cccp->ccc_iblock); in ghd_register() 366 ddi_remove_intr(cccp->ccc_hba_dip, 0, cccp->ccc_iblock); in ghd_register() 380 ddi_remove_intr(cccp->ccc_hba_dip, 0, cccp->ccc_iblock); in ghd_unregister() 480 if ((*cccp->ccc_get_status)(cccp->ccc_hba_handle, intr_status)) in ghd_poll() 481 (*cccp->ccc_process_intr)(cccp->ccc_hba_handle, in ghd_poll() [all …]
|
H A D | ghd_waitq.c | 39 ccc_t *cccp, in ghd_target_init() argument 62 gtgtp->gt_ccc = cccp; in ghd_target_init() 88 gdevp = CCCP2GDEVP(cccp); in ghd_target_init() 138 ccc_t *cccp, in ghd_target_free() argument 296 GHBA_NACTIVE(cccp)--; in ghd_waitq_delete() 334 (void *)cccp, (void *)&cccp->ccc_waitq)); in ghd_waitq_process_and_mutex_hold() 337 if (GHBA_NACTIVE(cccp) >= GHBA_MAXACTIVE(cccp)) { in ghd_waitq_process_and_mutex_hold() 384 GHBA_NACTIVE(cccp)++; in ghd_waitq_process_and_mutex_hold() 393 if (!(*cccp->ccc_hba_start)(cccp->ccc_hba_handle, gcmdp)) { in ghd_waitq_process_and_mutex_hold() 408 (void *)cccp, (void *)gcmdp, GHBA_NACTIVE(cccp))); in ghd_waitq_process_and_mutex_hold() [all …]
|
H A D | ghd_timer.c | 243 ccc_t *cccp; in ghd_timeout() local 292 } while ((cccp = cccp->ccc_nextp) != NULL); in ghd_timeout() 414 scsi_log(cccp->ccc_hba_dip, cccp->ccc_label, in ghd_timer_newstate() 420 scsi_log(cccp->ccc_hba_dip, cccp->ccc_label, CE_WARN, in ghd_timer_newstate() 786 (void *)cccp)); in ghd_timer_attach() 799 tmrp->t_ccc_listp = cccp; in ghd_timer_attach() 800 cccp->ccc_tmrp = tmrp; in ghd_timer_attach() 830 ASSERT(cccp->ccc_activel.l2_nextp == &cccp->ccc_activel); in ghd_timer_detach() 831 ASSERT(cccp->ccc_activel.l2_nextp == cccp->ccc_activel.l2_prevp); in ghd_timer_detach() 840 if (*prevpp == cccp) in ghd_timer_detach() [all …]
|
H A D | ghd.h | 205 #define GHBA_QHEAD(cccp) ((cccp)->ccc_waitq.Q_qhead) argument 206 #define GHBA_MAXACTIVE(cccp) ((cccp)->ccc_waitq.Q_maxactive) argument 207 #define GHBA_NACTIVE(cccp) ((cccp)->ccc_waitq.Q_nactive) argument 343 #define GHD_COMPLETE(cccp, gcmpd) GHD_COMPLETE_INLINE(cccp, gcmdp) argument 344 #define GHD_TIMER_STOP(cccp, gcmdp) GHD_TIMER_STOP_INLINE(cccp, gcmdp) argument 345 #define GHD_DONEQ_PUT_HEAD(cccp, gcmdp) GHD_DONEQ_PUT_HEAD_INLINE(cccp, gcmdp) argument 346 #define GHD_DONEQ_PUT_TAIL(cccp, gcmdp) GHD_DONEQ_PUT_TAIL_INLINE(cccp, gcmdp) argument 348 #define GHD_COMPLETE(cccp, gcmpd) ghd_complete(cccp, gcmdp) argument 349 #define GHD_TIMER_STOP(cccp, gcmdp) ghd_timer_stop(cccp, gcmdp) argument 350 #define GHD_DONEQ_PUT_HEAD(cccp, gcmdp) ghd_doneq_put_head(cccp, gcmdp) argument [all …]
|
H A D | ghd_scsa.c | 84 ghd_pktalloc(ccc_t *cccp, in ghd_pktalloc() argument 102 pktp = scsi_hba_pkt_alloc(cccp->ccc_hba_dip, ap, cmdlen, statuslen, in ghd_pktalloc() 149 ghd_pktfree(ccc_t *cccp, in ghd_pktfree() argument 154 (void *)cccp, (void *)ap, (void *)pktp)); in ghd_pktfree() 157 (*cccp->ccc_ccbfree)(PKTP2GCMDP(pktp)); in ghd_pktfree() 165 ghd_tran_init_pkt_attr(ccc_t *cccp, in ghd_tran_init_pkt_attr() argument 188 pktp = ghd_pktalloc(cccp, ap, cmdlen, statuslen, tgtlen, in ghd_tran_init_pkt_attr() 237 if (!ghd_dma_buf_bind_attr(cccp, gcmdp, bp, dma_flags, in ghd_tran_init_pkt_attr() 240 ghd_pktfree(cccp, ap, pktp); in ghd_tran_init_pkt_attr() 246 if (!ghd_dmaget_attr(cccp, gcmdp, in ghd_tran_init_pkt_attr() [all …]
|
H A D | ghd_waitq.h | 81 #define GDEV_QATTACH(gdevp, cccp, max) { \ argument 82 GHD_WAITQ_INIT(&(gdevp)->gd_waitq, &(cccp)->ccc_waitq, (max)); \ 86 L1_add(&(cccp)->ccc_devs, &(gdevp)->gd_devlist, (gdevp)); \ 89 #define GDEV_QDETACH(gdevp, cccp) \ argument 90 L1_delete(&(cccp)->ccc_devs, &(gdevp)->gd_devlist)
|
H A D | ghd_dma.c | 51 ghd_dma_buf_bind_attr(ccc_t *cccp, in ghd_dma_buf_bind_attr() argument 71 status = ddi_dma_alloc_handle(cccp->ccc_hba_dip, sg_attrp, callback, in ghd_dma_buf_bind_attr() 135 ghd_dmaget_next_attr(ccc_t *cccp, gcmd_t *gcmdp, long max_transfer_cnt, in ghd_dmaget_next_attr() argument 160 (*cccp->ccc_sg_func)(gcmdp, &cookie, single_seg, num_segs); in ghd_dmaget_next_attr() 196 ghd_dmaget_attr(ccc_t *cccp, in ghd_dmaget_attr() argument 242 *xfer = ghd_dmaget_next_attr(cccp, gcmdp, count, sg_size, cookie); in ghd_dmaget_attr()
|
H A D | ghd_dma.h | 39 int ghd_dmaget_attr(ccc_t *cccp, gcmd_t *gcmdp, long count, int sg_size, 48 uint_t ghd_dmaget_next_attr(ccc_t *cccp, gcmd_t *gcmdp, long max_transfer_cnt,
|
H A D | ghd_scsa.h | 48 void ghd_pktfree(ccc_t *cccp, struct scsi_address *ap, 51 struct scsi_pkt *ghd_tran_init_pkt_attr(ccc_t *cccp, struct scsi_address *ap,
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/ |
H A D | ghd.h | 190 #define GHBA_QHEAD(cccp) ((cccp)->ccc_waitq.Q_qhead) argument 191 #define GHBA_MAXACTIVE(cccp) ((cccp)->ccc_waitq.Q_maxactive) argument 192 #define GHBA_NACTIVE(cccp) ((cccp)->ccc_waitq.Q_nactive) argument 195 #define CCCP_INIT(cccp) { \ argument 201 #define CCCP2GDEVP(cccp) \ argument 305 #define GHD_COMPLETE(cccp, gcmpd) GHD_COMPLETE_INLINE(cccp, gcmdp) argument 306 #define GHD_TIMER_STOP(cccp, gcmdp) GHD_TIMER_STOP_INLINE(cccp, gcmdp) argument 307 #define GHD_DONEQ_PUT(cccp, gcmdp) GHD_DONEQ_PUT_INLINE(cccp, gcmdp) argument 309 #define GHD_COMPLETE(cccp, gcmpd) ghd_complete(cccp, gcmdp) argument 310 #define GHD_TIMER_STOP(cccp, gcmdp) ghd_timer_stop(cccp, gcmdp) argument [all …]
|
H A D | ghd_waitq.h | 83 #define GDEV_QATTACH(gdevp, cccp, max) { \ argument 84 GHD_WAITQ_INIT(&(gdevp)->gd_waitq, &(cccp)->ccc_waitq, (max)); \ 88 L1_add(&(cccp)->ccc_devs, &(gdevp)->gd_devlist, (gdevp)); \ 91 #define GDEV_QDETACH(gdevp, cccp) \ argument 92 L1_delete(&(cccp)->ccc_devs, &(gdevp)->gd_devlist)
|
H A D | ghd_scsa.h | 49 void ghd_pktfree(ccc_t *cccp, struct scsi_address *ap,
|