/titanic_41/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_waitq.c | 48 gtgt_t *gtgtp; in ghd_target_init() 49 size_t size = sizeof (*gtgtp) + tgt_private_size; in ghd_target_init() 53 gtgtp = kmem_zalloc(size, KM_SLEEP); in ghd_target_init() 59 gtgtp->gt_tgt_private = (void *)(gtgtp + 1); in ghd_target_init() 60 gtgtp->gt_size = size; in ghd_target_init() 61 gtgtp->gt_hba_private = hba_private; in ghd_target_init() 62 gtgtp->gt_target = target; in ghd_target_init() 63 gtgtp->gt_lun = lun; in ghd_target_init() 64 gtgtp->gt_ccc = cccp; in ghd_target_init() 71 gtgtp->gt_maxactive = maxactive; in ghd_target_init() [all …]
|
H A D | ghd_waitq.h | 112 #define GTGTP2TARGET(gtgtp) ((gtgtp)->gt_tgt_private) argument 113 #define GTGTP2HBA(gtgtp) ((gtgtp)->gt_hba_private) argument 114 #define GTGTP2GDEVP(gtgtp) ((gtgtp)->gt_gdevp) argument 116 #define GTGT_INIT(gtgtp) L1EL_INIT(&(gtgtp)->gt_ilist) argument 119 #define GTGT_ATTACH(gtgtp, gdevp) { \ argument 121 L1_add(&(gdevp)->gd_ilist, &(gtgtp)->gt_ilist, (gtgtp)); \ 126 #define GTGT_DEATTACH(gtgtp, gdevp) { \ argument 128 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 | 138 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ argument 142 (gcmdp)->cmd_gtgtp = (gtgtp) \ 195 int (*ccc_timeout_func)(void *handle, gcmd_t *cmdp, gtgt_t *gtgtp, 197 void (*ccc_hba_reset_notify_callback)(gtgt_t *gtgtp, 232 gtgt_t *gtgtp; member 269 int ghd_transport(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp, 272 int ghd_tran_abort(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp, 274 int ghd_tran_abort_lun(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 275 int ghd_tran_reset_target(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status); 276 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 389 (void *)hba_handle, (void *)gcmdp, (void *)gtgtp)); in ghd_timer_newstate() 416 msgp, gtgtp->gt_target, gtgtp->gt_lun); in ghd_timer_newstate() 421 gtgtp->gt_target, gtgtp->gt_lun); in ghd_timer_newstate() 449 if ((*func)(hba_handle, gcmdp, gtgtp, action, calltype)) { in ghd_timer_newstate() 499 (GCMDP2GDEVP(gcmdp_scan) == GTGTP2GDEVP(gtgtp))) { in ghd_timer_newstate() 507 (GCMDP2GDEVP(gcmdp_scan) == GTGTP2GDEVP(gtgtp))) { in ghd_timer_newstate()
|
H A D | ghd_gcmd.c | 64 ghd_gcmd_alloc(gtgt_t *gtgtp, in ghd_gcmd_alloc() argument 88 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp); in ghd_gcmd_alloc()
|
H A D | ghd_scsa.c | 95 gtgt_t *gtgtp = ADDR2GTGTP(ap); in ghd_pktalloc() local 122 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp); in ghd_pktalloc() 135 if (!(*cccp->ccc_ccballoc)(gtgtp, gcmdp, cmdlen, statuslen, tgtlen, in ghd_pktalloc()
|
/titanic_41/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,
|
/titanic_41/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, 808 gtgt_t *gtgtp; in ata_disk_bus_ctl() local 841 gtgtp = ghd_target_init(d, cdip, &ata_ctlp->ac_ccc, in ata_disk_bus_ctl() 847 ata_tgtp = GTGTP2ATATGTP(gtgtp); in ata_disk_bus_ctl() 854 ctlobjp->c_data = gtgtp; in ata_disk_bus_ctl() 871 gtgt_t *gtgtp; in ata_disk_bus_ctl() local 875 gtgtp = ctlobjp->c_data; in ata_disk_bus_ctl() 877 ghd_target_free(d, cdip, >GTP2ATAP(gtgtp)->ac_ccc, gtgtp); in ata_disk_bus_ctl() 927 gtgt_t *gtgtp = (gtgt_t *)ctl_data; in ata_disk_reset() local 928 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 | 115 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen,
|
H A D | ata_common.c | 62 gtgt_t *gtgtp, gact_t action, int calltype); 907 gtgt_t *gtgtp, in ata_timeout_func() argument 3226 gtgt_t *gtgtp) in ata_queue_cmd() argument 3232 if (!(gcmdp = ghd_gcmd_alloc(gtgtp, sizeof (*ata_pktp), TRUE))) { in ata_queue_cmd()
|
/titanic_41/usr/src/uts/sun/sys/dada/adapters/ |
H A D | atapi.h | 108 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen,
|