Lines Matching refs:packet
56 uchar *packet; in fastboot_udp_send_info() local
67 packet = net_tx_packet + net_eth_hdr_size() + IP_UDP_HDR_SIZE; in fastboot_udp_send_info()
68 packet_base = packet; in fastboot_udp_send_info()
71 memcpy(packet, &response_header, sizeof(response_header)); in fastboot_udp_send_info()
72 packet += sizeof(response_header); in fastboot_udp_send_info()
75 memcpy(packet, response, strlen(response)); in fastboot_udp_send_info()
76 packet += strlen(response); in fastboot_udp_send_info()
78 len = packet - packet_base; in fastboot_udp_send_info()
123 uchar *packet; in fastboot_send() local
138 packet = net_tx_packet + net_eth_hdr_size() + IP_UDP_HDR_SIZE; in fastboot_send()
139 packet_base = packet; in fastboot_send()
143 memcpy(packet, last_packet, last_packet_len); in fastboot_send()
151 memcpy(packet, &response_header, sizeof(response_header)); in fastboot_send()
152 packet += sizeof(response_header); in fastboot_send()
157 memcpy(packet, &tmp, sizeof(tmp)); in fastboot_send()
158 packet += sizeof(tmp); in fastboot_send()
162 memcpy(packet, &tmp, sizeof(tmp)); in fastboot_send()
163 packet += sizeof(tmp); in fastboot_send()
165 memcpy(packet, &tmp, sizeof(tmp)); in fastboot_send()
166 packet += sizeof(tmp); in fastboot_send()
169 memcpy(packet, error_msg, strlen(error_msg)); in fastboot_send()
170 packet += strlen(error_msg); in fastboot_send()
200 memcpy(packet, response, strlen(response)); in fastboot_send()
201 packet += strlen(response); in fastboot_send()
208 len = packet - packet_base; in fastboot_send()
259 static void fastboot_handler(uchar *packet, unsigned int dport, in fastboot_handler() argument
275 memcpy(&header, packet, sizeof(header)); in fastboot_handler()
278 packet += sizeof(header); in fastboot_handler()
289 memcpy(fastboot_data, packet, len); in fastboot_handler()