Home
last modified time | relevance | path

Searched refs:str2val (Results 1 – 7 of 7) sorted by relevance

/openbmc/ipmitool/src/
H A Dipmishell.c327 authtype = str2val(argv[1], ipmi_authtype_session_vals); in ipmi_set_main()
344 privlvl = str2val(argv[1], ipmi_privlvl_vals); in ipmi_set_main()
/openbmc/ipmitool/include/ipmitool/
H A Dhelper.h93 uint16_t str2val(const char * str, const struct valstr * vs);
/openbmc/ipmitool/lib/
H A Dipmi_event.c338 emsg.event_data[0] = (uint8_t)(str2val(state, ipmi_event_thresh_hi) & 0xf); in ipmi_event_fromsensor()
341 emsg.event_data[0] = (uint8_t)(str2val(state, ipmi_event_thresh_lo) & 0xf); in ipmi_event_fromsensor()
H A Dipmi_main.c711 privlvl = str2val(optarg, ipmi_privlvl_vals); in ipmi_main()
717 authtype = str2val(optarg, ipmi_authtype_session_vals); in ipmi_main()
H A Dipmi_raw.c341 netfn_tmp = str2val(argv[0], ipmi_netfn_vals); in ipmi_raw_main()
H A Dipmi_sunoem.c469 ledtype = str2val(argv[1], sunoem_led_type_vals); in ipmi_sunoem_led_get()
666 ledmode = str2val(argv[1], sunoem_led_mode_vals); in ipmi_sunoem_led_set()
668 ledmode = str2val(argv[1], sunoem_led_mode_optvals); in ipmi_sunoem_led_set()
676 ledtype = str2val(argv[2], sunoem_led_type_vals); in ipmi_sunoem_led_set()
H A Dhelper.c392 uint16_t str2val(const char *str, const struct valstr *vs) in str2val() function