Searched refs:attrA (Results 1 – 2 of 2) sorted by relevance
54 static int Compare(const device_attr* attrA,820 device_attr_private::Compare(const device_attr* attrA, const device_attr *attrB) in Compare() argument822 if (attrA->type != attrB->type) in Compare()825 switch (attrA->type) { in Compare()827 return (int)attrA->value.ui8 - (int)attrB->value.ui8; in Compare()830 return (int)attrA->value.ui16 - (int)attrB->value.ui16; in Compare()833 if (attrA->value.ui32 > attrB->value.ui32) in Compare()835 if (attrA->value.ui32 < attrB->value.ui32) in Compare()840 if (attrA->value.ui64 > attrB->value.ui64) in Compare()842 if (attrA->value.ui64 < attrB->value.ui64) in Compare()[all …]
58 static int Compare(const device_attr* attrA,1025 device_attr_private::Compare(const device_attr* attrA, const device_attr *attrB) in Compare() argument1027 if (attrA->type != attrB->type) in Compare()1030 switch (attrA->type) { in Compare()1032 return (int)attrA->value.ui8 - (int)attrB->value.ui8; in Compare()1035 return (int)attrA->value.ui16 - (int)attrB->value.ui16; in Compare()1038 if (attrA->value.ui32 > attrB->value.ui32) in Compare()1040 if (attrA->value.ui32 < attrB->value.ui32) in Compare()1045 if (attrA->value.ui64 > attrB->value.ui64) in Compare()1047 if (attrA->value.ui64 < attrB->value.ui64) in Compare()[all …]