Lines Matching defs:sublen
1437 __u16 subtype, sublen;
1441 sublen = (data[2] << 8) + data[3];
1442 if (sublen > len)
1452 printf("\t * Device name: %.*s\n", sublen, data + 4);
1457 if (sublen != 2) {
1459 "length %d)\n", sublen);
1469 printf("\t * Manufacturer: %.*s\n", sublen, data + 4);
1473 printf("\t * Model: %.*s\n", sublen, data + 4);
1477 printf("\t * Model Number: %.*s\n", sublen, data + 4);
1500 printf("\t * Serial Number: %.*s\n", sublen, data + 4);
1514 if (sublen != 16) {
1515 printf("(invalid, length=%d)\n", sublen);
1527 if (sublen != 8) {
1529 "length %d)\n", sublen);
1574 __u16 tmplen = sublen;
1589 data += sublen + 4;
1590 len -= sublen + 4;
1614 __u16 sublen;
1618 sublen = (data[2] << 8) + data[1];
1620 if (sublen > len - 3)
1626 if (sublen < 2) {
1634 if (sublen < 6 + 2 + 8 + 1) {
1659 __u16 tmplen = sublen;
1674 data += sublen + 3;
1675 len -= sublen + 3;