Home
last modified time | relevance | path

Searched refs:hw_module_t (Results 1 – 25 of 131) sorted by relevance

123456

/hardware/libhardware/include/hardware/
Dhardware.h77 struct hw_module_t;
86 typedef struct hw_module_t { struct
154 } hw_module_t; typedef
158 int (*open)(const struct hw_module_t* module, const char* id,
190 struct hw_module_t* module;
219 int hw_get_module(const char *id, const struct hw_module_t **module);
234 const struct hw_module_t **module);
Dnfc.h69 struct hw_module_t common;
199 static inline int nfc_nci_open(const struct hw_module_t* module, in nfc_nci_open()
232 struct hw_module_t common;
286 static inline int nfc_pn544_open(const struct hw_module_t* module, in nfc_pn544_open()
Dnfc_tag.h41 struct hw_module_t common;
83 static inline int nfc_tag_open(const struct hw_module_t* module, in nfc_tag_open()
Dlocal_time_hal.h54 struct hw_module_t common;
108 const struct hw_module_t* module, in local_time_hw_device_open()
Dcamera_common.h296 hw_module_t common;
425 int (*open_legacy)(const struct hw_module_t* module, const char* id,
Dsound_trigger.h60 struct hw_module_t common;
116 static inline int sound_trigger_hw_device_open(const struct hw_module_t* module, in sound_trigger_hw_device_open()
Dactivity_recognition.h130 hw_module_t common;
211 static inline int activity_recognition_open(const hw_module_t* module, in activity_recognition_open()
/hardware/libhardware/
Dhardware.c68 const struct hw_module_t **pHmi) in load()
72 struct hw_module_t *hmi; in load()
89 hmi = (struct hw_module_t *)dlsym(handle, sym); in load()
146 const struct hw_module_t **module) in hw_get_module_by_class()
197 int hw_get_module(const char *id, const struct hw_module_t **module) in hw_get_module()
/hardware/qcom/audio/legacy/alsa_sound/
Dacoustics_default.cpp26 static int s_device_open(const hw_module_t*, const char*, hw_device_t**);
38 extern "C" hw_module_t HAL_MODULE_INFO_SYM = {
50 static int s_device_open(const hw_module_t* module, const char* name, in s_device_open()
62 dev->common.module = (hw_module_t *) module; in s_device_open()
/hardware/libhardware/tests/hardware/
Dstruct-offset.cpp43 CHECK_MEMBER_AT(hw_module_t, tag, 0, 0); in CheckOffsets()
44 CHECK_MEMBER_AT(hw_module_t, module_api_version, 4, 4); in CheckOffsets()
45 CHECK_MEMBER_AT(hw_module_t, hal_api_version, 6, 6); in CheckOffsets()
46 CHECK_MEMBER_AT(hw_module_t, id, 8, 8); in CheckOffsets()
47 CHECK_MEMBER_AT(hw_module_t, name, 12, 16); in CheckOffsets()
48 CHECK_MEMBER_AT(hw_module_t, author, 16, 24); in CheckOffsets()
49 CHECK_MEMBER_AT(hw_module_t, methods, 20, 32); in CheckOffsets()
50 CHECK_MEMBER_AT(hw_module_t, dso, 24, 40); in CheckOffsets()
51 CHECK_MEMBER_AT(hw_module_t, reserved, 28, 48); in CheckOffsets()
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dgps.c41 static int open_gps(const struct hw_module_t* module, char const* name, in open_gps()
49 dev->common.module = (struct hw_module_t*)module; in open_gps()
60 struct hw_module_t HAL_MODULE_INFO_SYM = {
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dgps.c41 static int open_gps(const struct hw_module_t* module, char const* name, in open_gps()
53 dev->common.module = (struct hw_module_t*)module; in open_gps()
64 struct hw_module_t HAL_MODULE_INFO_SYM = {
/hardware/qcom/display/msm8084/libgralloc/
Dgralloc.cpp34 int fb_device_open(const hw_module_t* module, const char* name,
37 static int gralloc_device_open(const hw_module_t* module, const char* name,
98 int gralloc_device_open(const hw_module_t* module, const char* name, in gralloc_device_open()
/hardware/qcom/display/msm8226/libgralloc/
Dgralloc.cpp34 int fb_device_open(const hw_module_t* module, const char* name,
37 static int gralloc_device_open(const hw_module_t* module, const char* name,
98 int gralloc_device_open(const hw_module_t* module, const char* name, in gralloc_device_open()
/hardware/libhardware/modules/vibrator/
Dvibrator.c92 static int vibra_open(const hw_module_t* module, const char* id __unused, in vibra_open()
107 vibradev->common.module = (hw_module_t *) module; in vibra_open()
127 struct hw_module_t HAL_MODULE_INFO_SYM = {
/hardware/qcom/display/msm8974/libgralloc/
Dgralloc.cpp34 int fb_device_open(const hw_module_t* module, const char* name,
37 static int gralloc_device_open(const hw_module_t* module, const char* name,
97 int gralloc_device_open(const hw_module_t* module, const char* name, in gralloc_device_open()
/hardware/qcom/display/msm8960/libgralloc/
Dgralloc.cpp34 int fb_device_open(const hw_module_t* module, const char* name,
37 static int gralloc_device_open(const hw_module_t* module, const char* name,
97 int gralloc_device_open(const hw_module_t* module, const char* name, in gralloc_device_open()
/hardware/libhardware/modules/tv_input/
Dtv_input.cpp35 static int tv_input_device_open(const struct hw_module_t* module,
113 static int tv_input_device_open(const struct hw_module_t* module, in tv_input_device_open()
126 dev->device.common.module = const_cast<hw_module_t*>(module); in tv_input_device_open()
/hardware/libhardware/modules/sensors/
Dmultihal.cpp56 static std::vector<hw_module_t *> *sub_hw_modules = NULL;
450 static int open_sensors(const struct hw_module_t* module, const char* name,
515 sub_hw_modules = new std::vector<hw_module_t *>(); in lazy_init_modules()
528 struct hw_module_t* module = (hw_module_t*) dlsym(lib_handle, sym); in lazy_init_modules()
562 for (std::vector<hw_module_t*>::iterator it = sub_hw_modules->begin(); in lazy_init_sensors_list()
577 for (std::vector<hw_module_t*>::iterator it = sub_hw_modules->begin(); in lazy_init_sensors_list()
579 hw_module_t *hw_module = *it; in lazy_init_sensors_list()
644 static int open_sensors(const struct hw_module_t* hw_module, const char* name, in open_sensors()
655 dev->proxy_device.common.module = const_cast<hw_module_t*>(hw_module); in open_sensors()
666 for (std::vector<hw_module_t*>::iterator it = sub_hw_modules->begin(); in open_sensors()
/hardware/libhardware/modules/hwcomposer/
Dhwcomposer.cpp36 static int hwc_device_open(const struct hw_module_t* module, const char* name,
107 static int hwc_device_open(const struct hw_module_t* module, const char* name, in hwc_device_open()
121 dev->device.common.module = const_cast<hw_module_t*>(module); in hwc_device_open()
/hardware/libhardware/modules/nfc/
Dnfc_pn544_example.c31 static int nfc_open(const hw_module_t* module, const char* name, in nfc_open()
38 dev->common.module = (struct hw_module_t*) module; in nfc_open()
/hardware/libhardware/tests/fingerprint/
Dfingerprint_test_fixtures.h35 const hw_module_t *hw_module = NULL; in SetUp()
60 (const hw_module_t*)fp_module(), NULL, &device)) in SetUp()
/hardware/libhardware/tests/camera3/
Dcamera3test_fixtures.h37 const hw_module_t *hw_module = NULL; in SetUp()
67 (const hw_module_t*)cam_module(), "0", &device)) in SetUp()
/hardware/libhardware/modules/fingerprint/
Dfingerprint.c51 static int fingerprint_open(const hw_module_t* module, const char __unused *id, in fingerprint_open()
64 dev->common.module = (struct hw_module_t*) module; in fingerprint_open()
/hardware/libhardware/modules/local_time/
Dlocal_time_hw.c66 static int ltdev_open(const hw_module_t* module, const char* name, in ltdev_open()
82 ltdev->device.common.module = (struct hw_module_t *) module; in ltdev_open()

123456