FreeBSD kernel usb device Code
|
#include <usb_device.h>
Definition at line 190 of file usb_device.h.
uint8_t usb_device::address |
Definition at line 243 of file usb_device.h.
Referenced by atmegadci_ep_init(), avr32dci_ep_init(), dwc_otg_ep_init(), ehci_ep_init(), ehci_non_isoc_done_sub(), ehci_setup_standard_chain(), musbotg_ep_init(), ohci_ep_init(), uhci_ep_init(), uhub_explore(), usb_alloc_device(), usb_detach_device_sub(), usb_devinfo(), usb_dump_device(), usb_dump_xfer(), usb_handle_request(), usbd_ctrl_transfer_setup(), usbd_req_re_enumerate(), usbd_set_config_index(), usbd_setup_device_desc(), usbd_transfer_setup(), uss820dci_ep_init(), xhci_ep_init(), and xhci_set_address().
uint16_t usb_device::autoQuirk[USB_MAX_AUTO_QUIRK] |
Definition at line 241 of file usb_device.h.
Referenced by usb_test_quirk(), and usbd_add_dynamic_quirk().
struct usb_bus* usb_device::bus |
Definition at line 216 of file usb_device.h.
Referenced by atmegadci_clear_stall(), atmegadci_ep_init(), atmegadci_roothub_exec(), atmegadci_set_stall(), atmegadci_xfer_setup(), avr32dci_clear_stall(), avr32dci_ep_init(), avr32dci_roothub_exec(), avr32dci_set_stall(), avr32dci_xfer_setup(), device_set_usb_desc(), dwc_otg_clear_stall(), dwc_otg_device_resume(), dwc_otg_device_state_change(), dwc_otg_ep_init(), dwc_otg_get_hw_ep_profile(), dwc_otg_roothub_exec(), dwc_otg_set_stall(), ehci_device_resume(), ehci_device_suspend(), ehci_ep_init(), ehci_roothub_exec(), ehci_xfer_setup(), musbotg_clear_stall(), musbotg_ep_init(), musbotg_get_dma_delay(), musbotg_get_hw_ep_profile(), musbotg_roothub_exec(), musbotg_set_stall(), musbotg_xfer_setup(), ohci_device_resume(), ohci_device_suspend(), ohci_ep_init(), ohci_roothub_exec(), uhci_device_resume(), uhci_device_suspend(), uhci_ep_init(), uhci_roothub_exec(), uhci_xfer_setup(), uhub_child_location(), uhub_count_active_host_ports(), uhub_detach(), uhub_explore_sub(), uhub_find_iface_index(), uhub_intr_callback(), uhub_reattach_port(), uhub_root_intr(), uhub_suspend_resume_port(), usb_alloc_device(), usb_bus_attach(), usb_bus_detach(), usb_bus_explore(), usb_bus_port_get_device(), usb_bus_port_set_device(), usb_bus_resume(), usb_bus_shutdown(), usb_bus_suspend(), usb_config_parse(), usb_dev_resume_peer(), usb_dev_suspend_peer(), usb_do_clear_stall_callback(), usb_dump_device(), usb_fdt_get_node(), usb_free_device(), usb_handle_get_stall(), usb_handle_remote_wakeup(), usb_handle_request(), usb_hs_bandwidth_adjust(), usb_hw_ep_resolve(), usb_init_endpoint(), usb_isoc_time_expand(), usb_needs_explore(), usb_peer_should_wakeup(), usb_proc_explore_lock(), usb_proc_explore_msignal(), usb_proc_explore_mwait(), usb_proc_explore_unlock(), usb_set_device_state(), usb_suspend_resume(), usb_trigger_reprobe_on_off(), usbd_clear_data_toggle(), usbd_clear_stall_locked(), usbd_clear_stall_proc(), usbd_ctrl_transfer_setup(), usbd_do_request_flags(), usbd_filter_power_mode(), usbd_get_bus_index(), usbd_get_dma_delay(), usbd_get_hr_func(), usbd_pipe_start(), usbd_req_get_descriptor_ptr(), usbd_req_set_address(), usbd_set_endpoint_mode(), usbd_set_endpoint_stall(), usbd_set_power_mode(), usbd_start_re_enumerate(), usbd_start_set_config(), usbd_transfer_poll(), usbd_transfer_setup(), uss820dci_clear_stall(), uss820dci_ep_init(), uss820dci_roothub_exec(), uss820dci_set_stall(), uss820dci_xfer_setup(), xhci_alloc_device_ext(), xhci_configure_device(), xhci_configure_endpoint(), xhci_configure_mask(), xhci_device_init(), xhci_device_resume(), xhci_device_state_change(), xhci_device_suspend(), xhci_device_uninit(), xhci_ep_clear_stall(), xhci_ep_init(), xhci_free_device_ext(), xhci_get_endpoint_ext(), xhci_get_endpoint_state(), xhci_roothub_exec(), and xhci_set_address().
struct usb_config_descriptor* usb_device::cdesc |
Definition at line 220 of file usb_device.h.
Referenced by usb_alloc_device(), usb_check_alt_setting(), usb_config_parse(), usb_peer_can_wakeup(), usb_unconfigure(), usbd_get_config_descriptor(), usbd_interface_count(), and usbd_set_config_index().
uint32_t usb_device::clear_stall_errors |
Definition at line 287 of file usb_device.h.
Referenced by usb_do_clear_stall_callback(), and usbd_ctrl_transfer_setup().
uint8_t usb_device::controller_slot_id |
Definition at line 245 of file usb_device.h.
Referenced by xhci_alloc_device_ext(), xhci_configure_device(), xhci_configure_endpoint(), xhci_configure_mask(), xhci_configure_reset_endpoint(), xhci_device_init(), xhci_device_resume(), xhci_device_state_change(), xhci_device_suspend(), xhci_device_uninit(), xhci_endpoint_doorbell(), xhci_ep_init(), xhci_free_device_ext(), xhci_get_endpoint_ext(), xhci_get_endpoint_state(), and xhci_set_address().
struct usb_udev_msg usb_device::cs_msg[2] |
Definition at line 197 of file usb_device.h.
Referenced by usb_alloc_device(), usb_free_device(), usbd_pipe_start(), and usbd_transfer_poll().
struct usb_endpoint usb_device::ctrl_ep |
Definition at line 209 of file usb_device.h.
Referenced by usb_alloc_device(), usbd_get_endpoint(), and usbd_get_ep_by_addr().
struct usb_endpoint_ss_comp_descriptor usb_device::ctrl_ep_comp_desc |
Definition at line 269 of file usb_device.h.
Referenced by usb_alloc_device().
struct usb_endpoint_descriptor usb_device::ctrl_ep_desc |
Definition at line 268 of file usb_device.h.
Referenced by usb_alloc_device(), usbd_ctrl_transfer_setup(), and xhci_set_address().
struct sx usb_device::ctrl_sx |
Definition at line 200 of file usb_device.h.
Referenced by usb_alloc_device(), usb_free_device(), usbd_ctrl_lock(), and usbd_ctrl_unlock().
struct usb_xfer* usb_device::ctrl_xfer[USB_CTRL_XFER_MAX] |
Definition at line 222 of file usb_device.h.
Referenced by usb_free_device(), usbd_clear_stall_proc(), usbd_ctrl_transfer_setup(), usbd_do_request_flags(), usbd_pipe_start(), and usbd_transfer_poll().
struct cv usb_device::ctrlreq_cv |
Definition at line 202 of file usb_device.h.
Referenced by usb_alloc_device(), usb_free_device(), usbd_do_request_callback(), and usbd_do_request_flags().
uint8_t usb_device::curr_config_index |
Definition at line 247 of file usb_device.h.
Referenced by usb_alloc_device(), usb_init_attach_arg(), usb_probe_and_attach(), usb_unconfigure(), usbd_set_config_index(), and usbd_start_set_config().
uint8_t usb_device::curr_config_no |
Definition at line 248 of file usb_device.h.
Referenced by usb_alloc_device(), usb_dump_device(), usb_handle_request(), usb_init_attach_arg(), usb_unconfigure(), and usbd_set_config_index().
struct usb_device_descriptor usb_device::ddesc |
Definition at line 270 of file usb_device.h.
Referenced by dwc_otg_xfer_setup(), find_udev_in_children(), uhub_child_pnpinfo(), uhub_query_info(), usb_alloc_device(), usb_devinfo(), usb_dump_xfer(), usb_get_langid(), usb_init_attach_arg(), usb_set_device_strings(), usbd_ctrl_transfer_setup(), usbd_get_device_descriptor(), usbd_req_clear_tt_buffer(), usbd_req_re_enumerate(), usbd_req_reset_tt(), usbd_setup_device_desc(), and xhci_configure_device().
uint8_t usb_device::depth |
Definition at line 249 of file usb_device.h.
Referenced by uhub_attach(), uhub_is_too_deep(), uhub_reattach_port(), usb_alloc_device(), usb_dump_device(), and xhci_configure_device().
uint8_t usb_device::device_index |
Definition at line 244 of file usb_device.h.
Referenced by atmegadci_ep_init(), avr32dci_ep_init(), dwc_otg_ep_init(), dwc_otg_xfer_setup(), ehci_ep_init(), musbotg_ep_init(), ohci_ep_init(), uhci_ep_init(), uhub_child_location(), usb_alloc_device(), usb_bus_port_set_device(), usbd_get_device_index(), usbpf_xfertap(), and uss820dci_ep_init().
struct mtx usb_device::device_mtx |
Definition at line 201 of file usb_device.h.
Referenced by usb_alloc_device(), usb_free_device(), usbd_clear_stall_proc(), and usbd_ctrl_transfer_setup().
uint8_t usb_device::driver_added_refcount |
Definition at line 254 of file usb_device.h.
Referenced by usb_peer_should_wakeup().
struct usb_endpoint* usb_device::endpoints |
Definition at line 211 of file usb_device.h.
Referenced by usb_config_parse(), usb_do_clear_stall_callback(), usb_endpoint_foreach(), usb_reset_iface_endpoints(), usbd_get_endpoint(), and usbd_get_ep_by_addr().
uint8_t usb_device::endpoints_max |
Definition at line 262 of file usb_device.h.
Referenced by usb_config_parse(), usb_do_clear_stall_callback(), usb_endpoint_foreach(), usb_reset_iface_endpoints(), usbd_get_endpoint(), and usbd_get_ep_by_addr().
struct sx usb_device::enum_sx |
Definition at line 198 of file usb_device.h.
Referenced by usb_alloc_device(), usb_config_parse(), usb_detach_device(), usb_free_device(), usbd_enum_is_locked(), usbd_enum_lock(), and usbd_enum_unlock().
struct usb_endpoint* usb_device::ep_curr |
Definition at line 224 of file usb_device.h.
Referenced by usb_config_parse(), and usb_do_clear_stall_callback().
struct usb_device_flags usb_device::flags |
Definition at line 266 of file usb_device.h.
Referenced by atmegadci_clear_stall(), atmegadci_ep_init(), avr32dci_clear_stall(), avr32dci_ep_init(), dwc_otg_clear_stall(), dwc_otg_device_isoc_start(), dwc_otg_device_state_change(), dwc_otg_ep_init(), dwc_otg_set_stall(), dwc_otg_setup_standard_chain(), ehci_ep_init(), ehci_setup_standard_chain(), musbotg_clear_stall(), musbotg_ep_init(), ohci_check_transfer_sub(), ohci_ep_init(), ohci_setup_standard_chain(), uhci_device_bulk_start(), uhci_device_ctrl_start(), uhci_device_intr_start(), uhci_ep_init(), uhub_attach(), uhub_child_pnpinfo(), uhub_explore(), uhub_reattach_port(), usb_alloc_device(), usb_detach_device_sub(), usb_dev_resume_peer(), usb_dev_suspend_peer(), usb_dump_device(), usb_free_device(), usb_get_langid(), usb_handle_remote_wakeup(), usb_handle_request(), usb_hs_bandwidth_alloc(), usb_hs_bandwidth_free(), usb_init_attach_arg(), usb_peer_can_wakeup(), usb_peer_should_wakeup(), usb_probe_and_attach_sub(), usb_suspend_resume(), usb_temp_setup(), usb_unconfigure(), usbd_clear_stall_locked(), usbd_ctrl_transfer_setup(), usbd_get_endpoint(), usbd_get_hr_func(), usbd_get_mode(), usbd_pipe_start(), usbd_req_get_string_any(), usbd_req_re_enumerate(), usbd_set_config_index(), usbd_transfer_setup(), usbd_transfer_setup_sub(), uss820dci_clear_stall(), uss820dci_ep_init(), xhci_endpoint_doorbell(), xhci_ep_clear_stall(), and xhci_ep_init().
uint8_t usb_device::hs_hub_addr |
Definition at line 252 of file usb_device.h.
Referenced by dwc_otg_setup_standard_chain(), ehci_device_isoc_fs_open(), ehci_ep_init(), ehci_setup_standard_chain(), musbotg_setup_standard_chain(), and usb_alloc_device().
uint8_t usb_device::hs_port_no |
Definition at line 253 of file usb_device.h.
Referenced by dwc_otg_setup_standard_chain(), ehci_device_isoc_fs_open(), ehci_ep_init(), ehci_setup_standard_chain(), musbotg_setup_standard_chain(), usb_alloc_device(), usbd_req_re_enumerate(), and xhci_configure_device().
struct usb_hub* usb_device::hub |
Definition at line 221 of file usb_device.h.
Referenced by acpi_uhub_attach_common(), acpi_uhub_read_ivar(), ehci_ep_init(), uhub_attach(), uhub_child_location(), uhub_child_pnpinfo(), uhub_count_active_host_ports(), uhub_detach(), uhub_explore(), uhub_find_iface_index(), uhub_get_device_path(), uhub_reattach_port(), uhub_suspend_resume_port(), usb_alloc_device(), usb_bus_attach(), usb_bus_explore(), usb_dev_suspend_peer(), usb_free_device(), usb_hs_bandwidth_adjust(), and usbd_set_config_index().
struct usb_interface* usb_device::ifaces |
Definition at line 205 of file usb_device.h.
Referenced by usb_config_parse(), and usbd_get_iface().
uint8_t usb_device::ifaces_max |
Definition at line 261 of file usb_device.h.
Referenced by usb_config_parse(), usbd_get_iface(), and usbd_interface_count().
uint16_t usb_device::langid |
Definition at line 240 of file usb_device.h.
Referenced by usb_dump_device(), usb_get_langid(), and usbd_req_get_string_any().
char* usb_device::manufacturer |
Definition at line 273 of file usb_device.h.
Referenced by usb_free_device(), usb_get_manufacturer(), and usb_set_device_strings().
uint8_t usb_device::next_config_index |
Definition at line 246 of file usb_device.h.
Referenced by usbd_start_set_config().
device_t usb_device::parent_dev |
Definition at line 217 of file usb_device.h.
Referenced by usb_alloc_device(), usb_detach_device_sub(), usb_probe_and_attach(), and usb_probe_and_attach_sub().
struct usb_device* usb_device::parent_hs_hub |
Definition at line 219 of file usb_device.h.
Referenced by dwc_otg_uses_split(), dwc_otg_xfer_setup(), ehci_ep_init(), ehci_non_isoc_done_sub(), ehci_setup_standard_chain(), usb_alloc_device(), usb_hs_bandwidth_adjust(), usbd_req_re_enumerate(), and xhci_configure_device().
struct usb_device* usb_device::parent_hub |
Definition at line 218 of file usb_device.h.
Referenced by dwc_otg_uses_split(), uhub_attach(), uhub_child_location(), uhub_reattach_port(), usb_alloc_device(), usb_dev_resume_peer(), usb_dev_suspend_peer(), usb_fdt_get_node(), usb_free_device(), usbd_clear_stall_locked(), usbd_ctrl_transfer_setup(), usbd_get_hr_func(), usbd_req_re_enumerate(), usbd_set_config_index(), xhci_configure_device(), xhci_device_init(), xhci_device_resume(), xhci_device_state_change(), xhci_device_suspend(), xhci_device_uninit(), xhci_ep_clear_stall(), xhci_ep_init(), and xhci_set_address().
usb_ticks_t usb_device::plugtime |
Definition at line 232 of file usb_device.h.
Referenced by usb_alloc_device().
uint8_t usb_device::port_index |
Definition at line 250 of file usb_device.h.
Referenced by find_udev_in_children(), usb_alloc_device(), and usb_free_device().
uint8_t usb_device::port_no |
Definition at line 251 of file usb_device.h.
Referenced by usb_alloc_device(), usb_detach_device_sub(), usb_dev_resume_peer(), usb_dev_suspend_peer(), usb_free_device(), usb_init_attach_arg(), usbd_req_re_enumerate(), and xhci_configure_device().
uint16_t usb_device::power |
Definition at line 239 of file usb_device.h.
Referenced by usb_alloc_device(), usb_dump_device(), and usbd_set_config_index().
uint8_t usb_device::power_mode |
Definition at line 255 of file usb_device.h.
Referenced by usb_alloc_device(), usb_peer_should_wakeup(), and usbd_set_power_mode().
char* usb_device::product |
Definition at line 274 of file usb_device.h.
Referenced by usb_free_device(), usb_get_product(), and usb_set_device_strings().
struct usb_power_save usb_device::pwr_save |
Definition at line 215 of file usb_device.h.
Referenced by usb_alloc_device(), usb_dev_resume_peer(), and usb_peer_should_wakeup().
uint8_t usb_device::re_enumerate_wait |
Definition at line 256 of file usb_device.h.
Referenced by usb_peer_should_wakeup(), usbd_start_re_enumerate(), and usbd_start_set_config().
struct cv usb_device::ref_cv |
Definition at line 203 of file usb_device.h.
Referenced by usb_alloc_device(), usb_free_device(), usb_trigger_reprobe_on_off(), and usb_wait_pending_refs().
uint16_t usb_device::refcount |
Definition at line 236 of file usb_device.h.
Referenced by uhub_explore_sub(), usb_alloc_device(), usb_trigger_reprobe_on_off(), and usb_wait_pending_refs().
union usb_device_scratch usb_device::scratch |
Definition at line 289 of file usb_device.h.
Referenced by device_set_usb_desc(), usb_get_langid(), usb_hw_ep_resolve(), usb_set_device_strings(), usb_temp_setup(), and usbd_transfer_setup().
char* usb_device::serial |
Definition at line 272 of file usb_device.h.
Referenced by usb_free_device(), usb_get_serial(), and usb_set_device_strings().
enum usb_dev_speed usb_device::speed |
Definition at line 235 of file usb_device.h.
Referenced by atmegadci_ep_init(), avr32dci_ep_init(), dwc_otg_ep_init(), dwc_otg_setup_standard_chain(), dwc_otg_uses_split(), ehci_ep_init(), ohci_device_isoc_enter(), ohci_ep_init(), ohci_setup_standard_chain(), uhci_device_ctrl_start(), uhci_device_done(), uhci_device_resume(), uhci_device_suspend(), uhci_ep_init(), uhci_setup_standard_chain(), uhub_attach(), uhub_is_too_deep(), uhub_query_info(), uhub_reattach_port(), usb_alloc_device(), usb_bus_attach(), usb_device_20_compatible(), usb_dump_device(), usb_hs_bandwidth_alloc(), usb_hw_ep_resolve(), usb_init_endpoint(), usb_temp_get_desc(), usb_temp_setup(), usbd_get_isoc_fps(), usbd_get_speed(), usbd_req_re_enumerate(), usbd_setup_device_desc(), usbpf_xfertap(), uss820dci_ep_init(), xhci_configure_device(), xhci_configure_endpoint(), xhci_set_address(), and xhci_set_endpoint_mode().
struct sx usb_device::sr_sx |
Definition at line 199 of file usb_device.h.
Referenced by usb_alloc_device(), usb_free_device(), usb_suspend_resume(), usbd_enum_lock(), usbd_enum_unlock(), usbd_sr_lock(), and usbd_sr_unlock().
enum usb_dev_state usb_device::state |
Definition at line 234 of file usb_device.h.
Referenced by dwc_otg_device_state_change(), usb_get_device_state(), usb_handle_iface_request(), usb_handle_request(), usb_set_device_state(), usb_statestr(), usbd_device_attached(), usbd_do_request_flags(), usbd_set_config_index(), and usbd_transfer_submit().
struct usb_device_statistics usb_device::stats_cancelled |
Definition at line 194 of file usb_device.h.
Referenced by usbd_transfer_done().
struct usb_device_statistics usb_device::stats_err |
Definition at line 192 of file usb_device.h.
Referenced by usbd_transfer_done().
struct usb_device_statistics usb_device::stats_ok |
Definition at line 193 of file usb_device.h.
Referenced by usbd_transfer_done().
struct usb_temp_data* usb_device::usb_template_ptr |
Definition at line 223 of file usb_device.h.
Referenced by usb_temp_get_config_desc(), usb_temp_get_device_desc(), usb_temp_get_qualifier_desc(), usb_temp_get_tdd(), usb_temp_setup(), usb_temp_unsetup(), and usb_temp_unsetup_w().