/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_waitq.c | 46 gtgt_t *gtgtp; in ghd_target_init() 47 size_t size = sizeof (*gtgtp) + tgt_private_size; in ghd_target_init() 51 gtgtp = kmem_zalloc(size, KM_SLEEP); in ghd_target_init() 57 gtgtp->gt_tgt_private = (void *)(gtgtp + 1); in ghd_target_init() 58 gtgtp->gt_size = size; in ghd_target_init() 59 gtgtp->gt_hba_private = hba_private; in ghd_target_init() 60 gtgtp->gt_target = target; in ghd_target_init() 61 gtgtp->gt_lun = lun; in ghd_target_init() 62 gtgtp->gt_ccc = cccp; in ghd_target_init() 69 gtgtp->gt_maxactive = maxactive; in ghd_target_init() [all …]
|
H A D | ghd_waitq.h | 110 #define GTGTP2TARGET(gtgtp) ((gtgtp)->gt_tgt_private) argument 111 #define GTGTP2HBA(gtgtp) ((gtgtp)->gt_hba_private) argument 112 #define GTGTP2GDEVP(gtgtp) ((gtgtp)->gt_gdevp) argument 114 #define GTGT_INIT(gtgtp) L1EL_INIT(&(gtgtp)->gt_ilist) argument 117 #define GTGT_ATTACH(gtgtp, gdevp) { \ argument 119 L1_add(&(gdevp)->gd_ilist, &(gtgtp)->gt_ilist, (gtgtp)); \ 124 #define GTGT_DEATTACH(gtgtp, gdevp) { \ argument 126 L1_delete(&(gdevp)->gd_ilist, &(gtgtp)->gt_ilist); \
|
H A D | ghd.c | 52 gcmd_t *poll_gcmdp, gtgt_t *gtgtp, void *intr_status); 254 (*cccp->ccc_hba_reset_notify_callback)(rnp->gtgtp, in ghd_do_reset_notify_callbacks() 443 gtgt_t *gtgtp, in ghd_poll() argument 525 if (GDEV_NACTIVE(gtgtp->gt_gdevp) == 0) in ghd_poll() 573 ghd_tran_abort(ccc_t *cccp, gcmd_t *gcmdp, gtgt_t *gtgtp, void *intr_status) in ghd_tran_abort() argument 606 ghd_timer_newstate(cccp, gcmdp, gtgtp, action, GHD_TGTREQ); in ghd_tran_abort() 610 gcmdp, gtgtp, intr_status)) { in ghd_tran_abort() 633 ghd_tran_abort_lun(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status) in ghd_tran_abort_lun() argument 645 ghd_timer_newstate(cccp, NULL, gtgtp, GACTION_ABORT_DEV, GHD_TGTREQ); in ghd_tran_abort_lun() 649 NULL, gtgtp, intr_status); in ghd_tran_abort_lun() [all …]
|
H A D | ghd.h | 136 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ argument 140 (gcmdp)->cmd_gtgtp = (gtgtp) \ 193 int (*ccc_timeout_func)(void *handle, gcmd_t *cmdp, gtgt_t *gtgtp, 195 void (*ccc_hba_reset_notify_callback)(gtgt_t *gtgtp, 230 gtgt_t *gtgtp; member 267 int ghd_transport(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp, 270 int ghd_tran_abort(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp, 272 int ghd_tran_abort_lun(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 273 int ghd_tran_reset_target(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 274 int ghd_tran_reset_bus(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); [all …]
|
H A D | ghd_timer.c | 314 ghd_timer_newstate(ccc_t *cccp, gcmd_t *gcmdp, gtgt_t *gtgtp, in ghd_timer_newstate() argument 390 (void *)hba_handle, (void *)gcmdp, (void *)gtgtp)); in ghd_timer_newstate() 417 msgp, gtgtp->gt_target, gtgtp->gt_lun); in ghd_timer_newstate() 422 gtgtp->gt_target, gtgtp->gt_lun); in ghd_timer_newstate() 450 if ((*func)(hba_handle, gcmdp, gtgtp, action, calltype)) { in ghd_timer_newstate() 500 (GCMDP2GDEVP(gcmdp_scan) == GTGTP2GDEVP(gtgtp))) { in ghd_timer_newstate() 508 (GCMDP2GDEVP(gcmdp_scan) == GTGTP2GDEVP(gtgtp))) { in ghd_timer_newstate()
|
H A D | ghd_gcmd.c | 62 ghd_gcmd_alloc(gtgt_t *gtgtp, in ghd_gcmd_alloc() argument 86 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp); in ghd_gcmd_alloc()
|
H A D | ghd_scsa.c | 93 gtgt_t *gtgtp = ADDR2GTGTP(ap); in ghd_pktalloc() local 120 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp); in ghd_pktalloc() 133 if (!(*cccp->ccc_ccballoc)(gtgtp, gcmdp, cmdlen, statuslen, tgtlen, in ghd_pktalloc()
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/ |
H A D | ghd_waitq.h | 108 #define GTGTP2TARGET(gtgtp) ((gtgtp)->gt_tgt_private) argument 109 #define GTGTP2HBA(gtgtp) ((gtgtp)->gt_hba_private) argument 111 #define GTGT_INIT(gtgtp) L1EL_INIT(&(gtgtp)->gt_ilist) argument 114 #define GTGT_ATTACH(gtgtp, gdevp) { \ argument 116 L1_add(&(gdevp)->gd_ilist, &(gtgtp)->gt_ilist, (gtgtp)); \ 121 #define GTGT_DEATTACH(gtgtp, gdevp) { \ argument 123 L1_delete(&(gdevp)->gd_ilist, &(gtgtp)->gt_ilist); \
|
H A D | ghd.h | 121 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ argument 125 (gcmdp)->cmd_gtgtp = (gtgtp) \ 180 int (*ccc_timeout_func)(void *handle, gcmd_t *cmdp, gtgt_t *gtgtp, 236 int ghd_transport(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp, 239 int ghd_tran_abort(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp, 241 int ghd_tran_abort_lun(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 242 int ghd_tran_reset_target(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 243 int ghd_tran_reset_bus(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 249 gcmd_t *ghd_gcmd_alloc(gtgt_t *gtgtp, int ccblen, int sleep); 267 void ghd_timer_newstate(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_disk.c | 118 static int ata_disk_update_fw(gtgt_t *gtgtp, ata_ctl_t *ata_ctlp, 802 gtgt_t *gtgtp; in ata_disk_bus_ctl() local 835 gtgtp = ghd_target_init(d, cdip, &ata_ctlp->ac_ccc, in ata_disk_bus_ctl() 840 ata_tgtp = GTGTP2ATATGTP(gtgtp); in ata_disk_bus_ctl() 847 ctlobjp->c_data = gtgtp; in ata_disk_bus_ctl() 864 gtgt_t *gtgtp; in ata_disk_bus_ctl() local 868 gtgtp = ctlobjp->c_data; in ata_disk_bus_ctl() 870 ghd_target_free(d, cdip, >GTP2ATAP(gtgtp)->ac_ccc, gtgtp); in ata_disk_bus_ctl() 920 gtgt_t *gtgtp = (gtgt_t *)ctl_data; in ata_disk_reset() local 921 ata_drv_t *ata_drvp = GTGTP2ATADRVP(gtgtp); in ata_disk_reset() [all …]
|
H A D | atapi.c | 329 gtgt_t *gtgtp; /* GHD's per-target-instance structure */ in atapi_tran_tgt_init() local 358 gtgtp = ghd_target_init(hba_dip, tgt_dip, &ata_ctlp->ac_ccc, in atapi_tran_tgt_init() 363 hba_tran->tran_tgt_private = gtgtp; in atapi_tran_tgt_init() 366 ata_tgtp = GTGTP2ATATGTP(gtgtp); in atapi_tran_tgt_init() 478 gtgt_t *gtgtp = ADDR2GTGTP(ap); in atapi_tran_setcap() local 479 ata_tgt_t *tgtp = GTGTP2ATATGTP(gtgtp); in atapi_tran_setcap() 519 gtgt_t *gtgtp; in atapi_tran_getcap() local 554 gtgtp = ADDR2GTGTP(ap); in atapi_tran_getcap() 560 ata_drvp, gtgtp)) { in atapi_tran_getcap() 609 gtgt_t *gtgtp = ADDR2GTGTP(ap); in atapi_tran_init_pkt() local [all …]
|
H A D | ata_common.h | 540 #define GTGTP2ATAP(gtgtp) ((ata_ctl_t *)GTGTP2HBA(gtgtp)) argument 545 #define GTGTP2ATATGTP(gtgtp) ((ata_tgt_t *)GTGTP2TARGET(gtgtp)) argument 550 #define GTGTP2ATADRVP(gtgtp) (GTGTP2ATATGTP(gtgtp)->at_drvp) argument 679 gtgt_t *gtgtp);
|
H A D | atapi.h | 113 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen,
|
H A D | ata_common.c | 64 gtgt_t *gtgtp, gact_t action, int calltype); 909 gtgt_t *gtgtp, in ata_timeout_func() argument 3228 gtgt_t *gtgtp) in ata_queue_cmd() argument 3234 if (!(gcmdp = ghd_gcmd_alloc(gtgtp, sizeof (*ata_pktp), TRUE))) { in ata_queue_cmd()
|
/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,
|