Lines Matching refs:msg

42     USB_MEM_ALIGNX struct adb_msg msg;  member
66 for (i = 0; i < packet->msg.data_length; ++i) { in adb_packet_checksum()
86 packet->msg.data_crc32 = adb_packet_checksum(packet); in adb_send_msg()
87 packet->msg.magic = packet->msg.command ^ 0xffffffff; in adb_send_msg()
89 …usbd_ep_start_write(0, adb_ep_data[ADB_IN_EP_IDX].ep_addr, (uint8_t *)&packet->msg, sizeof(struct … in adb_send_msg()
94 packet->msg.command = A_OKAY; in adb_send_okay()
95 packet->msg.arg0 = localid; in adb_send_okay()
96 packet->msg.arg1 = usbd_adb_get_remoteid(localid); in adb_send_okay()
97 packet->msg.data_length = 0; in adb_send_okay()
104 packet->msg.command = A_CLSE; in adb_send_close()
105 packet->msg.arg0 = localid; in adb_send_close()
106 packet->msg.arg1 = remoteid; in adb_send_close()
107 packet->msg.data_length = 0; in adb_send_close()
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 …art_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, rx_packet.payload, rx_packet.msg.data_length); 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 …art_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(struct adb_… in usbd_adb_bulk_out()
143 switch (rx_packet.msg.command) { in usbd_adb_bulk_out()
154 tx_packet.msg.command = A_CNXN; in usbd_adb_bulk_out()
155 tx_packet.msg.arg0 = A_VERSION; in usbd_adb_bulk_out()
156 tx_packet.msg.arg1 = MAX_PAYLOAD; in usbd_adb_bulk_out()
157 tx_packet.msg.data_length = strlen(support_feature); in usbd_adb_bulk_out()
165 rx_packet.payload[rx_packet.msg.data_length] = '\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()
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()
211 if (tx_packet.msg.data_length) { in usbd_adb_bulk_in()
213 …art_write(busid, adb_ep_data[ADB_IN_EP_IDX].ep_addr, tx_packet.payload, tx_packet.msg.data_length); in usbd_adb_bulk_in()
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 …art_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(struct adb_… 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()
231 if (tx_packet.msg.data_length) { in usbd_adb_bulk_in()
233 …art_write(busid, adb_ep_data[ADB_IN_EP_IDX].ep_addr, tx_packet.payload, tx_packet.msg.data_length); in usbd_adb_bulk_in()
255 …art_read(busid, adb_ep_data[ADB_OUT_EP_IDX].ep_addr, (uint8_t *)&rx_packet.msg, sizeof(struct adb_… in adb_notify_handler()
293 packet->msg.command = A_WRTE; in usbd_abd_write()
294 packet->msg.arg0 = localid; in usbd_abd_write()
295 packet->msg.arg1 = usbd_adb_get_remoteid(localid); in usbd_abd_write()
296 packet->msg.data_length = len; in usbd_abd_write()
299 packet->msg.data_crc32 = adb_packet_checksum(packet); in usbd_abd_write()
300 packet->msg.magic = packet->msg.command ^ 0xffffffff; in usbd_abd_write()
303 …usbd_ep_start_write(0, adb_ep_data[ADB_IN_EP_IDX].ep_addr, (uint8_t *)&packet->msg, sizeof(struct … in usbd_abd_write()