H A D | ohci.c | 134 static void ohci_set_dma_attributes(ohci_state_t *ohcip); 135 static int ohci_allocate_pools(ohci_state_t *ohcip); 137 ohci_state_t *ohcip, 139 static int ohci_map_regs(ohci_state_t *ohcip); 141 ohci_state_t *ohcip); 142 static int ohci_add_intrs(ohci_state_t *ohcip, 144 static int ohci_init_ctlr(ohci_state_t *ohcip); 145 static int ohci_init_hcca(ohci_state_t *ohcip); 147 ohci_state_t *ohcip); 148 static int ohci_take_control(ohci_state_t *ohcip); 617 ohci_state_t *ohcip = NULL; local 792 ohci_state_t *ohcip = ohci_obtain_state(dip); local 822 ohci_state_t *ohcip; local 862 ohci_state_t *ohcip = ddi_get_soft_state(ohci_statep, instance); local 925 ohci_set_dma_attributes(ohci_state_t *ohcip) argument 964 ohci_allocate_pools(ohci_state_t *ohcip) argument 1123 ohci_decode_ddi_dma_addr_bind_handle_result( ohci_state_t *ohcip, int result) argument 1166 ohci_map_regs(ohci_state_t *ohcip) argument 1254 ohci_register_intrs_and_init_mutex(ohci_state_t *ohcip) argument 1352 ohci_add_intrs(ohci_state_t *ohcip, int intr_type) argument 1512 ohci_init_ctlr(ohci_state_t *ohcip) argument 1719 ohci_init_hcca(ohci_state_t *ohcip) argument 1856 ohci_build_interrupt_lattice(ohci_state_t *ohcip) argument 1921 ohci_take_control(ohci_state_t *ohcip) argument 2013 ohci_alloc_hcdi_ops(ohci_state_t *ohcip) argument 2083 ohci_cleanup(ohci_state_t *ohcip) argument 2303 ohci_rem_intrs(ohci_state_t *ohcip) argument 2335 ohci_cpr_suspend(ohci_state_t *ohcip) argument 2416 ohci_cpr_resume(ohci_state_t *ohcip) argument 2469 ohci_state_t *ohcip = ohci_obtain_state( local 2681 ohci_state_t *ohcip = ohci_obtain_state( local 2763 ohci_state_t *ohcip = ohci_obtain_state( local 2799 ohci_state_t *ohcip = ohci_obtain_state( local 2828 ohci_state_t *ohcip = ohci_obtain_state( local 2902 ohci_state_t *ohcip = ohci_obtain_state( local 2933 ohci_state_t *ohcip = ohci_obtain_state( local 2991 ohci_state_t *ohcip = ohci_obtain_state( local 3041 ohci_state_t *ohcip = ohci_obtain_state( local 3070 ohci_state_t *ohcip = ohci_obtain_state( local 3108 ohci_state_t *ohcip = ohci_obtain_state( local 3141 ohci_state_t *ohcip = ohci_obtain_state( local 3196 ohci_state_t *ohcip = ohci_obtain_state( local 3254 ohci_allocate_bandwidth( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, uint_t *node) argument 3413 ohci_deallocate_bandwidth( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 3551 ohci_adjust_polling_interval( ohci_state_t *ohcip, usb_ep_descr_t *endpoint, usb_port_status_t port_status) argument 3767 ohci_alloc_hc_ed( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 3846 ohci_unpack_endpoint( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 3906 ohci_insert_ed( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 3941 ohci_insert_ctrl_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 3988 ohci_insert_bulk_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4036 ohci_insert_intr_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4133 ohci_insert_isoc_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4199 ohci_modify_sKip_bit( ohci_state_t *ohcip, ohci_pipe_private_t *pp, skip_bit_t action, usb_flags_t flag) argument 4265 ohci_remove_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4300 ohci_remove_ctrl_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4350 ohci_remove_bulk_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4401 ohci_remove_periodic_ed( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4462 ohci_detach_ed_from_list( ohci_state_t *ohcip, ohci_ed_t *ept, uint_t ept_type) argument 4587 ohci_insert_ed_on_reclaim_list( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 4638 ohci_deallocate_ed( ohci_state_t *ohcip, ohci_ed_t *old_ed) argument 4673 ohci_ed_cpu_to_iommu( ohci_state_t *ohcip, ohci_ed_t *addr) argument 4697 ohci_ed_iommu_to_cpu( ohci_state_t *ohcip, uintptr_t addr) argument 4732 ohci_initialize_dummy( ohci_state_t *ohcip, ohci_ed_t *ept) argument 4764 ohci_allocate_ctrl_resources( ohci_state_t *ohcip, ohci_pipe_private_t *pp, usb_ctrl_req_t *ctrl_reqp, usb_flags_t usb_flags) argument 4806 ohci_insert_ctrl_req( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_ctrl_req_t *ctrl_reqp, ohci_trans_wrapper_t *tw, usb_flags_t usb_flags) argument 4948 ohci_allocate_bulk_resources( ohci_state_t *ohcip, ohci_pipe_private_t *pp, usb_bulk_req_t *bulk_reqp, usb_flags_t usb_flags) argument 4989 ohci_insert_bulk_req( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_bulk_req_t *bulk_reqp, ohci_trans_wrapper_t *tw, usb_flags_t flags) argument 5093 ohci_start_periodic_pipe_polling( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_opaque_t periodic_in_reqp, usb_flags_t flags) argument 5183 ohci_start_pipe_polling( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_flags_t flags) argument 5314 ohci_set_periodic_pipe_polling( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 5386 ohci_allocate_intr_resources( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_intr_req_t *intr_reqp, usb_flags_t flags) argument 5475 ohci_insert_intr_req( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, usb_flags_t flags) argument 5510 ohci_stop_periodic_pipe_polling( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_flags_t flags) argument 5560 ohci_allocate_isoc_resources( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph, usb_isoc_req_t *isoc_reqp, usb_flags_t flags) argument 5736 ohci_insert_isoc_req( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, uint_t flags) argument 5868 ohci_insert_hc_td( ohci_state_t *ohcip, uint_t hctd_ctrl, uint32_t hctd_dma_offs, size_t hctd_length, uint32_t hctd_ctrl_phase, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 5957 ohci_allocate_td_from_pool(ohci_state_t *ohcip) argument 6010 ohci_fill_in_td( ohci_state_t *ohcip, ohci_td_t *td, ohci_td_t *new_dummy, uint_t hctd_ctrl, uint32_t hctd_dma_offs, size_t hctd_length, uint32_t hctd_ctrl_phase, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 6073 ohci_init_td( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw, uint32_t hctd_dma_offs, size_t hctd_length, ohci_td_t *td) argument 6158 ohci_init_itd( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw, uint_t hctd_ctrl, uint32_t index, ohci_td_t *td) argument 6254 ohci_insert_td_with_frame_number( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *current_td, ohci_td_t *dummy_td) argument 6397 ohci_insert_td_on_tw( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw, ohci_td_t *td) argument 6439 ohci_traverse_tds( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 6531 ohci_done_list_tds( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 6581 ohci_unlink_td_from_tw( ohci_state_t *ohcip, ohci_td_t *old_td, ohci_trans_wrapper_t *tw) argument 6643 ohci_deallocate_td( ohci_state_t *ohcip, ohci_td_t *old_td) argument 6695 ohci_td_cpu_to_iommu( ohci_state_t *ohcip, ohci_td_t *addr) argument 6727 ohci_td_iommu_to_cpu( ohci_state_t *ohcip, uintptr_t addr) argument 6759 ohci_allocate_tds_for_tw( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw, size_t td_count) argument 6800 ohci_allocate_tw_resources( ohci_state_t *ohcip, ohci_pipe_private_t *pp, size_t tw_length, usb_flags_t usb_flags, size_t td_count) argument 6834 ohci_free_tw_tds_resources( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw) argument 6862 ohci_create_transfer_wrapper( ohci_state_t *ohcip, ohci_pipe_private_t *pp, size_t length, uint_t usb_flags) argument 7013 ohci_create_isoc_transfer_wrapper( ohci_state_t *ohcip, ohci_pipe_private_t *pp, size_t length, usb_isoc_pkt_descr_t *descr, ushort_t pkt_count, size_t td_count, uint_t usb_flags) argument 7245 ohci_start_xfer_timer( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 7290 ohci_stop_xfer_timer( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw, uint_t flag) argument 7348 ohci_state_t *ohcip = (ohci_state_t *)arg; local 7463 ohci_remove_tw_from_timeout_list( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw) argument 7501 ohci_start_timer(ohci_state_t *ohcip) argument 7528 ohci_deallocate_tw_resources( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 7595 ohci_free_dma_resources( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 7632 ohci_free_tw( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw) argument 7685 ohci_state_t *ohcip = (ohci_state_t *)arg1; local 7952 ohci_check_done_head(ohci_state_t *ohcip, ohci_td_t *done_head) argument 7975 ohci_handle_missed_intr(ohci_state_t *ohcip) argument 8103 ohci_handle_ue(ohci_state_t *ohcip) argument 8181 ohci_handle_frame_number_overflow(ohci_state_t *ohcip) argument 8203 ohci_handle_endpoint_reclaimation(ohci_state_t *ohcip) argument 8263 ohci_traverse_done_list( ohci_state_t *ohcip, ohci_td_t *head_done_list) argument 8376 ohci_reverse_done_list( ohci_state_t *ohcip, ohci_td_t *head_done_list) argument 8434 ohci_parse_error( ohci_state_t *ohcip, ohci_td_t *td) argument 8507 ohci_parse_isoc_error( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td) argument 8583 ohci_check_for_error( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td, uint_t ctrl) argument 8720 ohci_handle_error( ohci_state_t *ohcip, ohci_td_t *td, usb_cr_t error) argument 8854 ohci_cleanup_data_underrun( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td) argument 8952 ohci_handle_normal_td( ohci_state_t *ohcip, ohci_td_t *td, ohci_trans_wrapper_t *tw) argument 8983 ohci_handle_ctrl_td( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td, void *tw_handle_callback_value) argument 9069 ohci_handle_bulk_td( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td, void *tw_handle_callback_value) argument 9130 ohci_handle_intr_td( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td, void *tw_handle_callback_value) argument 9238 ohci_handle_one_xfer_completion( ohci_state_t *ohcip, ohci_trans_wrapper_t *tw) argument 9285 ohci_handle_isoc_td( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td, void *tw_handle_callback_value) argument 9403 ohci_tw_rebind_cookie( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 9494 ohci_sendup_td_message( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, ohci_td_t *td, usb_cr_t error) argument 9653 ohci_get_td_residue( ohci_state_t *ohcip, ohci_td_t *td) argument 9703 ohci_state_is_operational(ohci_state_t *ohcip) argument 9735 ohci_do_soft_reset(ohci_state_t *ohcip) argument 9967 ohci_get_current_frame_number(ohci_state_t *ohcip) argument 10014 ohci_cpr_cleanup(ohci_state_t *ohcip) argument 10035 ohci_get_xfer_attrs( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 10078 ohci_allocate_periodic_in_resource( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw, usb_flags_t flags) argument 10188 ohci_wait_for_sof(ohci_state_t *ohcip) argument 10278 ohci_pipe_cleanup( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 10409 ohci_wait_for_transfers_completion( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 10510 ohci_check_for_transfers_completion( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 10559 ohci_save_data_toggle( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 10646 ohci_restore_data_toggle( ohci_state_t *ohcip, usba_pipe_handle_data_t *ph) argument 10701 ohci_handle_outstanding_requests( ohci_state_t *ohcip, ohci_pipe_private_t *pp) argument 10754 ohci_deallocate_periodic_in_resource( ohci_state_t *ohcip, ohci_pipe_private_t *pp, ohci_trans_wrapper_t *tw) argument 10808 ohci_do_client_periodic_in_req_callback( ohci_state_t *ohcip, ohci_pipe_private_t *pp, usb_cr_t completion_reason) argument 10843 ohci_state_t *ohcip = ohci_obtain_state( local 10916 ohci_create_stats(ohci_state_t *ohcip) argument 10997 ohci_destroy_stats(ohci_state_t *ohcip) argument 11026 ohci_do_intrs_stats( ohci_state_t *ohcip, int val) argument 11080 ohci_do_byte_stats( ohci_state_t *ohcip, size_t len, uint8_t attr, uint8_t addr) argument 11141 ohci_print_op_regs(ohci_state_t *ohcip) argument 11196 ohci_print_ed( ohci_state_t *ohcip, ohci_ed_t *ed) argument 11236 ohci_print_td( ohci_state_t *ohcip, ohci_td_t *td) argument 11301 ohci_state_t *ohcip = ohci_obtain_state(dip); local [all...] |