Lines Matching refs:sub

246 index_decode(const struct asn_oid *oid, u_int sub, u_int code, ...)  in index_decode()  argument
265 if (sub == oid->len) in index_decode()
267 *va_arg(ap, int32_t *) = oid->subs[sub++]; in index_decode()
271 if (sub == oid->len) in index_decode()
273 *va_arg(ap, u_int64_t *) = oid->subs[sub++]; in index_decode()
283 if (sub == oid->len) in index_decode()
287 *sval = oid->subs[sub++]; in index_decode()
288 if (sub + *sval > oid->len) in index_decode()
296 if (oid->subs[sub] > 0xff) in index_decode()
298 (*cval)[i] = oid->subs[sub++]; in index_decode()
308 if (sub == oid->len) in index_decode()
311 aval->len = oid->subs[sub++]; in index_decode()
315 aval->subs[i] = oid->subs[sub++]; in index_decode()
324 if (sub + 4 > oid->len) in index_decode()
328 if (oid->subs[sub] > 0xff) in index_decode()
330 pval[i] = oid->subs[sub++]; in index_decode()
338 if (sub == oid->len) in index_decode()
340 if (oid->subs[sub] > 0xffffffff) in index_decode()
342 *va_arg(ap, u_int32_t *) = oid->subs[sub++]; in index_decode()
361 index_compare_off(const struct asn_oid *oid, u_int sub, in index_compare_off() argument
366 for (i = off; i < idx->len && i < oid->len - sub; i++) { in index_compare_off()
367 if (oid->subs[sub + i] < idx->subs[i]) in index_compare_off()
369 if (oid->subs[sub + i] > idx->subs[i]) in index_compare_off()
372 if (oid->len - sub < idx->len) in index_compare_off()
374 if (oid->len - sub > idx->len) in index_compare_off()
381 index_compare(const struct asn_oid *oid, u_int sub, const struct asn_oid *idx) in index_compare() argument
383 return (index_compare_off(oid, sub, idx, 0)); in index_compare()
390 index_append_off(struct asn_oid *var, u_int sub, const struct asn_oid *idx, in index_append_off() argument
395 var->len = sub + idx->len; in index_append_off()
397 var->subs[sub + i] = idx->subs[i]; in index_append_off()
400 index_append(struct asn_oid *var, u_int sub, const struct asn_oid *idx) in index_append() argument
402 index_append_off(var, sub, idx, 0); in index_append()