Lines Matching +defs:val +defs:opt
162 const char *opt = (const char *)option;
164 if (opt == NULL || arg == NULL)
170 len = strlen(opt) + strlen(arg) + 1;
173 (void) strcpy(buf, opt);
517 dtrace_optval_t val = 0;
535 val = DTRACEOPT_UNSET;
541 val = 1;
546 val = DTRACEOPT_UNSET;
552 val = strtoull(arg, &end, 0);
554 if (*end != '\0' || errno != 0 || val < 0)
559 dtp->dt_options[option] = val;
607 dtrace_optval_t val = 0;
609 if (arg != NULL && dt_optval_parse(arg, &val) != 0)
612 dtp->dt_options[option] = val;
621 dtrace_optval_t mul = 1, val = 0;
647 val = strtoull(arg, &end, 0);
656 if (suffix[i].name == NULL && *end != '\0' || val < 0)
663 if (val != 0)
664 val = NANOSEC / val;
666 val *= mul;
670 dtp->dt_options[option] = val;
683 dtrace_optval_t val = dtp->dt_options[option];
692 dtp->dt_options[option] = val;
697 dtp->dt_options[option] = val;
706 dtp->dt_options[option] = val;
825 dof_optdesc_t *opt = (dof_optdesc_t *)(uintptr_t)
828 if (opt->dofo_strtab != DOF_SECIDX_NONE)
831 if (opt->dofo_option >= DTRACEOPT_MAX)
834 dtp->dt_options[opt->dofo_option] = opt->dofo_value;
960 dtrace_getopt(dtrace_hdl_t *dtp, const char *opt, dtrace_optval_t *val)
964 if (opt == NULL)
972 if (strcmp(op->o_name, opt) == 0) {
973 *val = dtp->dt_options[op->o_option];
979 if (strcmp(op->o_name, opt) == 0) {
980 *val = dtp->dt_options[op->o_option];
989 dtrace_setopt(dtrace_hdl_t *dtp, const char *opt, const char *val)
993 if (opt == NULL)
997 if (strcmp(op->o_name, opt) == 0)
998 return (op->o_func(dtp, val, op->o_option));
1002 if (strcmp(op->o_name, opt) == 0)
1003 return (op->o_func(dtp, val, op->o_option));
1007 if (strcmp(op->o_name, opt) == 0) {
1015 return (op->o_func(dtp, val, op->o_option));