Home
last modified time | relevance | path

Searched refs:usb_mode (Results 1 – 22 of 22) sorted by relevance

/third_party/FreeBSD/sys/dev/usb/controller/
Dehci_pci.c62 uint32_t usb_mode; in hiehci_post_reset() local
65 usb_mode = EOREAD4(sc, EHCI_USBMODE_NOLPM); in hiehci_post_reset()
66 usb_mode &= ~EHCI_UM_CM; in hiehci_post_reset()
67 usb_mode |= EHCI_UM_CM_HOST; in hiehci_post_reset()
68 EOWRITE4(sc, EHCI_USBMODE_NOLPM, usb_mode); in hiehci_post_reset()
Dxhci.c3954 ep, udev->address, edesc->bEndpointAddress, udev->flags.usb_mode); in xhci_ep_init()
3984 if (udev->flags.usb_mode != USB_MODE_HOST) { in xhci_ep_clear_stall()
Dehci.c3702 edesc->bEndpointAddress, udev->flags.usb_mode,
/third_party/FreeBSD/sys/dev/usb/
Dusb_device.c188 if ((setup->usb_mode != USB_MODE_DUAL) && in usbd_get_endpoint()
189 (udev->flags.usb_mode != setup->usb_mode)) { in usbd_get_endpoint()
198 ea_val = (udev->flags.usb_mode == USB_MODE_DEVICE) ? in usbd_get_endpoint()
202 ea_val = (udev->flags.usb_mode == USB_MODE_DEVICE) ? in usbd_get_endpoint()
459 if (udev->flags.usb_mode != USB_MODE_DEVICE) in usb_unconfigure()
512 if (udev->flags.usb_mode == USB_MODE_DEVICE) { in usbd_set_config_index()
532 (udev->flags.usb_mode == USB_MODE_HOST)) { in usbd_set_config_index()
570 if (udev->flags.usb_mode == USB_MODE_HOST) { in usbd_set_config_index()
1225 uaa->usb_mode = udev->flags.usb_mode; in usb_init_attach_arg()
1565 udev->flags.usb_mode = mode; in usb_alloc_device()
[all …]
Dusb_hub.c136 .usb_mode = USB_MODE_HOST,
276 (child->flags.usb_mode != USB_MODE_HOST) || in uhub_tt_buffer_reset_async_locked()
399 (child->flags.usb_mode == USB_MODE_HOST) && in uhub_count_active_host_ports()
414 if (child->flags.usb_mode != USB_MODE_HOST) in uhub_explore_handle_re_enumerate()
539 if (child->flags.usb_mode == USB_MODE_DEVICE) in uhub_explore_sub()
869 mode = udev->parent_hub->flags.usb_mode; in uhub_reattach_port()
1005 else if (child->flags.usb_mode == USB_MODE_DEVICE) in uhub_suspend_resume_port()
1176 if (uaa->usb_mode != USB_MODE_HOST) in uhub_probe()
1822 (res.udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", in uhub_child_pnpinfo_string()
1992 if (udev->flags.usb_mode != USB_MODE_HOST) in usb_hs_bandwidth_alloc()
[all …]
Dusb_core.h40 #define USB_GET_DATA_ISREAD(xfer) ((xfer)->flags_int.usb_mode == \
89 enum usb_hc_mode usb_mode; /* shadow copy of "udev->usb_mode" */ member
Dusb_transfer.c57 .usb_mode = USB_MODE_DUAL, /* both modes */
70 .usb_mode = USB_MODE_HOST,
83 .usb_mode = USB_MODE_DUAL, /* both modes */
96 .usb_mode = USB_MODE_HOST,
120 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) in usb_request_callback()
364 xfer->flags_int.usb_mode = parm->udev->flags.usb_mode; in usbd_transfer_setup_sub()
1019 if ((setup->usb_mode != USB_MODE_DUAL) && in usbd_transfer_setup()
1020 (setup->usb_mode != udev->flags.usb_mode)) in usbd_transfer_setup()
1474 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbd_setup_ctrl_transfer()
1492 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbd_setup_ctrl_transfer()
[all …]
Dusb_generic.c199 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_write()
207 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_write()
268 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_read()
276 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_read()
559 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_config()
583 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_interface()
798 di->udi_mode = udev->flags.usb_mode; in ugen_fill_deviceinfo()
860 if (udev->flags.usb_mode != USB_MODE_HOST) { in ugen_re_enumerate()
1473 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_ioctl()
1484 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_ioctl()
[all …]
Dusb_hub.h39 enum usb_hc_mode usb_mode; /* host or device mode */ member
Dusbdi.h229 enum usb_hc_mode usb_mode; /* host or device mode */ member
391 enum usb_hc_mode usb_mode; /* host or device mode */ member
Dusb_device.h88 enum usb_hc_mode usb_mode; /* host or device mode */ member
Dusb_dev.c574 if (udev->flags.usb_mode == USB_MODE_HOST) { in usb_dev_get_ep()
580 if (udev->flags.usb_mode == USB_MODE_HOST) { in usb_dev_get_ep()
Dusb_request.c310 if (udev->flags.usb_mode == USB_MODE_DEVICE) in usbd_get_hr_func()
2011 if (udev->flags.usb_mode != USB_MODE_HOST) { in usbd_req_re_enumerate()
/third_party/FreeBSD/sys/dev/usb/net/
Dif_cdce.c109 .usb_mode = USB_MODE_DUAL, /* both modes */
122 .usb_mode = USB_MODE_DUAL, /* both modes */
134 .usb_mode = USB_MODE_HOST,
146 .usb_mode = USB_MODE_DEVICE,
162 .usb_mode = USB_MODE_DUAL, /* both modes */
175 .usb_mode = USB_MODE_DUAL, /* both modes */
187 .usb_mode = USB_MODE_HOST,
199 .usb_mode = USB_MODE_DEVICE,
610 if (uaa->usb_mode == USB_MODE_DEVICE) { in cdce_attach()
Dif_urndis.c89 .usb_mode = USB_MODE_HOST,
104 .usb_mode = USB_MODE_HOST,
116 .usb_mode = USB_MODE_HOST,
Dif_axge.c333 if (uaa->usb_mode != USB_MODE_HOST) in axge_probe()
Dif_axe.c647 if (uaa->usb_mode != USB_MODE_HOST) in axe_probe()
/third_party/FreeBSD/stand/usb/
Dusb_busdma_loader.c526 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usb_bdma_work_loop()
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c205 if (uaa->usb_mode != USB_MODE_HOST) { in usb_linux_probe()
690 if (dev->flags.usb_mode != USB_MODE_HOST) { in usb_control_msg()
/third_party/FreeBSD/sys/dev/usb/input/
Duhid.c721 if (uaa->usb_mode != USB_MODE_HOST) in uhid_probe()
/third_party/FreeBSD/sys/dev/usb/serial/
Du3g.c658 if (uaa->usb_mode != USB_MODE_HOST) { in u3g_probe()
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c906 if (uaa->usb_mode != USB_MODE_HOST) { in umass_probe()