Lines Matching refs:rem
126 int rem, i, content, reclen, msglen, fragoff, fraglen, epoch; in dump_data() local
131 rem = len; in dump_data()
134 while (rem > 0) { in dump_data()
135 if (rem != len) in dump_data()
138 if (rem < DTLS1_RT_HEADER_LENGTH) { in dump_data()
156 rem -= DTLS1_RT_HEADER_LENGTH; in dump_data()
161 } else if (rem < DTLS1_HM_HEADER_LENGTH in dump_data()
187 if (rem < reclen) { in dump_data()
189 rem = 0; in dump_data()
192 rem -= reclen; in dump_data()
356 int rem; in mempacket_test_read() local
380 for (rem = thispkt->len, rec = thispkt->data; rem > 0; rem -= len) { in mempacket_test_read()
381 if (rem < DTLS1_RT_HEADER_LENGTH) in mempacket_test_read()
398 if (rem < (int)len) in mempacket_test_read()
401 if (rem > (int)len) in mempacket_test_read()
402 memmove(rec, rec + len, rem - len); in mempacket_test_read()
428 int rem, len, prevlen = 0, pktnum; in mempacket_swap_epoch() local
444 for (rem = thispkt->len, rec = thispkt->data; rem > 0; rem -= len, rec += len) { in mempacket_swap_epoch()
445 if (rem < DTLS1_RT_HEADER_LENGTH) in mempacket_swap_epoch()
450 if (rem < len) in mempacket_swap_epoch()
471 memmove(prevrec, rec, rem); in mempacket_swap_epoch()