/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_chipdriver_manager.c | 66 int cnt; in ChipDriverMgrDeInit() local 67 for (cnt = 0; cnt < MAX_CHIPDRIVER_COUNT; cnt++) { in ChipDriverMgrDeInit() 68 if (g_wlanChipDriverManagerFactory[cnt] != NULL) { in ChipDriverMgrDeInit() 69 if (g_wlanChipDriverManagerFactory[cnt]->ReleaseFactory != NULL) { in ChipDriverMgrDeInit() 70 g_wlanChipDriverManagerFactory[cnt]->ReleaseFactory(g_wlanChipDriverManagerFactory[cnt]); in ChipDriverMgrDeInit() 72 g_wlanChipDriverManagerFactory[cnt] = NULL; in ChipDriverMgrDeInit()
|
/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
H A D | devmgr_uevent_test.cpp | 82 uint32_t cnt = 0; in HWTEST_F() local 84 while (sampleService != nullptr && cnt < timeout) { in HWTEST_F() 87 cnt++; in HWTEST_F() 95 cnt = 0; in HWTEST_F() 97 while (sampleService == nullptr && cnt < timeout) { in HWTEST_F() 100 cnt++; in HWTEST_F() 129 uint32_t cnt = 0; in HWTEST_F() local 130 while (sampleService == nullptr && cnt < timeout) { in HWTEST_F() 133 cnt++; in HWTEST_F() 141 cnt in HWTEST_F() 174 uint32_t cnt = 0; HWTEST_F() local [all...] |
/drivers/peripheral/display/hdi_service/gralloc/client/ |
H A D | allocator_proxy.cpp | 40 uint32_t cnt = 0; in Get() local 42 if (cnt > waitSvcMgrTimeout) { in Get() 43 HDF_LOGE("%{public}s: wait IServiceManager timeout cnt:%{public}u", __func__, cnt); in Get() 48 cnt++; in Get() 49 HDF_LOGI("%{public}s: IServiceManager cnt:%{public}u", __func__, cnt); in Get() 51 HDF_LOGI("%{public}s: get IServiceManager success cnt:%{public}u", __func__, cnt); in Get() 53 cnt in Get() [all...] |
/drivers/hdf_core/framework/model/network/wifi/bus/ |
H A D | hdf_usb_intf.c | 94 static int32_t HdfUsbReadN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbReadN() argument 98 (void)cnt; in HdfUsbReadN() 104 static int32_t HdfUsbReadFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbReadFunc0() argument 108 (void)cnt; in HdfUsbReadFunc0() 114 static int32_t HdfUsbReadSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len) in HdfUsbReadSpcReg() argument 118 (void)cnt; in HdfUsbReadSpcReg() 125 static int32_t HdfUsbWriteN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbWriteN() argument 129 (void)cnt; in HdfUsbWriteN() 135 static int32_t HdfUsbWriteFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbWriteFunc0() argument 139 (void)cnt; in HdfUsbWriteFunc0() 145 HdfUsbWriteSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len) HdfUsbWriteSpcReg() argument 166 int32_t cnt; HdfGetDevHandle() local [all...] |
H A D | hdf_sdio_intf.c | 170 static int32_t HdfSdioReadN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfSdioReadN() argument 179 ret = SdioReadBytes(handle, buf, addr, cnt); in HdfSdioReadN() 186 static int32_t HdfSdioReadFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfSdioReadFunc0() argument 195 ret = SdioReadBytesFromFunc0(handle, buf, addr, cnt); in HdfSdioReadFunc0() 202 static int32_t HdfSdioReadSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len) in HdfSdioReadSpcReg() argument 211 ret = SdioReadBytesFromFixedAddr(handle, buf, addr, cnt, sg_len); in HdfSdioReadSpcReg() 218 static int32_t HdfSdioWriteN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfSdioWriteN() argument 227 ret = SdioWriteBytes(handle, buf, addr, cnt); in HdfSdioWriteN() 234 static int32_t HdfSdioWriteFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfSdioWriteFunc0() argument 243 ret = SdioWriteBytesToFunc0(handle, buf, addr, cnt); in HdfSdioWriteFunc0() 250 HdfSdioWriteSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len) HdfSdioWriteSpcReg() argument 285 int32_t cnt; HdfGetDevHandle() local [all...] |
H A D | hdf_pcie_intf.c | 167 static int32_t HdfPcieReadN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfPcieReadN() argument 181 ret = PcieRead(devBase->handle, PCIE_CONFIG, addr, buf, cnt); in HdfPcieReadN() 188 static int32_t HdfPcieReadFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfPcieReadFunc0() argument 192 (void)cnt; in HdfPcieReadFunc0() 197 static int32_t HdfPcieReadSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len) in HdfPcieReadSpcReg() argument 201 (void)cnt; in HdfPcieReadSpcReg() 207 static int32_t HdfPcieWriteN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfPcieWriteN() argument 221 ret = PcieWrite(devBase->handle, PCIE_CONFIG, addr, buf, cnt); in HdfPcieWriteN() 228 static int32_t HdfPcieWriteFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfPcieWriteFunc0() argument 232 (void)cnt; in HdfPcieWriteFunc0() 237 HdfPcieWriteSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len) HdfPcieWriteSpcReg() argument 295 HdfPcieIoRead(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) HdfPcieIoRead() argument 314 HdfPcieIoWrite(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) HdfPcieIoWrite() argument [all...] |
/drivers/hdf_core/framework/include/wifi/ |
H A D | hdf_ibus_intf.h | 52 int32_t (*readData)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf); 53 int32_t (*writeData)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf); 55 int32_t (*bulkRead)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len); 56 int32_t (*bulkWrite)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len); 58 int32_t (*readFunc0)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf); 59 int32_t (*writeFunc0)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf); 73 int32_t (*ioRead)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf); 74 int32_t (*ioWrite)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf);
|
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/ |
H A D | devmgr_test.cpp | 83 uint32_t cnt = 0; in HWTEST_F() local 84 while (sampleService == nullptr && cnt < timeout) { in HWTEST_F() 87 cnt++; in HWTEST_F() 108 uint32_t cnt = 0; in HWTEST_F() local 110 while (sampleService != nullptr && cnt < timeout) { in HWTEST_F() 113 cnt++; in HWTEST_F() 130 uint32_t cnt = 0; in HWTEST_F() local 132 while (sampleService == nullptr && cnt < timeout) { in HWTEST_F() 135 cnt++; in HWTEST_F() 141 cnt in HWTEST_F() [all...] |
/drivers/hdf_core/framework/test/unittest/osal/ |
H A D | osal_work_test.c | 43 static int cnt = 0; in TestWorkEntry() local 45 if (cnt % DELAY_TIME_DEFAULT == 0) { in TestWorkEntry() 48 cnt++; in TestWorkEntry() 55 static int cnt = 0; in TestDelayWorkEntry() local 58 if (cnt % DELAY_TIME_DEFAULT == 0) { in TestDelayWorkEntry() 61 cnt++; in TestDelayWorkEntry() 76 void TestAddRoute(int cnt) in TestAddRoute() argument 78 if (cnt % MSG_SEND_PERIOD == 0) { in TestAddRoute() 84 } else if (cnt % MSG_SEND_PERIOD == TEST_ITEM_NO_EVENT) { in TestAddRoute() 87 } else if (cnt in TestAddRoute() [all...] |
H A D | osal_list_test.c | 55 static int cnt = 0; in OsalEventHandlerTail() local 57 cnt += para; in OsalEventHandlerTail() 58 if ((g_listLen != 0) && (cnt % g_listLen) == 0) { in OsalEventHandlerTail() 59 HDF_LOGE("in %s msg:%d", __func__, cnt); in OsalEventHandlerTail() 67 static int cnt = 0; in OsalEventHandlerHead() local 69 cnt += para; in OsalEventHandlerHead() 70 if ((g_listLen != 0) && (cnt % g_listLen) == 0) { in OsalEventHandlerHead() 71 HDF_LOGE("in %s msg:%d", __func__, cnt); in OsalEventHandlerHead() 238 static int cnt = 0; in ThreadTestPostSem() local 247 if (cnt in ThreadTestPostSem() [all...] |
H A D | osal_all_test.c | 82 static int cnt = 0; in ThreadTest1() local 92 HDF_LOGE("%s %d", __func__, cnt); in ThreadTest1() 93 cnt++; in ThreadTest1() 94 if (cnt > HDF_THREAD_TEST_MUX_CNT) { in ThreadTest1() 117 if (cnt % HDF_THREAD_TEST_MUX_CNT == 0) { in ThreadTest1() 132 static int cnt = 0; in ThreadTest2() local 152 HDF_LOGE("%s %d", __func__, cnt); in ThreadTest2() 154 cnt++; in ThreadTest2() 178 if (cnt % HDF_THREAD_TEST_MUX_CNT == 0) { in ThreadTest2() 472 static void OsaCheckRun(int cnt) in OsaCheckRun() argument 586 static int cnt = 0; ThreadTest() local [all...] |
H A D | osal_work_test.h | 17 void TestAddRoute(int cnt);
|
/drivers/hdf_core/framework/model/camera/device_manager/src/ |
H A D | camera_device_manager.c | 173 int32_t cnt; in DeviceDriverManagerDeInit() local 174 for (cnt = 0; cnt < DEVICE_DRIVER_MAX_NUM; cnt++) { in DeviceDriverManagerDeInit() 175 if (g_cameraDeviceDriverFactory[cnt] == NULL) { in DeviceDriverManagerDeInit() 178 if (g_cameraDeviceDriverFactory[cnt]->releaseFactory != NULL) { in DeviceDriverManagerDeInit() 179 g_cameraDeviceDriverFactory[cnt]->releaseFactory(g_cameraDeviceDriverFactory[cnt]); in DeviceDriverManagerDeInit() 181 g_cameraDeviceDriverFactory[cnt] = NULL; in DeviceDriverManagerDeInit()
|
/drivers/hdf_core/framework/model/camera/parser/src/ |
H A D | camera_config_parser.c | 262 uint32_t cnt = 0; in ParseCameraSensorConfig() local 274 if (ParseCameraSensorDeviceConfig(childNode, drsOps, &sensorConfig->sensor[cnt]) != HDF_SUCCESS) { in ParseCameraSensorConfig() 275 HDF_LOGE("%s: Parse sensor[%{public}d] failed!", __func__, cnt); in ParseCameraSensorConfig() 278 cnt++; in ParseCameraSensorConfig() 291 uint32_t cnt = 0; in ParseCameraIspConfig() local 303 if (ParseCameraIspDeviceConfig(childNode, drsOps, &ispConfig->isp[cnt]) != HDF_SUCCESS) { in ParseCameraIspConfig() 304 HDF_LOGE("%s: Parse isp[%{public}d] failed!", __func__, cnt); in ParseCameraIspConfig() 307 cnt++; in ParseCameraIspConfig() 320 uint32_t cnt = 0; in ParseCameraLensConfig() local 332 if (ParseCameraLensDeviceConfig(childNode, drsOps, &lensConfig->lens[cnt]) ! in ParseCameraLensConfig() 349 uint32_t cnt = 0; ParseCameraVcmConfig() local 378 uint32_t cnt = 0; ParseCameraFlashConfig() local 407 uint32_t cnt = 0; ParseCameraStreamConfig() local 470 uint32_t cnt = 0; ParseCameraConfig() local [all...] |
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
H A D | osal_all_test.c | 90 static int cnt = 0; in ThreadTest1() local 99 HDF_LOGI("%s %d", __func__, cnt); in ThreadTest1() 100 cnt++; in ThreadTest1() 101 if (cnt > HDF_THREAD_TEST_MUX_CNT) { in ThreadTest1() 120 if (cnt % HDF_THREAD_TEST_MUX_CNT == 0) { in ThreadTest1() 135 static int cnt = 0; in ThreadTest2() local 153 HDF_LOGI("%s %d", __func__, cnt); in ThreadTest2() 155 cnt++; in ThreadTest2() 175 if (cnt % HDF_THREAD_TEST_MUX_CNT == 0) { in ThreadTest2() 369 static void OsaCheckRun(int cnt) in OsaCheckRun() argument 404 static int cnt = 0; ThreadTest() local [all...] |
/drivers/peripheral/sensor/chipset/humidity/ |
H A D | humidity_aht20.c | 29 int32_t cnt; in ReadAht20RawData() local 54 for (cnt = 0; AHT20_HUM_IS_BUSY(value[AHT20_HUM_VALUE_IDX_ZERO]) && (cnt < AHT20_HUM_RETRY_TIMES); cnt++) { in ReadAht20RawData() 60 if (cnt >= AHT20_HUM_RETRY_TIMES) { in ReadAht20RawData()
|
/drivers/hdf_core/adapter/uhdf2/ipc/src/ |
H A D | hdf_remote_adapter.cpp | 304 for (uint32_t cnt = 0; cnt < waitTimes; ++cnt) { in HdfRemoteAdapterAddSa() 305 HDF_LOGI("waiting for samgr... %{public}d", cnt); in HdfRemoteAdapterAddSa() 327 for (uint32_t cnt = 0; cnt < waitTimes; ++cnt) { in HdfRemoteAdapterAddSa() 328 HDF_LOGI("waiting for addSa... %{public}d", cnt); in HdfRemoteAdapterAddSa()
|
/drivers/hdf_core/adapter/platform/gpio/ |
H A D | gpio_gr5xx.c | 55 uint16_t cnt; in PortConfigInit() local 57 for (cnt = 0; cnt < IO_NUM_MAX; cnt++) { in PortConfigInit() 58 g_portCfg[cnt].pull = IO_PULL_DEFAULT; in PortConfigInit() 59 g_portCfg[cnt].mode = IO_MODE_DEFAULT; in PortConfigInit() 60 g_portCfg[cnt].handleMode = APP_IO_NONE_WAKEUP; in PortConfigInit()
|
/drivers/peripheral/usb/sample/host/src/ |
H A D | usbhost_test.c | 229 int32_t cnt = 0; in TestCmdLoop() local 247 if (cnt++ > 10) { in TestCmdLoop() 255 cnt = 0; in TestCmdLoop()
|
/drivers/hdf_core/framework/tools/hdf_dbg/ |
H A D | hdf_dbg.cpp | 118 uint32_t cnt = 0; in PrintAllServiceInfoUser() local 128 cnt++; in PrintAllServiceInfoUser() 131 cout << "total " << std::dec << cnt << " services in user space" << endl; in PrintAllServiceInfoUser() 136 uint32_t cnt = 0; in PrintAllServiceInfoKernel() local 162 cnt++; in PrintAllServiceInfoKernel() 165 cout << "total " << std::dec << cnt << " services in kernel space" << endl; in PrintAllServiceInfoKernel()
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/servmgr/ |
H A D | service_manager_hdi_test.cpp | 802 uint32_t cnt = 0; in HWTEST_F() local 803 while (sample1Service == nullptr && cnt < waitCount) { in HWTEST_F() 806 cnt++; in HWTEST_F() 811 cnt = 0; in HWTEST_F() 813 while (sampleService == nullptr && cnt < waitCount) { in HWTEST_F() 816 cnt++; in HWTEST_F() 856 uint32_t cnt = 0; in HWTEST_F() local 857 while (sample1Service == nullptr && cnt < waitCount) { in HWTEST_F() 860 cnt++; in HWTEST_F() 866 cnt in HWTEST_F() [all...] |
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_hdcp.c | 58 uint32_t cnt = 0; in HdmiHdcpCheckKvs() local 63 cnt++; in HdmiHdcpCheckKvs() 68 if (cnt != HDMI_HDCP_AKSV_ONE_NUM) { in HdmiHdcpCheckKvs() 69 HDF_LOGE("HdmiHdcpCheckKvs: cnt = %d.", cnt); in HdmiHdcpCheckKvs() 432 HDF_LOGE("hdcp auth reach to max cnt, auth fail"); in HdmiHdcpAuthenticationRetry()
|
/drivers/hdf_core/framework/model/display/driver/lcdkit/ |
H A D | lcdkit_parse_config.c | 22 int32_t cnt = 0; in GetDsiCmdCount() local 29 cnt++; in GetDsiCmdCount() 35 *count = cnt; in GetDsiCmdCount()
|
/drivers/hdf_core/framework/test/unittest/pm/ |
H A D | hdf_pm_driver_test.c | 33 #define CHECK_VALUE(index, cnt) \ 34 (g_pmTestType[(index)].resumeCnt == (cnt) && g_pmTestType[(index)].suspendCnt == (cnt))
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | startup_cfg_gen.cpp | 242 uint32_t cnt = 1; 254 for (; it != vect.end(); ++it, ++cnt) { 255 if (cnt == size) {
|