Lines Matching refs:intf

27 static int usbh_bluetooth_connect(struct usbh_hubport *hport, uint8_t intf)  in usbh_bluetooth_connect()  argument
39 if (intf != 0) { in usbh_bluetooth_connect()
47 bluetooth_class->intf = intf; in usbh_bluetooth_connect()
49 bluetooth_class->num_of_intf_altsettings = hport->config.intf[intf + 1].altsetting_num; in usbh_bluetooth_connect()
51 hport->config.intf[intf].priv = bluetooth_class; in usbh_bluetooth_connect()
53 for (uint8_t i = 0; i < hport->config.intf[intf].altsetting[0].intf_desc.bNumEndpoints; i++) { in usbh_bluetooth_connect()
54 ep_desc = &hport->config.intf[intf].altsetting[0].ep[i].ep_desc; in usbh_bluetooth_connect()
78 … for (uint8_t j = 0; j < hport->config.intf[intf + 1].altsetting[i].intf_desc.bNumEndpoints; j++) { in usbh_bluetooth_connect()
79 ep_desc = &bluetooth_class->hport->config.intf[intf + 1].altsetting[i].ep[j].ep_desc; in usbh_bluetooth_connect()
93 ret = usbh_set_interface(hport, intf, 0); in usbh_bluetooth_connect()
99 strncpy(hport->config.intf[intf].devname, DEV_FORMAT, CONFIG_USBHOST_DEV_NAMELEN); in usbh_bluetooth_connect()
100 USB_LOG_INFO("Register Bluetooth Class:%s\r\n", hport->config.intf[intf].devname); in usbh_bluetooth_connect()
105 static int usbh_bluetooth_disconnect(struct usbh_hubport *hport, uint8_t intf) in usbh_bluetooth_disconnect() argument
109 struct usbh_bluetooth *bluetooth_class = (struct usbh_bluetooth *)hport->config.intf[intf].priv; in usbh_bluetooth_disconnect()
111 if (hport->config.config_desc.bNumInterfaces == (intf + 1)) { in usbh_bluetooth_disconnect()
136 if (hport->config.intf[intf].devname[0] != '\0') { in usbh_bluetooth_disconnect()
138 USB_LOG_INFO("Unregister Bluetooth Class:%s\r\n", hport->config.intf[intf].devname); in usbh_bluetooth_disconnect()
248 setup->wIndex = bluetooth_class->intf; in usbh_bluetooth_hci_cmd()