pub fn keyval_from_name(keyval_name: &str) -> u32