Lines Matching refs:rx_packet

59 USB_NOCACHE_RAM_SECTION struct adb_packet rx_packet;  variable
123 rx_packet.msg.command, in usbd_adb_bulk_out()
124 rx_packet.msg.arg0, in usbd_adb_bulk_out()
125 rx_packet.msg.arg1, in usbd_adb_bulk_out()
126 rx_packet.msg.data_length); in usbd_adb_bulk_out()
128 if (rx_packet.msg.data_length) { in usbd_adb_bulk_out()
131 …sbd_ep_start_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, rx_packet.payload, rx_packet.msg.dat… in usbd_adb_bulk_out()
133 if (rx_packet.msg.command == A_CLSE) { in usbd_adb_bulk_out()
136 USB_LOG_INFO("Close remoteid:%x\r\n", rx_packet.msg.arg0); in usbd_adb_bulk_out()
140 …usbd_ep_start_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(s… in usbd_adb_bulk_out()
143 switch (rx_packet.msg.command) { in usbd_adb_bulk_out()
165 rx_packet.payload[rx_packet.msg.data_length] = '\0'; in usbd_adb_bulk_out()
167 if (strncmp((const char *)rx_packet.payload, "shell:", 6) == 0) { in usbd_adb_bulk_out()
169 adb_client.shell_remoteid = rx_packet.msg.arg0; in usbd_adb_bulk_out()
172 USB_LOG_INFO("Open shell service, remoteid:%x\r\n", rx_packet.msg.arg0); in usbd_adb_bulk_out()
173 } else if (strncmp((const char *)rx_packet.payload, "sync:", 5) == 0) { in usbd_adb_bulk_out()
175 adb_client.file_remoteid = rx_packet.msg.arg0; in usbd_adb_bulk_out()
177 USB_LOG_INFO("Open file service, remoteid:%x\r\n", rx_packet.msg.arg0); in usbd_adb_bulk_out()
187 …if ((rx_packet.msg.arg0 == adb_client.shell_remoteid) && (rx_packet.msg.arg1 == ADB_SHELL_LOALID))… in usbd_adb_bulk_out()
188 adb_send_okay(&tx_packet, rx_packet.msg.arg1); in usbd_adb_bulk_out()
189 …} else if ((rx_packet.msg.arg0 == adb_client.file_remoteid) && (rx_packet.msg.arg1 == ADB_FILE_LOA… in usbd_adb_bulk_out()
190 adb_send_okay(&tx_packet, rx_packet.msg.arg1); in usbd_adb_bulk_out()
192 adb_send_close(&tx_packet, 0, rx_packet.msg.arg0); in usbd_adb_bulk_out()
215 if (rx_packet.msg.command == A_WRTE) { in usbd_adb_bulk_in()
218 usbd_adb_notify_shell_read(rx_packet.payload, rx_packet.msg.data_length); in usbd_adb_bulk_in()
224 …usbd_ep_start_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(s… in usbd_adb_bulk_in()
229 …usbd_ep_start_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(s… in usbd_adb_bulk_in()
255 …usbd_ep_start_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(s… in adb_notify_handler()