/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_waitq.h | 112 #define GTGTP2TARGET(gtgtp) ((gtgtp)->gt_tgt_private) 113 #define GTGTP2HBA(gtgtp) ((gtgtp)->gt_hba_private) 114 #define GTGTP2GDEVP(gtgtp) ((gtgtp)->gt_gdevp) 116 #define GTGT_INIT(gtgtp) L1EL_INIT(&(gtgtp)->gt_ilist) 119 #define GTGT_ATTACH(gtgtp, gdevp) { \ 121 L1_add(&(gdevp)->gd_ilist, &(gtgtp) [all...] |
H A D | ghd_waitq.c | 48 gtgt_t *gtgtp; 49 size_t size = sizeof (*gtgtp) + tgt_private_size; 53 gtgtp = kmem_zalloc(size, KM_SLEEP); 59 gtgtp->gt_tgt_private = (void *)(gtgtp + 1); 60 gtgtp->gt_size = size; 61 gtgtp->gt_hba_private = hba_private; 62 gtgtp->gt_target = target; 63 gtgtp->gt_lun = lun; 64 gtgtp 138 ghd_target_free(dev_info_t *hba_dip, dev_info_t *tgt_dip, ccc_t *cccp, gtgt_t *gtgtp) argument 252 gtgt_t *gtgtp = GCMDP2GTGTP(gcmdp); local [all...] |
H A D | ghd_gcmd.c | 64 ghd_gcmd_alloc(gtgt_t *gtgtp, argument 88 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp);
|
H A D | ghd.h | 138 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ 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, 228 * gtgtp isn't needed except for debug. 232 gtgt_t *gtgtp; member in struct:ghd_reset_notify_list 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, voi [all...] |
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, 443 gtgt_t *gtgtp, 525 if (GDEV_NACTIVE(gtgtp->gt_gdevp) == 0) 573 ghd_tran_abort(ccc_t *cccp, gcmd_t *gcmdp, gtgt_t *gtgtp, void *intr_status) argument 606 ghd_timer_newstate(cccp, gcmdp, gtgtp, action, GHD_TGTREQ); 610 gcmdp, gtgtp, intr_status)) { 633 ghd_tran_abort_lun(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status) argument 645 ghd_timer_newstate(cccp, NULL, gtgtp, GACTION_ABORT_DEV, GHD_TGTREQ); 649 NULL, gtgtp, intr_statu 439 ghd_poll(ccc_t *cccp, gpoll_t polltype, ulong_t polltime, gcmd_t *poll_gcmdp, gtgt_t *gtgtp, void *intr_status) argument 670 ghd_tran_reset_target(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status) argument 703 ghd_tran_reset_bus(ccc_t *cccp, gtgt_t *gtgtp, void *intr_status) argument 730 ghd_transport(ccc_t *cccp, gcmd_t *gcmdp, gtgt_t *gtgtp, ulong_t timeout, int polled, void *intr_status) argument 835 ghd_reset_notify(ccc_t *cccp, gtgt_t *gtgtp, int flag, void (*callback)(caddr_t), caddr_t arg) argument [all...] |
H A D | ghd_timer.c | 314 ghd_timer_newstate(ccc_t *cccp, gcmd_t *gcmdp, gtgt_t *gtgtp, argument 388 "hba 0x%p gcmdp 0x%p gtgtp 0x%p\n", 389 (void *)hba_handle, (void *)gcmdp, (void *)gtgtp)); 416 msgp, gtgtp->gt_target, gtgtp->gt_lun); 421 gtgtp->gt_target, gtgtp->gt_lun); 449 if ((*func)(hba_handle, gcmdp, gtgtp, action, calltype)) { 474 * or gtgtp/cccp (if gsav not used). We need to mark other 482 * dev/bus as gtgtp o [all...] |
H A D | ghd_scsa.c | 95 gtgt_t *gtgtp = ADDR2GTGTP(ap); local 122 GHD_GCMD_INIT(gcmdp, (void *)(gwp + 1), gtgtp); 135 if (!(*cccp->ccc_ccballoc)(gtgtp, gcmdp, cmdlen, statuslen, tgtlen,
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/ |
H A D | ghd_waitq.h | 108 #define GTGTP2TARGET(gtgtp) ((gtgtp)->gt_tgt_private) 109 #define GTGTP2HBA(gtgtp) ((gtgtp)->gt_hba_private) 111 #define GTGT_INIT(gtgtp) L1EL_INIT(&(gtgtp)->gt_ilist) 114 #define GTGT_ATTACH(gtgtp, gdevp) { \ 116 L1_add(&(gdevp)->gd_ilist, &(gtgtp)->gt_ilist, (gtgtp)); \ 121 #define GTGT_DEATTACH(gtgtp, gdev [all...] |
H A D | ghd.h | 121 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ 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, [all...] |
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | atapi.c | 329 gtgt_t *gtgtp; /* GHD's per-target-instance structure */ local 358 gtgtp = ghd_target_init(hba_dip, tgt_dip, &ata_ctlp->ac_ccc, 363 hba_tran->tran_tgt_private = gtgtp; 366 ata_tgtp = GTGTP2ATATGTP(gtgtp); 478 gtgt_t *gtgtp = ADDR2GTGTP(ap); local 479 ata_tgt_t *tgtp = GTGTP2ATATGTP(gtgtp); 519 gtgt_t *gtgtp; local 554 gtgtp = ADDR2GTGTP(ap); 560 ata_drvp, gtgtp)) { 609 gtgt_t *gtgtp local 814 atapi_ccballoc( gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen, int statuslen, int tgtlen, int ccblen) argument [all...] |
H A D | ata_disk.c | 118 static int ata_disk_update_fw(gtgt_t *gtgtp, ata_ctl_t *ata_ctlp, 391 * this is filled in with gtgtp by ata_disk_bus_ctl(INITCHILD) 808 gtgt_t *gtgtp; local 841 gtgtp = ghd_target_init(d, cdip, &ata_ctlp->ac_ccc, 847 ata_tgtp = GTGTP2ATATGTP(gtgtp); 853 /* gtgtp is the opaque arg to all my entry points */ 854 ctlobjp->c_data = gtgtp; 871 gtgt_t *gtgtp; local 875 gtgtp = ctlobjp->c_data; 877 ghd_target_free(d, cdip, >GTP2ATAP(gtgtp) 927 gtgt_t *gtgtp = (gtgt_t *)ctl_data; local 958 gtgt_t *gtgtp = (gtgt_t *)ctl_data; local 1234 ata_disk_do_ioctl( int (*func)(ata_ctl_t *, ata_drv_t *, ata_pkt_t *), void *arg, ata_ctl_t *ata_ctlp, gtgt_t *gtgtp, cmpkt_t *pktp) argument 1280 gtgt_t *gtgtp = (gtgt_t *)ctl_data; local 1374 gtgt_t *gtgtp = (gtgt_t *)ctl_data; local 1478 gtgt_t *gtgtp = (gtgt_t *)ctl_data; local 1718 gtgt_t *gtgtp = (gtgt_t *)ctl_data; local 3208 ata_disk_update_fw(gtgt_t *gtgtp, ata_ctl_t *ata_ctlp, ata_drv_t *ata_drvp, caddr_t fwfile, uint_t size, uint8_t type, int flag) argument [all...] |
H A D | atapi.h | 115 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen,
|
H A D | ata_common.h | 540 #define GTGTP2ATAP(gtgtp) ((ata_ctl_t *)GTGTP2HBA(gtgtp)) 545 #define GTGTP2ATATGTP(gtgtp) ((ata_tgt_t *)GTGTP2TARGET(gtgtp)) 550 #define GTGTP2ATADRVP(gtgtp) (GTGTP2ATATGTP(gtgtp)->at_drvp) 679 gtgt_t *gtgtp);
|
H A D | ata_common.c | 62 gtgt_t *gtgtp, gact_t action, int calltype); 907 gtgt_t *gtgtp, 3226 gtgt_t *gtgtp) 3232 if (!(gcmdp = ghd_gcmd_alloc(gtgtp, sizeof (*ata_pktp), TRUE))) { 904 ata_timeout_func( void *hba_handle, gcmd_t *gcmdp, gtgt_t *gtgtp, gact_t action, int calltype) argument 3221 ata_queue_cmd( int (*func)(ata_ctl_t *, ata_drv_t *, ata_pkt_t *), void *arg, ata_ctl_t *ata_ctlp, ata_drv_t *ata_drvp, gtgt_t *gtgtp) argument
|
/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,
|