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.c60 uint32_t usb_mode; in hiehci_post_reset() local
63 usb_mode = EOREAD4(sc, EHCI_USBMODE_NOLPM); in hiehci_post_reset()
64 usb_mode &= ~EHCI_UM_CM; in hiehci_post_reset()
65 usb_mode |= EHCI_UM_CM_HOST; in hiehci_post_reset()
66 EOWRITE4(sc, EHCI_USBMODE_NOLPM, usb_mode); in hiehci_post_reset()
Dxhci.c3953 ep, udev->address, edesc->bEndpointAddress, udev->flags.usb_mode); in xhci_ep_init()
3983 if (udev->flags.usb_mode != USB_MODE_HOST) { in xhci_ep_clear_stall()
Dehci.c3701 edesc->bEndpointAddress, udev->flags.usb_mode,
/third_party/FreeBSD/sys/dev/usb/
Dusb_device.c187 if ((setup->usb_mode != USB_MODE_DUAL) && in usbd_get_endpoint()
188 (udev->flags.usb_mode != setup->usb_mode)) { in usbd_get_endpoint()
197 ea_val = (udev->flags.usb_mode == USB_MODE_DEVICE) ? in usbd_get_endpoint()
201 ea_val = (udev->flags.usb_mode == USB_MODE_DEVICE) ? in usbd_get_endpoint()
458 if (udev->flags.usb_mode != USB_MODE_DEVICE) in usb_unconfigure()
511 if (udev->flags.usb_mode == USB_MODE_DEVICE) { in usbd_set_config_index()
531 (udev->flags.usb_mode == USB_MODE_HOST)) { in usbd_set_config_index()
569 if (udev->flags.usb_mode == USB_MODE_HOST) { in usbd_set_config_index()
1224 uaa->usb_mode = udev->flags.usb_mode; in usb_init_attach_arg()
1564 udev->flags.usb_mode = mode; in usb_alloc_device()
[all …]
Dusb_hub.c135 .usb_mode = USB_MODE_HOST,
275 (child->flags.usb_mode != USB_MODE_HOST) || in uhub_tt_buffer_reset_async_locked()
398 (child->flags.usb_mode == USB_MODE_HOST) && in uhub_count_active_host_ports()
413 if (child->flags.usb_mode != USB_MODE_HOST) in uhub_explore_handle_re_enumerate()
538 if (child->flags.usb_mode == USB_MODE_DEVICE) in uhub_explore_sub()
868 mode = udev->parent_hub->flags.usb_mode; in uhub_reattach_port()
1004 else if (child->flags.usb_mode == USB_MODE_DEVICE) in uhub_suspend_resume_port()
1175 if (uaa->usb_mode != USB_MODE_HOST) in uhub_probe()
1821 (res.udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", in uhub_child_pnpinfo_string()
1991 if (udev->flags.usb_mode != USB_MODE_HOST) in usb_hs_bandwidth_alloc()
[all …]
Dusb_transfer.c56 .usb_mode = USB_MODE_DUAL, /* both modes */
69 .usb_mode = USB_MODE_HOST,
82 .usb_mode = USB_MODE_DUAL, /* both modes */
95 .usb_mode = USB_MODE_HOST,
119 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) in usb_request_callback()
366 xfer->flags_int.usb_mode = parm->udev->flags.usb_mode; in usbd_transfer_setup_sub()
1021 if ((setup->usb_mode != USB_MODE_DUAL) && in usbd_transfer_setup()
1022 (setup->usb_mode != udev->flags.usb_mode)) in usbd_transfer_setup()
1476 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbd_setup_ctrl_transfer()
1494 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbd_setup_ctrl_transfer()
[all …]
Dusb_core.h39 #define USB_GET_DATA_ISREAD(xfer) ((xfer)->flags_int.usb_mode == \
90 enum usb_hc_mode usb_mode; /* shadow copy of "udev->usb_mode" */ member
Dusb_generic.c198 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_write()
206 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_write()
267 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_read()
275 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_read()
558 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_config()
582 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_interface()
797 di->udi_mode = udev->flags.usb_mode; in ugen_fill_deviceinfo()
859 if (udev->flags.usb_mode != USB_MODE_HOST) { in ugen_re_enumerate()
1472 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_ioctl()
1483 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_ioctl()
[all …]
Dusb_hub.h38 enum usb_hc_mode usb_mode; /* host or device mode */ member
Dusbdi.h227 enum usb_hc_mode usb_mode; /* host or device mode */ member
389 enum usb_hc_mode usb_mode; /* host or device mode */ member
Dusb_device.h87 enum usb_hc_mode usb_mode; /* host or device mode */ member
Dusb_request.c319 if (udev->flags.usb_mode == USB_MODE_DEVICE) in usbd_get_hr_func()
2020 if (udev->flags.usb_mode != USB_MODE_HOST) { in usbd_req_re_enumerate()
Dusb_dev.c573 if (udev->flags.usb_mode == USB_MODE_HOST) { in usb_dev_get_ep()
579 if (udev->flags.usb_mode == USB_MODE_HOST) { in usb_dev_get_ep()
/third_party/FreeBSD/sys/dev/usb/net/
Dif_cdce.c108 .usb_mode = USB_MODE_DUAL, /* both modes */
121 .usb_mode = USB_MODE_DUAL, /* both modes */
133 .usb_mode = USB_MODE_HOST,
145 .usb_mode = USB_MODE_DEVICE,
161 .usb_mode = USB_MODE_DUAL, /* both modes */
174 .usb_mode = USB_MODE_DUAL, /* both modes */
186 .usb_mode = USB_MODE_HOST,
198 .usb_mode = USB_MODE_DEVICE,
609 if (uaa->usb_mode == USB_MODE_DEVICE) { in cdce_attach()
Dif_urndis.c88 .usb_mode = USB_MODE_HOST,
103 .usb_mode = USB_MODE_HOST,
115 .usb_mode = USB_MODE_HOST,
Dif_axge.c332 if (uaa->usb_mode != USB_MODE_HOST) in axge_probe()
Dif_axe.c645 if (uaa->usb_mode != USB_MODE_HOST) in axe_probe()
/third_party/FreeBSD/stand/usb/
Dusb_busdma_loader.c525 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usb_bdma_work_loop()
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c204 if (uaa->usb_mode != USB_MODE_HOST) { in usb_linux_probe()
689 if (dev->flags.usb_mode != USB_MODE_HOST) { in usb_control_msg()
/third_party/FreeBSD/sys/dev/usb/input/
Duhid.c719 if (uaa->usb_mode != USB_MODE_HOST) in uhid_probe()
/third_party/FreeBSD/sys/dev/usb/serial/
Du3g.c656 if (uaa->usb_mode != USB_MODE_HOST) { in u3g_probe()
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c902 if (uaa->usb_mode != USB_MODE_HOST) { in umass_probe()