Lines Matching refs:cur_pos
38 size_t cur_pos, size_t payload_len) in report_bad_packet() argument
50 (unsigned int)cur_pos, in report_bad_packet()
73 size_t payload_len, total_len, cur_pos, raw_len; in process_recv() local
85 cur_pos = 0; in process_recv()
88 if (cur_pos + sizeof(struct hostif_msg) > total_len) { in process_recv()
98 recv_msg = (struct hostif_msg *)(recv_buf + cur_pos); in process_recv()
102 if (cur_pos + payload_len + sizeof(struct hostif_msg) > in process_recv()
105 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos, in process_recv()
120 cur_pos, in process_recv()
169 cur_pos, in process_recv()
194 cur_pos, in process_recv()
312 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos, in process_recv()
319 if (!cur_pos && cur_pos + payload_len + in process_recv()
323 cur_pos += payload_len + sizeof(struct hostif_msg); in process_recv()
326 } while (cur_pos < total_len); in process_recv()