/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/libgralloc/ |
H A D | gralloc.cpp | 102 gpu_context_t *dev; local 104 dev = new gpu_context_t(m, alloc_ctrl); 105 *device = &dev->common;
|
H A D | framebuffer.cpp | 66 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 77 fb_context_t* ctx = (fb_context_t*)dev; 79 dev->common.module); 80 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 87 static int fb_setUpdateRect(struct framebuffer_device_t* dev, argument 92 fb_context_t* ctx = (fb_context_t*)dev; 94 dev->common.module); 101 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 104 fb_context_t* ctx = (fb_context_t*) dev; 124 fb_compositionComplete(struct framebuffer_device_t* dev) argument 361 fb_close(struct hw_device_t *dev) argument [all...] |
H A D | gpu.cpp | 284 int gpu_context_t::gralloc_alloc(alloc_device_t* dev, int w, int h, int format, argument 288 if (!dev) { 291 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 294 int gpu_context_t::gralloc_alloc_size(alloc_device_t* dev, int w, int h, argument 299 if (!dev) { 302 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 307 int gpu_context_t::gralloc_free(alloc_device_t* dev, argument 314 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 320 int gpu_context_t::gralloc_close(struct hw_device_t *dev) argument 322 gpu_context_t* ctx = reinterpret_cast<gpu_context_t*>(dev); [all...] |
/hardware/qcom/gps/loc_api/libloc_api/ |
H A D | gps.c | 36 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) argument 44 struct gps_device_t *dev = malloc(sizeof(struct gps_device_t)); local 45 memset(dev, 0, sizeof(*dev)); 47 dev->common.tag = HARDWARE_DEVICE_TAG; 48 dev->common.version = 0; 49 dev->common.module = (struct hw_module_t*)module; 50 dev->get_gps_interface = gps__get_gps_interface; 52 *device = (struct hw_device_t*)dev;
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
H A D | gps.c | 36 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) argument 44 struct gps_device_t *dev = (struct gps_device_t *) malloc(sizeof(struct gps_device_t)); local 45 memset(dev, 0, sizeof(*dev)); 47 dev->common.tag = HARDWARE_DEVICE_TAG; 48 dev->common.version = 0; 49 dev->common.module = (struct hw_module_t*)module; 50 dev->get_gps_interface = gps__get_gps_interface; 52 *device = (struct hw_device_t*)dev;
|
/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/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/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/ti/wlan/wl1271/platforms/os/linux/src/ |
H A D | WlanDrvWext.c | 54 int wlanDrvWext_Handler (struct net_device *dev, 59 static struct iw_statistics *wlanDrvWext_GetWirelessStats (struct net_device *dev); 62 extern int wlanDrvIf_Start (struct net_device *dev); 63 extern int wlanDrvIf_Stop (struct net_device *dev); 145 void wlanDrvWext_Init (struct net_device *dev) argument 148 dev->get_wireless_stats = wlanDrvWext_GetWirelessStats; 150 dev->wireless_handlers = &tWextIf; 155 static struct iw_statistics *wlanDrvWext_GetWirelessStats(struct net_device *dev) argument 157 TWlanDrvIfObj *drv = (TWlanDrvIfObj *)NETDEV_GET_PRIVATE(dev); 164 int wlanDrvWext_Handler (struct net_device *dev, argument [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 247 gralloc_free(alloc_device_t* dev, buffer_handle_t handle) argument 274 gralloc_close(struct hw_device_t *dev) argument 291 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/msm7k/libgralloc-qsd8k/ |
H A D | gralloc.cpp | 33 static int gralloc_alloc_buffer(alloc_device_t* dev, 141 "/dev/pmem"); 144 "/dev/pmem_adsp"); 187 gpu_context_t *dev; local 188 dev = new gpu_context_t(gpuContextDeviceDepsImpl, pmemAllocator, 190 *device = &dev->common;
|
H A D | framebuffer.cpp | 67 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 70 fb_context_t* ctx = (fb_context_t*)dev; 71 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 77 static int fb_setUpdateRect(struct framebuffer_device_t* dev, argument 83 fb_context_t* ctx = (fb_context_t*)dev; 85 dev->common.module); 92 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 97 fb_context_t* ctx = (fb_context_t*)dev; 101 dev 153 fb_compositionComplete(struct framebuffer_device_t* dev) argument 355 fb_close(struct hw_device_t *dev) argument [all...] |
H A D | gpu.cpp | 305 int gpu_context_t::gralloc_alloc(alloc_device_t* dev, int w, int h, int format, argument 308 if (!dev) { 311 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 315 int gpu_context_t::gralloc_free(alloc_device_t* dev, argument 322 gpu_context_t* gpu = reinterpret_cast<gpu_context_t*>(dev); 328 int gpu_context_t::gralloc_close(struct hw_device_t *dev) argument 330 gpu_context_t* ctx = reinterpret_cast<gpu_context_t*>(dev);
|
/hardware/samsung_slsi/exynos5/gralloc/ |
H A D | framebuffer.cpp | 64 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 67 fb_context_t* ctx = (fb_context_t*)dev; 68 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 74 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 80 private_module_t* m = reinterpret_cast<private_module_t*>(dev->common.module); 99 static int fb_close(struct hw_device_t *dev) argument 101 fb_context_t* ctx = (fb_context_t*)dev; 111 "/dev/graphics/fb%u", 112 "/dev/f 190 framebuffer_device_t *dev = (framebuffer_device_t *)malloc(sizeof(framebuffer_device_t)); local [all...] |
/hardware/invensense/libsensors_iio/ |
H A D | sensors_mpl.cpp | 191 static int poll__close(struct hw_device_t *dev)
argument 194 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
201 static int poll__activate(struct sensors_poll_device_t *dev,
argument 204 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
208 static int poll__setDelay(struct sensors_poll_device_t *dev,
argument 211 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
216 static int poll__poll(struct sensors_poll_device_t *dev,
argument 219 sensors_poll_context_t *ctx = (sensors_poll_context_t *)dev;
231 sensors_poll_context_t *dev = new sensors_poll_context_t();
local 233 memset(&dev [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/libhardware/tests/keymaster/ |
H A D | keymaster_test.cpp | 83 UniqueKey(keymaster_device_t** dev, uint8_t* bytes, size_t length) : argument 84 UniqueBlob(bytes, length), mDevice(dev) { 89 keymaster_device_t* dev = *mDevice; local 90 if (dev->delete_keypair != NULL) { 91 dev->delete_keypair(dev, get(), length());
|
/hardware/msm7k/libcopybit/ |
H A D | copybit.cpp | 157 static void set_rects(struct copybit_context_t *dev, argument 171 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 188 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_V) { 191 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_H) { 197 static void set_infos(struct copybit_context_t *dev, struct mdp_blit_req *req) { argument 198 req->alpha = dev->mAlpha; 200 req->flags = dev->mFlags | MDP_BLEND_FG_PREMULT; 204 static int msm_copybit(struct copybit_context_t *dev, void const *list) argument 206 int err = ioctl(dev->mFD, MSMFB_BLIT, 246 struct copybit_device_t *dev, [all...] |
/hardware/msm7k/libgralloc/ |
H A D | framebuffer.cpp | 63 static int fb_setSwapInterval(struct framebuffer_device_t* dev, argument 66 fb_context_t* ctx = (fb_context_t*)dev; 67 if (interval < dev->minSwapInterval || interval > dev->maxSwapInterval) 73 static int fb_setUpdateRect(struct framebuffer_device_t* dev, argument 79 fb_context_t* ctx = (fb_context_t*)dev; 81 dev->common.module); 88 static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) argument 93 fb_context_t* ctx = (fb_context_t*)dev; 97 dev 320 fb_close(struct hw_device_t *dev) argument [all...] |
H A D | gralloc.cpp | 61 static int gralloc_alloc_buffer(alloc_device_t* dev, 128 static int gralloc_alloc_framebuffer_locked(alloc_device_t* dev, argument 132 dev->common.module); 152 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); 182 static int gralloc_alloc_framebuffer(alloc_device_t* dev, argument 186 dev->common.module); 188 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); 197 int master_fd = open("/dev/pmem", O_RDWR, 0); 249 int gpu = open("/dev/msm_hw3dm", O_RDWR, 0); 314 static int gralloc_alloc_buffer(alloc_device_t* dev, argument 461 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 518 gralloc_free(alloc_device_t* dev, buffer_handle_t handle) argument 564 gralloc_close(struct hw_device_t *dev) argument 581 gralloc_context_t *dev; local [all...] |
/hardware/qcom/display/libcopybit/ |
H A D | copybit.cpp | 154 static void set_rects(struct copybit_context_t *dev, argument 170 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 192 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_V) { 193 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 200 if (dev->mFlags & COPYBIT_TRANSFORM_FLIP_H) { 201 if (dev->mFlags & COPYBIT_TRANSFORM_ROT_90) { 210 static void set_infos(struct copybit_context_t *dev, argument 213 req->alpha = dev->mAlpha; 215 req->flags = dev->mFlags | flags; 217 if (COPYBIT_ENABLE == dev 226 msm_copybit(struct copybit_context_t *dev, void const *list) argument [all...] |
/hardware/qcom/display/libhwcomposer/ |
H A D | hwc.cpp | 62 static void hwc_registerProcs(struct hwc_composer_device_1* dev, argument 66 hwc_context_t* ctx = (hwc_context_t*)(dev); 88 static int hwc_prepare_primary(hwc_composer_device_1 *dev, argument 90 hwc_context_t* ctx = (hwc_context_t*)(dev); 111 static int hwc_prepare_external(hwc_composer_device_1 *dev, argument 113 hwc_context_t* ctx = (hwc_context_t*)(dev); 139 static int hwc_prepare(hwc_composer_device_1 *dev, size_t numDisplays, argument 143 hwc_context_t* ctx = (hwc_context_t*)(dev); 153 ret = hwc_prepare_primary(dev, list); 156 ret = hwc_prepare_external(dev, lis 165 hwc_eventControl(struct hwc_composer_device_1* dev, int dpy, int event, int enabled) argument 190 hwc_blank(struct hwc_composer_device_1* dev, int dpy, int blank) argument 227 hwc_query(struct hwc_composer_device_1* dev, int param, int* value) argument 320 hwc_set(hwc_composer_device_1 *dev, size_t numDisplays, hwc_display_contents_1_t** displays) argument 349 hwc_getDisplayConfigs(struct hwc_composer_device_1* dev, int disp, uint32_t* configs, size_t* numConfigs) argument 377 hwc_getDisplayAttributes(struct hwc_composer_device_1* dev, int disp, uint32_t config, const uint32_t* attributes, int32_t* values) argument 429 hwc_device_close(struct hw_device_t *dev) argument 447 struct hwc_context_t *dev; local [all...] |