Lines Matching refs:ival
34 return strlen(vp2->ival) - strlen(vp1->ival); in vp_cmp()
46 if (!vp->ival || vp->ival[0] == '\0') in posval_sort()
66 } else if (!o->posval[0].ival) { in show_option_range()
84 if (!vp->ival) in show_option_values()
87 log_info("%20s: %-10s", i == 0 ? "valid values" : "", vp->ival); in show_option_values()
293 extern int evaluate_arithmetic_expression(const char *buffer, long long *ival,
304 long long ival; in str_to_float() local
308 rc = evaluate_arithmetic_expression(str, &ival, &dval, 1.0, is_time); in str_to_float()
327 long long ival; in str_to_decimal() local
340 rc = evaluate_arithmetic_expression(str, &ival, &dval, implied_units, is_time); in str_to_decimal()
343 *val = ival / 1000000LL; in str_to_decimal()
345 *val = ival; in str_to_decimal()
460 return max(strlen(vp->ival), opt_len(str)); in str_match_len()
504 if (!vp->ival || vp->ival[0] == '\0') in __handle_option()
509 if (!strncmp(vp->ival, ptr, str_match_len(vp, ptr))) { in __handle_option()
563 if (o->posval[0].ival) { in __handle_option()
569 if (!vp->ival || vp->ival[0] == '\0') in __handle_option()
695 else if (o->posval[0].ival) { in __handle_option()
701 if (!vp->ival || vp->ival[0] == '\0' || !cp) in __handle_option()
704 if (!strncmp(vp->ival, ptr, str_match_len(vp, ptr))) { in __handle_option()