Home
last modified time | relevance | path

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

12345

/freebsd/sys/dev/phy/
H A Dphy_usb.c84 phynode_usb_set_mode(struct phynode *phynode, int usb_mode) in phynode_usb_set_mode() argument
91 rv = PHYNODE_USB_SET_MODE(phynode, usb_mode); in phynode_usb_set_mode()
100 phynode_usb_get_mode(struct phynode *phynode, int *usb_mode) in phynode_usb_get_mode() argument
107 rv = PHYNODE_USB_GET_MODE(phynode, usb_mode); in phynode_usb_get_mode()
117 int phy_usb_set_mode(phy_t phy, int usb_mode) in phy_usb_set_mode() argument
127 rv = phynode_usb_set_mode(phynode, usb_mode); in phy_usb_set_mode()
132 int phy_usb_get_mode(phy_t phy, int *usb_mode) in phy_usb_get_mode() argument
142 rv = phynode_usb_get_mode(phynode, usb_mode); in phy_usb_get_mode()
H A Dphy_usb.h40 int usb_mode; member
76 int phynode_usb_set_mode(struct phynode *phynode, int usb_mode);
77 int phynode_usb_get_mode(struct phynode *phynode, int *usb_mode);
80 int phy_usb_set_mode(phy_t phy, int usb_mode);
81 int phy_usb_get_mode(phy_t phy, int *usb_mode);
H A Dphynode_usb_if.m40 int usb_mode; /* PHY_USB_MODE_* */
49 int *usb_mode; /* PHY_USB_MODE_* */
/freebsd/sys/dev/usb/controller/
H A Ddwc_otg_fdt.c98 char usb_mode[24]; in dwc_otg_attach() local
106 &usb_mode, sizeof(usb_mode)) > 0) { in dwc_otg_attach()
108 usb_mode[sizeof(usb_mode) - 1] = 0; in dwc_otg_attach()
110 if (strcasecmp(usb_mode, "host") == 0) in dwc_otg_attach()
112 else if (strcasecmp(usb_mode, "peripheral") == 0) in dwc_otg_attach()
114 else if (strcasecmp(usb_mode, "otg") != 0) { in dwc_otg_attach()
116 usb_mode); in dwc_otg_attach()
H A Dmusb_otg_allwinner.c384 char usb_mode[24]; in awusbdrd_attach() local
400 &usb_mode, sizeof(usb_mode)) > 0) { in awusbdrd_attach()
401 usb_mode[sizeof(usb_mode) - 1] = 0; in awusbdrd_attach()
402 if (strcasecmp(usb_mode, "host") == 0) { in awusbdrd_attach()
405 } else if (strcasecmp(usb_mode, "peripheral") == 0) { in awusbdrd_attach()
408 } else if (strcasecmp(usb_mode, "otg") == 0) { in awusbdrd_attach()
418 usb_mode); in awusbdrd_attach()
/freebsd/sys/dev/usb/
H A Dusb_device.c379 if (setup->usb_mode != USB_MODE_DUAL && in usbd_get_endpoint()
380 udev->flags.usb_mode != setup->usb_mode) { in usbd_get_endpoint()
389 ea_val = (udev->flags.usb_mode == USB_MODE_DEVICE) ? in usbd_get_endpoint()
393 ea_val = (udev->flags.usb_mode == USB_MODE_DEVICE) ? in usbd_get_endpoint()
647 if (udev->flags.usb_mode != USB_MODE_DEVICE) in usb_unconfigure()
700 if (udev->flags.usb_mode == USB_MODE_DEVICE) { in usbd_set_config_index()
720 (udev->flags.usb_mode == USB_MODE_HOST)) { in usbd_set_config_index()
758 if (udev->flags.usb_mode == USB_MODE_HOST) { in usbd_set_config_index()
1431 uaa->usb_mode = udev->flags.usb_mode; in usb_init_attach_arg()
1852 udev->flags.usb_mode = mode; in usb_alloc_device()
[all …]
H A Dusb_hub.c150 .usb_mode = USB_MODE_HOST,
282 (child->flags.usb_mode != USB_MODE_HOST) || in uhub_tt_buffer_reset_async_locked()
405 child->flags.usb_mode == USB_MODE_HOST && in uhub_count_active_host_ports()
420 if (child->flags.usb_mode != USB_MODE_HOST) in uhub_explore_handle_re_enumerate()
541 if (child->flags.usb_mode == USB_MODE_DEVICE) in uhub_explore_sub()
806 mode = udev->parent_hub->flags.usb_mode; in uhub_reattach_port()
942 else if (child->flags.usb_mode == USB_MODE_DEVICE) in uhub_suspend_resume_port()
1126 if (uaa->usb_mode != USB_MODE_HOST) in uhub_probe()
1761 (res.udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", in uhub_child_pnpinfo()
1929 if (udev->flags.usb_mode != USB_MODE_HOST) in usb_hs_bandwidth_alloc()
[all …]
H A 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
H A Dusb_transfer.c90 .usb_mode = USB_MODE_DUAL, /* both modes */
103 .usb_mode = USB_MODE_HOST,
116 .usb_mode = USB_MODE_DUAL, /* both modes */
129 .usb_mode = USB_MODE_HOST,
153 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) in usb_request_callback()
498 xfer->flags_int.usb_mode = parm->udev->flags.usb_mode; in usbd_transfer_setup_sub()
1152 if ((setup->usb_mode != USB_MODE_DUAL) && in usbd_transfer_setup()
1153 (setup->usb_mode != udev->flags.usb_mode)) in usbd_transfer_setup()
1607 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbd_setup_ctrl_transfer()
1625 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbd_setup_ctrl_transfer()
[all …]
H A Dusb_generic.c263 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_write()
271 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_write()
332 usb_config[1].usb_mode = USB_MODE_HOST; in ugen_open_pipe_read()
340 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in ugen_open_pipe_read()
623 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_config()
647 if (f->udev->flags.usb_mode != USB_MODE_HOST) { in ugen_set_interface()
859 di->udi_mode = udev->flags.usb_mode; in ugen_fill_deviceinfo()
946 if (udev->flags.usb_mode != USB_MODE_HOST) { in ugen_re_enumerate()
1076 usb_config[0].usb_mode = USB_MODE_DUAL; /* both modes */ in usb_fs_open()
1080 if (f->udev->flags.usb_mode != USB_MODE_HOST) in usb_fs_open()
[all …]
H A Dusb_hub.h38 enum usb_hc_mode usb_mode; /* host or device mode */ member
H A Dusb_pf.c343 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { in usbpf_xfer_frame_is_read()
435 if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) in usbpf_xfertap()
/freebsd/sys/dev/usb/gadget/
H A Dg_audio.c168 .usb_mode = USB_MODE_DEVICE,
180 .usb_mode = USB_MODE_DEVICE,
192 .usb_mode = USB_MODE_DEVICE,
204 .usb_mode = USB_MODE_DEVICE,
274 if (uaa->usb_mode != USB_MODE_DEVICE) in g_audio_probe()
H A Dg_modem.c163 .usb_mode = USB_MODE_DEVICE,
175 .usb_mode = USB_MODE_DEVICE,
187 .usb_mode = USB_MODE_DEVICE,
260 if (uaa->usb_mode != USB_MODE_DEVICE) in g_modem_probe()
H A Dg_keyboard.c164 .usb_mode = USB_MODE_DEVICE,
212 if (uaa->usb_mode != USB_MODE_DEVICE) in g_keyboard_probe()
H A Dg_mouse.c162 .usb_mode = USB_MODE_DEVICE,
260 if (uaa->usb_mode != USB_MODE_DEVICE) in g_mouse_probe()
/freebsd/sys/contrib/device-tree/Bindings/usb/
H A Dtwlxxxx-usb.txt30 - usb_mode : The mode used by the phy to connect to the controller. "1"
42 usb_mode = <1>;
/freebsd/sys/dev/usb/storage/
H A Dcfumass.c236 .usb_mode = USB_MODE_DEVICE,
247 .usb_mode = USB_MODE_DEVICE,
258 .usb_mode = USB_MODE_DEVICE,
268 .usb_mode = USB_MODE_DEVICE,
320 if (uaa->usb_mode != USB_MODE_DEVICE) in cfumass_probe()
H A Dustorage_fs.c279 .usb_mode = USB_MODE_DEVICE,
289 .usb_mode = USB_MODE_DEVICE,
299 .usb_mode = USB_MODE_DEVICE,
309 .usb_mode = USB_MODE_DEVICE,
319 .usb_mode = USB_MODE_DEVICE,
333 if (uaa->usb_mode != USB_MODE_DEVICE) { in ustorage_fs_probe()
/freebsd/sys/dev/usb/net/
H A Dif_cdce.c145 .usb_mode = USB_MODE_DUAL, /* both modes */
158 .usb_mode = USB_MODE_DUAL, /* both modes */
170 .usb_mode = USB_MODE_HOST,
182 .usb_mode = USB_MODE_DEVICE,
198 .usb_mode = USB_MODE_DUAL, /* both modes */
211 .usb_mode = USB_MODE_DUAL, /* both modes */
223 .usb_mode = USB_MODE_HOST,
235 .usb_mode = USB_MODE_DEVICE,
755 if (uaa->usb_mode == USB_MODE_DEVICE) { in cdce_attach()
/freebsd/stand/usb/storage/
H A Dumass_common.c64 if (uaa->usb_mode != USB_MODE_HOST || in umass_probe()
/freebsd/sys/dev/usb/serial/
H A Dumodem.c241 .usb_mode = USB_MODE_DUAL,
252 .usb_mode = USB_MODE_DUAL,
263 .usb_mode = USB_MODE_DEVICE,
274 .usb_mode = USB_MODE_HOST,
452 ucom_set_usb_mode(&sc->sc_super_ucom, uaa->usb_mode); in umodem_attach()
/freebsd/sys/netgraph/bluetooth/drivers/ubt/
H A Dng_ubt_rtl.c221 if (uaa->usb_mode != USB_MODE_HOST) in ubt_rtl_probe()
H A Dng_ubt_intel.c199 if (uaa->usb_mode != USB_MODE_HOST) in ubt_intel_probe()
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Dtwl4030.dtsi129 usb_mode = <1>;

12345