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

/hardware/libhardware/modules/nfc/
H A Dnfc_hw_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/gps/loc_api/libloc_api/
H A Dgps.c34 const GpsInterface* gps__get_gps_interface(struct gps_device_t* dev) argument
42 struct gps_device_t *dev = malloc(sizeof(struct gps_device_t)); local
43 memset(dev, 0, sizeof(*dev));
45 dev->common.tag = HARDWARE_DEVICE_TAG;
46 dev->common.version = 0;
47 dev->common.module = (struct hw_module_t*)module;
48 dev->get_gps_interface = gps__get_gps_interface;
50 *device = (struct hw_device_t*)dev;
/hardware/libhardware/include/hardware/
H A Dnfc.h82 nfc_pn544_device_t** dev) {
84 (struct hw_device_t**) dev);
87 static inline int nfc_pn544_close(nfc_pn544_device_t* dev) { argument
88 return dev->common.close(&dev->common);
81 nfc_pn544_open(const struct hw_module_t* module, nfc_pn544_device_t** dev) argument
/hardware/libhardware/modules/hwcomposer/
H A Dhwcomposer.cpp70 static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) { argument
80 static int hwc_set(hwc_composer_device_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/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
246 gralloc_free(alloc_device_t* dev, buffer_handle_t handle) argument
273 gralloc_close(struct hw_device_t *dev) argument
290 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
[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/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/libhardware/modules/audio/
H A Daudio_policy.c220 struct default_ap_device *dev; local
285 struct default_ap_device *dev; local
292 dev = (struct default_ap_device *)calloc(1, sizeof(*dev));
293 if (!dev)
296 dev->device.common.tag = HARDWARE_DEVICE_TAG;
297 dev->device.common.version = 0;
298 dev->device.common.module = (hw_module_t *)module;
299 dev->device.common.close = default_ap_dev_close;
300 dev
[all...]
H A Daudio_hw.c210 static int adev_open_output_stream(struct audio_hw_device *dev, argument
215 struct stub_audio_device *ladev = (struct stub_audio_device *)dev;
249 static void adev_close_output_stream(struct audio_hw_device *dev, argument
255 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) argument
260 static char * adev_get_parameters(const struct audio_hw_device *dev, argument
266 static int adev_init_check(const struct audio_hw_device *dev) argument
271 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
276 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) argument
281 static int adev_set_mode(struct audio_hw_device *dev, int mode) argument
286 static int adev_set_mic_mute(struct audio_hw_device *dev, boo argument
291 adev_get_mic_mute(const struct audio_hw_device *dev, bool *state) argument
296 adev_get_input_buffer_size(const struct audio_hw_device *dev, uint32_t sample_rate, int format, int channel_count) argument
303 adev_open_input_stream(struct audio_hw_device *dev, uint32_t devices, int *format, uint32_t *channels, uint32_t *sample_rate, audio_in_acoustics_t acoustics, struct audio_stream_in **stream_in) argument
342 adev_close_input_stream(struct audio_hw_device *dev, struct audio_stream_in *in) argument
359 adev_get_supported_devices(const struct audio_hw_device *dev) argument
[all...]
/hardware/libhardware_legacy/audio/
H A Daudio_policy_hal.cpp383 struct legacy_ap_device *dev; local
388 dev = (struct legacy_ap_device *)calloc(1, sizeof(*dev));
389 if (!dev)
392 dev->device.common.tag = HARDWARE_DEVICE_TAG;
393 dev->device.common.version = 0;
394 dev->device.common.module = const_cast<hw_module_t*>(module);
395 dev->device.common.close = legacy_ap_dev_close;
396 dev->device.create_audio_policy = create_legacy_ap;
397 dev
[all...]
H A Daudio_hw_hal.cpp291 static inline struct legacy_audio_device * to_ladev(struct audio_hw_device *dev) argument
293 return reinterpret_cast<struct legacy_audio_device *>(dev);
296 static inline const struct legacy_audio_device * to_cladev(const struct audio_hw_device *dev) argument
298 return reinterpret_cast<const struct legacy_audio_device *>(dev);
301 static uint32_t adev_get_supported_devices(const struct audio_hw_device *dev) argument
330 static int adev_init_check(const struct audio_hw_device *dev) argument
332 const struct legacy_audio_device *ladev = to_cladev(dev);
337 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) argument
339 struct legacy_audio_device *ladev = to_ladev(dev);
343 static int adev_set_master_volume(struct audio_hw_device *dev, floa argument
349 adev_set_mode(struct audio_hw_device *dev, int mode) argument
355 adev_set_mic_mute(struct audio_hw_device *dev, bool state) argument
361 adev_get_mic_mute(const struct audio_hw_device *dev, bool *state) argument
367 adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) argument
373 adev_get_parameters(const struct audio_hw_device *dev, const char *keys) argument
383 adev_get_input_buffer_size(const struct audio_hw_device *dev, uint32_t sample_rate, int format, int channel_count) argument
391 adev_open_output_stream(struct audio_hw_device *dev, uint32_t devices, int *format, uint32_t *channels, uint32_t *sample_rate, struct audio_stream_out **stream_out) argument
440 adev_close_output_stream(struct audio_hw_device *dev, struct audio_stream_out* stream) argument
451 adev_open_input_stream(struct audio_hw_device *dev, uint32_t devices, int *format, uint32_t *channels, uint32_t *sample_rate, audio_in_acoustics_t acoustics, struct audio_stream_in **stream_in) argument
499 adev_close_input_stream(struct audio_hw_device *dev, struct audio_stream_in *stream) argument
510 adev_dump(const struct audio_hw_device *dev, int fd) argument
[all...]
/hardware/msm7k/liblights/
H A Dlights.c130 handle_trackball_light_locked(struct light_device_t* dev) argument
158 set_light_backlight(struct light_device_t* dev, argument
167 handle_trackball_light_locked(dev);
174 set_light_keyboard(struct light_device_t* dev, argument
186 set_light_buttons(struct light_device_t* dev, argument
199 set_speaker_light_locked(struct light_device_t* dev, argument
285 handle_speaker_battery_locked(struct light_device_t* dev) argument
288 set_speaker_light_locked(dev, &g_battery);
290 set_speaker_light_locked(dev, &g_notification);
295 set_light_battery(struct light_device_t* dev, argument
309 set_light_notifications(struct light_device_t* dev, struct light_state_t const* state) argument
325 set_light_attention(struct light_device_t* dev, struct light_state_t const* state) argument
346 close_lights(struct light_device_t *dev) argument
392 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); local
[all...]
/hardware/ti/omap4xxx/hwc/
H A Dhwc.c129 int fb_fd; /* file descriptor for /dev/fb0 */
130 int dsscomp_fd; /* file descriptor for /dev/dsscomp */
131 int hdmi_fb_fd; /* file descriptor for /dev/fb1 */
1179 static int omap4_hwc_prepare(struct hwc_composer_device *dev, hwc_layer_list_t* list) argument
1181 omap4_hwc_device_t *hwc_dev = (omap4_hwc_device_t *)dev;
1421 static int omap4_hwc_set(struct hwc_composer_device *dev, hwc_display_t dpy, argument
1424 omap4_hwc_device_t *hwc_dev = (omap4_hwc_device_t *)dev;
1486 static void omap4_hwc_dump(struct hwc_composer_device *dev, char *buff, int buff_len) argument
1488 omap4_hwc_device_t *hwc_dev = (omap4_hwc_device_t *)dev;
1834 static void omap4_hwc_registerProcs(struct hwc_composer_device* dev, argument
[all...]

Completed in 4834 milliseconds