/drivers/hdf_core/framework/support/platform/src/clock/ |
H A D | clock_if_u.c | 18 static void *manager = NULL; in ClockManagerGetService() 20 if (manager != NULL) { in ClockManagerGetService() 25 if (manager == NULL) { in ClockManagerGetService() 33 struct HdfIoService *service = NULL; in ClockOpen() 34 struct HdfSBuf *data = NULL; in ClockOpen() 35 struct HdfSBuf *reply = NULL; in ClockOpen() 40 if (service == NULL || service->dispatcher == NULL || service->dispatcher->Dispatch == NULL) { in ClockOpen() 42 return NULL; in ClockOpen() [all...] |
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_slist.c | 16 if (list != NULL) { in HdfSListInit() 17 list->root = NULL; in HdfSListInit() 23 return ((list == NULL) || (list->root == NULL)); in HdfSListIsEmpty() 29 if (comparer == NULL) { in HdfSListSearch() 30 return NULL; in HdfSListSearch() 39 return NULL; in HdfSListSearch() 44 struct HdfSListNode *last = NULL; in HdfSListGetLast() 45 struct HdfSListNode *iterator = NULL; in HdfSListGetLast() 46 if (list == NULL) { in HdfSListGetLast() [all...] |
/drivers/hdf_core/framework/support/platform/src/watchdog/ |
H A D | watchdog_if_u.c | 22 void *service = NULL; in WatchdogServiceGetById() 26 return NULL; in WatchdogServiceGetById() 32 return NULL; in WatchdogServiceGetById() 36 if (service == NULL) { in WatchdogServiceGetById() 46 struct HdfSBuf *reply = NULL; in WatchdogOpen() 47 struct HdfIoService *service = NULL; in WatchdogOpen() 49 if (handle == NULL) { in WatchdogOpen() 55 if (service == NULL) { in WatchdogOpen() 60 if (service->dispatcher == NULL || service->dispatcher->Dispatch == NULL) { in WatchdogOpen() [all...] |
/drivers/hdf_core/framework/core/host/src/ |
H A D | devsvc_manager_clnt.c | 18 struct IDevSvcManager *serviceManager = NULL; in DevSvcManagerClntAddService() 19 if (devSvcMgrClnt == NULL) { in DevSvcManagerClntAddService() 29 if (serviceManager == NULL || serviceManager->AddService == NULL) { in DevSvcManagerClntAddService() 39 struct IDevSvcManager *serviceManager = NULL; in DevSvcManagerClntUpdateService() 40 if (devSvcMgrClnt == NULL) { in DevSvcManagerClntUpdateService() 50 if (serviceManager == NULL || serviceManager->UpdateService == NULL) { in DevSvcManagerClntUpdateService() 60 struct IDevSvcManager *serviceManager = NULL; in DevSvcManagerClntGetService() 61 if (devSvcMgrClnt == NULL) { in DevSvcManagerClntGetService() [all...] |
H A D | hdf_device_object.c | 33 struct DevHostService *hostService = NULL; in HdfDeviceSubscribeService() 34 struct HdfDeviceNode *devNode = NULL; in HdfDeviceSubscribeService() 35 if (deviceObject == NULL || serviceName == NULL) { in HdfDeviceSubscribeService() 42 if (hostService == NULL) { in HdfDeviceSubscribeService() 52 struct HdfDeviceNode *devNode = NULL; in HdfDeviceGetServiceName() 53 if (deviceObject == NULL) { in HdfDeviceGetServiceName() 55 return NULL; in HdfDeviceGetServiceName() 64 struct HdfDeviceNode *devNode = NULL; in HdfPmRegisterPowerListener() 65 if (deviceObject == NULL) { in HdfPmRegisterPowerListener() [all...] |
/drivers/hdf_core/framework/model/audio/core/src/ |
H A D | audio_host.c | 25 return NULL; in GetAllCardInstance() 34 struct AudioCard *audioCard = NULL; in GetCardInstance() 36 if (serviceName == NULL) { in GetCardInstance() 37 ADM_LOG_ERR("serviceName is NULL."); in GetCardInstance() 38 return NULL; in GetCardInstance() 43 return NULL; in GetCardInstance() 47 if (audioCard->configData.cardServiceName == NULL) { in GetCardInstance() 48 ADM_LOG_ERR("cardServiceName is NULL."); in GetCardInstance() 49 return NULL; in GetCardInstance() 57 return NULL; in GetCardInstance() [all...] |
/drivers/hdf_core/framework/model/network/common/netdevice/ |
H A D | net_device.c | 18 static struct NetDeviceImpl *g_netDeviceImplTable[MAX_NETDEVICE_COUNT] = {NULL}; 24 if (index == NULL) { in FindAvailableTable() 29 if (g_netDeviceImplTable[i] == NULL) { in FindAvailableTable() 53 g_netDeviceImplTable[i] = NULL; in DeleteNetDeviceImplFromTable() 62 struct NetDeviceImpl *ndImpl = NULL; in InitNetDeviceImpl() 63 if (nd == NULL) { in InitNetDeviceImpl() 64 return NULL; in InitNetDeviceImpl() 67 if (ndImpl == NULL) { in InitNetDeviceImpl() 69 return NULL; in InitNetDeviceImpl() 76 ndImpl = NULL; in InitNetDeviceImpl() [all...] |
/drivers/hdf_core/framework/support/platform/src/dac/ |
H A D | dac_if_u.c | 21 static struct HdfIoService *service = NULL; in DacManagerServiceGet() 23 if (service != NULL) { in DacManagerServiceGet() 27 if (service == NULL) { in DacManagerServiceGet() 36 struct HdfIoService *service = NULL; in DacOpen() 37 struct HdfSBuf *data = NULL; in DacOpen() 38 struct HdfSBuf *reply = NULL; in DacOpen() 42 if (service == NULL || service->dispatcher == NULL || service->dispatcher->Dispatch == NULL) { in DacOpen() 44 return NULL; in DacOpen() [all...] |
/drivers/hdf_core/framework/support/platform/src/rtc/ |
H A D | rtc_core.c | 18 if (host == NULL || time == NULL) { in RtcHostReadTime() 23 if (host->method == NULL || host->method->ReadTime == NULL) { in RtcHostReadTime() 33 if (host == NULL || time == NULL) { in RtcHostWriteTime() 38 if (host->method == NULL || host->method->WriteTime == NULL) { in RtcHostWriteTime() 48 if (host == NULL || time == NULL) { in RtcHostReadAlarm() [all...] |
H A D | rtc_if_u.c | 22 static struct HdfIoService *service = NULL; in RtcOpen() 23 if (service != NULL) { in RtcOpen() 28 if (service == NULL) { in RtcOpen() 30 return NULL; in RtcOpen() 33 if (service->priv == NULL) { in RtcOpen() 35 if (manager == NULL) { in RtcOpen() 48 struct HdfIoService *service = NULL; in RtcClose() 49 if (handle == NULL) { in RtcClose() 62 struct HdfSBuf *reply = NULL; in RtcReadTime() 63 struct HdfIoService *service = NULL; in RtcReadTime() [all...] |
/drivers/peripheral/audio/test/hal_mock/ |
H A D | audio_render_mock.c | 22 if (render == NULL) {
in GetLatency() 26 if (ms == NULL) {
in GetLatency() 35 if (render == NULL || frame == NULL || replyBytes == NULL) {
in RenderFrame() 47 if (render == NULL || frame == NULL || time == NULL) {
in GetPosition() 59 if (render == NULL) {
in SetSpeed() 70 if (render == NULL || spee in GetSpeed() [all...] |
/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
H A D | hdf_audio_server_render.c | 31 if (data == NULL || attrs == NULL) { in GetInitRenderParaAttrs() 83 if (data == NULL || devDesc == NULL || attrs == NULL) { in GetInitRenderPara() 119 devDesc->desc = NULL; in GetInitRenderPara() 126 IF_TRUE_PRINT_LOG_RETURN_ERROR((client == NULL || data == NULL || reply == NULL), in HdiServiceCreatRender() 128 struct AudioAdapter *adapter = NULL; in HdiServiceCreatRender() [all...] |
H A D | hdf_audio_server_capture.c | 33 if (data == NULL || attrs == NULL) { in GetInitCaptureParaAttrs() 84 if (data == NULL || devDesc == NULL || attrs == NULL) { in GetInitCapturePara() 118 devDesc->desc = NULL; in GetInitCapturePara() 124 IF_TRUE_PRINT_LOG_RETURN_ERROR((client == NULL || data == NULL || reply == NULL), in HdiServiceCreatCapture() 126 struct AudioAdapter *adapter = NULL; in HdiServiceCreatCapture() [all...] |
/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_workqueue.c | 36 if (queue == NULL || name == NULL) { in HdfWorkQueueInit() 42 if (queue->realWorkQueue == NULL) { in HdfWorkQueueInit() 53 struct WorkWrapper *wrapper = NULL; in WorkEntry() 54 if (work != NULL) { in WorkEntry() 56 if (wrapper->workFunc != NULL) in WorkEntry() 67 struct work_struct *realWork = NULL; in HdfWorkInit() 68 struct WorkWrapper *wrapper = NULL; in HdfWorkInit() 70 if (work == NULL || func == NULL) { in HdfWorkInit() [all...] |
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_workqueue.c | 46 if (queue == NULL || name == NULL) { in HdfWorkQueueInit() 52 if (queue->realWorkQueue == NULL) { in HdfWorkQueueInit() 62 struct WorkWrapper *wrapper = NULL; in WorkEntry() 63 if (work != NULL) { in WorkEntry() 65 if (wrapper->workFunc != NULL) { in WorkEntry() 77 struct work_struct *realWork = NULL; in HdfWorkInit() 78 struct WorkWrapper *wrapper = NULL; in HdfWorkInit() 80 if (work == NULL || func == NULL) { in HdfWorkInit() [all...] |
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_config_parser.c | 16 struct DeviceResourceIface *drsOps = NULL; in ParseWlanStaConfig() 19 if (node == NULL || staConfig == NULL) { in ParseWlanStaConfig() 24 if (drsOps == NULL || drsOps->GetString == NULL || drsOps->GetUint8 == NULL) { in ParseWlanStaConfig() 28 ret = drsOps->GetString(node, "name", &staConfig->name, NULL); in ParseWlanStaConfig() 44 struct DeviceResourceIface *drsOps = NULL; in ParseWlanApConfig() 47 if (node == NULL || apConfig == NULL) { in ParseWlanApConfig() [all...] |
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/src/ |
H A D | hdf_audio_server_render.cpp | 27 if (data == NULL || attrs == NULL) { in GetInitRenderParaAttrs() 67 if (data == NULL || devDesc == NULL || attrs == NULL) { in GetInitRenderPara() 106 devDesc->desc = NULL; in GetInitRenderPara() 113 if (client == NULL || data == NULL || reply == NULL) { in HdiServiceCreatRender() 116 struct AudioAdapter *adapter = NULL; in HdiServiceCreatRender() [all...] |
/drivers/hdf_core/framework/support/platform/src/pin/ |
H A D | pin_if_u.c | 34 struct PinInfo *pin = NULL;
in AddNode() 35 static struct DListHead *head = NULL;
in AddNode() 37 if (head == NULL) {
in AddNode() 43 if (pin == NULL) {
in AddNode() 45 return NULL;
in AddNode() 51 return NULL;
in AddNode() 62 struct PinInfo *pos = NULL;
in RemoveNode() 63 struct PinInfo *tmp = NULL;
in RemoveNode() 77 static struct HdfIoService *service = NULL;
in PinManagerServiceGet() 79 if (service != NULL) {
in PinManagerServiceGet() [all...] |
/drivers/hdf_core/framework/model/audio/common/src/ |
H A D | audio_dma_base.c | 18 if (data != NULL && data->ops != NULL && data->ops->DmaBufAlloc != NULL) { in AudioDmaBufAlloc() 26 if (data != NULL && data->ops != NULL && data->ops->DmaBufFree != NULL) { in AudioDmaBufFree() 34 if (data != NULL && data->ops != NULL && data->ops->DmaRequestChannel != NULL) { in AudioDmaRequestChannel() 42 if (data != NULL in AudioDmaConfigChannel() [all...] |
/drivers/hdf_core/framework/support/platform/src/i2s/ |
H A D | i2s_core.c | 22 if (cntlr == NULL) { in I2sCntlrOpen() 26 if (cntlr->method == NULL || cntlr->method->Open == NULL) { in I2sCntlrOpen() 40 if (cntlr == NULL) { in I2sCntlrClose() 44 if (cntlr->method == NULL || cntlr->method->Close == NULL) { in I2sCntlrClose() 58 if (cntlr == NULL) { in I2sCntlrEnable() 62 if (cntlr->method == NULL || cntlr->method->Enable == NULL) { in I2sCntlrEnable() 76 if (cntlr == NULL) { in I2sCntlrDisable() [all...] |
/drivers/hdf_core/framework/core/manager/src/ |
H A D | driver_manager.c | 18 if (driverHead.next == NULL) { in HdfDriverHead() 27 struct HdfDriver *newDriver = NULL; in HdfRegisterDriverEntry() 29 if (entry == NULL || entry->moduleName == NULL) { in HdfRegisterDriverEntry() 34 if (newDriver == NULL) { in HdfRegisterDriverEntry() 47 struct DListHead *driverHead = NULL; in HdfUnregisterDriverEntry() 48 struct HdfDriver *driver = NULL; in HdfUnregisterDriverEntry() 49 struct HdfDriver *tmp = NULL; in HdfUnregisterDriverEntry() 51 if (entry == NULL || entry->moduleName == NULL) { in HdfUnregisterDriverEntry() [all...] |
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_if.c | 49 const void *rBuf = NULL; in HdmiGetDataFromReply() 74 if (service == NULL || service->dispatcher == NULL || service->dispatcher->Dispatch == NULL) { in HdmiUserClose() 79 ret = service->dispatcher->Dispatch(&service->object, HDMI_CMD_CLOSE, NULL, NULL); in HdmiUserClose() 90 if (service == NULL || service->dispatcher == NULL || service->dispatcher->Dispatch == NULL) { in HdmiUserStart() 95 ret = service->dispatcher->Dispatch(&service->object, HDMI_CMD_START, NULL, NUL in HdmiUserStart() [all...] |
/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_sdk_if.c | 31 {NULL, 0 }, 37 struct UsbFnStrings **strings = NULL; in IsDescriptorOk() 38 struct UsbFnFunction *functions = NULL; in IsDescriptorOk() 39 if (des == NULL) { in IsDescriptorOk() 43 if (des->deviceDesc == NULL || des->deviceStrings == NULL || des->configs == NULL) { in IsDescriptorOk() 49 if (strings[0] == NULL) { in IsDescriptorOk() 54 for (i = 0; des->configs[i] != NULL; i++) { in IsDescriptorOk() 55 for (j = 0; des->configs[i]->functions[j] != NULL; in IsDescriptorOk() [all...] |
/drivers/hdf_core/framework/model/network/ethernet/src/ |
H A D | eth_device.c | 26 if (configEthDevList == NULL || ifName == NULL || ifNameSize == 0) {
in GetEthIfName() 40 struct HdfEthNetDeviceData *data = NULL;
in CreateEthDevice() 41 struct NetDevice *netDevice = NULL;
in CreateEthDevice() 42 struct EthDevice *ethDevice = NULL;
in CreateEthDevice() 45 if (configEthDevList == NULL) {
in CreateEthDevice() 46 HDF_LOGE("%s input is NULL!", __func__);
in CreateEthDevice() 47 return NULL;
in CreateEthDevice() 50 if (data == NULL) {
in CreateEthDevice() 52 return NULL;
in CreateEthDevice() [all...] |
/drivers/peripheral/audio/effect/model/src/mock_effect/ |
H A D | mock_effect_lib.c | 39 if (commandData == NULL || replyData == NULL || replyDataLen == NULL) {
in MockEffectInitController() 50 if (commandData == NULL || replyData == NULL || replyDataLen == NULL) {
in MockEffectSetConfig() 61 if (commandData == NULL || replyData == NULL || replyDataLen == NULL) {
in MockEffectGetCofig() 72 if (commandData == NULL || replyDat in MockEffectReset() [all...] |