Searched defs:dev (Results 1 - 25 of 55) sorted by relevance

123

/hardware/libhardware/modules/nfc/
H A Dnfc_pn544_example.c23 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 Dgralloc.cpp106 gpu_context_t *dev; local
108 dev = new gpu_context_t(m, alloc_ctrl);
109 *device = &dev->common;
H A Dframebuffer.cpp64 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 Dgpu.cpp333 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/libhardware/modules/local_time/
H A Dlocal_time_hw.c34 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 Dacoustics_default.cpp53 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 Dhwcomposer.cpp70 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 DCameraHAL.cpp89 int CameraHAL::open(const hw_module_t* mod, const char* name, hw_device_t** dev) argument
95 ALOGV("%s: module=%p, name=%s, device=%p", __func__, mod, name, dev);
104 return mCameras[id]->open(mod, dev);
124 static int open_dev(const hw_module_t* mod, const char* name, hw_device_t** dev) argument
126 return gCameraHAL.open(mod, name, dev);
H A DCamera.cpp35 static int close_device(hw_device_t* dev) argument
37 camera3_device_t* cam_dev = reinterpret_cast<camera3_device_t*>(dev);
74 // TODO: open camera dev nodes, etc
96 // TODO: close camera dev nodes, etc
162 static Camera *camdev_to_camera(const camera3_device_t *dev) argument
164 return reinterpret_cast<Camera*>(dev->priv);
167 static int initialize(const camera3_device_t *dev, argument
170 return camdev_to_camera(dev)->initialize(callback_ops);
173 static int configure_streams(const camera3_device_t *dev, argument
176 return camdev_to_camera(dev)
179 register_stream_buffers(const camera3_device_t *dev, const camera3_stream_buffer_set_t *buffer_set) argument
185 construct_default_request_settings( const camera3_device_t *dev, int type) argument
191 process_capture_request(const camera3_device_t *dev, camera3_capture_request_t *request) argument
197 get_metadata_vendor_tag_ops(const camera3_device_t *dev, vendor_tag_query_ops_t *ops) argument
203 dump(const camera3_device_t *dev, int fd) argument
[all...]
/hardware/libhardware/modules/nfc-nci/
H A Dnfc_nci_example.c27 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 Dgralloc.cpp47 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 Dframebuffer.cpp60 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 Dgralloc.cpp33 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 Dframebuffer.cpp67 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 Dgpu.cpp305 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/invensense/libsensors_iio/
H A Dsensors_mpl.cpp204 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/libhardware/include/hardware/
H A Dnfc.h187 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/msm7k/libcopybit/
H A Dcopybit.cpp157 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 Dframebuffer.cpp63 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 Dgralloc.cpp61 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 Dcopybit.cpp155 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/libhwcomposer/
H A Dhwc.cpp68 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/liblight/
H A Dlights.c130 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/samsung_slsi/exynos5/gralloc/
H A Dframebuffer.cpp64 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;
157 "/dev/graphics/fb%u",
158 "/dev/f
228 framebuffer_device_t *dev = (framebuffer_device_t *)malloc(sizeof(framebuffer_device_t)); local
[all...]
H A Dgralloc.cpp64 static int gralloc_alloc_buffer(alloc_device_t* dev,
322 static int gralloc_alloc(alloc_device_t* dev, argument
338 (dev->common.module);
340 (dev->common.module);
367 static int gralloc_free(alloc_device_t* dev, argument
375 dev->common.module);
391 static int gralloc_close(struct hw_device_t *dev) argument
393 gralloc_context_t* ctx = reinterpret_cast<gralloc_context_t*>(dev);
408 gralloc_context_t *dev; local
409 dev
[all...]

Completed in 312 milliseconds

123