Lines Matching refs:a
519 #define KEYMASTER_SIMPLE_COMPARE(a, b) (a < b) ? -1 : ((a > b) ? 1 : 0) argument
520 inline int keymaster_param_compare(const keymaster_key_param_t* a, const keymaster_key_param_t* b) { in keymaster_param_compare() argument
521 int retval = KEYMASTER_SIMPLE_COMPARE(a->tag, b->tag); in keymaster_param_compare()
525 switch (keymaster_tag_get_type(a->tag)) { in keymaster_param_compare()
531 return KEYMASTER_SIMPLE_COMPARE(a->enumerated, b->enumerated); in keymaster_param_compare()
534 return KEYMASTER_SIMPLE_COMPARE(a->integer, b->integer); in keymaster_param_compare()
537 return KEYMASTER_SIMPLE_COMPARE(a->long_integer, b->long_integer); in keymaster_param_compare()
539 return KEYMASTER_SIMPLE_COMPARE(a->date_time, b->date_time); in keymaster_param_compare()
543 if (a->blob.data_length != 0 && b->blob.data_length == 0) in keymaster_param_compare()
545 if (a->blob.data_length == 0 && b->blob.data_length == 0) in keymaster_param_compare()
547 if (a->blob.data_length == 0 && b->blob.data_length > 0) in keymaster_param_compare()
550 retval = memcmp(a->blob.data, b->blob.data, a->blob.data_length < b->blob.data_length in keymaster_param_compare()
551 ? a->blob.data_length in keymaster_param_compare()
555 else if (a->blob.data_length != b->blob.data_length) { in keymaster_param_compare()
557 if (a->blob.data_length < b->blob.data_length) in keymaster_param_compare()
559 if (a->blob.data_length > b->blob.data_length) in keymaster_param_compare()