Lines Matching refs:ret
18 int ret; in finger_find() local
20 ret = sensor_attr_set(dev, SENSOR_CHAN_FINGERPRINT, in finger_find()
22 if (ret != 0) { in finger_find()
23 printk("Capture fingerprint failed %d\n", ret); in finger_find()
27 ret = sensor_attr_get(dev, SENSOR_CHAN_FINGERPRINT, in finger_find()
29 if (ret != 0) { in finger_find()
30 printk("Find fingerprint failed %d\n", ret); in finger_find()
39 int ret; in finger_enroll() local
41 ret = sensor_attr_set(dev, SENSOR_CHAN_FINGERPRINT, in finger_enroll()
43 if (ret != 0) { in finger_enroll()
44 printk("Capture fingerprint failed %d\n", ret); in finger_enroll()
48 ret = sensor_attr_set(dev, SENSOR_CHAN_FINGERPRINT, in finger_enroll()
50 if (ret != 0) { in finger_enroll()
51 printk("Create template failed %d\n", ret); in finger_enroll()
55 ret = sensor_attr_set(dev, SENSOR_CHAN_FINGERPRINT, in finger_enroll()
57 if (!ret) { in finger_enroll()
61 printk("Fingerprint store failed %d\n", ret); in finger_enroll()
67 int ret; in template_count_get() local
69 ret = sensor_sample_fetch(dev); in template_count_get()
70 if (ret < 0) { in template_count_get()
71 printk("Sample Fetch Error %d\n", ret); in template_count_get()
74 ret = sensor_channel_get(dev, SENSOR_CHAN_FINGERPRINT, &count); in template_count_get()
75 if (ret < 0) { in template_count_get()
76 printk("Channel Get Error %d\n", ret); in template_count_get()
84 int ret; in r502a_led() local
100 ret = led_set_color(led_dev, led_num, led_color_a_inst, &led_color); in r502a_led()
101 if (ret != 0) { in r502a_led()
102 printk("led set color failed %d\n", ret); in r502a_led()
106 ret = led_on(led_dev, led_num); in r502a_led()
107 if (ret != 0) { in r502a_led()
108 printk("led on failed %d\n", ret); in r502a_led()
127 int ret = 0; in read_fps_param() local
130 ret = r502a_read_sys_param(dev, &res); in read_fps_param()
131 if (ret != 0) { in read_fps_param()
132 printk("r502a read system parameter failed %d\n", ret); in read_fps_param()
144 int ret; in main() local
158 ret = r502a_led(); in main()
159 if (ret != 0) { in main()
160 printk("Error: device led failed to set %d", ret); in main()
169 ret = sensor_attr_set(dev, SENSOR_CHAN_FINGERPRINT, SENSOR_ATTR_R502A_RECORD_DEL, &del); in main()
170 if (ret != 0) { in main()
171 printk("Sensor attr set failed %d\n", ret); in main()
176 ret = sensor_attr_get(dev, SENSOR_CHAN_FINGERPRINT, in main()
178 if (ret != 0) { in main()
179 printk("Sensor attr get failed %d\n", ret); in main()
193 ret = sensor_trigger_set(dev, &trig, trigger_handler); in main()
194 if (ret != 0) { in main()