Lines Matching defs:entries
703 * There will always be at least two entries (e.g. one ':') in the string.
704 * Return the number of entries found, or 0 for a misformed string
707 pt_delta_str_helper(char *s, uint64_t *values, int entries)
712 if (entries <= 1 || *s == '\0')
714 for (i = 0; i < (entries - 1); i++) {
722 if (i == (entries - 1)) {
724 return (entries);
734 * both strings have the same number of entries
739 * Returns the number of entries found in the string, else 0 if misformed.
742 pt_delta_str(char *s1, char *s2, uint64_t *delta, int entries)
748 if (entries > CPU_MAX_PSTATES)
750 n1 = pt_delta_str_helper(s1, s1_vals, entries);
753 n2 = pt_delta_str_helper(s2, s2_vals, entries);
754 if (n1 != n2 || n1 != entries)
756 for (i = 0; i < entries; i++)
758 return (entries);