Lines Matching refs:n_components
695 void bus_match_parse_free(struct bus_match_component *components, unsigned n_components) { in bus_match_parse_free() argument
696 for (unsigned i = 0; i < n_components; i++) in bus_match_parse_free()
708 unsigned n_components = 0; in bus_match_parse() local
801 if (!GREEDY_REALLOC(components, n_components + 1)) { in bus_match_parse()
806 components[n_components++] = (struct bus_match_component) { in bus_match_parse()
824 typesafe_qsort(components, n_components, match_component_compare); in bus_match_parse()
827 for (unsigned i = 0; i+1 < n_components; i++) in bus_match_parse()
834 *ret_n_components = n_components; in bus_match_parse()
839 bus_match_parse_free(components, n_components); in bus_match_parse()
843 char *bus_match_to_string(struct bus_match_component *components, unsigned n_components) { in bus_match_to_string() argument
848 if (n_components <= 0) in bus_match_to_string()
857 for (unsigned i = 0; i < n_components; i++) { in bus_match_to_string()
885 unsigned n_components, in bus_match_add() argument
893 for (unsigned i = 0; i < n_components; i++) { in bus_match_add()
1041 …ch_scope bus_match_get_scope(const struct bus_match_component *components, unsigned n_components) { in bus_match_get_scope() argument
1044 if (n_components <= 0) in bus_match_get_scope()
1055 for (unsigned i = 0; i < n_components; i++) { in bus_match_get_scope()