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.c183 usba_device_t *usba_device; in usba_bus_ctl() local
200 usba_device = usba_get_usba_device(rdip); in usba_bus_ctl()
211 if (usba_device) { in usba_bus_ctl()
216 usba_device->usb_dev_descr->idVendor, in usba_bus_ctl()
217 usba_device->usb_dev_descr->idProduct); in usba_bus_ctl()
222 usba_device->usb_dev_descr->idVendor, in usba_bus_ctl()
223 usba_device->usb_dev_descr->idProduct, in usba_bus_ctl()
224 usba_device->usb_cfg_value, in usba_bus_ctl()
230 usba_device->usb_dev_descr->idVendor, in usba_bus_ctl()
231 usba_device->usb_dev_descr->idProduct, in usba_bus_ctl()
[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
165 usba_device = usba_polled_get_usba_device(usb_console_input->uci_dip); in usb_console_input_enter()
170 return (usba_device->usb_hcdi_ops->usba_hcdi_console_input_enter( in usb_console_input_enter()
185 usba_device_t *usba_device; in usb_console_read() local
[all …]
H A Dusbai_pipe_mgmt.c70 usba_device_t *usba_device; in usba_get_dflt_pipe_handle() local
74 usba_device = usba_get_usba_device(dip); in usba_get_dflt_pipe_handle()
75 if (usba_device) { in usba_get_dflt_pipe_handle()
77 (usb_pipe_handle_t)&usba_device->usb_ph_list[0]; in usba_get_dflt_pipe_handle()
103 usba_usbdev_to_dflt_pipe_handle(usba_device_t *usba_device) in usba_usbdev_to_dflt_pipe_handle() argument
107 if ((usba_device) && in usba_usbdev_to_dflt_pipe_handle()
108 (usba_device->usb_ph_list[0].usba_ph_data != NULL)) { in usba_usbdev_to_dflt_pipe_handle()
109 pipe_handle = (usb_pipe_handle_t)&usba_device->usb_ph_list[0]; in usba_usbdev_to_dflt_pipe_handle()
432 usba_device_t *usba_device, in usba_init_pipe_handle() argument
446 usba_hcdi_get_hcdi(usba_device->usb_root_hub_dip)-> in usba_init_pipe_handle()
[all …]
H A Dusbai_register.c125 static int usba_set_parse_values(dev_info_t *dip, usba_device_t *usba_device,
192 usba_device_t *usba_device; in usb_client_attach() local
202 usba_device = usba_get_usba_device(dip); in usb_client_attach()
242 mutex_enter(&usba_device->usb_mutex); in usb_client_attach()
244 usba_device->usb_client_flags[usba_get_ifno(dip)] |= in usb_client_attach()
246 usba_device->usb_client_attach_list->dip = dip; in usb_client_attach()
248 mutex_exit(&usba_device->usb_mutex); in usb_client_attach()
268 usba_device_t *usba_device = usba_get_usba_device(dip); in usb_client_detach() local
280 mutex_enter(&usba_device->usb_mutex); in usb_client_detach()
282 usba_device->usb_client_flags[usba_get_ifno(dip)] &= in usb_client_detach()
[all …]
H A Dusbai_util.c397 usba_device_t *usba_device; in usb_get_dev_descr() local
404 usba_device = usba_get_usba_device(dip); in usb_get_dev_descr()
405 mutex_enter(&usba_device->usb_mutex); in usb_get_dev_descr()
406 usb_dev_descr = usba_device->usb_dev_descr; in usb_get_dev_descr()
407 mutex_exit(&usba_device->usb_mutex); in usb_get_dev_descr()
428 usba_device_t *usba_device; in usb_get_raw_cfg_data() local
439 usba_device = usba_get_usba_device(dip); in usb_get_raw_cfg_data()
441 mutex_enter(&usba_device->usb_mutex); in usb_get_raw_cfg_data()
442 usb_cfg = usba_device->usb_cfg; in usb_get_raw_cfg_data()
443 *length = usba_device->usb_cfg_length; in usb_get_raw_cfg_data()
[all …]
H A Dusbai.c1012 usba_device_t *usba_device; in usb_register_hotplug_cbs() local
1032 usba_device = usba_get_usba_device(dip); in usb_register_hotplug_cbs()
1035 if (usba_device->rm_cookie == NULL) { in usb_register_hotplug_cbs()
1037 &usba_device->rm_cookie) != DDI_SUCCESS) { in usb_register_hotplug_cbs()
1044 if (ddi_add_event_handler(dip, usba_device->rm_cookie, in usb_register_hotplug_cbs()
1053 if (usba_device->ins_cookie == NULL) { in usb_register_hotplug_cbs()
1055 &usba_device->ins_cookie) != DDI_SUCCESS) { in usb_register_hotplug_cbs()
1062 if (ddi_add_event_handler(dip, usba_device->ins_cookie, in usb_register_hotplug_cbs()
1071 mutex_enter(&usba_device->usb_mutex); in usb_register_hotplug_cbs()
1072 usba_device->usb_client_flags[usba_get_ifno(dip)] |= in usb_register_hotplug_cbs()
[all …]
H A Dusbai_req.c639 usba_device_t *usba_device = usba_get_usba_device(dip); in usba_req_wrapper_alloc() local
643 usba_hcdi_get_hcdi(usba_device->usb_root_hub_dip)-> in usba_req_wrapper_alloc()
666 usba_add_to_list(&usba_device->usb_allocated, in usba_req_wrapper_alloc()
687 usba_device_t *usba_device; in usba_req_wrapper_free() local
700 usba_device = usba_get_usba_device(wrp->wr_dip); in usba_req_wrapper_free()
701 if (usba_rm_from_list(&usba_device->usb_allocated, in usba_req_wrapper_free()
1126 usba_device_t *usba_device; in usb_pipe_ctrl_xfer() local
1143 usba_device = ph_data->p_usba_device; in usb_pipe_ctrl_xfer()
1190 rval = usba_device->usb_hcdi_ops-> in usb_pipe_ctrl_xfer()
1526 usba_device_t *usba_device; in usb_pipe_bulk_xfer() local
[all …]
H A Dhubdi.c198 usba_device_t *usba_device = usba_get_usba_device(dip); in usba_hubdi_register() local
206 usba_device->usb_hubdi = hubdi; in usba_hubdi_register()
212 usba_hcdi_get_hcdi(usba_device->usb_root_hub_dip)-> in usba_hubdi_register()
228 usba_device_t *usba_device = usba_get_usba_device(dip); in usba_hubdi_unregister() local
229 usba_hubdi_t *hubdi = usba_device->usb_hubdi; in usba_hubdi_unregister()
274 usba_device_t *usba_device; in usba_hubdi_bind_root_hub() local
293 usba_device = usba_alloc_usba_device(dip); in usba_hubdi_bind_root_hub()
295 mutex_enter(&usba_device->usb_mutex); in usba_hubdi_bind_root_hub()
296 usba_device->usb_hcdi_ops = hcdi->hcdi_ops; in usba_hubdi_bind_root_hub()
297 usba_device->usb_cfg = root_hub_config_descriptor; in usba_hubdi_bind_root_hub()
[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()
565 if (taskq_dispatch(usba_device->usb_shared_taskq[iface], in usba_hcdi_cb()
855 usba_device_t *usba_device = in hcdi_autoclearing() local
858 usba_device->usb_root_hub_dip); in hcdi_autoclearing()
980 usba_hcdi_get_data_toggle(usba_device_t *usba_device, uint8_t ep_addr) in usba_hcdi_get_data_toggle() argument
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()
1000 usba_hcdi_set_data_toggle(usba_device_t *usba_device, uint8_t ep_addr, in usba_hcdi_set_data_toggle() argument
[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
292 struct usba_device *usb_hs_hub_usba_dev; /* HS hub usba device */ argument
362 struct usba_device *usb_parent_hub; argument
383 _NOTE(MUTEX_PROTECTS_DATA(usba_device::usb_mutex, usba_device)) argument
384 _NOTE(MUTEX_PROTECTS_DATA(usba_device::usb_mutex, usba_evdata))
396 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_serialno_str))
397 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_root_hub_dip))
398 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_root_hubd))
399 _NOTE(DATA_READABLE_WITHOUT_LOCK(usba_device::usb_product_str))
[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.c410 usba_device_t *usba_device = ph->p_usba_device; in ehci_unpack_endpoint() local
416 mutex_enter(&usba_device->usb_mutex); in ehci_unpack_endpoint()
417 ctrl = usba_device->usb_addr; in ehci_unpack_endpoint()
418 usb_port_status = usba_device->usb_port_status; 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
[all …]
/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/man/man9s/
H A DMakefile99 usba_device.9s \
159 usba_device_t.9s := LINKSRC = usba_device.9s
/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.c804 usba_device_t *usba_device; in usb_ia_create_children() local
809 usba_device = usba_get_usba_device(usb_ia->ia_dip); in usb_ia_create_children()
813 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