Home
last modified time | relevance | path

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

1234567891011

/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.c39 static int hal_open(const struct nfc_nci_device *dev UNUSED_ARGUMENT, in hal_open()
46 static int hal_write(const struct nfc_nci_device *dev UNUSED_ARGUMENT, in hal_write()
54 const struct nfc_nci_device *dev UNUSED_ARGUMENT, in hal_core_initialized()
61 const struct nfc_nci_device *dev UNUSED_ARGUMENT) { in hal_pre_discover()
66 static int hal_close(const struct nfc_nci_device *dev UNUSED_ARGUMENT) { in hal_close()
90 static int nfc_close(hw_device_t *dev) { in nfc_close() argument
91 free(dev); in nfc_close()
98 nfc_nci_device_t *dev = calloc(1, sizeof(nfc_nci_device_t)); in nfc_open() local
100 dev->common.tag = HARDWARE_DEVICE_TAG; in nfc_open()
101 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/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/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/qcom/display/msm8909/liblight/
Dlights.c118 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
123 if(!dev) { in set_light_backlight()
133 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
141 if(!dev) { in set_speaker_light_locked()
206 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
209 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
211 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
216 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
221 handle_speaker_battery_locked(dev); in set_light_battery()
227 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
[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.c124 set_light_backlight(struct light_device_t* dev, in set_light_backlight() argument
131 if(!dev) { in set_light_backlight()
160 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
168 if(!dev) { in set_speaker_light_locked()
233 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
236 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
238 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
243 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
248 handle_speaker_battery_locked(dev); in set_light_battery()
254 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/msm8909/libgralloc/
Dframebuffer.cpp57 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()
109 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
112 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dframebuffer.cpp57 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
69 dev->common.module); in fb_setSwapInterval()
70 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
77 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
80 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
83 fb_context_t *ctx = reinterpret_cast<fb_context_t*>(dev); in fb_post()
96 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
99 if(!dev) { in fb_compositionComplete()
107 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
110 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[all …]
/hardware/qcom/display/msm8998/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/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/qcom/display/msm8994/libgralloc/
Dframebuffer.cpp65 static int fb_setSwapInterval(struct framebuffer_device_t* dev, in fb_setSwapInterval() argument
79 dev->common.module); in fb_setSwapInterval()
80 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) in fb_setSwapInterval()
87 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) in fb_post() argument
90 reinterpret_cast<private_module_t*>(dev->common.module); in fb_post()
93 fb_context_t *ctx = reinterpret_cast<fb_context_t*>(dev); in fb_post()
106 static int fb_compositionComplete(struct framebuffer_device_t* dev) in fb_compositionComplete() argument
109 if(!dev) { in fb_compositionComplete()
117 int mapFrameBufferLocked(framebuffer_device_t *dev) in mapFrameBufferLocked() argument
120 reinterpret_cast<private_module_t*>(dev->common.module); in mapFrameBufferLocked()
[all …]
/hardware/qcom/display/msm8998/hdmi_cec/
Dqhdmi_cec.cpp68 static int cec_is_connected(const struct hdmi_cec_device* dev, int port_id);
162 static int cec_add_logical_address(const struct hdmi_cec_device* dev, in cec_add_logical_address() argument
169 cec_context_t* ctx = (cec_context_t*)(dev); in cec_add_logical_address()
179 static void cec_clear_logical_address(const struct hdmi_cec_device* dev) in cec_clear_logical_address() argument
181 cec_context_t* ctx = (cec_context_t*)(dev); in cec_clear_logical_address()
189 static int cec_get_physical_address(const struct hdmi_cec_device* dev, in cec_get_physical_address() argument
192 cec_context_t* ctx = (cec_context_t*)(dev); in cec_get_physical_address()
206 static int cec_send_message(const struct hdmi_cec_device* dev, in cec_send_message() argument
210 if(cec_is_connected(dev, 0) <= 0) in cec_send_message()
213 cec_context_t* ctx = (cec_context_t*)(dev); in cec_send_message()
[all …]
/hardware/qcom/display/msm8996/hdmi_cec/
Dqhdmi_cec.cpp68 static int cec_is_connected(const struct hdmi_cec_device* dev, int port_id);
162 static int cec_add_logical_address(const struct hdmi_cec_device* dev, in cec_add_logical_address() argument
169 cec_context_t* ctx = (cec_context_t*)(dev); in cec_add_logical_address()
179 static void cec_clear_logical_address(const struct hdmi_cec_device* dev) in cec_clear_logical_address() argument
181 cec_context_t* ctx = (cec_context_t*)(dev); in cec_clear_logical_address()
189 static int cec_get_physical_address(const struct hdmi_cec_device* dev, in cec_get_physical_address() argument
192 cec_context_t* ctx = (cec_context_t*)(dev); in cec_get_physical_address()
206 static int cec_send_message(const struct hdmi_cec_device* dev, in cec_send_message() argument
210 if(cec_is_connected(dev, 0) <= 0) in cec_send_message()
213 cec_context_t* ctx = (cec_context_t*)(dev); in cec_send_message()
[all …]
/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()
/hardware/qcom/gps/msm8909/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/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/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/libhardware/modules/gralloc/
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 …]

1234567891011