Lines Matching refs:matches
553 int numdevs, struct devstat_match *matches, int num_matches, in devstat_selectdevs() argument
737 if ((matches[i].match_fields == DEVSTAT_MATCH_NONE) in devstat_selectdevs()
738 || (matches[i].num_match_categories <= 0)) in devstat_selectdevs()
744 num_match_categories = matches[i].num_match_categories; in devstat_selectdevs()
759 if ((((matches[i].match_fields & DEVSTAT_MATCH_TYPE)!=0) in devstat_selectdevs()
761 (matches[i].device_type & DEVSTAT_TYPE_MASK)) in devstat_selectdevs()
762 &&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0) in devstat_selectdevs()
763 || (((matches[i].match_fields & in devstat_selectdevs()
768 || (((matches[i].match_fields & DEVSTAT_MATCH_IF) != 0) in devstat_selectdevs()
770 (matches[i].device_type & DEVSTAT_TYPE_IF_MASK)) in devstat_selectdevs()
771 &&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0) in devstat_selectdevs()
772 || (((matches[i].match_fields & in devstat_selectdevs()
777 || (((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0) in devstat_selectdevs()
1033 devstat_buildmatch(char *match_str, struct devstat_match **matches, in devstat_buildmatch() argument
1067 *matches = NULL; in devstat_buildmatch()
1069 *matches = (struct devstat_match *)reallocf(*matches, in devstat_buildmatch()
1072 if (*matches == NULL) { in devstat_buildmatch()
1079 bzero(&matches[0][*num_matches], sizeof(struct devstat_match)); in devstat_buildmatch()
1126 if (((*matches)[*num_matches].match_fields & in devstat_buildmatch()
1140 (*matches)[*num_matches].match_fields |= in devstat_buildmatch()
1142 (*matches)[*num_matches].device_type |= in devstat_buildmatch()
1144 (*matches)[*num_matches].num_match_categories++; in devstat_buildmatch()
1153 if ((*matches)[*num_matches].num_match_categories != (i + 1)) { in devstat_buildmatch()