Lines Matching refs:msg_len
753 u16 msg_len; in applespi_send_cmd_msg() local
777 msg_len = sizeof(message->tp_info_command); in applespi_send_cmd_msg()
790 msg_len = sizeof(message->init_mt_command); in applespi_send_cmd_msg()
803 msg_len = sizeof(message->capsl_command); in applespi_send_cmd_msg()
817 msg_len = sizeof(message->bl_command); in applespi_send_cmd_msg()
836 packet->length = cpu_to_le16(MSG_HEADER_SIZE + msg_len); in applespi_send_cmd_msg()
840 message->length = cpu_to_le16(msg_len - 2); in applespi_send_cmd_msg()
845 put_unaligned_le16(crc, &message->data[msg_len - 2]); in applespi_send_cmd_msg()
1399 unsigned int msg_len; in applespi_got_data() local
1468 msg_len = applespi->saved_msg_len; in applespi_got_data()
1471 msg_len = len; in applespi_got_data()
1475 if (!applespi_verify_crc(applespi, (u8 *)message, msg_len)) in applespi_got_data()
1478 if (le16_to_cpu(message->length) != msg_len - MSG_HEADER_SIZE - 2) { in applespi_got_data()
1482 msg_len - MSG_HEADER_SIZE - 2); in applespi_got_data()