Home
last modified time | relevance | path

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

123456789

/hardware/libhardware/modules/fingerprint/
Dfingerprint.c25 static int fingerprint_close(hw_device_t *dev) in fingerprint_close() argument
27 if (dev) { in fingerprint_close()
28 free(dev); in fingerprint_close()
36 static uint64_t fingerprint_pre_enroll(struct fingerprint_device __unused *dev) { in fingerprint_pre_enroll() argument
40 static int fingerprint_enroll(struct fingerprint_device __unused *dev, in fingerprint_enroll() argument
47 static uint64_t fingerprint_get_auth_id(struct fingerprint_device __unused *dev) { in fingerprint_get_auth_id() argument
51 static int fingerprint_cancel(struct fingerprint_device __unused *dev) { in fingerprint_cancel() argument
55 static int fingerprint_remove(struct fingerprint_device __unused *dev, in fingerprint_remove() argument
60 static int fingerprint_set_active_group(struct fingerprint_device __unused *dev, in fingerprint_set_active_group() argument
65 static int fingerprint_authenticate(struct fingerprint_device __unused *dev, in fingerprint_authenticate() argument
[all …]
/hardware/libhardware/modules/nfc-nci/
Dnfc_nci_example.c28 static int hal_open(const struct nfc_nci_device *dev, in hal_open() argument
34 static int hal_write(const struct nfc_nci_device *dev, in hal_write() argument
40 static int hal_core_initialized(const struct nfc_nci_device *dev, in hal_core_initialized() argument
46 static int hal_pre_discover(const struct nfc_nci_device *dev) { in hal_pre_discover() argument
51 static int hal_close(const struct nfc_nci_device *dev) { in hal_close() argument
73 static int nfc_close(hw_device_t *dev) { in nfc_close() argument
74 free(dev); in nfc_close()
81 nfc_nci_device_t *dev = calloc(1, sizeof(nfc_nci_device_t)); in nfc_open() local
83 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
84 dev->common.version = 0x00010000; // [31:16] major, [15:0] minor 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/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/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/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/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/msm8994/libgralloc/
Dframebuffer.cpp65 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
77 dev->common.module); in fb_setSwapInterval()
78 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
88 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
91 fb_context_t *ctx = reinterpret_cast<fb_context_t*>(dev); in fb_post()
104 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
107 if(!dev) { in fb_compositionComplete()
115 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
118 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[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/libhardware/modules/gralloc/
Dgralloc.cpp47 static int gralloc_alloc_buffer(alloc_device_t* dev,
104 static int gralloc_alloc_framebuffer_locked(alloc_device_t* dev, in gralloc_alloc_framebuffer_locked() argument
108 dev->common.module); in gralloc_alloc_framebuffer_locked()
128 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); in gralloc_alloc_framebuffer_locked()
157 static int gralloc_alloc_framebuffer(alloc_device_t* dev, in gralloc_alloc_framebuffer() argument
161 dev->common.module); in gralloc_alloc_framebuffer()
163 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer()
168 static int gralloc_alloc_buffer(alloc_device_t* dev, in gralloc_alloc_buffer() argument
185 dev->common.module); in gralloc_alloc_buffer()
199 static int gralloc_alloc(alloc_device_t* dev, in gralloc_alloc() argument
[all …]
Dframebuffer.cpp67 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
70 fb_context_t* ctx = (fb_context_t*)dev; in fb_setSwapInterval()
71 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
77 static int fb_setUpdateRect(struct framebuffer_device_t* dev, in fb_setUpdateRect() argument
83 fb_context_t* ctx = (fb_context_t*)dev; in fb_setUpdateRect()
85 dev->common.module); in fb_setUpdateRect()
92 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
97 fb_context_t* ctx = (fb_context_t*)dev; in fb_post()
101 dev->common.module); in fb_post()
313 static int fb_close(struct hw_device_t *dev) argument
[all …]
/hardware/libhardware/modules/consumerir/
Dconsumerir.c36 static int consumerir_transmit(struct consumerir_device *dev __unused, in consumerir_transmit()
52 static int consumerir_get_num_carrier_freqs(struct consumerir_device *dev __unused) in consumerir_get_num_carrier_freqs()
57 static int consumerir_get_carrier_freqs(struct consumerir_device *dev __unused, in consumerir_get_carrier_freqs()
67 static int consumerir_close(hw_device_t *dev) in consumerir_close() argument
69 free(dev); in consumerir_close()
87 consumerir_device_t *dev = malloc(sizeof(consumerir_device_t)); in consumerir_open() local
88 memset(dev, 0, sizeof(consumerir_device_t)); in consumerir_open()
90 dev->common.tag = HARDWARE_DEVICE_TAG; in consumerir_open()
91 dev->common.version = 0; in consumerir_open()
92 dev->common.module = (struct hw_module_t*) module; in consumerir_open()
[all …]
/hardware/libhardware/modules/hwcomposer/
Dhwcomposer.cpp71 static int hwc_prepare(hwc_composer_device_1_t *dev, in hwc_prepare() argument
82 static int hwc_set(hwc_composer_device_1_t *dev, in hwc_set() argument
97 static int hwc_device_close(struct hw_device_t *dev) in hwc_device_close() argument
99 struct hwc_context_t* ctx = (struct hwc_context_t*)dev; in hwc_device_close()
113 struct hwc_context_t *dev; in hwc_device_open() local
114 dev = (hwc_context_t*)malloc(sizeof(*dev)); in hwc_device_open()
117 memset(dev, 0, sizeof(*dev)); in hwc_device_open()
120 dev->device.common.tag = HARDWARE_DEVICE_TAG; in hwc_device_open()
121 dev->device.common.version = HWC_DEVICE_API_VERSION_1_0; in hwc_device_open()
122 dev->device.common.module = const_cast<hw_module_t*>(module); in hwc_device_open()
[all …]
/hardware/qcom/display/msm8960/liblight/
Dlights.c131 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
143 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
230 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
233 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
235 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
240 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
245 handle_speaker_battery_locked(dev); in set_light_notifications()
251 set_light_attention(struct light_device_t* dev, in set_light_attention() argument
260 handle_speaker_battery_locked(dev); in set_light_attention()
268 close_lights(struct light_device_t *dev) in close_lights() argument
[all …]
/hardware/qcom/display/msm8974/liblight/
Dlights.c131 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
143 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
230 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
233 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
235 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
240 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
245 handle_speaker_battery_locked(dev); in set_light_notifications()
251 set_light_attention(struct light_device_t* dev, in set_light_attention() argument
260 handle_speaker_battery_locked(dev); in set_light_attention()
268 close_lights(struct light_device_t *dev) in close_lights() argument
[all …]
/hardware/qcom/gps/msm8974/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/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/display/msm8974/libgralloc/
Dframebuffer.cpp64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
76 dev->common.module); in fb_setSwapInterval()
77 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
84 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
87 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
101 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
351 static int fb_close(struct hw_device_t *dev) in fb_close() argument
353 fb_context_t* ctx = (fb_context_t*)dev; in fb_close()
371 fb_context_t *dev = (fb_context_t*)malloc(sizeof(*dev)); in fb_device_open() local
372 memset(dev, 0, sizeof(*dev)); in fb_device_open()
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dframebuffer.cpp64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
76 dev->common.module); in fb_setSwapInterval()
77 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
84 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
87 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
101 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
345 static int fb_close(struct hw_device_t *dev) in fb_close() argument
347 fb_context_t* ctx = (fb_context_t*)dev; in fb_close()
365 fb_context_t *dev = (fb_context_t*)malloc(sizeof(*dev)); in fb_device_open() local
366 memset(dev, 0, sizeof(*dev)); in fb_device_open()
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc.cpp68 static void hwc_registerProcs(struct hwc_composer_device_1* dev, in hwc_registerProcs() argument
72 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_registerProcs()
136 static int hwc_prepare_primary(hwc_composer_device_1 *dev, in hwc_prepare_primary() argument
138 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_prepare_primary()
165 static int hwc_prepare_external(hwc_composer_device_1 *dev, in hwc_prepare_external() argument
167 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_prepare_external()
201 static int hwc_prepare_virtual(hwc_composer_device_1 *dev, in hwc_prepare_virtual() argument
207 static int hwc_prepare(hwc_composer_device_1 *dev, size_t numDisplays, in hwc_prepare() argument
211 hwc_context_t* ctx = (hwc_context_t*)(dev); in hwc_prepare()
223 ret = hwc_prepare_primary(dev, list); in hwc_prepare()
[all …]
/hardware/qcom/display/msm8226/libgralloc/
Dframebuffer.cpp64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
76 dev->common.module); in fb_setSwapInterval()
77 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
84 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
87 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
102 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
105 if(!dev) { in fb_compositionComplete()
367 static int fb_close(struct hw_device_t *dev) in fb_close() argument
369 fb_context_t* ctx = (fb_context_t*)dev; in fb_close()
389 fb_context_t *dev = (fb_context_t*)malloc(sizeof(*dev)); in fb_device_open() local
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dframebuffer.cpp64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
76 dev->common.module); in fb_setSwapInterval()
77 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
84 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
87 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
101 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
104 if(!dev) { in fb_compositionComplete()
366 static int fb_close(struct hw_device_t *dev) in fb_close() argument
368 fb_context_t* ctx = (fb_context_t*)dev; in fb_close()
388 fb_context_t *dev = (fb_context_t*)malloc(sizeof(*dev)); in fb_device_open() local
[all …]
/hardware/qcom/gps/msm8960/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
46 memset(dev, 0, sizeof(*dev)); in open_gps()
48 dev->common.tag = HARDWARE_DEVICE_TAG; in open_gps()
49 dev->common.version = 0; in open_gps()
50 dev->common.module = (struct hw_module_t*)module; in open_gps()
51 dev->get_gps_interface = gps__get_gps_interface; in open_gps()
53 *device = (struct hw_device_t*)dev; in open_gps()

123456789