Searched defs:module (Results 1 - 25 of 38) sorted by relevance

12

/hardware/libhardware/modules/nfc/
H A Dnfc_hw_example.c31 static int nfc_open(const hw_module_t* module, const char* name, argument
38 dev->common.module = (struct hw_module_t*) module;
/hardware/qcom/gps/loc_api/libloc_api/
H A Dgps.c39 static int open_gps(const struct hw_module_t* module, char const* name, argument
47 dev->common.module = (struct hw_module_t*)module;
/hardware/libhardware/tests/nusensors/
H A Dnusensors.cpp64 struct sensors_module_t* module; local
66 err = hw_get_module(SENSORS_HARDWARE_MODULE_ID, (hw_module_t const**)&module);
72 err = sensors_open(&module->common, &device);
79 int count = module->get_sensors_list(module, &list);
/hardware/libhardware/include/hardware/
H A Dnfc.h81 static inline int nfc_pn544_open(const struct hw_module_t* module, argument
83 return module->methods->open(module, NFC_PN544_CONTROLLER,
H A Dfb.h151 static inline int framebuffer_open(const struct hw_module_t* module, argument
153 return module->methods->open(module,
H A Dhardware.h42 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
44 * followed by module specific information.
50 /** major version number for the module */
53 /** minor version number of the module */
56 /** Identifier of module */
59 /** Name of this module */
62 /** Author/owner/implementor of the module */
68 /** module's dso */
78 int (*open)(const struct hw_module_t* module, const char* id,
85 * followed by module specifi
95 struct hw_module_t* module; member in struct:hw_device_t
[all...]
H A Daudio_policy.h33 * The id of this module
55 * The main roles of this module are:
349 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
351 * followed by module specific information.
371 static inline int audio_policy_dev_open(const hw_module_t* module, argument
374 return module->methods->open(module, AUDIO_POLICY_INTERFACE,
H A Dgralloc.h38 * The id of this module
73 /* buffer will be used by the HWComposer HAL module */
106 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
108 * followed by module specific information.
128 int (*registerBuffer)(struct gralloc_module_t const* module,
143 int (*unregisterBuffer)(struct gralloc_module_t const* module,
177 int (*lock)(struct gralloc_module_t const* module,
188 int (*unlock)(struct gralloc_module_t const* module,
193 int (*perform)(struct gralloc_module_t const* module,
204 * followed by module specifi
249 gralloc_open(const struct hw_module_t* module, struct alloc_device_t** device) argument
[all...]
H A Dhwcomposer.h34 * The id of this module
297 * It is the responsibility of the hwcomposer module to make
339 static inline int hwc_open(const struct hw_module_t* module, argument
341 return module->methods->open(module,
H A Daudio.h35 * The id of this module
239 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
241 * followed by module specific information.
328 static inline int audio_hw_device_open(const struct hw_module_t* module, argument
331 return module->methods->open(module, AUDIO_HARDWARE_INTERFACE,
H A Dsensors.h30 * The id of this module
382 * Every hardware module must have a data structure named HAL_MODULE_INFO_SYM
384 * followed by module specific information.
393 int (*get_sensors_list)(struct sensors_module_t* module,
432 * followed by module specific public methods and attributes.
473 static inline int sensors_open(const struct hw_module_t* module, argument
475 return module->methods->open(module,
/hardware/libhardware/modules/hwcomposer/
H A Dhwcomposer.cpp36 static int hwc_device_open(const struct hw_module_t* module, const char* name,
49 name: "Sample hwcomposer module",
107 static int hwc_device_open(const struct hw_module_t* module, const char* name, argument
121 dev->device.common.module = const_cast<hw_module_t*>(module);
/hardware/libhardware/
H A Dhardware.c36 * is "<MODULE_ID>.variant.so" so for the led module the Dream variants
77 LOGE("load: module=%s\n%s", path, err_str?err_str:"unknown");
121 const struct hw_module_t **module)
142 /* Loop through the configuration variants looking for a module */
164 /* load the module, if this fails, we're doomed, and we should not try
166 status = load(class_id, path, module);
172 int hw_get_module(const char *id, const struct hw_module_t **module) argument
174 return hw_get_module_by_class(id, NULL, module);
120 hw_get_module_by_class(const char *class_id, const char *inst, const struct hw_module_t **module) argument
/hardware/libhardware/modules/gralloc/
H A Dmapper.cpp46 static int gralloc_map(gralloc_module_t const* module, argument
67 static int gralloc_unmap(gralloc_module_t const* module, argument
89 int gralloc_register_buffer(gralloc_module_t const* module, argument
100 err = gralloc_map(module, handle, &vaddr);
105 int gralloc_unregister_buffer(gralloc_module_t const* module, argument
115 gralloc_unmap(module, handle);
121 int mapBuffer(gralloc_module_t const* module, argument
125 return gralloc_map(module, hnd, &vaddr);
128 int terminateBuffer(gralloc_module_t const* module, argument
133 gralloc_unmap(module, hn
139 gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void** vaddr) argument
160 gralloc_unlock(gralloc_module_t const* module, buffer_handle_t handle) argument
[all...]
H A Dgralloc.cpp52 int fb_device_open(const hw_module_t* module, const char* name,
55 static int gralloc_device_open(const hw_module_t* module, const char* name,
58 extern int gralloc_lock(gralloc_module_t const* module,
63 extern int gralloc_unlock(gralloc_module_t const* module,
66 extern int gralloc_register_buffer(gralloc_module_t const* module,
69 extern int gralloc_unregister_buffer(gralloc_module_t const* module,
108 dev->common.module);
161 dev->common.module);
184 gralloc_module_t* module = reinterpret_cast<gralloc_module_t*>( local
185 dev->common.module);
261 gralloc_module_t* module = reinterpret_cast<gralloc_module_t*>( local
285 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
H A Dframebuffer.cpp78 dev->common.module);
94 dev->common.module);
135 int mapFrameBufferLocked(struct private_module_t* module) argument
138 if (module->framebuffer) {
263 module->flags = flags;
264 module->info = info;
265 module->finfo = finfo;
266 module->xdpi = xdpi;
267 module->ydpi = ydpi;
268 module
291 mapFrameBuffer(struct private_module_t* module) argument
310 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/msm7k/libgralloc/
H A Dmapper.cpp53 static int gralloc_map(gralloc_module_t const* module, argument
79 static int gralloc_unmap(gralloc_module_t const* module, argument
105 int gralloc_register_buffer(gralloc_module_t const* module, argument
118 err = gralloc_map(module, handle, &vaddr);
124 int gralloc_unregister_buffer(gralloc_module_t const* module, argument
134 gralloc_unmap(module, handle);
140 int mapBuffer(gralloc_module_t const* module, argument
144 return gralloc_map(module, hnd, &vaddr);
147 int terminateBuffer(gralloc_module_t const* module, argument
157 gralloc_unmap(module, hn
169 gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void** vaddr) argument
190 gralloc_unlock(gralloc_module_t const* module, buffer_handle_t handle) argument
204 gralloc_perform(struct gralloc_module_t const* module, int operation, ... ) argument
[all...]
H A Dframebuffer.cpp81 dev->common.module);
97 dev->common.module);
143 int mapFrameBufferLocked(struct private_module_t* module) argument
146 if (module->framebuffer) {
280 module->flags = flags;
281 module->info = info;
282 module->finfo = finfo;
283 module->xdpi = xdpi;
284 module->ydpi = ydpi;
285 module
310 mapFrameBuffer(struct private_module_t* module) argument
329 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
H A Dgralloc.cpp66 int fb_device_open(const hw_module_t* module, const char* name,
69 static int gralloc_device_open(const hw_module_t* module, const char* name,
72 extern int gralloc_lock(gralloc_module_t const* module,
77 extern int gralloc_unlock(gralloc_module_t const* module,
80 extern int gralloc_register_buffer(gralloc_module_t const* module,
83 extern int gralloc_unregister_buffer(gralloc_module_t const* module,
86 extern int gralloc_perform(struct gralloc_module_t const* module,
132 dev->common.module);
186 dev->common.module);
329 // the copybit module
437 gralloc_module_t* module = reinterpret_cast<gralloc_module_t*>( local
552 gralloc_module_t* module = reinterpret_cast<gralloc_module_t*>( local
576 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dgralloc.cpp38 int fb_device_open(const hw_module_t* module, const char* name,
41 static int gralloc_device_open(const hw_module_t* module, const char* name,
44 extern int gralloc_lock(gralloc_module_t const* module,
49 extern int gralloc_unlock(gralloc_module_t const* module,
52 extern int gralloc_register_buffer(gralloc_module_t const* module,
55 extern int gralloc_unregister_buffer(gralloc_module_t const* module,
58 extern int gralloc_perform(struct gralloc_module_t const* module,
120 virtual int mapFrameBufferLocked(struct private_module_t* module) { argument
121 return ::mapFrameBufferLocked(module);
124 virtual int terminateBuffer(gralloc_module_t const* module, argument
180 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
H A Dmapper.cpp53 static int gralloc_map(gralloc_module_t const* module, argument
79 static int gralloc_unmap(gralloc_module_t const* module, argument
105 int gralloc_register_buffer(gralloc_module_t const* module, argument
130 int gralloc_unregister_buffer(gralloc_module_t const* module, argument
151 gralloc_unmap(module, handle);
160 int terminateBuffer(gralloc_module_t const* module, argument
180 gralloc_unmap(module, hnd);
183 gralloc_unmap(module, hnd);
190 int gralloc_lock(gralloc_module_t const* module, argument
258 err = gralloc_map(module, handl
272 gralloc_unlock(gralloc_module_t const* module, buffer_handle_t handle) argument
320 gralloc_perform(struct gralloc_module_t const* module, int operation, ... ) argument
[all...]
H A Dframebuffer.cpp85 dev->common.module);
101 dev->common.module);
163 int mapFrameBufferLocked(struct private_module_t* module) argument
166 if (module->framebuffer) {
227 module->fbFormat = HAL_PIXEL_FORMAT_RGBX_8888;
229 module->fbFormat = HAL_PIXEL_FORMAT_RGBA_8888;
316 module->flags = flags;
317 module->info = info;
318 module->finfo = finfo;
319 module
345 mapFrameBuffer(struct private_module_t* module) argument
364 fb_device_open(hw_module_t const* module, const char* name, hw_device_t** device) argument
[all...]
H A Dgpu.cpp27 PmemAllocator& pmemAdspAllocator, const private_module_t* module) :
38 common.module = const_cast<hw_module_t*>(&module->base.common);
47 private_module_t* m = reinterpret_cast<private_module_t*>(common.module);
106 private_module_t* m = reinterpret_cast<private_module_t*>(common.module);
129 // the copybit module.
142 private_module_t* m = reinterpret_cast<private_module_t*>(common.module);
276 private_module_t* m = reinterpret_cast<private_module_t*>(common.module);
26 gpu_context_t(Deps& deps, PmemAllocator& pmemAllocator, PmemAllocator& pmemAdspAllocator, const private_module_t* module) argument
/hardware/ti/omap3/omx/system/src/openmax_il/perf/src/
H A Dperf_print.c102 "%s" /* module tag */
103 "%s" /* module */
125 /* module tag */
126 me->csv ? "" : ", module: ", /* note: separator added for CSV */
127 /* module */
358 unsigned long module = ((unsigned long) eModule) & PERF_ModuleMask; local
368 module < PERF_ModuleMax ? PERF_ModuleTypes[module] : "INVALID",
/hardware/ti/omap4xxx/domx/omx_proxy_component/omx_video_dec/src/
H A Domx_proxy_videodec.c170 hw_module_t const* module; local
204 err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &module);
207 pComponentPrivate->grallocModule = (gralloc_module_t const *)module;
212 %s module err = %x", GRALLOC_HARDWARE_MODULE_ID, err);

Completed in 390 milliseconds

12