Home
last modified time | relevance | path

Searched refs:usba_device (Results 1 – 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusba.c209 if (usba_device) { in usba_bus_ctl()
367 (void *)usba_device, usba_device->usb_ref_count); in usba_bus_ctl()
389 (void *)usba_device, usba_device->usb_ref_count); in usba_bus_ctl()
601 usba_init_list(&usba_device->usb_device_list, (usb_opaque_t)usba_device, in usba_alloc_usba_device()
603 usba_init_list(&usba_device->usb_allocated, (usb_opaque_t)usba_device, in usba_alloc_usba_device()
624 return (usba_device); in usba_alloc_usba_device()
665 (void *)usba_device, usba_device->usb_addr, in usba_free_usba_device()
688 usba_device, usba_device->usb_hcd_private); in usba_free_usba_device()
709 (void *)usba_device, usba_device->usb_addr); in usba_free_usba_device()
3101 ddi_get_instance(usba_device->usb_dip), (void *)usba_device); in usba_check_for_leaks()
[all …]
H A Dgenconsole.c48 usba_device_t *usba_device; in usb_console_input_init() local
73 usba_device = usba_get_usba_device(dip); in usb_console_input_init()
88 ret = usba_device->usb_hcdi_ops->usba_hcdi_console_input_init( in usb_console_input_init()
112 usba_device_t *usba_device; in usb_console_input_fini() local
120 usba_device = usba_get_usba_device(usb_console_input->uci_dip); in usb_console_input_fini()
125 ret = usba_device->usb_hcdi_ops->usba_hcdi_console_input_fini( in usb_console_input_fini()
154 usba_device_t *usba_device; in usb_console_input_enter() local
185 usba_device_t *usba_device; in usb_console_read() local
202 return (usba_device->usb_hcdi_ops->usba_hcdi_console_read( in usb_console_read()
219 usba_device_t *usba_device; in usb_console_input_exit() local
[all …]
H A Dusbai_pipe_mgmt.c70 usba_device_t *usba_device; in usba_get_dflt_pipe_handle() local
75 if (usba_device) { in usba_get_dflt_pipe_handle()
107 if ((usba_device) && in usba_usbdev_to_dflt_pipe_handle()
432 usba_device_t *usba_device, in usba_init_pipe_handle() argument
583 usba_device_t *usba_device; in usba_destroy_pipe_handle() local
791 usba_device_t *usba_device; in usb_pipe_xopen() local
1135 usba_device_t *usba_device; in usba_pipe_sync_close() local
1412 usba_device_t *usba_device; in usba_pipe_sync_reset() local
1712 if (usba_device != NULL) { in usba_persistent_pipe_open()
1761 (void *)usba_device); in usba_persistent_pipe_close()
[all …]
H A Dusbai_register.c192 usba_device_t *usba_device; in usb_client_attach() local
242 mutex_enter(&usba_device->usb_mutex); in usb_client_attach()
248 mutex_exit(&usba_device->usb_mutex); in usb_client_attach()
280 mutex_enter(&usba_device->usb_mutex); in usb_client_detach()
285 mutex_exit(&usba_device->usb_mutex); in usb_client_detach()
396 usba_device_t *usba_device; in usb_get_dev_data() local
451 usba_device->usb_product_str); in usb_get_dev_data()
459 usba_device->usb_serialno_str); in usb_get_dev_data()
535 mutex_exit(&usba_device->usb_mutex); in usb_get_dev_data()
624 usba_device-> in usb_free_dev_data()
[all …]
H A Dusbai_util.c397 usba_device_t *usba_device; in usb_get_dev_descr() local
428 usba_device_t *usba_device; in usb_get_raw_cfg_data() local
442 usb_cfg = usba_device->usb_cfg; in usb_get_raw_cfg_data()
562 usba_device_t *usba_device; in usba_sync_set_cfg() local
643 usba_device->usb_cfg = usba_device->usb_cfg_array[cfg_index]; in usba_sync_set_cfg()
788 if (usba_device) { in usb_get_if_number()
1136 usba_device_t *usba_device; in usb_check_same_device() local
1601 usba_device_t *usba_device; in usba_sync_clear_feature() local
1650 usba_device->usb_hcdi_ops-> in usba_sync_clear_feature()
1964 usba_device_t *usba_device; in usb_init_serialization() local
[all …]
H A Dusbai.c1012 usba_device_t *usba_device; in usb_register_hotplug_cbs() local
1035 if (usba_device->rm_cookie == NULL) { in usb_register_hotplug_cbs()
1053 if (usba_device->ins_cookie == NULL) { in usb_register_hotplug_cbs()
1071 mutex_enter(&usba_device->usb_mutex); in usb_register_hotplug_cbs()
1075 mutex_exit(&usba_device->usb_mutex); in usb_register_hotplug_cbs()
1108 usba_device_t *usba_device; in usb_register_event_cbs() local
1126 if (usba_device->rm_cookie == NULL) { in usb_register_event_cbs()
1186 mutex_enter(&usba_device->usb_mutex); in usb_register_event_cbs()
1191 mutex_exit(&usba_device->usb_mutex); in usb_register_event_cbs()
1236 mutex_enter(&usba_device->usb_mutex); in usb_unregister_event_cbs()
[all …]
H A Dusbai_req.c687 usba_device_t *usba_device; in usba_req_wrapper_free() local
1126 usba_device_t *usba_device; in usb_pipe_ctrl_xfer() local
1526 usba_device_t *usba_device; in usb_pipe_bulk_xfer() local
1647 usba_device_t *usba_device; in usb_pipe_get_max_bulk_transfer_size() local
1657 (void *)usba_device); in usb_pipe_get_max_bulk_transfer_size()
1659 if ((usba_device) && in usb_pipe_get_max_bulk_transfer_size()
1817 usba_device_t *usba_device; in usb_pipe_intr_xfer() local
1951 usba_device_t *usba_device; in usba_pipe_sync_stop_intr_polling() local
2335 (void *)usba_device); in usb_get_max_pkts_per_isoc_request()
2373 usba_device_t *usba_device; in usb_pipe_isoc_xfer() local
[all …]
H A Dhcdi.c489 usba_device_t *usba_device = ph_data->p_usba_device; in usba_hcdi_cb() local
491 usba_device->usb_root_hub_dip); in usba_hcdi_cb()
855 usba_device_t *usba_device = in hcdi_autoclearing() local
858 usba_device->usb_root_hub_dip); in hcdi_autoclearing()
987 mutex_enter(&usba_device->usb_mutex); in usba_hcdi_get_data_toggle()
988 ph_impl = &usba_device->usb_ph_list[ep_index]; in usba_hcdi_get_data_toggle()
992 mutex_exit(&usba_device->usb_mutex); in usba_hcdi_get_data_toggle()
1007 mutex_enter(&usba_device->usb_mutex); in usba_hcdi_set_data_toggle()
1008 ph_impl = &usba_device->usb_ph_list[ep_index]; in usba_hcdi_set_data_toggle()
1013 mutex_exit(&usba_device->usb_mutex); in usba_hcdi_set_data_toggle()
[all …]
H A Dhubdi.c273 usba_device_t *usba_device; in usba_hubdi_bind_root_hub() local
299 usba_device->usb_port = 1; in usba_hubdi_bind_root_hub()
316 usba_device->usb_n_cfgs = 1; in usba_hubdi_bind_root_hub()
317 usba_device->usb_n_ifs = 1; in usba_hubdi_bind_root_hub()
318 usba_device->usb_dip = dip; in usba_hubdi_bind_root_hub()
324 usba_device->usb_n_ifs * in usba_hubdi_bind_root_hub()
328 usba_device->usb_n_ifs * in usba_hubdi_bind_root_hub()
406 usba_device_t *usba_device; in usba_hubdi_unbind_root_hub() local
2217 usba_device); in hubd_setdevaddr()
6786 if (usba_device) { in hubd_delete_child()
[all …]
/illumos-gate/usr/src/uts/common/sys/usb/usba/
H A Dusba_types.h89 struct usba_device *p_usba_device; /* set on pipe open */
256 typedef struct usba_device { struct
362 struct usba_device *usb_parent_hub; argument
383 _NOTE(MUTEX_PROTECTS_DATA(usba_device::usb_mutex, usba_device)) argument
401 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_port))
402 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_n_ifs))
414 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_cfg))
416 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_addr))
418 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::rm_cookie))
425 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_dip))
[all …]
H A Dhcdi.h108 usba_device_t *usba_device,
151 usba_device_t *usba_device,
155 usba_device_t *usba_device,
218 usba_device_t *usba_device,
223 usba_device_t *usba_device,
227 usba_device_t *usba_device);
230 usba_device_t *usba_device,
H A Dusba_private.h317 struct usba_device *usba_get_usba_device(dev_info_t *);
318 struct usba_device *usba_polled_get_usba_device(dev_info_t *);
319 void usba_set_usba_device(dev_info_t *, struct usba_device *);
H A Dusba_impl.h275 void usba_clear_data_toggle(usba_device_t *usba_device);
H A Dwhcdi.h233 usb_port_status_t port_status, usba_device_t *usba_device,
/illumos-gate/usr/src/uts/common/sys/usb/hcd/uhci/
H A Duhciutil.h57 int uhci_hcdi_bulk_transfer_size(usba_device_t *usba_device,
63 int uhci_hcdi_get_current_frame_number(usba_device_t *usba_device,
65 int uhci_hcdi_get_max_isoc_pkts(usba_device_t *usba_device,
H A Duhcid.h313 usba_device::usb_mutex \
/illumos-gate/usr/src/uts/common/io/usb/hcd/ehci/
H A Dehci.c1240 usba_device_t *usba_device, in ehci_hcdi_bulk_transfer_size() argument
1244 usba_device->usb_root_hub_dip); in ehci_hcdi_bulk_transfer_size()
1414 usba_device_t *usba_device, in ehci_hcdi_get_current_frame_number() argument
1418 usba_device->usb_root_hub_dip); in ehci_hcdi_get_current_frame_number()
1421 ehcip = ehci_obtain_state(usba_device->usb_root_hub_dip); in ehci_hcdi_get_current_frame_number()
1452 usba_device_t *usba_device, in ehci_hcdi_get_max_isoc_pkts() argument
1456 usba_device->usb_root_hub_dip); in ehci_hcdi_get_max_isoc_pkts()
H A Dehci_isoch_util.c356 usba_device_t *usba_device = ph->p_usba_device; in ehci_allocate_itw() local
474 itw->itw_port_status = usba_device->usb_port_status; in ehci_allocate_itw()
481 mutex_enter(&usba_device->usb_mutex); in ehci_allocate_itw()
482 itw->itw_hub_addr = usba_device->usb_hs_hub_addr; in ehci_allocate_itw()
483 itw->itw_hub_port = usba_device->usb_hs_hub_port; in ehci_allocate_itw()
485 itw->itw_device_addr = usba_device->usb_addr; in ehci_allocate_itw()
486 mutex_exit(&usba_device->usb_mutex); in ehci_allocate_itw()
H A Dehci_xfer.c416 mutex_enter(&usba_device->usb_mutex); in ehci_unpack_endpoint()
417 ctrl = usba_device->usb_addr; in ehci_unpack_endpoint()
419 mutex_exit(&usba_device->usb_mutex); in ehci_unpack_endpoint()
500 mutex_enter(&usba_device->usb_mutex); in ehci_unpack_endpoint()
501 split_ctrl |= ((usba_device->usb_hs_hub_addr in ehci_unpack_endpoint()
505 split_ctrl |= ((usba_device->usb_hs_hub_port in ehci_unpack_endpoint()
509 mutex_exit(&usba_device->usb_mutex); in ehci_unpack_endpoint()
943 usba_device_t *usba_device; in ehci_clear_tt_buffer() local
958 usba_device = ph->p_usba_device; in ehci_clear_tt_buffer()
990 mutex_enter(&usba_device->usb_mutex); in ehci_clear_tt_buffer()
[all …]
/illumos-gate/usr/src/man/man9s/
H A DMakefile96 usba_device.9s \
150 usba_device_t.9s := LINKSRC = usba_device.9s
/illumos-gate/usr/src/uts/common/io/usb/usb_mid/
H A Dusb_mid.c346 usba_device_t *usba_device = in usb_mid_post_detach() local
353 (--usb_mid->mi_attach_count == 0) && usba_device && in usb_mid_post_detach()
355 usba_check_for_leaks(usba_device); in usb_mid_post_detach()
919 usba_device_t *usba_device; in usb_mid_create_children() local
926 usba_device = usba_get_usba_device(usb_mid->mi_dip); in usb_mid_create_children()
930 usba_device->usb_port, usba_device->usb_addr); in usb_mid_create_children()
1030 (usba_device->usb_n_cfgs > 1)) { in usb_mid_create_children()
/illumos-gate/usr/src/uts/common/io/usb/hcd/uhci/
H A Duhcitgt.c709 usba_device_t *usba_device, in uhci_hcdi_bulk_transfer_size() argument
713 usba_device->usb_root_hub_dip); in uhci_hcdi_bulk_transfer_size()
831 usba_device_t *usba_device, in uhci_hcdi_get_current_frame_number() argument
834 uhci_state_t *uhcip = uhci_obtain_state(usba_device->usb_root_hub_dip); in uhci_hcdi_get_current_frame_number()
864 usba_device_t *usba_device, in uhci_hcdi_get_max_isoc_pkts() argument
867 uhci_state_t *uhcip = uhci_obtain_state(usba_device->usb_root_hub_dip); in uhci_hcdi_get_max_isoc_pkts()
/illumos-gate/usr/src/uts/common/sys/usb/hcd/ehci/
H A Dehcid.h301 usba_device::usb_mutex \
1115 usba_device_t *usba_device,
1129 usba_device_t *usba_device,
1132 usba_device_t *usba_device,
/illumos-gate/usr/src/uts/common/io/usb/usb_ia/
H A Dusb_ia.c803 usba_device_t *usba_device; in usb_ia_create_children() local
808 usba_device = usba_get_usba_device(usb_ia->ia_dip); in usb_ia_create_children()
812 usba_device->usb_port, usba_device->usb_addr); in usb_ia_create_children()
/illumos-gate/usr/src/cmd/mdb/common/modules/usba/
H A Dusb.c502 usba_device(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in usba_device() function
842 "print summary info for a usba_device_t struct", usba_device, NULL},

12