Lines Matching refs:attrA
54 static int Compare(const device_attr* attrA,
820 device_attr_private::Compare(const device_attr* attrA, const device_attr *attrB) in Compare() argument
822 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()
847 return strcmp(attrA->value.string, attrB->value.string); in Compare()
850 if (attrA->value.raw.length != attrB->value.raw.length) in Compare()
853 return memcmp(attrA->value.raw.data, attrB->value.raw.data, in Compare()
854 attrA->value.raw.length); in Compare()