/hardware/libhardware/modules/nfc/ |
H A D | nfc_pn544_example.c | 23 static int pn544_close(hw_device_t *dev) { argument 24 free(dev); 34 nfc_pn544_device_t *dev = calloc(1, sizeof(nfc_pn544_device_t)); local 36 dev->common.tag = HARDWARE_DEVICE_TAG; 37 dev->common.version = 0; 38 dev->common.module = (struct hw_module_t*) module; 39 dev->common.close = pn544_close; 42 dev->num_eeprom_settings = 0; 43 dev->eeprom_settings = NULL; 44 dev [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | gralloc.cpp | 106 gpu_context_t *dev; local 108 dev = new gpu_context_t(m, alloc_ctrl); 109 *device = &dev->common;
|
H A D | framebuffer.cpp | 64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 75 fb_context_t* ctx = (fb_context_t*)dev; 77 dev->common.module); 78 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 88 reinterpret_cast<private_module_t*>(dev->common.module); 102 static int fb_compositionComplete(struct framebuffer_device_t* dev) argument 117 "/dev/graphics/fb%u", 118 "/dev/f 347 fb_close(struct hw_device_t *dev) argument [all...] |
H A D | gpu.cpp | 333 int gpu_context_t::gralloc_alloc(alloc_device_t* dev, int w, int h, int format, argument 337 if (!dev) { 340 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 343 int gpu_context_t::gralloc_alloc_size(alloc_device_t* dev, int w, int h, argument 348 if (!dev) { 351 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 356 int gpu_context_t::gralloc_free(alloc_device_t* dev, argument 363 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 369 int gpu_context_t::gralloc_close(struct hw_device_t *dev) argument 371 gpu_context_t* ctx = reinterpret_cast<gpu_context_t*>(dev); [all...] |
/hardware/qcom/display/msm8974/libgralloc/ |
H A D | gralloc.cpp | 106 gpu_context_t *dev; local 108 dev = new gpu_context_t(m, alloc_ctrl); 109 *device = &dev->common;
|
H A D | framebuffer.cpp | 64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 75 fb_context_t* ctx = (fb_context_t*)dev; 77 dev->common.module); 78 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 88 reinterpret_cast<private_module_t*>(dev->common.module); 102 static int fb_compositionComplete(struct framebuffer_device_t* dev) argument 117 "/dev/graphics/fb%u", 118 "/dev/f 353 fb_close(struct hw_device_t *dev) argument [all...] |
H A D | gpu.cpp | 348 int gpu_context_t::gralloc_alloc(alloc_device_t* dev, int w, int h, int format, argument 352 if (!dev) { 355 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 358 int gpu_context_t::gralloc_alloc_size(alloc_device_t* dev, int w, int h, argument 363 if (!dev) { 366 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 371 int gpu_context_t::gralloc_free(alloc_device_t* dev, argument 378 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 384 int gpu_context_t::gralloc_close(struct hw_device_t *dev) argument 386 gpu_context_t* ctx = reinterpret_cast<gpu_context_t*>(dev); [all...] |
/hardware/qcom/display/msm8x26/libgralloc/ |
H A D | gralloc.cpp | 106 gpu_context_t *dev; local 108 dev = new gpu_context_t(m, alloc_ctrl); 109 *device = &dev->common;
|
/hardware/libhardware/modules/local_time/ |
H A D | local_time_hw.c | 34 static int64_t ltdev_get_local_time(struct local_time_hw_device* dev) argument 43 dev->common.module->name, ret); 53 static uint64_t ltdev_get_local_freq(struct local_time_hw_device* dev) argument
|
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | acoustics_default.cpp | 53 acoustic_device_t *dev; local 54 dev = (acoustic_device_t *) malloc(sizeof(*dev)); 55 if (!dev) return -ENOMEM; 57 memset(dev, 0, sizeof(*dev)); 60 dev->common.tag = HARDWARE_DEVICE_TAG; 61 dev->common.version = 0; 62 dev->common.module = (hw_module_t *) module; 63 dev 82 s_use_handle(acoustic_device_t *dev, alsa_handle_t *h) argument 87 s_cleanup(acoustic_device_t *dev) argument 93 s_set_params(acoustic_device_t *dev, AudioSystem::audio_in_acoustics acoustics, void *params) argument [all...] |
/hardware/libhardware/modules/hwcomposer/ |
H A D | hwcomposer.cpp | 70 static int hwc_prepare(hwc_composer_device_1_t *dev, argument 81 static int hwc_set(hwc_composer_device_1_t *dev, argument 96 static int hwc_device_close(struct hw_device_t *dev) argument 98 struct hwc_context_t* ctx = (struct hwc_context_t*)dev; 112 struct hwc_context_t *dev; local 113 dev = (hwc_context_t*)malloc(sizeof(*dev)); 116 memset(dev, 0, sizeof(*dev)); 119 dev [all...] |
/hardware/libhardware/modules/camera/ |
H A D | CameraHAL.cpp | 89 int CameraHAL::open(const hw_module_t* mod, const char* name, hw_device_t** dev) argument 94 ALOGV("%s: module=%p, name=%s, device=%p", __func__, mod, name, dev); 107 return mCameras[id]->open(mod, dev); 127 static int open_dev(const hw_module_t* mod, const char* name, hw_device_t** dev) argument 129 return gCameraHAL.open(mod, name, dev);
|
/hardware/libhardware/modules/consumerir/ |
H A D | consumerir.c | 35 static int consumerir_transmit(struct consumerir_device *dev, argument 51 static int consumerir_get_num_carrier_freqs(struct consumerir_device *dev) argument 56 static int consumerir_get_carrier_freqs(struct consumerir_device *dev, argument 66 static int consumerir_close(hw_device_t *dev) argument 68 free(dev); 86 consumerir_device_t *dev = malloc(sizeof(consumerir_device_t)); local 87 memset(dev, 0, sizeof(consumerir_device_t)); 89 dev->common.tag = HARDWARE_DEVICE_TAG; 90 dev->common.version = 0; 91 dev [all...] |
/hardware/libhardware/modules/nfc-nci/ |
H A D | nfc_nci_example.c | 27 static int hal_open(const struct nfc_nci_device *dev, argument 33 static int hal_write(const struct nfc_nci_device *dev, argument 39 static int hal_core_initialized(const struct nfc_nci_device *dev, argument 45 static int hal_pre_discover(const struct nfc_nci_device *dev) { argument 50 static int hal_close(const struct nfc_nci_device *dev) { argument 72 static int nfc_close(hw_device_t *dev) { argument 73 free(dev); 80 nfc_nci_device_t *dev = calloc(1, sizeof(nfc_nci_device_t)); local 82 dev->common.tag = HARDWARE_DEVICE_TAG; 83 dev [all...] |
/hardware/libhardware/modules/gralloc/ |
H A D | gralloc.cpp | 47 static int gralloc_alloc_buffer(alloc_device_t* dev, 104 static int gralloc_alloc_framebuffer_locked(alloc_device_t* dev, argument 108 dev->common.module); 128 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); 157 static int gralloc_alloc_framebuffer(alloc_device_t* dev, argument 161 dev->common.module); 163 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); 168 static int gralloc_alloc_buffer(alloc_device_t* dev, argument 185 dev->common.module); 199 static int gralloc_alloc(alloc_device_t* dev, argument 245 gralloc_free(alloc_device_t* dev, buffer_handle_t handle) argument 272 gralloc_close(struct hw_device_t *dev) argument 289 gralloc_context_t *dev; local [all...] |
H A D | framebuffer.cpp | 60 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 63 fb_context_t* ctx = (fb_context_t*)dev; 64 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 70 static int fb_setUpdateRect(struct framebuffer_device_t* dev, argument 76 fb_context_t* ctx = (fb_context_t*)dev; 78 dev->common.module); 85 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 90 fb_context_t* ctx = (fb_context_t*)dev; 94 dev 301 fb_close(struct hw_device_t *dev) argument 316 fb_context_t *dev = (fb_context_t*)malloc(sizeof(*dev)); local [all...] |
/hardware/akm/AK8975_FS/libsensors/ |
H A D | sensors.cpp | 323 static int poll__close(struct hw_device_t *dev) 325 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; 332 static int poll__activate(struct sensors_poll_device_t *dev, 334 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; 338 static int poll__setDelay(struct sensors_poll_device_t *dev, argument 340 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; 344 static int poll__poll(struct sensors_poll_device_t *dev, argument 346 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev; 357 sensors_poll_context_t *dev = new sensors_poll_context_t(); local 359 memset(&dev [all...] |
/hardware/invensense/60xx/libsensors_iio/ |
H A D | sensors_mpl.cpp | 204 static int poll__close(struct hw_device_t *dev)
argument 207 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
214 static int poll__activate(struct sensors_poll_device_t *dev,
argument 217 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
221 static int poll__setDelay(struct sensors_poll_device_t *dev,
argument 224 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
229 static int poll__poll(struct sensors_poll_device_t *dev,
argument 232 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
244 sensors_poll_context_t *dev = new sensors_poll_context_t();
local 246 memset(&dev [all...] |
/hardware/invensense/65xx/libsensors_iio/ |
H A D | sensors_mpl.cpp | 318 static int poll__close(struct hw_device_t *dev)
argument 321 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
328 static int poll__activate(struct sensors_poll_device_t *dev,
argument 331 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
335 static int poll__setDelay(struct sensors_poll_device_t *dev,
argument 338 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
343 static int poll__poll(struct sensors_poll_device_t *dev,
argument 346 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
350 static int poll__query(struct sensors_poll_device_1 *dev,
argument 353 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
357 poll__batch(struct sensors_poll_device_1 *dev, int handle, int flags, int64_t period_ns, int64_t timeout) argument 372 sensors_poll_context_t *dev = new sensors_poll_context_t(); local [all...] |
/hardware/libhardware/include/hardware/ |
H A D | nfc.h | 187 nfc_nci_device_t** dev) { 189 (struct hw_device_t**) dev); 192 static inline int nfc_nci_close(nfc_nci_device_t* dev) { argument 193 return dev->common.close(&dev->common); 262 nfc_pn544_device_t** dev) { 264 (struct hw_device_t**) dev); 267 static inline int nfc_pn544_close(nfc_pn544_device_t* dev) { argument 268 return dev->common.close(&dev 186 nfc_nci_open(const struct hw_module_t* module, nfc_nci_device_t** dev) argument 261 nfc_pn544_open(const struct hw_module_t* module, nfc_pn544_device_t** dev) argument [all...] |
/hardware/qcom/display/msm8960/libcopybit/ |
H A D | copybit.cpp | 155 static void set_rects(struct copybit_context_t *dev, argument 171 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 193 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_V) { 194 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 201 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_H) { 202 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 211 static void set_infos(struct copybit_context_t *dev, argument 214 req->alpha = dev->mAlpha; 216 req->flags = dev->mFlags | flags; 218 if (COPYBIT_ENABLE == dev 227 msm_copybit(struct copybit_context_t *dev, void const *list) argument [all...] |
/hardware/qcom/display/msm8960/libhwcomposer/ |
H A D | hwc.cpp | 68 static void hwc_registerProcs(struct hwc_composer_device_1* dev, argument 72 hwc_context_t* ctx = (hwc_context_t*)(dev); 137 static int hwc_prepare_primary(hwc_composer_device_1 *dev, argument 139 hwc_context_t* ctx = (hwc_context_t*)(dev); 166 static int hwc_prepare_external(hwc_composer_device_1 *dev, argument 168 hwc_context_t* ctx = (hwc_context_t*)(dev); 202 static int hwc_prepare_virtual(hwc_composer_device_1 *dev, argument 208 static int hwc_prepare(hwc_composer_device_1 *dev, size_t numDisplays, argument 212 hwc_context_t* ctx = (hwc_context_t*)(dev); 224 ret = hwc_prepare_primary(dev, lis 243 hwc_eventControl(struct hwc_composer_device_1* dev, int dpy, int event, int enable) argument 270 hwc_blank(struct hwc_composer_device_1* dev, int dpy, int blank) argument 328 hwc_query(struct hwc_composer_device_1* dev, int param, int* value) argument 459 hwc_set(hwc_composer_device_1 *dev, size_t numDisplays, hwc_display_contents_1_t** displays) argument 489 hwc_getDisplayConfigs(struct hwc_composer_device_1* dev, int disp, uint32_t* configs, size_t* numConfigs) argument 517 hwc_getDisplayAttributes(struct hwc_composer_device_1* dev, int disp, uint32_t config, const uint32_t* attributes, int32_t* values) argument 569 hwc_dump(struct hwc_composer_device_1* dev, char *buff, int buff_len) argument 589 hwc_device_close(struct hw_device_t *dev) argument 607 struct hwc_context_t *dev; local [all...] |
/hardware/qcom/display/msm8960/liblight/ |
H A D | lights.c | 130 set_light_backlight(struct light_device_t* dev, argument 142 set_speaker_light_locked(struct light_device_t* dev, argument 230 handle_speaker_battery_locked(struct light_device_t* dev) argument 233 set_speaker_light_locked(dev, &g_battery); 235 set_speaker_light_locked(dev, &g_notification); 240 set_light_notifications(struct light_device_t* dev, argument 245 handle_speaker_battery_locked(dev); 251 set_light_attention(struct light_device_t* dev, argument 260 handle_speaker_battery_locked(dev); 268 close_lights(struct light_device_t *dev) argument 301 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); local [all...] |
/hardware/qcom/display/msm8974/libcopybit/ |
H A D | copybit.cpp | 158 static void set_rects(struct copybit_context_t *dev, argument 174 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 196 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_V) { 197 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 204 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_H) { 205 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 214 static void set_infos(struct copybit_context_t *dev, argument 217 req->alpha = dev->mAlpha; 219 req->flags = dev->mFlags | flags; 221 if (COPYBIT_ENABLE == dev 230 msm_copybit(struct copybit_context_t *dev, void const *list) argument [all...] |
/hardware/qcom/display/msm8974/liblight/ |
H A D | lights.c | 130 set_light_backlight(struct light_device_t* dev, argument 142 set_speaker_light_locked(struct light_device_t* dev, argument 230 handle_speaker_battery_locked(struct light_device_t* dev) argument 233 set_speaker_light_locked(dev, &g_battery); 235 set_speaker_light_locked(dev, &g_notification); 240 set_light_notifications(struct light_device_t* dev, argument 245 handle_speaker_battery_locked(dev); 251 set_light_attention(struct light_device_t* dev, argument 260 handle_speaker_battery_locked(dev); 268 close_lights(struct light_device_t *dev) argument 301 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); local [all...] |