Lines Matching defs:pkt_len
262 int pkt_len;
274 pkt_len = size;
275 memset(buf + count, '0', pkt_len - count - trailer_len);
277 pkt_len = count + trailer_len;
281 buf[pkt_len - 2] = count << 2;
282 buf[pkt_len - 1] = 0;
285 fcs = fcs_compute10(buf, pkt_len, CRC10_INITFCS);
286 buf[pkt_len - 2] |= fcs >> 8;
287 buf[pkt_len - 1] |= fcs & 0xff;
289 return pkt_len;