Lines Matching defs:pos
78 int count,pos,dot;
92 pos = 0;
100 for (pos = 18-count-1; *text; text++) {
104 if (pos & 1) addr->sas_addr.prv[pos >> 1] |= *text-'0';
105 else addr->sas_addr.prv[pos >> 1] = (*text-'0') << 4;
106 pos++;
111 pos++;
116 if (pos == ATM_ESA_LEN*2) return TRY_OTHER; /* too long */
119 if (pos & 1) addr->sas_addr.prv[pos >> 1] |= value;
120 else addr->sas_addr.prv[pos >> 1] = value << 4;
121 pos++;
132 if (pos > 1 && !*addr->sas_addr.prv)
135 return pos != ATM_ESA_LEN*2 ? TRY_OTHER : ATM_ESA_LEN*2;
140 if (len >= pos*4) return -1; /* too long */
145 return len > pos*4 ? TRY_OTHER : len;