Lines Matching refs:packet
224 static int elo_command_10(struct elo *elo, unsigned char *packet) in elo_command_10() argument
233 elo->expected_packet = toupper(packet[0]); in elo_command_10()
241 csum += packet[i]; in elo_command_10()
242 if (serio_write(elo->serio, packet[i])) in elo_command_10()
253 memcpy(packet, elo->response, ELO10_PACKET_LEN); in elo_command_10()
266 unsigned char packet[ELO10_PACKET_LEN] = { ELO10_ID_CMD }; in elo_setup_10() local
268 if (elo_command_10(elo, packet)) in elo_setup_10()
271 dev->id.version = (packet[5] << 8) | packet[4]; in elo_setup_10()
275 if (packet[3] & ELO10_PRESSURE) in elo_setup_10()
280 elo_types[(packet[1] -'0') & 0x03], in elo_setup_10()
281 packet[5], packet[4], packet[3], packet[7]); in elo_setup_10()