Lines Matching refs:pkt_len
229 int pkt_len;
241 pkt_len = size;
242 memset(buf + count, '0', pkt_len - count - trailer_len);
244 pkt_len = count + trailer_len;
248 buf[pkt_len - 2] = count << 2;
249 buf[pkt_len - 1] = 0;
252 fcs = fcs_compute10(buf, pkt_len, CRC10_INITFCS);
253 buf[pkt_len - 2] |= fcs >> 8;
254 buf[pkt_len - 1] |= fcs & 0xff;
256 return pkt_len;