Lines Matching defs:async_handle
88 static int hci1394_async_arresp_read(hci1394_async_handle_t async_handle,
94 static int hci1394_async_arreq_read(hci1394_async_handle_t async_handle,
97 static int hci1394_async_arreq_read_qrd(hci1394_async_handle_t async_handle,
99 static int hci1394_async_arreq_read_qwr(hci1394_async_handle_t async_handle,
101 static int hci1394_async_arreq_read_brd(hci1394_async_handle_t async_handle,
103 static int hci1394_async_arreq_read_bwr(hci1394_async_handle_t async_handle,
105 static int hci1394_async_arreq_read_lck(hci1394_async_handle_t async_handle,
107 static int hci1394_async_arreq_read_phy(hci1394_async_handle_t async_handle,
111 static void hci1394_async_hcicmd_init(hci1394_async_handle_t async_handle,
125 static void hci1394_async_atreq_flush(hci1394_async_handle_t async_handle);
126 static void hci1394_async_arresp_flush(hci1394_async_handle_t async_handle);
127 static void hci1394_async_arreq_flush(hci1394_async_handle_t async_handle);
128 static void hci1394_async_atresp_flush(hci1394_async_handle_t async_handle);
130 async_handle);
134 static uint_t hci1394_async_timeout_calc(hci1394_async_handle_t async_handle,
148 hci1394_async_handle_t *async_handle)
159 ASSERT(async_handle != NULL);
217 *async_handle = NULL;
240 *async_handle = NULL;
264 *async_handle = NULL;
289 *async_handle = NULL;
297 *async_handle = async;
312 hci1394_async_fini(hci1394_async_handle_t *async_handle)
317 ASSERT(async_handle != NULL);
320 async = (hci1394_async_t *)*async_handle;
333 *async_handle = NULL;
346 hci1394_async_suspend(hci1394_async_handle_t async_handle)
348 ASSERT(async_handle != NULL);
353 hci1394_async_flush(async_handle);
356 hci1394_tlist_timeout_cancel(async_handle->as_pending_list);
370 hci1394_async_resume(hci1394_async_handle_t async_handle)
372 ASSERT(async_handle != NULL);
376 hci1394_q_resume(async_handle->as_atreq_q);
377 hci1394_q_resume(async_handle->as_atresp_q);
378 hci1394_q_resume(async_handle->as_arreq_q);
379 hci1394_q_resume(async_handle->as_arresp_q);
408 hci1394_async_flush(hci1394_async_handle_t async_handle)
410 ASSERT(async_handle != NULL);
413 hci1394_async_atreq_flush(async_handle);
414 hci1394_async_arresp_flush(async_handle);
415 hci1394_async_pending_list_flush(async_handle);
416 hci1394_async_arreq_flush(async_handle);
417 hci1394_async_atresp_flush(async_handle);
418 hci1394_tlabel_reset(async_handle->as_tlabel);
432 hci1394_async_pending_timeout_update(hci1394_async_handle_t async_handle,
435 ASSERT(async_handle != NULL);
438 hci1394_tlist_timeout_update(async_handle->as_pending_list, timeout);
439 hci1394_tlabel_set_reclaim_time(async_handle->as_tlabel, timeout);
492 hci1394_async_atreq_process(hci1394_async_handle_t async_handle,
500 ASSERT(async_handle != NULL);
510 hci1394_q_at_next(async_handle->as_atreq_q, flush_q, &qcmd);
557 async_handle->as_drvinfo->di_sl_private,
583 hci1394_tlist_add(async_handle->as_pending_list,
699 hci1394_tlabel_free(async_handle->as_tlabel,
710 h1394_cmd_is_complete(async_handle->as_drvinfo->di_sl_private,
728 hci1394_async_arresp_process(hci1394_async_handle_t async_handle,
739 ASSERT(async_handle != NULL);
751 hci1394_q_ar_next(async_handle->as_arresp_q, &addr);
764 mutex_enter(&async_handle->as_atomic_lookup);
773 status = hci1394_async_arresp_read(async_handle,
776 mutex_exit(&async_handle->as_atomic_lookup);
777 h1394_error_detected(async_handle->as_drvinfo->di_sl_private,
781 async_handle->as_drvinfo->di_instance);
782 hci1394_shutdown(async_handle->as_drvinfo->di_dip);
791 hci1394_q_ar_free(async_handle->as_arresp_q, size);
800 mutex_exit(&async_handle->as_atomic_lookup);
820 status = hci1394_tlist_delete(async_handle->as_pending_list,
823 mutex_exit(&async_handle->as_atomic_lookup);
831 mutex_exit(&async_handle->as_atomic_lookup);
837 hci1394_tlabel_free(async_handle->as_tlabel, &hcicmd->ac_tlabel);
895 h1394_cmd_is_complete(async_handle->as_drvinfo->di_sl_private,
927 hci1394_async_arreq_process(hci1394_async_handle_t async_handle,
937 ASSERT(async_handle != NULL);
949 hci1394_q_ar_next(async_handle->as_arreq_q, &addr);
965 status = hci1394_async_arreq_read(async_handle,
968 h1394_error_detected(async_handle->as_drvinfo->di_sl_private,
972 async_handle->as_drvinfo->di_instance);
973 hci1394_shutdown(async_handle->as_drvinfo->di_dip);
982 hci1394_q_ar_free(async_handle->as_arreq_q, size);
1002 if (async_handle->as_flushing_arreq == B_TRUE) {
1003 hci1394_async_response_complete(async_handle, hcicmd->ac_cmd,
1020 h1394_read_request(async_handle->as_drvinfo->di_sl_private,
1025 h1394_write_request(async_handle->as_drvinfo->di_sl_private,
1029 h1394_lock_request(async_handle->as_drvinfo->di_sl_private,
1041 h1394_phy_packet(async_handle->as_drvinfo->di_sl_private,
1045 hci1394_async_response_complete(async_handle, hcicmd->ac_cmd,
1050 hci1394_async_response_complete(async_handle, hcicmd->ac_cmd,
1075 hci1394_async_atresp_process(hci1394_async_handle_t async_handle,
1083 ASSERT(async_handle != NULL);
1093 hci1394_q_at_next(async_handle->as_atresp_q, flush_q, &qcmd);
1198 h1394_cmd_is_complete(async_handle->as_drvinfo->di_sl_private,
1224 hci1394_async_arresp_read(hci1394_async_handle_t async_handle,
1240 ASSERT(async_handle != NULL);
1250 quadlet = hci1394_q_ar_get32(async_handle->as_arresp_q, &pkt->q1);
1255 async_handle->as_arresp_q, &pkt->q1, size);
1265 quadlet = hci1394_q_ar_get32(async_handle->as_arresp_q, &pkt->q1);
1267 quadlet = hci1394_q_ar_get32(async_handle->as_arresp_q, &pkt->q2);
1272 hci1394_tlabel_lookup(async_handle->as_tlabel, &ac_tlabel, &command);
1313 quadlet = hci1394_q_ar_get32(async_handle->as_arresp_q, status_addr);
1394 hci1394_q_ar_rep_get8(async_handle->as_arresp_q,
1416 quadlet = hci1394_q_ar_get32(async_handle->as_arresp_q,
1432 hci1394_q_ar_copy_to_mblk(async_handle->as_arresp_q,
1438 quadlet = hci1394_q_ar_get32(async_handle->as_arresp_q,
1465 hci1394_q_ar_rep_get8(async_handle->as_arresp_q,
1494 hci1394_q_ar_rep_get8(async_handle->as_arresp_q,
1545 hci1394_async_arreq_read(hci1394_async_handle_t async_handle,
1556 ASSERT(async_handle != NULL);
1566 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q1);
1574 status = h1394_alloc_cmd(async_handle->as_drvinfo->di_sl_private,
1585 hci1394_async_hcicmd_init(async_handle, cmd, cmd_priv, hcicmd);
1592 cmd_priv->bus_generation = async_handle->as_drvinfo->di_gencnt;
1593 cmd->bus_generation = async_handle->as_drvinfo->di_gencnt;
1608 status = hci1394_async_arreq_read_qrd(async_handle, pkt,
1611 hci1394_async_response_complete(async_handle, cmd,
1630 status = hci1394_async_arreq_read_qwr(async_handle, pkt,
1633 hci1394_async_response_complete(async_handle, cmd,
1652 status = hci1394_async_arreq_read_brd(async_handle, pkt,
1655 hci1394_async_response_complete(async_handle, cmd,
1674 status = hci1394_async_arreq_read_bwr(async_handle, pkt,
1677 hci1394_async_response_complete(async_handle, cmd,
1696 status = hci1394_async_arreq_read_lck(async_handle, pkt,
1699 hci1394_async_response_complete(async_handle, cmd,
1718 status = hci1394_async_arreq_read_phy(async_handle, pkt,
1721 hci1394_async_response_complete(async_handle, cmd,
1737 hci1394_async_response_complete(async_handle, cmd,
1766 hci1394_async_response_complete(async_handle, cmd, cmd_priv);
1796 hci1394_async_arreq_read_qrd(hci1394_async_handle_t async_handle,
1804 ASSERT(async_handle != NULL);
1821 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q4);
1825 hcicmd->ac_qcmd.qc_timestamp = hci1394_async_timeout_calc(async_handle,
1846 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q1);
1855 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q2);
1858 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q3);
1875 hci1394_async_arreq_read_qwr(hci1394_async_handle_t async_handle,
1883 ASSERT(async_handle != NULL);
1900 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q5);
1904 hcicmd->ac_qcmd.qc_timestamp = hci1394_async_timeout_calc(async_handle,
1925 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q1);
1935 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q2);
1938 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q3);
1940 hci1394_q_ar_rep_get8(async_handle->as_arreq_q,
1957 hci1394_async_arreq_read_brd(hci1394_async_handle_t async_handle,
1965 ASSERT(async_handle != NULL);
1982 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q5);
1986 hcicmd->ac_qcmd.qc_timestamp = hci1394_async_timeout_calc(async_handle,
2004 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q1);
2013 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q2);
2016 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q3);
2018 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q4);
2043 hci1394_async_arreq_read_bwr(hci1394_async_handle_t async_handle,
2052 ASSERT(async_handle != NULL);
2068 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q4);
2080 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, local_addr);
2084 hcicmd->ac_qcmd.qc_timestamp = hci1394_async_timeout_calc(async_handle,
2102 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q1);
2111 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q2);
2114 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q3);
2127 hci1394_q_ar_rep_get8(async_handle->as_arreq_q,
2147 hci1394_async_arreq_read_lck(hci1394_async_handle_t async_handle,
2158 ASSERT(async_handle != NULL);
2173 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q4);
2200 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, local_addr);
2204 hcicmd->ac_qcmd.qc_timestamp = hci1394_async_timeout_calc(async_handle,
2222 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q1);
2231 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q2);
2234 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q3);
2240 hci1394_q_ar_rep_get8(async_handle->as_arreq_q,
2245 hci1394_q_ar_rep_get8(async_handle->as_arreq_q,
2258 hci1394_q_ar_rep_get8(async_handle->as_arreq_q,
2263 hci1394_q_ar_rep_get8(async_handle->as_arreq_q,
2290 hci1394_async_arreq_read_phy(hci1394_async_handle_t async_handle,
2300 ASSERT(async_handle != NULL);
2316 quadlet = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q4);
2323 data1 = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q2);
2324 data2 = hci1394_q_ar_get32(async_handle->as_arreq_q, &pkt->q3);
2333 async_handle->as_phy_reset = HCI1394_DESC_PHYGEN_GET(data2);
2334 if (async_handle->as_phy_reset == hci1394_ohci_current_busgen(
2335 async_handle->as_ohci)) {
2336 async_handle->as_flushing_arreq = B_FALSE;
2370 hci1394_async_phy(hci1394_async_handle_t async_handle, cmd1394_cmd_t *cmd,
2378 ASSERT(async_handle != NULL);
2390 async_handle->as_ohci)) {
2398 hci1394_async_hcicmd_init(async_handle, cmd, cmd_priv, &hcicmd);
2412 status = hci1394_q_at(async_handle->as_atreq_q, &hcicmd->ac_qcmd,
2434 hci1394_async_write(hci1394_async_handle_t async_handle, cmd1394_cmd_t *cmd,
2442 ASSERT(async_handle != NULL);
2454 async_handle->as_ohci)) {
2462 hci1394_async_hcicmd_init(async_handle, cmd, cmd_priv, &hcicmd);
2466 status = hci1394_tlabel_alloc(async_handle->as_tlabel, hcicmd->ac_dest,
2494 hci1394_tlabel_register(async_handle->as_tlabel, &hcicmd->ac_tlabel,
2511 status = hci1394_q_at(async_handle->as_atreq_q,
2535 status = hci1394_q_at_with_mblk(async_handle->as_atreq_q,
2559 hci1394_async_read(hci1394_async_handle_t async_handle, cmd1394_cmd_t *cmd,
2567 ASSERT(async_handle != NULL);
2579 async_handle->as_ohci)) {
2587 hci1394_async_hcicmd_init(async_handle, cmd, cmd_priv, &hcicmd);
2591 status = hci1394_tlabel_alloc(async_handle->as_tlabel, hcicmd->ac_dest,
2619 hci1394_tlabel_register(async_handle->as_tlabel, &hcicmd->ac_tlabel,
2632 status = hci1394_q_at(async_handle->as_atreq_q,
2652 status = hci1394_q_at(async_handle->as_atreq_q,
2676 hci1394_async_lock(hci1394_async_handle_t async_handle, cmd1394_cmd_t *cmd,
2688 ASSERT(async_handle != NULL);
2700 async_handle->as_ohci)) {
2708 hci1394_async_hcicmd_init(async_handle, cmd, cmd_priv, &hcicmd);
2712 status = hci1394_tlabel_alloc(async_handle->as_tlabel, hcicmd->ac_dest,
2724 hci1394_tlabel_register(async_handle->as_tlabel, &hcicmd->ac_tlabel,
2778 status = hci1394_q_at_with_data(async_handle->as_atreq_q,
2802 hci1394_async_write_response(hci1394_async_handle_t async_handle,
2810 ASSERT(async_handle != NULL);
2823 async_handle->as_ohci)) {
2855 status = hci1394_q_at(async_handle->as_atresp_q, &hcicmd->ac_qcmd,
2879 hci1394_async_read_response(hci1394_async_handle_t async_handle,
2887 ASSERT(async_handle != NULL);
2900 async_handle->as_ohci)) {
2949 status = hci1394_q_at(async_handle->as_atresp_q,
2977 status = hci1394_q_at(async_handle->as_atresp_q,
3004 status = hci1394_q_at_with_mblk(async_handle->as_atresp_q,
3030 hci1394_async_lock_response(hci1394_async_handle_t async_handle,
3042 ASSERT(async_handle != NULL);
3055 async_handle->as_ohci)) {
3105 status = hci1394_q_at(async_handle->as_atresp_q,
3154 status = hci1394_q_at_with_data(async_handle->as_atresp_q,
3183 hci1394_async_response_complete(hci1394_async_handle_t async_handle,
3189 ASSERT(async_handle != NULL);
3210 (void) h1394_free_cmd((void *)async_handle->as_drvinfo->di_sl_private,
3232 hci1394_async_handle_t async_handle;
3236 async_handle = (hci1394_async_handle_t)arg;
3237 ASSERT(async_handle != NULL);
3261 hci1394_tlabel_bad(async_handle->as_tlabel, &hcicmd->ac_tlabel);
3265 h1394_cmd_is_complete(async_handle->as_drvinfo->di_sl_private,
3282 hci1394_async_timeout_calc(hci1394_async_handle_t async_handle,
3295 split_timeout = hci1394_csr_split_timeout_get(async_handle->as_csr);
3408 hci1394_async_pending_list_flush(hci1394_async_handle_t async_handle)
3414 ASSERT(async_handle != NULL);
3424 hci1394_tlist_get(async_handle->as_pending_list, &node);
3435 async_handle->as_drvinfo->di_sl_private,
3455 hci1394_async_handle_t async_handle;
3459 async_handle = (hci1394_async_handle_t)async;
3460 hci1394_ohci_atreq_start(async_handle->as_ohci, command_ptr);
3474 hci1394_async_handle_t async_handle;
3478 async_handle = (hci1394_async_handle_t)async;
3479 hci1394_ohci_atreq_wake(async_handle->as_ohci);
3493 hci1394_async_atreq_reset(hci1394_async_handle_t async_handle)
3495 ASSERT(async_handle != NULL);
3498 hci1394_ohci_atreq_stop(async_handle->as_ohci);
3499 hci1394_q_stop(async_handle->as_atreq_q);
3511 hci1394_async_atreq_flush(hci1394_async_handle_t async_handle)
3516 ASSERT(async_handle != NULL);
3522 hci1394_ohci_intr_clear(async_handle->as_ohci, OHCI_INTR_REQ_TX_CMPLT);
3532 status = hci1394_async_atreq_process(async_handle,
3554 hci1394_async_handle_t async_handle;
3558 async_handle = (hci1394_async_handle_t)async;
3559 hci1394_ohci_arresp_start(async_handle->as_ohci, command_ptr);
3573 hci1394_async_handle_t async_handle;
3577 async_handle = (hci1394_async_handle_t)async;
3578 hci1394_ohci_arresp_wake(async_handle->as_ohci);
3593 hci1394_async_arresp_flush(hci1394_async_handle_t async_handle)
3599 ASSERT(async_handle != NULL);
3605 hci1394_ohci_intr_clear(async_handle->as_ohci, OHCI_INTR_RSPKT);
3609 status = hci1394_async_arresp_process(async_handle,
3631 hci1394_async_handle_t async_handle;
3635 async_handle = (hci1394_async_handle_t)async;
3636 hci1394_ohci_arreq_start(async_handle->as_ohci, command_ptr);
3650 hci1394_async_handle_t async_handle;
3654 async_handle = (hci1394_async_handle_t)async;
3655 hci1394_ohci_arreq_wake(async_handle->as_ohci);
3668 hci1394_async_arreq_flush(hci1394_async_handle_t async_handle)
3674 ASSERT(async_handle != NULL);
3686 if (async_handle->as_phy_reset == hci1394_ohci_current_busgen(
3687 async_handle->as_ohci)) {
3699 async_handle->as_flushing_arreq = B_TRUE;
3706 status = hci1394_async_arreq_process(async_handle,
3713 (async_handle->as_flushing_arreq == B_TRUE));
3724 hci1394_ohci_intr_clear(async_handle->as_ohci, OHCI_INTR_RQPKT);
3741 hci1394_async_handle_t async_handle;
3745 async_handle = (hci1394_async_handle_t)async;
3746 hci1394_ohci_atresp_start(async_handle->as_ohci, command_ptr);
3760 hci1394_async_handle_t async_handle;
3764 async_handle = (hci1394_async_handle_t)async;
3765 hci1394_ohci_atresp_wake(async_handle->as_ohci);
3779 hci1394_async_atresp_reset(hci1394_async_handle_t async_handle)
3781 ASSERT(async_handle != NULL);
3784 hci1394_ohci_atresp_stop(async_handle->as_ohci);
3785 hci1394_q_stop(async_handle->as_atresp_q);
3798 hci1394_async_atresp_flush(hci1394_async_handle_t async_handle)
3803 ASSERT(async_handle != NULL);
3809 hci1394_ohci_intr_clear(async_handle->as_ohci, OHCI_INTR_RESP_TX_CMPLT);
3814 status = hci1394_async_atresp_process(async_handle,
3832 hci1394_async_hcicmd_init(hci1394_async_handle_t async_handle,
3839 (*hcicmd)->ac_async = async_handle;