Lines Matching defs:len
283 DB_SMT("SMT: processing PMF frame at %p len %d", sm, mb->sm_len);
315 int len ;
368 len = req->smt_len ;
373 while (!pcon.pc_err && len > 0 ) {
374 if (((u_short)len < pa->p_len + PARA_LEN) || (pa->p_len & 3)) {
471 len -= pa->p_len + PARA_LEN ;
553 int len ;
580 len = pcon->pc_len ; /* free space */
581 plen = len ; /* remember start length */
584 len -= PARA_LEN ;
590 if (len < 4)
596 len -= 4 ;
905 if (len < 4)
923 len -= 4 ;
926 if (len < 2)
936 len -= 2 ;
940 if (len < 4)
942 len -= 4 ;
952 if (len < 4)
965 len -= 4 ;
969 if (len < 4)
975 len -= 4 ;
979 if (len < 4)
985 len -= 4 ;
989 if (len < 8)
996 len -= 8 ;
999 if (len < 8)
1004 len -= 8 ;
1007 if (len < 32)
1012 len -= 32 ;
1015 if (len < 8)
1026 len -= 8 ;
1037 * note: len is DECREMENTED
1039 if (len & 3) {
1042 to += 4 - (len & 3 ) ;
1043 len = len & ~ 3 ;
1048 pa->p_len = plen - len - PARA_LEN ;
1051 pcon->pc_len = len ;
1055 len -= sp_len ;
1077 int len ;
1097 len = pa->p_len ;
1113 len -= 4 ;
1122 len -= 4 ;
1131 len -= 4 ;
1183 if (len < 4) {
1203 len -= 4 ;
1207 if (len < 4) {
1213 len -= 4 ;
1220 if (len < 4) {
1234 len -= 4 ;
1238 if (len < 8)
1244 len -= 8 ;
1247 if (len < 4)
1253 len -= 4 ;
1256 if (len < 8)
1262 len -= 8 ;
1265 if (len < 32)
1271 len -= 32 ;
1285 len -= 8 ;
1558 int len ;
1588 len = sm->smt_len ;
1590 while (len > 0 ) {
1598 if ( (n < 0 ) || (n > (int)(len - PARA_LEN))) {
1599 n = len - PARA_LEN ;
1637 len -= plen ;
1643 void dump_hex(char *p, int len)
1646 while (len--) {
1649 printf("%x%s",*p++ & 0xff,len ? ( (n & 7) ? " " : "-") : "") ;
1651 printf("%02x%s",*p++ & 0xff,len ? ( (n & 7) ? " " : "-") : "") ;