Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/hardware/libhardware/modules/fingerprint/
Dfingerprint.c28 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
[all …]
/hardware/interfaces/keymaster/3.0/default/
DKeymasterDevice.cpp36 static int get_keymaster0_dev(keymaster0_device_t** dev, const hw_module_t* mod) { in get_keymaster0_dev() argument
37 int rc = keymaster0_open(mod, dev); in get_keymaster0_dev()
40 *dev = nullptr; in get_keymaster0_dev()
46 static int get_keymaster1_dev(keymaster1_device_t** dev, const hw_module_t* mod) { in get_keymaster1_dev() argument
47 int rc = keymaster1_open(mod, dev); in get_keymaster1_dev()
50 if (*dev) { in get_keymaster1_dev()
51 (*dev)->common.close(&(*dev)->common); in get_keymaster1_dev()
52 *dev = nullptr; in get_keymaster1_dev()
58 static int get_keymaster2_dev(keymaster2_device_t** dev, const hw_module_t* mod) { in get_keymaster2_dev() argument
59 int rc = keymaster2_open(mod, dev); in get_keymaster2_dev()
[all …]
/hardware/st/nfc/1.0/
Dnfc_nci_st21nfc.c34 extern bool I2cOpenLayer(void* dev, HAL_CALLBACK callb, HALHANDLE* pHandle);
57 extern bool hal_wrapper_open(st21nfc_dev_t* dev, nfc_stack_callback_t* p_cback,
71 st21nfc_dev_t* dev = (st21nfc_dev_t*)p_dev; in hal_open() local
75 dev->p_cback = p_cback; in hal_open()
76 dev->p_data_cback = p_data_cback; in hal_open()
80 result = hal_wrapper_open(dev, p_cback, p_data_cback, &dev->hHAL); in hal_open()
82 if (!result || !dev->hHAL) in hal_open()
84 dev->p_cback(HAL_NFC_OPEN_CPLT_EVT, HAL_NFC_STATUS_FAILED); in hal_open()
97 st21nfc_dev_t* dev = (st21nfc_dev_t*)p_dev; in hal_write() local
112 if (!HalSendDownstream(dev->hHAL, p_data, data_len)) in hal_write()
[all …]
/hardware/libhardware/modules/nfc/
Dnfc_pn544_example.c24 static int pn544_close(hw_device_t *dev) { in pn544_close() argument
25 free(dev); in pn544_close()
35 nfc_pn544_device_t *dev = calloc(1, sizeof(nfc_pn544_device_t)); in nfc_open() local
37 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
38 dev->common.version = 0; in nfc_open()
39 dev->common.module = (struct hw_module_t*) module; in nfc_open()
40 dev->common.close = pn544_close; in nfc_open()
43 dev->num_eeprom_settings = 0; in nfc_open()
44 dev->eeprom_settings = NULL; in nfc_open()
45 dev->linktype = PN544_LINK_TYPE_INVALID; in nfc_open()
[all …]
/hardware/libhardware/modules/tv_input/
Dtv_input.cpp57 static int tv_input_initialize(struct tv_input_device* dev, in tv_input_initialize() argument
60 if (dev == NULL || callback == NULL) { in tv_input_initialize()
63 tv_input_private_t* priv = (tv_input_private_t*)dev; in tv_input_initialize()
103 static int tv_input_device_close(struct hw_device_t *dev) in tv_input_device_close() argument
105 tv_input_private_t* priv = (tv_input_private_t*)dev; in tv_input_device_close()
119 tv_input_private_t* dev = (tv_input_private_t*)malloc(sizeof(*dev)); in tv_input_device_open() local
122 memset(dev, 0, sizeof(*dev)); in tv_input_device_open()
125 dev->device.common.tag = HARDWARE_DEVICE_TAG; in tv_input_device_open()
126 dev->device.common.version = TV_INPUT_DEVICE_API_VERSION_0_1; in tv_input_device_open()
127 dev->device.common.module = const_cast<hw_module_t*>(module); in tv_input_device_open()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
Dacoustics_default.cpp53 acoustic_device_t *dev; in s_device_open() local
54 dev = (acoustic_device_t *) malloc(sizeof(*dev)); in s_device_open()
55 if (!dev) return -ENOMEM; in s_device_open()
57 memset(dev, 0, sizeof(*dev)); in s_device_open()
60 dev->common.tag = HARDWARE_DEVICE_TAG; in s_device_open()
61 dev->common.version = 0; in s_device_open()
62 dev->common.module = (hw_module_t *) module; in s_device_open()
63 dev->common.close = s_device_close; in s_device_open()
66 dev->use_handle = s_use_handle; in s_device_open()
67 dev->cleanup = s_cleanup; in s_device_open()
[all …]
/hardware/qcom/display/msm8996/liblight/
Dlights.c115 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
120 if(!dev) { in set_light_backlight()
130 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
138 if(!dev) { in set_speaker_light_locked()
203 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
206 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
208 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
213 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
218 handle_speaker_battery_locked(dev); in set_light_battery()
224 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
[all …]
/hardware/qcom/display/msm8226/liblight/
Dlights.c114 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
119 if(!dev) { in set_light_backlight()
129 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
137 if(!dev) { in set_speaker_light_locked()
193 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
196 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
198 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
203 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
208 handle_speaker_battery_locked(dev); in set_light_battery()
214 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
[all …]
/hardware/qcom/display/msm8994/liblight/
Dlights.c115 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
120 if(!dev) { in set_light_backlight()
130 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
138 if(!dev) { in set_speaker_light_locked()
194 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
197 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
199 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
204 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
209 handle_speaker_battery_locked(dev); in set_light_battery()
215 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
[all …]
/hardware/libhardware/modules/nfc-nci/
Dnfc_nci_example.cpp74 static int nfc_close(hw_device_t *dev) { in nfc_close() argument
75 free(dev); in nfc_close()
82 nfc_nci_device_t *dev = static_cast<nfc_nci_device_t*>( in nfc_open() local
85 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
86 dev->common.version = 0x00010000; // [31:16] major, [15:0] minor in nfc_open()
87 dev->common.module = (struct hw_module_t*) module; in nfc_open()
88 dev->common.close = nfc_close; in nfc_open()
91 dev->open = hal_open; in nfc_open()
92 dev->write = hal_write; in nfc_open()
93 dev->core_initialized = hal_core_initialized; in nfc_open()
[all …]
/hardware/qcom/display/msm8084/liblight/
Dlights.c114 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
119 if(!dev) { in set_light_backlight()
129 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
137 if(!dev) { in set_speaker_light_locked()
187 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
190 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
192 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
197 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
202 handle_speaker_battery_locked(dev); in set_light_notifications()
208 set_light_attention(struct light_device_t* dev, in set_light_attention() argument
[all …]
/hardware/qcom/display/msm8998/liblight/
Dlights.c127 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
134 if(!dev) { in set_light_backlight()
167 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
175 if(!dev) { in set_speaker_light_locked()
240 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
243 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
245 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
250 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
255 handle_speaker_battery_locked(dev); in set_light_battery()
261 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
[all …]
/hardware/libhardware/include/hardware/
Dkeymaster1.h56 int (*generate_keypair)(const struct keymaster1_device* dev, const keymaster_keypair_t key_type,
66 int (*import_keypair)(const struct keymaster1_device* dev, const uint8_t* key,
76 int (*get_keypair_public)(const struct keymaster1_device* dev, const uint8_t* key_blob,
88 int (*delete_keypair)(const struct keymaster1_device* dev, const uint8_t* key_blob,
100 int (*delete_all)(const struct keymaster1_device* dev);
108 int (*sign_data)(const struct keymaster1_device* dev, const void* signing_params,
118 int (*verify_data)(const struct keymaster1_device* dev, const void* signing_params,
133 keymaster_error_t (*get_supported_algorithms)(const struct keymaster1_device* dev,
149 keymaster_error_t (*get_supported_block_modes)(const struct keymaster1_device* dev,
168 keymaster_error_t (*get_supported_padding_modes)(const struct keymaster1_device* dev,
[all …]
/hardware/qcom/display/msm8909w_3100/liblight/
Dlights.c129 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
136 if(!dev) { in set_light_backlight()
169 set_light_backlight_ext(struct light_device_t* dev, in set_light_backlight_ext() argument
174 if(!dev) { in set_light_backlight_ext()
191 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
199 if(!dev) { in set_speaker_light_locked()
264 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
267 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
269 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
274 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
[all …]
/hardware/qcom/display/msm8909/liblight/
Dlights.c127 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
134 if(!dev) { in set_light_backlight()
167 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
175 if(!dev) { in set_speaker_light_locked()
240 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
243 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
245 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
250 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
255 handle_speaker_battery_locked(dev); in set_light_battery()
261 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
[all …]
/hardware/libhardware/modules/consumerir/
Dconsumerir.c40 static int consumerir_transmit(struct consumerir_device *dev __unused, in consumerir_transmit()
56 static int consumerir_get_num_carrier_freqs(struct consumerir_device *dev __unused) in consumerir_get_num_carrier_freqs()
61 static int consumerir_get_carrier_freqs(struct consumerir_device *dev __unused, in consumerir_get_carrier_freqs()
71 static int consumerir_close(hw_device_t *dev) in consumerir_close() argument
73 free(dev); in consumerir_close()
91 consumerir_device_t *dev = malloc(sizeof(consumerir_device_t)); in consumerir_open() local
92 memset(dev, 0, sizeof(consumerir_device_t)); in consumerir_open()
94 dev->common.tag = HARDWARE_DEVICE_TAG; in consumerir_open()
95 dev->common.version = 0; in consumerir_open()
96 dev->common.module = (struct hw_module_t*) module; in consumerir_open()
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dframebuffer.cpp59 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
71 dev->common.module); in fb_setSwapInterval()
72 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
79 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
82 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
85 fb_context_t *ctx = reinterpret_cast<fb_context_t*>(dev); in fb_post()
98 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
101 if(!dev) { in fb_compositionComplete()
111 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
114 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[all …]
/hardware/qcom/display/msm8909/libgralloc/
Dframebuffer.cpp59 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
71 dev->common.module); in fb_setSwapInterval()
72 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
79 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
82 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
85 fb_context_t *ctx = reinterpret_cast<fb_context_t*>(dev); in fb_post()
98 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
101 if(!dev) { in fb_compositionComplete()
111 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
114 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dframebuffer.cpp54 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
66 dev->common.module); in fb_setSwapInterval()
67 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
74 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
77 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
80 fb_context_t *ctx = reinterpret_cast<fb_context_t*>(dev); in fb_post()
93 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
96 if(!dev) { in fb_compositionComplete()
104 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
107 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[all …]
/hardware/qcom/sdm845/gps/msm8084/loc_api/libloc_api_50001/
Dgps.c37 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) in gps__get_gps_interface() argument
45 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); in open_gps() local
47 if(dev == NULL) in open_gps()
50 memset(dev, 0, sizeof(*dev)); in open_gps()
52 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
53 dev->common.version = 0; in open_gps()
54 dev->common.module = (struct hw_module_t*)module; in open_gps()
55 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
57 *device = (struct hw_device_t*)dev; in open_gps()
/hardware/qcom/sdm845/gps/loc_api/libloc_api_50001/
Dgps.c37 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) in gps__get_gps_interface() argument
45 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); in open_gps() local
47 if(dev == NULL) in open_gps()
50 memset(dev, 0, sizeof(*dev)); in open_gps()
52 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
53 dev->common.version = 0; in open_gps()
54 dev->common.module = (struct hw_module_t*)module; in open_gps()
55 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
57 *device = (struct hw_device_t*)dev; in open_gps()
/hardware/qcom/sdm845/gps/msm8994/loc_api/libloc_api_50001/
Dgps.c37 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) in gps__get_gps_interface() argument
45 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); in open_gps() local
47 if(dev == NULL) in open_gps()
50 memset(dev, 0, sizeof(*dev)); in open_gps()
52 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
53 dev->common.version = 0; in open_gps()
54 dev->common.module = (struct hw_module_t*)module; in open_gps()
55 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
57 *device = (struct hw_device_t*)dev; in open_gps()
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
Dgps.c37 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) in gps__get_gps_interface() argument
45 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); in open_gps() local
47 if(dev == NULL) in open_gps()
50 memset(dev, 0, sizeof(*dev)); in open_gps()
52 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
53 dev->common.version = 0; in open_gps()
54 dev->common.module = (struct hw_module_t*)module; in open_gps()
55 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
57 *device = (struct hw_device_t*)dev; in open_gps()
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dgps.c37 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) in gps__get_gps_interface() argument
45 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); in open_gps() local
47 if(dev == NULL) in open_gps()
50 memset(dev, 0, sizeof(*dev)); in open_gps()
52 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
53 dev->common.version = 0; in open_gps()
54 dev->common.module = (struct hw_module_t*)module; in open_gps()
55 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
57 *device = (struct hw_device_t*)dev; in open_gps()
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dgps.c37 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) in gps__get_gps_interface() argument
45 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); in open_gps() local
47 if(dev == NULL) in open_gps()
50 memset(dev, 0, sizeof(*dev)); in open_gps()
52 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
53 dev->common.version = 0; in open_gps()
54 dev->common.module = (struct hw_module_t*)module; in open_gps()
55 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
57 *device = (struct hw_device_t*)dev; in open_gps()

12345678910>>...13