Lines Matching refs:sval
59 struct sval string;
161 static const struct sval rules_mlvo_svals[_MLVO_NUM_ENTRIES] = {
177 static const struct sval rules_kccgst_svals[_KCCGST_NUM_ENTRIES] = {
188 struct sval sval; member
205 struct sval name;
227 struct sval mlvo_value_at_pos[_MLVO_NUM_ENTRIES];
230 struct sval kccgst_value_at_pos[_KCCGST_NUM_ENTRIES];
256 static struct sval
257 strip_spaces(struct sval v) in strip_spaces()
275 struct matched_sval val = { .sval = { NULL, 0 } }; in split_comma_separated_mlvo()
281 struct matched_sval val = { .sval = { s, 0 } }; in split_comma_separated_mlvo()
282 while (*s != '\0' && *s != ',') { s++; val.sval.len++; } in split_comma_separated_mlvo()
283 val.sval = strip_spaces(val.sval); in split_comma_separated_mlvo()
301 m->rmlvo.model.sval.start = rmlvo->model; in matcher_new()
302 m->rmlvo.model.sval.len = strlen_safe(rmlvo->model); in matcher_new()
331 matcher_group_start_new(struct matcher *m, struct sval name) in matcher_group_start_new()
338 matcher_group_add_element(struct matcher *m, struct sval element) in matcher_group_add_element()
375 matcher_mapping_set_mlvo(struct matcher *m, struct sval ident) in matcher_mapping_set_mlvo()
378 struct sval mlvo_sval; in matcher_mapping_set_mlvo()
434 matcher_mapping_set_kccgst(struct matcher *m, struct sval ident) in matcher_mapping_set_kccgst()
437 struct sval kccgst_sval; in matcher_mapping_set_kccgst()
522 matcher_rule_set_mlvo_common(struct matcher *m, struct sval ident, in matcher_rule_set_mlvo_common()
538 struct sval dummy = { NULL, 0 }; in matcher_rule_set_mlvo_wildcard()
543 matcher_rule_set_mlvo_group(struct matcher *m, struct sval ident) in matcher_rule_set_mlvo_group()
549 matcher_rule_set_mlvo(struct matcher *m, struct sval ident) in matcher_rule_set_mlvo()
555 matcher_rule_set_kccgst(struct matcher *m, struct sval ident) in matcher_rule_set_kccgst()
567 match_group(struct matcher *m, struct sval group_name, struct sval to) in match_group()
570 struct sval *element; in match_group()
597 match_value(struct matcher *m, struct sval val, struct sval to, in match_value()
608 match_value_and_mark(struct matcher *m, struct sval val, in match_value_and_mark()
611 bool matched = match_value(m, val, to->sval, match_type); in match_value_and_mark()
623 struct sval value) in append_expanded_kccgst_value()
713 if (!expanded_value || expanded_value->sval.len == 0) in append_expanded_kccgst_value()
719 expanded_value->sval.start, in append_expanded_kccgst_value()
720 expanded_value->sval.len); in append_expanded_kccgst_value()
767 struct sval value = m->rule.mlvo_value_at_pos[i]; in matcher_rule_apply_if_matches()
802 struct sval value = m->rule.kccgst_value_at_pos[i]; in matcher_rule_apply_if_matches()
978 if (!mval->matched && mval->sval.len > 0) in matcher_match()
980 mval->sval.len, mval->sval.start); in matcher_match()
982 if (!mval->matched && mval->sval.len > 0) in matcher_match()
984 mval->sval.len, mval->sval.start); in matcher_match()
986 if (!mval->matched && mval->sval.len > 0) in matcher_match()
988 mval->sval.len, mval->sval.start); in matcher_match()
990 if (!mval->matched && mval->sval.len > 0) in matcher_match()
992 mval->sval.len, mval->sval.start); in matcher_match()