/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_interface_impl.cpp | 117 int32_t ThermalInterfaceImpl::SetCpuFreq(int32_t freq) in SetCpuFreq() argument 119 if (freq <= 0) { in SetCpuFreq() 120 THERMAL_HILOGE(COMP_HDI, "invalid freq %{public}d", freq); in SetCpuFreq() 124 int32_t ret = mitigation_->CpuRequest(freq); in SetCpuFreq() 126 THERMAL_HILOGE(COMP_HDI, "failed to set freq %{public}d", ret); in SetCpuFreq() 133 int32_t ThermalInterfaceImpl::SetGpuFreq(int32_t freq) in SetGpuFreq() argument 135 if (freq <= 0) { in SetGpuFreq() 136 THERMAL_HILOGE(COMP_HDI, "invalid freq %{public}d", freq); in SetGpuFreq() [all...] |
H A D | thermal_device_mitigation.cpp | 39 const std::string SIM_CPU_FREQ_PATH = "/data/service/el0/thermal/cooling/cpu/freq"; 40 const std::string GPU_FREQ_PATH = "/data/service/el0/thermal/cooling/gpu/freq"; 97 int32_t ThermalDeviceMitigation::ExecuteCpuRequest(uint32_t freq, const std::string &path) in ExecuteCpuRequest() argument 109 if (snprintf_s(freqBuf, MAX_PATH, sizeof(freqBuf) - 1, "%u", freq) < EOK) { in ExecuteCpuRequest() 113 THERMAL_HILOGI(COMP_HDI, "Set freq to %{public}d", freq); in ExecuteCpuRequest() 116 THERMAL_HILOGE(COMP_HDI, "failed to set freq"); in ExecuteCpuRequest() 122 int32_t ThermalDeviceMitigation::CpuRequest(uint32_t freq) in CpuRequest() argument 124 int32_t ret = ExecuteCpuRequest(freq, SIM_CPU_FREQ_PATH); in CpuRequest() 144 int32_t ThermalDeviceMitigation::GpuRequest(uint32_t freq) in GpuRequest() argument [all...] |
/drivers/hdf_core/framework/support/platform/src/rtc/ |
H A D | rtc_if.c | 107 int32_t RtcGetFreq(DevHandle handle, uint32_t *freq) in RtcGetFreq() argument 109 if (handle == NULL || freq == NULL) { in RtcGetFreq() 110 HDF_LOGE("RtcGetFreq: handle or freq is null!"); in RtcGetFreq() 114 return RtcHostGetFreq((struct RtcHost *)handle, freq); in RtcGetFreq() 117 int32_t RtcSetFreq(DevHandle handle, uint32_t freq) in RtcSetFreq() argument 124 return RtcHostSetFreq((struct RtcHost *)handle, freq); in RtcSetFreq()
|
H A D | rtc_service.c | 186 uint32_t freq = 0; in RtcServiceIoGetFreq() local 188 ret = RtcHostGetFreq(host, &freq); in RtcServiceIoGetFreq() 190 HDF_LOGE("RtcServiceIoGetFreq: host get freq fail! ret: %d!", ret); in RtcServiceIoGetFreq() 194 if (!HdfSbufWriteUint32(reply, freq)) { in RtcServiceIoGetFreq() 195 HDF_LOGE("RtcServiceIoGetFreq: write freq fail!"); in RtcServiceIoGetFreq() 205 uint32_t freq = 0; in RtcServiceIoSetFreq() local 207 if (!HdfSbufReadUint32(data, &freq)) { in RtcServiceIoSetFreq() 208 HDF_LOGE("RtcServiceIoSetFreq: read freq fail"); in RtcServiceIoSetFreq() 212 ret = RtcHostSetFreq(host, freq); in RtcServiceIoSetFreq() 214 HDF_LOGE("RtcServiceIoSetFreq: host set freq fai in RtcServiceIoSetFreq() [all...] |
H A D | rtc_core.c | 106 int32_t RtcHostGetFreq(struct RtcHost *host, uint32_t *freq) in RtcHostGetFreq() argument 108 if (host == NULL || freq == NULL) { in RtcHostGetFreq() 109 HDF_LOGE("RtcHostGetFreq: host or freq is null!"); in RtcHostGetFreq() 118 return host->method->GetFreq(host, freq); in RtcHostGetFreq() 121 int32_t RtcHostSetFreq(struct RtcHost *host, uint32_t freq) in RtcHostSetFreq() argument 133 return host->method->SetFreq(host, freq); in RtcHostSetFreq()
|
H A D | rtc_if_u.c | 398 int32_t RtcGetFreq(DevHandle handle, uint32_t *freq) in RtcGetFreq() argument 404 if (handle == NULL || freq == NULL) { in RtcGetFreq() 405 HDF_LOGE("RtcGetFreq: handle or freq is null!"); in RtcGetFreq() 428 if (!HdfSbufReadUint32(reply, freq)) { in RtcGetFreq() 438 int32_t RtcSetFreq(DevHandle handle, uint32_t freq) in RtcSetFreq() argument 455 if (!HdfSbufWriteUint32(data, freq)) { in RtcSetFreq() 456 HDF_LOGE("RtcSetFreq: write freq fail!"); in RtcSetFreq()
|
/drivers/hdf_core/adapter/platform/pwm/ |
H A D | pwm_wm.c | 19 uint32_t freq;
member 39 uint32_t freq;
in PwmDevSetConfig() local 55 freq = prvPwm->resource.freq;
in PwmDevSetConfig() 58 tls_pwm_init(pwmCfg->channel, freq, pwmCfg->duty, pwmCfg->pnum);
in PwmDevSetConfig() 91 if (dri->GetUint32(resourceNode, "freq", &resource->freq, 0) != HDF_SUCCESS) {
in GetPwmDeviceResource() 92 HDF_LOGE("read freq fail\r\n");
in GetPwmDeviceResource()
|
H A D | pwm_stm32f4xx.c | 406 uint32_t freq = 0;
local 412 freq = (uint32_t)(PER_SEC_NSEC / config->period);
420 if (freq != 0) {
421 period = (uint32_t)(realHz / freq);
547 HDF_LOGE("calculate freq and period failed!\r\n");
|
/drivers/hdf_core/framework/include/wifi/ |
H A D | hdf_wifi_event.h | 270 int16_t freq; /**< Center frequency of the channel where the BSS is located */ member 290 uint16_t freq; /**< Frequency of the AP */ member 415 * @param freq Indicates the frequency of receiving management frame. 425 int32_t HdfWifiEventRxMgmt(const struct NetDevice *netDev, int32_t freq, int32_t sigMbm, 432 * @param freq Indicates the frequency of the channel. 439 int32_t HdfWifiEventCsaChannelSwitch(const struct NetDevice *netDev, int32_t freq); 477 int32_t HdfWifiEventRemainOnChannel(const struct NetDevice *netDev, uint32_t freq, uint32_t duration); 479 int32_t HdfWifiEventCancelRemainOnChannel(const struct NetDevice *netDev, uint32_t freq);
|
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
H A D | thermal_device_mitigation.h | 30 int32_t ExecuteCpuRequest(uint32_t freq, const std::string &path); 31 int32_t CpuRequest(uint32_t freq); 32 int32_t GpuRequest(uint32_t freq);
|
H A D | thermal_interface_impl.h | 31 int32_t SetCpuFreq(int32_t freq) override; 33 int32_t SetGpuFreq(int32_t freq) override;
|
/drivers/hdf_core/framework/model/network/wifi/include/ |
H A D | hdf_wifi_cmd.h | 175 int32_t freq; member 186 uint32_t freq; member 205 uint32_t freq; member 211 uint32_t freq; member 237 int32_t freq; member 314 uint32_t freq; member 364 int32_t freq; member 387 uint32_t freq; member 401 uint16_t freq; member 408 int32_t freq; member [all...] |
/drivers/hdf_core/framework/support/platform/include/rtc/ |
H A D | rtc_core.h | 40 int32_t (*GetFreq)(struct RtcHost *host, uint32_t *freq); 41 int32_t (*SetFreq)(struct RtcHost *host, uint32_t freq); 67 int32_t RtcHostGetFreq(struct RtcHost *host, uint32_t *freq); 69 int32_t RtcHostSetFreq(struct RtcHost *host, uint32_t freq);
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wifi_event.c | 221 !HdfSbufWriteUint16(data, result->freq) || !HdfSbufWriteBuffer(data, result->bssid, ETH_ADDR_LEN) || in HdfWifiEventConnectResult() 297 int32_t HdfWifiEventCsaChannelSwitch(const struct NetDevice *netDev, int32_t freq) in HdfWifiEventCsaChannelSwitch() argument 313 if (!HdfSbufWriteString(data, netDev->name) || !HdfSbufWriteUint32(data, freq)) { in HdfWifiEventCsaChannelSwitch() 350 int32_t HdfWifiEventRxMgmt(const struct NetDevice *netDev, int32_t freq, int32_t sigMbm, const uint8_t *buf, size_t len) in HdfWifiEventRxMgmt() argument 366 if (!HdfSbufWriteString(data, netDev->name) || !HdfSbufWriteUint32(data, freq) || in HdfWifiEventRxMgmt() 436 int32_t HdfWifiEventRemainOnChannel(const struct NetDevice *netDev, uint32_t freq, uint32_t duration) in HdfWifiEventRemainOnChannel() argument 446 if (!HdfSbufWriteString(data, netDev->name) || !HdfSbufWriteUint32(data, freq)) { in HdfWifiEventRemainOnChannel() 461 int32_t HdfWifiEventCancelRemainOnChannel(const struct NetDevice *netDev, uint32_t freq) in HdfWifiEventCancelRemainOnChannel() argument 471 if (!HdfSbufWriteString(data, netDev->name) || !HdfSbufWriteUint32(data, freq)) { in HdfWifiEventCancelRemainOnChannel()
|
/drivers/peripheral/wlan/client/include/ |
H A D | wifi_driver_client.h | 136 int32_t freq; member 150 uint32_t freq; member 177 uint16_t freq; member 377 int32_t freq; member 429 uint32_t freq; member 458 uint32_t freq; member 507 uint32_t freq; member 532 uint32_t freq; member 543 uint32_t freq; member
|
/drivers/hdf_core/framework/include/platform/ |
H A D | rtc_if.h | 214 * @param freq Indicates the pointer to the frequency of the external crystal oscillator, in Hz. 220 int32_t RtcGetFreq(DevHandle handle, uint32_t *freq); 229 * @param freq Indicates the frequency to set for the external crystal oscillator, in Hz. 235 int32_t RtcSetFreq(DevHandle handle, uint32_t freq);
|
/drivers/peripheral/wlan/client/src/sbuf/ |
H A D | sbuf_event_adapter.c | 68 if (!HdfSbufReadInt32(reqData, &rxMgmt.freq)) { in WifiEventRxMgmtProcess() 69 HDF_LOGE("%s: fail to get freq", __FUNCTION__); in WifiEventRxMgmtProcess() 188 if (!HdfSbufReadUint32(reqData, &(scanResult.freq))) { in WifiEventScanResultProcess() 189 HDF_LOGE("%s: fail to get freq", __FUNCTION__); in WifiEventScanResultProcess() 243 if (!HdfSbufReadUint16(reqData, &(result.freq))) { in WifiEventConnectResultProcess() 244 HDF_LOGE("%s: fail to get freq", __FUNCTION__); in WifiEventConnectResultProcess() 301 if (!HdfSbufReadUint32(reqData, &(result.freq))) { in WifiDriverEventRemainOnChannelProcess() 315 if (!HdfSbufReadUint32(reqData, &(result.freq))) { in WifiDriverEventCancelRemainOnChannelProcess() 316 HDF_LOGE("%s: fail to get freq", __FUNCTION__); in WifiDriverEventCancelRemainOnChannelProcess()
|
/drivers/hdf_core/framework/model/network/wifi/platform/include/ |
H A D | hdf_wlan_utils.h | 20 struct WlanChannel* WifiGetChannel(struct WlanHwCapability* capality, int32_t freq);
|
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | wlan_hdi_direct_test.cpp | 288 int32_t freq[WLAN_FREQ_MAX_NUM] = {0};
in HWTEST_F() local 295 int32_t rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, nullptr, &wifiInfo, freq, &freqLen);
in HWTEST_F() 298 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, &wifiInfo, freq, &freqLen);
in HWTEST_F() 301 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, nullptr, freq, &freqLen);
in HWTEST_F() 305 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, &wifiInfo, freq, nullptr);
in HWTEST_F() 307 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, &wifiInfo, freq, &freqLen);
in HWTEST_F() 694 int32_t freq = WLAN_TX_POWER;
in HWTEST_F() local 699 int32_t rc = g_wlanObj->SendActionFrame(g_wlanObj, nullptr, freq, frameData, frameDataLen);
in HWTEST_F() 703 rc = g_wlanObj->SendActionFrame(g_wlanObj, ifName, freq, nullptr, frameDataLen);
in HWTEST_F() 705 rc = g_wlanObj->SendActionFrame(g_wlanObj, ifName, freq, frameDat in HWTEST_F() [all...] |
H A D | wlan_callback_impl.c | 66 HDF_LOGE("HdiProcessScanResult: flags=%{public}d, caps=%{public}d, freq=%{public}d, beaconInt=%{public}d", in WlanCallbackScanResult() 67 scanResult->flags, scanResult->caps, scanResult->freq, scanResult->beaconInt); in WlanCallbackScanResult() 87 HDF_LOGI("HdiProcessScanResult: flags=%{public}d, caps=%{public}d, freq=%{public}d, beaconInt=%{public}d", in WlanCallbackScanResults() 88 scanResult->flags, scanResult->caps, scanResult->freq, scanResult->beaconInt); in WlanCallbackScanResults()
|
/drivers/peripheral/wlan/wpa/client/include/ |
H A D | wpa_client.h | 212 int freq;
member 233 int freq;
member
|
/drivers/peripheral/thermal/test/unittest/ |
H A D | hdf_thermal_hdi_test.cpp | 75 const std::string CPU_FREQ_PATH = "/data/service/el0/thermal/cooling/cpu/freq"; 76 const std::string GPU_FREQ_PATH = "/data/service/el0/thermal/cooling/gpu/freq"; 149 * @tc.desc: set cpu freq 172 std::string freq = freqValue; in HWTEST_F() local 173 int32_t value = HdfThermalHdiTest::ConvertInt(freq); in HWTEST_F() 174 THERMAL_HILOGD(LABEL_TEST, "freq is %{public}d", value); in HWTEST_F() 181 * @tc.desc: set gpu freq 204 std::string freq = freqValue; in HWTEST_F() local 205 int32_t value = HdfThermalHdiTest::ConvertInt(freq); in HWTEST_F() 206 THERMAL_HILOGD(LABEL_TEST, "freq i in HWTEST_F() [all...] |
/drivers/peripheral/wlan/hdi_service/service_common/ |
H A D | wlan_common_cmd.h | 34 const struct HdfWifiInfo *wifiInfo, int32_t *freq, uint32_t *freqLen);
70 int32_t WlanInterfaceSendActionFrame(struct IWlanInterface *self, const char *ifName, uint32_t freq,
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | rtc_test.c | 352 uint32_t freq; in RtcAlarmIrqAttachConfig() local 360 freq = tester->config.frequency; in RtcAlarmIrqAttachConfig() 361 ret = RtcSetFreq(tester->handle, freq); in RtcAlarmIrqAttachConfig() 363 HDF_LOGE("RtcAlarmIrqAttachConfig: set freq fail, ret: %d!", ret); in RtcAlarmIrqAttachConfig() 538 uint32_t freq; in RtcTestSample() local 547 freq = tester->config.frequency; in RtcTestSample() 548 ret = RtcSetFreq(tester->handle, freq); in RtcTestSample()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_hal_p2p_struct.h | 100 int freq; member
|