Lines Matching refs:ret
30 int ret = 0; in usbh_bluetooth_connect() local
93 ret = usbh_set_interface(hport, intf, 0); in usbh_bluetooth_connect()
94 if (ret < 0) { in usbh_bluetooth_connect()
95 return ret; in usbh_bluetooth_connect()
102 return ret; in usbh_bluetooth_connect()
107 int ret = 0; in usbh_bluetooth_disconnect() local
145 return ret; in usbh_bluetooth_disconnect()
171 int ret; in usbh_bluetooth_hci_bulk_out() local
174 ret = usbh_submit_urb(urb); in usbh_bluetooth_hci_bulk_out()
175 if (ret == 0) { in usbh_bluetooth_hci_bulk_out()
176 ret = urb->actual_length; in usbh_bluetooth_hci_bulk_out()
178 return ret; in usbh_bluetooth_hci_bulk_out()
184 int ret; in usbh_bluetooth_hci_write() local
189 ret = usbh_bluetooth_hci_bulk_out(g_bluetooth_tx_buf, buflen + 1); in usbh_bluetooth_hci_write()
190 return ret; in usbh_bluetooth_hci_write()
195 int ret; in usbh_bluetooth_hci_rx_thread() local
205 ret = usbh_submit_urb(&g_bluetooth_class.bulkin_urb); in usbh_bluetooth_hci_rx_thread()
206 if (ret < 0) { in usbh_bluetooth_hci_rx_thread()
207 if (ret == -USB_ERR_SHUTDOWN) { in usbh_bluetooth_hci_rx_thread()
256 int ret; in usbh_bluetooth_hci_write() local
262 ret = usbh_bluetooth_hci_cmd(&g_bluetooth_cmd_buf[1], buflen); in usbh_bluetooth_hci_write()
267 ret = usbh_bluetooth_hci_bulk_out(&g_bluetooth_tx_buf[1], buflen); in usbh_bluetooth_hci_write()
269 ret = -1; in usbh_bluetooth_hci_write()
272 return ret; in usbh_bluetooth_hci_write()
277 int ret; in usbh_bluetooth_hci_evt_rx_thread() local
289 ret = usbh_submit_urb(&g_bluetooth_class.intin_urb); in usbh_bluetooth_hci_evt_rx_thread()
290 if (ret < 0) { in usbh_bluetooth_hci_evt_rx_thread()
291 if (ret == -USB_ERR_SHUTDOWN) { in usbh_bluetooth_hci_evt_rx_thread()
293 } else if (ret == -USB_ERR_NAK) { in usbh_bluetooth_hci_evt_rx_thread()
326 int ret; in usbh_bluetooth_hci_acl_rx_thread() local
336 ret = usbh_submit_urb(&g_bluetooth_class.bulkin_urb); in usbh_bluetooth_hci_acl_rx_thread()
337 if (ret < 0) { in usbh_bluetooth_hci_acl_rx_thread()
338 if (ret == -USB_ERR_SHUTDOWN) { in usbh_bluetooth_hci_acl_rx_thread()