Lines Matching refs:tmp2
41 const struct iio_channel *tmp2 = *(struct iio_channel **)p2; in iio_channel_compare() local
44 if (iio_channel_is_scan_element(tmp1) && !iio_channel_is_scan_element(tmp2)) in iio_channel_compare()
46 if (!iio_channel_is_scan_element(tmp1) && iio_channel_is_scan_element(tmp2)) in iio_channel_compare()
49 if (iio_channel_is_scan_element(tmp1) && iio_channel_is_scan_element(tmp2)){ in iio_channel_compare()
50 if (iio_channel_get_index(tmp1) > iio_channel_get_index(tmp2)) in iio_channel_compare()
55 if (strcmp(tmp1->id, tmp2->id) == 0) in iio_channel_compare()
59 return strcmp(tmp1->id, tmp2->id); in iio_channel_compare()
65 const struct iio_channel_attr *tmp2 = (struct iio_channel_attr *)p2; in iio_channel_attr_compare() local
67 return strcmp(tmp1->name, tmp2->name); in iio_channel_attr_compare()
73 const struct iio_device *tmp2 = *(struct iio_device **)p2; in iio_device_compare() local
75 return strcmp(tmp1->id, tmp2->id); in iio_device_compare()
81 const char *tmp2 = *(const char **)p2; in iio_device_attr_compare() local
83 return strcmp(tmp1, tmp2); in iio_device_attr_compare()
89 const char *tmp2 = *(const char **)p2; in iio_buffer_attr_compare() local
91 return strcmp(tmp1, tmp2); in iio_buffer_attr_compare()