Lines Matching refs:matches
503 * - compiled version of the command line device type arguments (matches)
548 int numdevs, struct devstat_match *matches, int num_matches,
727 if ((matches[i].match_fields == DEVSTAT_MATCH_NONE)
728 || (matches[i].num_match_categories <= 0))
734 num_match_categories = matches[i].num_match_categories;
738 * matches the given matching expression. This if
749 if ((((matches[i].match_fields & DEVSTAT_MATCH_TYPE)!=0)
751 (matches[i].device_type & DEVSTAT_TYPE_MASK))
752 &&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0)
753 || (((matches[i].match_fields &
758 || (((matches[i].match_fields & DEVSTAT_MATCH_IF) != 0)
760 (matches[i].device_type & DEVSTAT_TYPE_IF_MASK))
761 &&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0)
762 || (((matches[i].match_fields &
767 || (((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0)
1023 devstat_buildmatch(char *match_str, struct devstat_match **matches,
1057 *matches = NULL;
1059 *matches = (struct devstat_match *)reallocf(*matches,
1062 if (*matches == NULL) {
1064 "%s: Cannot allocate memory for matches list", __func__);
1069 bzero(&matches[0][*num_matches], sizeof(struct devstat_match));
1116 if (((*matches)[*num_matches].match_fields &
1130 (*matches)[*num_matches].match_fields |=
1132 (*matches)[*num_matches].device_type |=
1134 (*matches)[*num_matches].num_match_categories++;
1143 if ((*matches)[*num_matches].num_match_categories != (i + 1)) {