/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_dma.c | 42 (void *)gcmdp)); in ghd_dmafree_attr() 52 gcmd_t *gcmdp, in ghd_dma_buf_bind_attr() argument 80 callback, arg, &gcmdp->cmd_first_cookie, &gcmdp->cmd_ccount); in ghd_dma_buf_bind_attr() 83 "c 0x%d\n", (void *)gcmdp, status, (void *)gcmdp->cmd_dma_handle, in ghd_dma_buf_bind_attr() 94 if (ddi_dma_numwin(gcmdp->cmd_dma_handle, &gcmdp->cmd_wcount) != in ghd_dma_buf_bind_attr() 143 (void *)gcmdp, (void *)gcmdp->cmd_dma_handle, gcmdp->cmd_ccount)); in ghd_dmaget_next_attr() 149 if (gcmdp->cmd_cindex + 1 < gcmdp->cmd_ccount) { in ghd_dmaget_next_attr() 172 if (gcmdp->cmd_cindex >= gcmdp->cmd_ccount) { in ghd_dmaget_next_attr() 197 gcmd_t *gcmdp, in ghd_dmaget_attr() argument 211 } else if (gcmdp->cmd_windex >= gcmdp->cmd_wcount) { in ghd_dmaget_attr() [all …]
|
H A D | ghd.h | 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 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 351 #define GHD_DONEQ_PUT_TAIL(cccp, gcmdp) ghd_doneq_put_tail(cccp, gcmdp) argument 381 L2_add_head(&(cccp)->ccc_doneq, &(gcmdp)->cmd_q, (gcmdp)); \ 396 L2_add(&(cccp)->ccc_doneq, &(gcmdp)->cmd_q, (gcmdp)); \ 411 #define GCMDP2PKTP(gcmdp) ((gcmdp)->cmd_pktp) argument 416 #define GCMDP2GTGTP(gcmdp) ((gcmdp)->cmd_gtgtp) argument 421 #define GCMDP2GDEVP(gcmdp) ((gcmdp)->cmd_gtgtp->gt_gdevp) argument [all …]
|
H A D | ghd_timer.c | 176 gcmd_t *gcmdp; in ghd_timeout_loop() local 182 while (gcmdp) { in ghd_timeout_loop() 187 (lbolt - gcmdp->cmd_start_time >= gcmdp->cmd_timeout)) { in ghd_timeout_loop() 190 gcmdp = (gcmd_t *)L2_next(&gcmdp->cmd_timer_link); in ghd_timeout_loop() 433 if (gcmdp) { in ghd_timer_newstate() 598 gcmd_t *gcmdp; in ghd_timer_poll() local 647 ghd_timer_newstate(cccp, gcmdp, gcmdp->cmd_gtgtp, action, in ghd_timer_poll() 671 gcmd_t *gcmdp; in ghd_timeout_get() local 681 (lbolt - gcmdp->cmd_start_time >= gcmdp->cmd_timeout)) in ghd_timeout_get() 683 gcmdp = (gcmd_t *)L2_next(&gcmdp->cmd_timer_link); in ghd_timeout_get() [all …]
|
H A D | ghd_scsa.c | 69 gcmd_t *gcmdp = PKTP2GCMDP(pktp); in ghd_tran_sync_pkt() local 72 if (gcmdp->cmd_dma_handle) { in ghd_tran_sync_pkt() 95 gcmd_t *gcmdp; in ghd_pktalloc() local 112 gcmdp = &gwp->gwrap.gw_gcmd; in ghd_pktalloc() 125 gcmdp->cmd_pktp = pktp; in ghd_pktalloc() 178 gcmd_t *gcmdp; in ghd_tran_init_pkt_attr() local 199 gcmdp = PKTP2GCMDP(pktp); in ghd_tran_init_pkt_attr() 202 (void *)gcmdp, (void *)gcmdp->cmd_dma_handle)); in ghd_tran_init_pkt_attr() 210 ghd_dmafree_attr(gcmdp); in ghd_tran_init_pkt_attr() 236 if (gcmdp->cmd_dma_handle == NULL) { in ghd_tran_init_pkt_attr() [all …]
|
H A D | ghd_waitq.c | 199 gcmd_t *gcmdp; in ghd_waitq_shuffle_up() local 238 L2_add(&GHBA_QHEAD(cccp), &gcmdp->cmd_q, gcmdp); in ghd_waitq_shuffle_up() 240 gcmdp->cmd_waitq_level++; in ghd_waitq_shuffle_up() 277 L2_delete(&gcmdp->cmd_q); in ghd_waitq_delete() 281 L2_delete(&gcmdp->cmd_q); in ghd_waitq_delete() 308 (void *)gcmdp, (void *)qp, gcmdp->cmd_waitq_level)); in ghd_waitq_delete() 324 gcmd_t *gcmdp; in ghd_waitq_process_and_mutex_hold() local 385 gcmdp->cmd_waitq_level++; in ghd_waitq_process_and_mutex_hold() 391 ASSERT(gcmdp != NULL); in ghd_waitq_process_and_mutex_hold() 398 gcmdp->cmd_waitq_level--; in ghd_waitq_process_and_mutex_hold() [all …]
|
H A D | ghd.c | 133 gcmd_t *gcmdp; in ghd_doneq_get() local 137 L2_delete(&gcmdp->cmd_q); in ghd_doneq_get() 139 return (gcmdp); in ghd_doneq_get() 197 gcmd_t *gcmdp; in ghd_doneq_process() local 210 L2_delete(&gcmdp->cmd_q); in ghd_doneq_process() 215 ghd_gcmd_free(gcmdp); in ghd_doneq_process() 446 gcmd_t *gcmdp; in ghd_poll() local 513 L2_add(&gcmd_hold_queue, &gcmdp->cmd_q, gcmdp); in ghd_poll() 731 gcmd_t *gcmdp, in ghd_transport() argument 770 L2_add(&GDEV_QHEAD(gdevp), &gcmdp->cmd_q, gcmdp); in ghd_transport() [all …]
|
H A D | ghd_gcmd.c | 67 gcmd_t *gcmdp; in ghd_gcmd_alloc() local 85 gcmdp = &gwp->gwrap.gw.gcmd; in ghd_gcmd_alloc() 86 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp); in ghd_gcmd_alloc() 87 return (gcmdp); in ghd_gcmd_alloc() 97 ghd_gcmd_free(gcmd_t *gcmdp) in ghd_gcmd_free() argument 99 kmem_free(gcmdp, ((gw_t *)gcmdp)->glen); in ghd_gcmd_free()
|
H A D | ghd_dma.h | 39 int ghd_dmaget_attr(ccc_t *cccp, gcmd_t *gcmdp, long count, int sg_size, 42 int ghd_dma_buf_bind_attr(ccc_t *ccp, gcmd_t *gcmdp, struct buf *bp, 46 void ghd_dmafree_attr(gcmd_t *gcmdp); 48 uint_t ghd_dmaget_next_attr(ccc_t *cccp, gcmd_t *gcmdp, long max_transfer_cnt,
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/ |
H A D | ghd.h | 122 (L2_INIT(&(gcmdp)->cmd_q), \ 124 (gcmdp)->cmd_private = (cmdp), \ 125 (gcmdp)->cmd_gtgtp = (gtgtp) \ 254 void ghd_gcmd_free(gcmd_t *gcmdp); 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 310 #define GHD_TIMER_STOP(cccp, gcmdp) ghd_timer_stop(cccp, gcmdp) argument 311 #define GHD_DONEQ_PUT(cccp, gcmdp) ghd_doneq_put(cccp, gcmdp) argument 340 L2_add(&(cccp)->ccc_doneq, &(gcmdp)->cmd_q, (gcmdp)); \ 356 #define GCMDP2PKTP(gcmdp) ((gcmdp)->cmd_pktp) argument [all …]
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | atapi.c | 816 gcmd_t *gcmdp, in atapi_ccballoc() argument 829 ata_pktp->ap_gcmdp = gcmdp; in atapi_ccballoc() 875 gcmd_t *gcmdp = PKTP2GCMDP(spktp); in atapi_tran_destroy_pkt() local 879 if (gcmdp->cmd_dma_handle != NULL) { in atapi_tran_destroy_pkt() 880 ghd_dmafree_attr(gcmdp); in atapi_tran_destroy_pkt() 897 gcmd_t *gcmdp) in atapi_ccbfree() argument 917 gcmd_t *gcmdp = PKTP2GCMDP(spktp); in atapi_tran_dmafree() local 921 if (gcmdp->cmd_dma_handle != NULL) { in atapi_tran_dmafree() 922 ghd_dmafree_attr(gcmdp); in atapi_tran_dmafree() 965 gcmd_t *gcmdp = APKT2GCMD(ata_pktp); in atapi_tran_start() local [all …]
|
H A D | ata_common.h | 535 #define GCMD2APKT(gcmdp) ((ata_pkt_t *)gcmdp->cmd_private) argument 555 #define GCMD2TGT(gcmdp) GTGTP2ATATGTP(GCMDP2GTGTP(gcmdp)) argument 560 #define GCMD2DRV(gcmdp) GTGTP2ATADRVP(GCMDP2GTGTP(gcmdp)) argument 704 void ata_pciide_dma_sg_func(gcmd_t *gcmdp, ddi_dma_cookie_t *dmackp,
|
H A D | ata_disk.c | 1249 rc = ghd_transport(&ata_ctlp->ac_ccc, gcmdp, gcmdp->cmd_gtgtp, in ata_disk_do_ioctl() 1279 gcmd_t *gcmdp; in ata_disk_pktalloc() local 1292 ASSERT(gcmdp != NULL); in ata_disk_pktalloc() 1300 ata_pktp->ap_gcmdp = gcmdp; in ata_disk_pktalloc() 1454 if (gcmdp->cmd_dma_handle) in ata_disk_memfree() 1455 ghd_dmafree_attr(gcmdp); in ata_disk_memfree() 3152 gcmd_t *gcmdp = NULL; in ata_disk_update_fw() local 3220 if ((gcmdp == NULL) && !(gcmdp = in ata_disk_update_fw() 3253 rc = ghd_transport(&ata_ctlp->ac_ccc, gcmdp, gcmdp->cmd_gtgtp, in ata_disk_update_fw() 3278 if (gcmdp != NULL) in ata_disk_update_fw() [all …]
|
H A D | atapi.h | 113 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen, 115 void atapi_ccbfree(gcmd_t *gcmdp);
|
H A D | ata_common.c | 887 gcmd_t *gcmdp, in ata_hba_complete() argument 895 ata_drvp = GCMD2DRV(gcmdp); in ata_hba_complete() 896 ata_pktp = GCMD2APKT(gcmdp); in ata_hba_complete() 908 gcmd_t *gcmdp, in ata_timeout_func() argument 921 if (gcmdp != NULL) in ata_timeout_func() 962 if (gcmdp == NULL) in ata_timeout_func() 964 ata_drvp = GCMD2DRV(gcmdp); in ata_timeout_func() 3050 gcmd_t *gcmdp) in ata_hba_start() argument 3073 ata_drvp = GCMD2DRV(gcmdp); in ata_hba_start() 3231 gcmd_t *gcmdp; in ata_queue_cmd() local [all …]
|
H A D | ata_dma.c | 270 gcmd_t *gcmdp, in ata_pciide_dma_sg_func() argument 275 ata_pkt_t *ata_pktp = GCMD2APKT(gcmdp); in ata_pciide_dma_sg_func() 284 gcmdp, dmackp, single_segment, seg_index)); in ata_pciide_dma_sg_func()
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ |
H A D | atapi.h | 108 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen, 110 void atapi_ccbfree(gcmd_t *gcmdp);
|