/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
D | hdf_ioservice_test.cpp | 159 static int SendEvent(struct HdfIoService *serv, const char *eventData, bool broadcast) in SendEvent() argument 186 ret = serv->dispatcher->Dispatch(&serv->object, cmdId, data, reply); in SendEvent() 229 struct HdfIoService *serv = HdfIoServiceBind(testSvcName); variable 230 EXPECT_NE(serv, nullptr); 231 serv->priv = const_cast<void *>(static_cast<const void *>("serv0")); 236 int ret = HdfIoServiceGroupAddService(group, serv); 242 ret = SendEvent(serv, testSvcName, false); 248 ret = HdfDeviceUnregisterEventListener(serv, &listener0.listener); 255 ret = HdfIoServiceGroupAddService(group, serv); 261 ret = SendEvent(serv, testSvcName, false); [all …]
|
/drivers/peripheral/usb/sample/host/src/ |
D | usbhost_loader_test.c | 56 struct HdfIoService *serv = HdfIoServiceBind(USB_HOST_PNP_TEST_SERVICE_NAME); in main() local 57 if (serv == NULL) { in main() 62 if (HdfDeviceRegisterEventListener(serv, &usbPnpTestListener) != HDF_SUCCESS) { in main() 63 HdfIoServiceRecycle(serv); in main() 71 HdfIoServiceRecycle(serv); in main() 79 …if (serv->dispatcher->Dispatch(&serv->object, USB_PNP_DRIVER_REGISTER_DEVICE, data, NULL) != HDF_S… in main() 90 …if (serv->dispatcher->Dispatch(&serv->object, USB_PNP_DRIVER_UNREGISTER_DEVICE, data, NULL) != HDF… in main() 99 HdfIoServiceRecycle(serv); in main()
|
D | usbhost_pnp_test.c | 98 static void TestPnpAdd(struct HdfIoService *serv) in TestPnpAdd() argument 104 …int32_t status = serv->dispatcher->Dispatch(&serv->object, USB_PNP_NOTIFY_ADD_TEST, g_data, g_repl… in TestPnpAdd() 122 static void TestPnpRemove(struct HdfIoService *serv) in TestPnpRemove() argument 128 …int32_t status = serv->dispatcher->Dispatch(&serv->object, USB_PNP_NOTIFY_REMOVE_TEST, g_data, g_r… in TestPnpRemove() 165 struct HdfIoService *serv = HdfIoServiceBind(USB_HOST_PNP_TEST_SERVICE_NAME); in main() local 166 if (serv == NULL) { in main() 181 TestPnpAdd(serv); in main() 184 TestPnpRemove(serv); in main() 193 HdfIoServiceRecycle(serv); in main()
|
/drivers/hdf_core/framework/test/fuzztest/ioservice_fuzzer/ioserviceremove_fuzzer/ |
D | ioserviceremove_fuzzer.cpp | 29 struct HdfIoService *serv = HdfIoServiceBind(servicename); in IoserviceGroupRemoveServiceFuzzTest() local 30 if (serv == nullptr) { in IoserviceGroupRemoveServiceFuzzTest() 37 HdfIoServiceRecycle(serv); in IoserviceGroupRemoveServiceFuzzTest() 40 int ret = HdfIoServiceGroupAddService(group, serv); in IoserviceGroupRemoveServiceFuzzTest() 44 HdfIoServiceRecycle(serv); in IoserviceGroupRemoveServiceFuzzTest() 47 HdfIoServiceGroupRemoveService(group, serv); in IoserviceGroupRemoveServiceFuzzTest() 52 HdfIoServiceRecycle(serv); in IoserviceGroupRemoveServiceFuzzTest()
|
/drivers/hdf_core/framework/test/fuzztest/ioservice_fuzzer/ioservicegrouplisten_fuzzer/ |
D | ioservicegrouplisten_fuzzer.cpp | 60 struct HdfIoService *serv = HdfIoServiceBind(servicename); in IoserviceGroupListenFuzzTest() local 61 if (serv == nullptr) { in IoserviceGroupListenFuzzTest() 68 HdfIoServiceRecycle(serv); in IoserviceGroupListenFuzzTest() 71 int ret = HdfIoServiceGroupAddService(group, serv); in IoserviceGroupListenFuzzTest() 74 HdfIoServiceRecycle(serv); in IoserviceGroupListenFuzzTest() 81 HdfIoServiceRecycle(serv); in IoserviceGroupListenFuzzTest() 87 HdfIoServiceRecycle(serv); in IoserviceGroupListenFuzzTest()
|
/drivers/hdf_core/framework/test/fuzztest/ioservice_fuzzer/ioservicelisten_fuzzer/ |
D | ioservicelisten_fuzzer.cpp | 62 struct HdfIoService *serv = HdfIoServiceBind(servicename); in IoserviceListenFuzzTest() local 63 if (serv == nullptr) { in IoserviceListenFuzzTest() 67 if (HdfDeviceRegisterEventListener(serv, &g_listener0.listener) == HDF_SUCCESS) { in IoserviceListenFuzzTest() 68 int ret = HdfDeviceUnregisterEventListener(serv, &g_listener0.listener); in IoserviceListenFuzzTest() 70 HdfIoServiceRecycle(serv); in IoserviceListenFuzzTest() 75 HdfIoServiceRecycle(serv); in IoserviceListenFuzzTest()
|
/drivers/hdf_core/framework/core/manager/src/ |
D | devsvc_manager_ext.c | 26 struct HdfIoService *serv; member 147 inst->serv = HdfIoServicePublish(DEV_SVCMGR_NODE, SVC_MGR_NODE_PERM); in DevSvcManagerExtStart() 148 if (inst->serv == NULL) { in DevSvcManagerExtStart() 154 inst->serv->dispatcher = &dispatcher; in DevSvcManagerExtStart() 155 inst->serv->target = (struct HdfObject *)&svcmgrDevObj; in DevSvcManagerExtStart() 203 if (instance->serv != NULL) { in DevSvcManagerExtRelease() 204 HdfIoServiceRemove(instance->serv); in DevSvcManagerExtRelease() 205 instance->serv = NULL; in DevSvcManagerExtRelease()
|
/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_pnp_server.c | 181 struct HdfIoService *serv = NULL; in AudioUhdfLoadDriver() local 188 serv = HdfIoServiceBind(driverName); in AudioUhdfLoadDriver() 189 if (serv == NULL) { in AudioUhdfLoadDriver() 194 HdfIoServiceRecycle(serv); in AudioUhdfLoadDriver()
|
/drivers/peripheral/usb/ddk/host/src/ |
D | usb_raw_api_library.c | 1482 struct HdfIoService *serv = HdfIoServiceBind(USB_HOST_PNP_SERVICE_NAME); in RawInitPnpService() local 1483 if (serv == NULL || serv->dispatcher == NULL || serv->dispatcher->Dispatch == NULL) { in RawInitPnpService() 1503 ret = serv->dispatcher->Dispatch(&serv->object, cmdType, pnpData, pnpReply); in RawInitPnpService() 1527 HdfIoServiceRecycle(serv); in RawInitPnpService()
|
/drivers/hdf_core/framework/core/adapter/vnode/src/ |
D | hdf_vnode_adapter.c | 37 struct HdfIoService *serv; member 207 if (client->serv == NULL || client->adapter == NULL || in HdfVNodeAdapterServCall() 610 client->serv = &adapter->ioService; in HdfNewVNodeAdapterClient()
|