/ohos5.0/drivers/hdf_core/framework/support/platform/src/rtc/ |
H A D | rtc_core.c | 23 if (host->method == NULL || host->method->ReadTime == NULL) { in RtcHostReadTime() 28 return host->method->ReadTime(host, time); in RtcHostReadTime() 38 if (host->method == NULL || host->method->WriteTime == NULL) { in RtcHostWriteTime() 43 return host->method->WriteTime(host, time); in RtcHostWriteTime() 58 return host->method->ReadAlarm(host, alarmIndex, time); in RtcHostReadAlarm() 73 return host->method->WriteAlarm(host, alarmIndex, time); in RtcHostWriteAlarm() 118 return host->method->GetFreq(host, freq); in RtcHostGetFreq() 133 return host->method->SetFreq(host, freq); in RtcHostSetFreq() 148 return host->method->Reset(host); in RtcHostReset() 163 return host->method->ReadReg(host, usrDefIndex, value); in RtcHostReadReg() [all …]
|
H A D | rtc_service.c | 25 ret = RtcHostReadTime(host, &time); in RtcServiceIoReadTime() 50 ret = RtcHostWriteTime(host, time); in RtcServiceIoWriteTime() 112 struct RtcHost *host = NULL; in RtcAlarmServiceCallback() local 117 if (host == NULL) { in RtcAlarmServiceCallback() 188 ret = RtcHostGetFreq(host, &freq); in RtcServiceIoGetFreq() 212 ret = RtcHostSetFreq(host, freq); in RtcServiceIoSetFreq() 225 ret = RtcHostReset(host); in RtcServiceIoReset() 245 ret = RtcHostReadReg(host, usrDefIndex, &value); in RtcServiceIoReadReg() 286 struct RtcHost *host = NULL; in RtcIoDispatch() local 321 return RtcServiceIoSetFreq(host, data); in RtcIoDispatch() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/uart/ |
H A D | uart_core.h | 60 return (host == NULL) ? NULL : host->device; in UartHostToDevice() 82 if (host == NULL || host->method == NULL || host->method->Read == NULL) { in UartHostRead() 85 return host->method->Read(host, data, size); in UartHostRead() 90 if (host == NULL || host->method == NULL || host->method->Write == NULL) { in UartHostWrite() 93 return host->method->Write(host, data, size); in UartHostWrite() 98 if (host == NULL || host->method == NULL || host->method->GetBaud == NULL) { in UartHostGetBaud() 106 if (host == NULL || host->method == NULL || host->method->SetBaud == NULL) { in UartHostSetBaud() 114 if (host == NULL || host->method == NULL || host->method->GetAttribute == NULL) { in UartHostGetAttribute() 122 if (host == NULL || host->method == NULL || host->method->SetAttribute == NULL) { in UartHostSetAttribute() 130 if (host == NULL || host->method == NULL || host->method->SetTransMode == NULL) { in UartHostSetTransMode() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/uart/ |
H A D | uart_core.c | 20 if (host == NULL) { in UartHostRequest() 25 if (host->method == NULL || host->method->Init == NULL) { in UartHostRequest() 36 ret = host->method->Init(host); in UartHostRequest() 50 if (host == NULL) { in UartHostRelease() 55 if (host->method == NULL || host->method->Deinit == NULL) { in UartHostRelease() 60 ret = host->method->Deinit(host); in UartHostRelease() 72 if (host == NULL) { in UartHostDestroy() 76 OsalMemFree(host); in UartHostDestroy() 88 host = (struct UartHost *)OsalMemCalloc(sizeof(*host)); in UartHostCreate() 98 host->priv = NULL; in UartHostCreate() [all …]
|
H A D | uart_service.c | 39 ret = UartHostRead(host, buf, len); in UartIoRead() 65 return UartHostWrite(host, buf, size); in UartIoWrite() 73 ret = UartHostGetBaud(host, &baudRate); in UartIoGetBaud() 93 return UartHostSetBaud(host, baudRate); in UartIoSetBaud() 139 return UartHostSetTransMode(host, mode); in UartIoSetTransMode() 144 struct UartHost *host = NULL; in UartIoDispatch() local 164 return UartHostRequest(host); in UartIoDispatch() 166 return UartHostRelease(host); in UartIoDispatch() 170 return UartIoWrite(host, data); in UartIoDispatch() 172 return UartIoGetBaud(host, reply); in UartIoDispatch() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | toggle_button_pattern.cpp | 66 auto host = GetHost(); in OnModifyDone() local 67 CHECK_NULL_VOID(host); in OnModifyDone() 119 auto host = GetHost(); in SetAccessibilityAction() local 120 CHECK_NULL_VOID(host); in SetAccessibilityAction() 139 auto host = GetHost(); in UpdateSelectStatus() local 140 CHECK_NULL_VOID(host); in UpdateSelectStatus() 156 auto host = GetHost(); in MarkIsSelected() local 157 CHECK_NULL_VOID(host); in MarkIsSelected() 169 auto host = GetHost(); in OnAfterModifyDone() local 170 CHECK_NULL_VOID(host); in OnAfterModifyDone() [all …]
|
H A D | button_pattern.cpp | 53 auto host = GetHost(); in OnAttachToFrameNode() local 54 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 155 CHECK_NULL_VOID(host); in UpdateTextStyle() 175 auto host = GetHost(); in IsNeedToHandleHoverOpacity() local 185 auto host = GetHost(); in InitButtonLabel() local 186 CHECK_NULL_VOID(host); in InitButtonLabel() 226 auto host = GetHost(); in InitTouchEvent() local 227 CHECK_NULL_VOID(host); in InitTouchEvent() 249 auto host = GetHost(); in OnAfterModifyDone() local 250 CHECK_NULL_VOID(host); in OnAfterModifyDone() [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | pcie_virtual.c | 78 if (host == NULL) { in PcieVirtualAdapterDmaMap() 91 host->len = len; in PcieVirtualAdapterDmaMap() 92 host->dir = dir; in PcieVirtualAdapterDmaMap() 105 if (addr != host->dmaData || len != host->len || dir != host->dir) { in PcieVirtualAdapterDmaUnmap() 109 host->dmaData = 0; in PcieVirtualAdapterDmaUnmap() 110 host->len = 0; in PcieVirtualAdapterDmaUnmap() 111 host->dir = 0; in PcieVirtualAdapterDmaUnmap() 118 if (host == NULL) { in PcieVirtualRegIrq() 134 if (host == NULL) { in PcieVirtualUnregIrq() 183 OsalMemFree(host); in PcieVirtualAdapterBind() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/ |
H A D | switch_pattern.cpp | 74 auto host = GetHost(); in OnModifyDone() local 75 CHECK_NULL_VOID(host); in OnModifyDone() 99 auto host = GetHost(); in UpdateSwitchPaintProperty() local 100 CHECK_NULL_VOID(host); in UpdateSwitchPaintProperty() 126 auto host = GetHost(); in UpdateSwitchLayoutProperty() local 127 CHECK_NULL_VOID(host); in UpdateSwitchLayoutProperty() 159 auto host = GetHost(); in SetAccessibilityAction() local 160 CHECK_NULL_VOID(host); in SetAccessibilityAction() 179 auto host = GetHost(); in UpdateSelectStatus() local 180 CHECK_NULL_VOID(host); in UpdateSelectStatus() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/ |
H A D | checkbox_pattern.cpp | 41 auto host = GetHost(); in OnAttachToFrameNode() local 42 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 56 auto host = GetHost(); in UpdateIndicator() local 57 CHECK_NULL_VOID(host); in UpdateIndicator() 84 auto host = GetHost(); in OnModifyDone() local 85 CHECK_NULL_VOID(host); in OnModifyDone() 126 auto host = GetHost(); in SetAccessibilityAction() local 127 CHECK_NULL_VOID(host); in SetAccessibilityAction() 145 auto host = GetHost(); in UpdateSelectStatus() local 146 CHECK_NULL_VOID(host); in UpdateSelectStatus() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/ |
H A D | radio_pattern.cpp | 58 auto host = GetHost(); in OnAttachToFrameNode() local 59 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 118 auto host = GetHost(); in OnModifyDone() local 119 CHECK_NULL_VOID(host); in OnModifyDone() 161 auto host = GetHost(); in ImageNodeCreate() local 162 CHECK_NULL_VOID(host); in ImageNodeCreate() 202 auto host = GetHost(); in SetAccessibilityAction() local 203 CHECK_NULL_VOID(host); in SetAccessibilityAction() 221 auto host = GetHost(); in UpdateSelectStatus() local 222 CHECK_NULL_VOID(host); in UpdateSelectStatus() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/loading_progress/ |
H A D | loading_progress_pattern.cpp | 40 auto host = GetHost(); in OnAttachToFrameNode() local 41 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 80 auto host = GetHost(); in StartAnimation() local 81 CHECK_NULL_VOID(host); in StartAnimation() 93 auto host = GetHost(); in StopAnimation() local 94 CHECK_NULL_VOID(host); in StopAnimation() 103 auto host = GetHost(); in RegisterVisibleAreaChange() local 104 CHECK_NULL_VOID(host); in RegisterVisibleAreaChange() 143 auto host = GetHost(); in FireBuilder() local 144 CHECK_NULL_VOID(host); in FireBuilder() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
H A D | uart_dev.c | 44 struct UartHost *host = NULL; in UartDevOpen() local 52 return UartHostRequest(host); in UartDevOpen() 57 struct UartHost *host = NULL; in UartDevRelease() local 66 return UartHostRelease(host); in UartDevRelease() 74 struct UartHost *host = NULL; in UartDevRead() local 104 struct UartHost *host = NULL; in UartDevWrite() local 153 struct UartHost *host = NULL; in UartDevIoctl() local 199 struct UartHost *host = NULL; in uartdev_poll() local 229 if (host == NULL || host->priv == NULL) { in UartAddRemoveDev() 264 UartAddRemoveDev(host, true); in UartAddDev() [all …]
|
/ohos5.0/drivers/hdf_core/framework/sample/platform/uart/src/ |
H A D | uart_dev_sample.c | 22 struct UartHost *host = NULL; in UartSampleDevOpen() local 29 if (host == NULL) { in UartSampleDevOpen() 39 struct UartHost *host = NULL; in UartSampleRelease() local 46 if (host == NULL) { in UartSampleRelease() 57 struct UartHost *host = NULL; in UartSampleRead() local 85 struct UartHost *host = NULL; in UartSampleWrite() local 115 struct UartHost *host = NULL; in UartSampleDevIoctl() local 121 if (host->priv == NULL) { in UartSampleDevIoctl() 152 if (host == NULL || host->priv == NULL) { in AddRemoveUartDev() 185 AddRemoveUartDev(host, true); in AddUartDevice() [all …]
|
H A D | uart_sample.c | 67 if (host == NULL) { in SampleUartHostInit() 77 if (host == NULL) { in SampleUartHostDeinit() 114 if (host == NULL) { in SampleUartHostSetBaud() 142 if (host == NULL) { in SampleUartHostGetBaud() 252 host->priv = uartDevice; in AttachUartDevice() 253 AddUartDevice(host); in AttachUartDevice() 276 uartDevice = host->priv; in DetachUartDevice() 279 host->priv = NULL; in DetachUartDevice() 312 if (host == NULL) { in SampleUartDriverInit() 335 if (host == NULL) { in SampleUartDriverRelease() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/ |
H A D | page_pattern.cpp | 57 auto host = GetHost(); in OnAttachToFrameNode() local 58 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 86 auto host = GetHost(); in BeforeSyncGeometryProperties() local 87 CHECK_NULL_VOID(host); in BeforeSyncGeometryProperties() 95 auto host = GetHost(); in TriggerPageTransition() local 141 auto host = GetHost(); in ProcessAutoSave() local 153 auto host = GetHost(); in ProcessHideState() local 154 CHECK_NULL_VOID(host); in ProcessHideState() 166 auto host = GetHost(); in ProcessShowState() local 167 CHECK_NULL_VOID(host); in ProcessShowState() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/ |
H A D | checkboxgroup_pattern.cpp | 36 auto host = GetHost(); in OnAttachToFrameNode() local 37 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 53 auto host = GetHost(); in OnModifyDone() local 54 CHECK_NULL_VOID(host); in OnModifyDone() 82 auto host = GetHost(); in SetAccessibilityAction() local 83 CHECK_NULL_VOID(host); in SetAccessibilityAction() 101 auto host = GetHost(); in UpdateSelectStatus() local 102 CHECK_NULL_VOID(host); in UpdateSelectStatus() 119 auto host = GetHost(); in MarkIsSelected() local 120 CHECK_NULL_VOID(host); in MarkIsSelected() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/rtc/ |
H A D | rtc_core.h | 34 int32_t (*ReadTime)(struct RtcHost *host, struct RtcTime *time); 35 int32_t (*WriteTime)(struct RtcHost *host, const struct RtcTime *time); 40 int32_t (*GetFreq)(struct RtcHost *host, uint32_t *freq); 41 int32_t (*SetFreq)(struct RtcHost *host, uint32_t freq); 42 int32_t (*Reset)(struct RtcHost *host); 48 void RtcHostDestroy(struct RtcHost *host); 55 int32_t RtcHostReadTime(struct RtcHost *host, struct RtcTime *time); 57 int32_t RtcHostWriteTime(struct RtcHost *host, const struct RtcTime *time); 67 int32_t RtcHostGetFreq(struct RtcHost *host, uint32_t *freq); 69 int32_t RtcHostSetFreq(struct RtcHost *host, uint32_t freq); [all …]
|
/ohos5.0/foundation/bundlemanager/distributed_bundle_framework/services/dbms/test/unittest/distributed_bms_host_test/ |
H A D | distributed_bms_host_test.cpp | 61 MockDistributedBmsHost host; variable 81 MockDistributedBmsHost host; variable 101 MockDistributedBmsHost host; variable 124 MockDistributedBmsHost host; variable 147 MockDistributedBmsHost host; variable 170 MockDistributedBmsHost host; variable 192 MockDistributedBmsHost host; variable 215 MockDistributedBmsHost host; variable 239 MockDistributedBmsHost host; variable 263 MockDistributedBmsHost host; variable [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_item_pattern.cpp | 46 auto host = GetHost(); in OnModifyDone() local 47 CHECK_NULL_VOID(host); in OnModifyDone() 92 auto host = GetHost(); in SetAccessibilityAction() local 93 CHECK_NULL_VOID(host); in SetAccessibilityAction() 153 auto host = GetHost(); in InitHoverEvent() local 154 CHECK_NULL_VOID(host); in InitHoverEvent() 171 auto host = GetHost(); in HandleHoverEvent() local 172 CHECK_NULL_VOID(host); in HandleHoverEvent() 191 auto host = GetHost(); in InitPressEvent() local 192 CHECK_NULL_VOID(host); in InitPressEvent() [all …]
|
H A D | grid_event_hub.cpp | 70 auto host = GetFrameNode(); in CheckPostionInGrid() local 83 auto host = GetFrameNode(); in GetInsertPosition() local 84 CHECK_NULL_RETURN(host, -1); in GetInsertPosition() 107 auto host = GetFrameNode(); in GetFrameNodeChildSize() local 108 CHECK_NULL_RETURN(host, 0); in GetFrameNodeChildSize() 144 auto host = GetFrameNode(); in GetEditable() local 157 auto host = GetFrameNode(); in HandleOnItemDragStart() local 158 CHECK_NULL_VOID(host); in HandleOnItemDragStart() 252 CHECK_NULL_VOID(host); in HandleOnItemDragEnd() 271 CHECK_NULL_VOID(host); in HandleOnItemDragCancel() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/ |
H A D | menu_item_group_pattern.cpp | 32 auto host = GetHost(); in OnMountToParentDone() local 33 CHECK_NULL_VOID(host); in OnMountToParentDone() 77 auto host = GetHost(); in AddHeader() local 78 CHECK_NULL_VOID(host); in AddHeader() 84 host->ReplaceChild(host->GetChildAtIndex(headerIndex_), header); in AddHeader() 96 auto host = GetHost(); in AddFooter() local 97 CHECK_NULL_VOID(host); in AddFooter() 103 host->ReplaceChild(host->GetChildAtIndex(footerIndex_), footer); in AddFooter() 115 auto host = GetHost(); in GetMenu() local 137 auto host = GetHost(); in UpdateMenuItemIconInfo() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_pattern.cpp | 45 auto host = GetHost(); in OnAttachToFrameNode() local 46 CHECK_NULL_VOID(host); in OnAttachToFrameNode() 65 auto host = GetHost(); in SetGestureEvent() local 66 CHECK_NULL_VOID(host); in SetGestureEvent() 111 auto host = GetHost(); in InitMouseEvent() local 112 CHECK_NULL_VOID(host); in InitMouseEvent() 170 auto host = GetHost(); in UpdateHandleHotZone() local 171 CHECK_NULL_VOID(host); in UpdateHandleHotZone() 251 CHECK_NULL_VOID(host); in HandleOnClick() 321 CHECK_NULL_VOID(host); in HandlePanStart() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/platform/uart/ |
H A D | uart_wm.c | 237 if (host == NULL || host->priv == NULL) { in InitUartDevice() 360 if (host == NULL || host->priv == NULL) { in UartDriverRelease() 372 OsalMemFree(host); in UartDriverRelease() 421 if (host == NULL || host->priv == NULL) { in UartHostDevDeinit() 436 if (host == NULL || data == NULL || size == 0 || host->priv == NULL) { in UartHostDevWrite() 460 if (host == NULL || data == NULL || host->priv == NULL) { in UartHostDevRead() 493 if (host == NULL || host->priv == NULL) { in UartHostDevSetBaud() 519 if (host == NULL || baudRate == NULL || host->priv == NULL) { in UartHostDevGetBaud() 540 if (host == NULL || attribute == NULL || host->priv == NULL) { in UartHostDevSetAttribute() 584 if (host == NULL || attribute == NULL || host->priv == NULL) { in UartHostDevGetAttribute() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/ |
H A D | BUILD.gn | 27 "$hdf_interfaces_path/inner_api/host/shared", 28 "$hdf_interfaces_path/inner_api/host/uhdf", 46 "$hdf_framework_path/core/host/include", 49 "$hdf_uhdf_path/include/host", 77 "$hdf_uhdf_path/host/src/devhost_dump.c", 82 "$hdf_uhdf_path/host/src/device_token_stub.c", 86 "$hdf_uhdf_path/host/src/hdf_device_thread.c", 88 "$hdf_uhdf_path/host/src/hdf_pm_reg.c", 114 "$hdf_framework_path/core/host/include", 117 "$hdf_uhdf_path/include/host", [all …]
|