Lines Matching refs:vp
33 const struct value_pair *vp;
39 vp = &o->posval[entries];
40 if (!vp->ival || vp->ival[0] == '\0')
43 memcpy(&vpmap[entries], vp, sizeof(*vp));
76 const struct value_pair *vp = &o->posval[i];
78 if (!vp->ival)
81 log_info("%20s: %-10s", i == 0 ? "valid values" : "", vp->ival);
82 if (vp->help)
83 log_info(" %s", vp->help);
394 static int str_match_len(const struct value_pair *vp, const char *str)
396 return max(strlen(vp->ival), opt_len(str));
418 const struct value_pair *vp;
439 vp = &posval[i];
440 if (!vp->ival || vp->ival[0] == '\0')
443 if (!strncmp(vp->ival, ptr, str_match_len(vp, ptr))) {
446 val_store(ilp, vp->oval, o->off1, vp->orval, data, o);
494 vp = &posval[i];
495 if (!vp->ival || vp->ival[0] == '\0')
497 if (vp->oval == ull) {
626 vp = &posval[i];
627 if (!vp->ival || vp->ival[0] == '\0' || !cp)
630 if (!strncmp(vp->ival, ptr, str_match_len(vp, ptr))) {
634 if (vp->cb)
635 fn = vp->cb;