Home
last modified time | relevance | path

Searched refs:gtgtp (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_waitq.c46 gtgt_t *gtgtp; 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()
61 gtgtp->gt_lun = lun; in ghd_target_init()
62 gtgtp->gt_ccc = cccp; in ghd_target_init()
72 GTGT_INIT(gtgtp); in ghd_target_init()
124 gtgtp->gt_gdevp = gdevp; in ghd_target_init()
131 return (gtgtp); in ghd_target_init()
139 gtgt_t *gtgtp) in ghd_target_free() argument
146 gtgtp->gt_target, gtgtp->gt_lun, (void *)gdevp, (void *)gtgtp)); in ghd_target_free()
[all …]
H A Dghd_waitq.h110 #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 Dghd.c254 (*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()
610 gcmdp, gtgtp, intr_status)) { in ghd_tran_abort()
649 NULL, gtgtp, intr_status); in ghd_tran_abort_lun()
683 NULL, gtgtp, intr_status); in ghd_tran_reset_target()
732 gtgt_t *gtgtp, in ghd_transport() argument
737 gdev_t *gdevp = gtgtp->gt_gdevp; in ghd_transport()
836 gtgt_t *gtgtp, in ghd_reset_notify() argument
850 rnp->gtgtp = gtgtp; in ghd_reset_notify()
[all …]
H A Dghd.h136 #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);
275 int ghd_reset_notify(ccc_t *cccp, gtgt_t *gtgtp, int flag,
286 gcmd_t *ghd_gcmd_alloc(gtgt_t *gtgtp, int ccblen, int sleep);
[all …]
H A Dghd_timer.c314 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 Dghd_gcmd.c62 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 Dghd_scsa.c93 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 Dghd_waitq.h108 #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 Dghd.h121 #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 Data_disk.c802 gtgt_t *gtgtp; in ata_disk_bus_ctl() local
864 gtgt_t *gtgtp; in ata_disk_bus_ctl() local
870 ghd_target_free(d, cdip, &GTGTP2ATAP(gtgtp)->ac_ccc, gtgtp); in ata_disk_bus_ctl()
1032 gtgtp); in ata_disk_ioctl()
1038 gtgtp); in ata_disk_ioctl()
1044 gtgtp); in ata_disk_ioctl()
1050 ata_drvp, gtgtp); in ata_disk_ioctl()
1056 gtgtp); in ata_disk_ioctl()
1062 gtgtp); in ata_disk_ioctl()
1143 gtgtp); in ata_disk_ioctl()
[all …]
H A Datapi.c363 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
610 ata_tgt_t *ata_tgtp = GTGTP2ATATGTP(gtgtp); in atapi_tran_init_pkt()
815 gtgt_t *gtgtp, in atapi_ccballoc() argument
[all …]
H A Data_common.h540 #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 Datapi.h113 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen,
H A Data_common.c64 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 Datapi.h108 int atapi_ccballoc(gtgt_t *gtgtp, gcmd_t *gcmdp, int cmdlen,