Lines Matching defs:host
675 static void usb3_set_mode(struct renesas_usb3 *usb3, bool host)
677 if (host)
683 static void usb3_set_mode_by_role_sw(struct renesas_usb3 *usb3, bool host)
686 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE;
689 usb3_set_mode(usb3, host);
701 static void usb3_mode_config(struct renesas_usb3 *usb3, bool host, bool a_dev)
708 usb3_set_mode_by_role_sw(usb3, host);
712 if ((!host && a_dev) || usb3->start_to_connect)
2375 struct device *host = usb3->host_dev;
2382 device_release_driver(host);
2394 device_release_driver(host);
2409 if (device_attach(host) < 0)
2410 dev_err(dev, "device_attach(host) failed\n");
2413 /* Must set the mode before device_attach of the host */
2416 if (device_attach(host) < 0)
2417 dev_err(dev, "device_attach(host) failed\n");
2429 struct device *host = usb3->host_dev;
2433 device_release_driver(host);
2436 /* Must set the mode before device_attach of the host */
2439 if (device_attach(host) < 0)
2440 dev_err(dev, "device_attach(host) failed\n");
2473 if (sysfs_streq(buf, "host"))
2496 return sprintf(buf, "%s\n", usb3_is_host(usb3) ? "host" : "peripheral");