Lines Matching refs:dev
28 static int fingerprint_close(hw_device_t *dev) in fingerprint_close() argument
30 if (dev) { in fingerprint_close()
31 free(dev); in fingerprint_close()
39 static uint64_t fingerprint_pre_enroll(struct fingerprint_device __unused *dev) { in fingerprint_pre_enroll() argument
43 static int fingerprint_enroll(struct fingerprint_device __unused *dev, in fingerprint_enroll() argument
50 static uint64_t fingerprint_get_auth_id(struct fingerprint_device __unused *dev) { in fingerprint_get_auth_id() argument
54 static int fingerprint_cancel(struct fingerprint_device __unused *dev) { in fingerprint_cancel() argument
58 static int fingerprint_remove(struct fingerprint_device __unused *dev, in fingerprint_remove() argument
63 static int fingerprint_set_active_group(struct fingerprint_device __unused *dev, in fingerprint_set_active_group() argument
68 static int fingerprint_authenticate(struct fingerprint_device __unused *dev, in fingerprint_authenticate() argument
73 static int set_notify_callback(struct fingerprint_device *dev, in set_notify_callback() argument
76 dev->notify = notify; in set_notify_callback()
88 fingerprint_device_t *dev = malloc(sizeof(fingerprint_device_t)); in fingerprint_open() local
89 memset(dev, 0, sizeof(fingerprint_device_t)); in fingerprint_open()
91 dev->common.tag = HARDWARE_DEVICE_TAG; in fingerprint_open()
92 dev->common.version = FINGERPRINT_MODULE_API_VERSION_2_0; in fingerprint_open()
93 dev->common.module = (struct hw_module_t*) module; in fingerprint_open()
94 dev->common.close = fingerprint_close; in fingerprint_open()
96 dev->pre_enroll = fingerprint_pre_enroll; in fingerprint_open()
97 dev->enroll = fingerprint_enroll; in fingerprint_open()
98 dev->get_authenticator_id = fingerprint_get_auth_id; in fingerprint_open()
99 dev->cancel = fingerprint_cancel; in fingerprint_open()
100 dev->remove = fingerprint_remove; in fingerprint_open()
101 dev->set_active_group = fingerprint_set_active_group; in fingerprint_open()
102 dev->authenticate = fingerprint_authenticate; in fingerprint_open()
103 dev->set_notify = set_notify_callback; in fingerprint_open()
104 dev->notify = NULL; in fingerprint_open()
106 *device = (hw_device_t*) dev; in fingerprint_open()