Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 65) sorted by relevance

123

/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dthermal_interface_impl.cpp117 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()
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()
140 int32_t ret = mitigation_->GpuRequest(freq); in SetGpuFreq()
Dthermal_device_mitigation.cpp97 int32_t ThermalDeviceMitigation::ExecuteCpuRequest(uint32_t freq, const std::string &path) in ExecuteCpuRequest() argument
109 if (snprintf_s(freqBuf, MAX_PATH, sizeof(freqBuf) - 1, "%d", freq) < EOK) { in ExecuteCpuRequest()
113 THERMAL_HILOGI(COMP_HDI, "Set freq to %{public}d", 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
155 ret = snprintf_s(freqBuf, MAX_PATH, sizeof(freqBuf) - 1, "%d", freq); in GpuRequest()
160 THERMAL_HILOGI(COMP_HDI, "Set freq to %{public}d", freq); in GpuRequest()
/drivers/hdf_core/framework/support/platform/src/rtc/
Drtc_if.c107 int32_t RtcGetFreq(DevHandle handle, uint32_t *freq) in RtcGetFreq() argument
109 if (handle == NULL || freq == 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()
Drtc_core.c106 int32_t RtcHostGetFreq(struct RtcHost *host, uint32_t *freq) in RtcHostGetFreq() argument
108 if (host == NULL || freq == 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()
Drtc_service.c186 uint32_t freq = 0; in RtcServiceIoGetFreq() local
188 ret = RtcHostGetFreq(host, &freq); in RtcServiceIoGetFreq()
194 if (!HdfSbufWriteUint32(reply, freq)) { in RtcServiceIoGetFreq()
205 uint32_t freq = 0; in RtcServiceIoSetFreq() local
207 if (!HdfSbufReadUint32(data, &freq)) { in RtcServiceIoSetFreq()
212 ret = RtcHostSetFreq(host, freq); in RtcServiceIoSetFreq()
Drtc_if_u.c398 int32_t RtcGetFreq(DevHandle handle, uint32_t *freq) in RtcGetFreq() argument
404 if (handle == NULL || freq == 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()
/drivers/peripheral/thermal/interfaces/hdi_service/include/
Dthermal_device_mitigation.h30 int32_t ExecuteCpuRequest(uint32_t freq, const std::string &path);
31 int32_t CpuRequest(uint32_t freq);
32 int32_t GpuRequest(uint32_t freq);
Dthermal_interface_impl.h31 int32_t SetCpuFreq(int32_t freq) override;
33 int32_t SetGpuFreq(int32_t freq) override;
/drivers/hdf_core/adapter/platform/pwm/
Dpwm_wm.c19 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()
/drivers/hdf_core/framework/model/network/wifi/include/
Dhdf_wifi_cmd.h175 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
/drivers/hdf_core/framework/include/wifi/
Dhdf_wifi_event.h270 …int16_t freq; /**< Center frequency of the channel where the BSS is located */ member
290 uint16_t freq; /**< Frequency of the AP */ member
425 int32_t HdfWifiEventRxMgmt(const struct NetDevice *netDev, int32_t freq, int32_t sigMbm,
439 int32_t HdfWifiEventCsaChannelSwitch(const struct NetDevice *netDev, int32_t freq);
477 int32_t HdfWifiEventRemainOnChannel(const struct NetDevice *netDev, uint32_t freq, uint32_t duratio…
479 int32_t HdfWifiEventCancelRemainOnChannel(const struct NetDevice *netDev, uint32_t freq);
/drivers/hdf_core/framework/support/platform/include/rtc/
Drtc_core.h40 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/
Dhdf_wifi_event.c221 …!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 uint… 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 duratio… 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/interface/thermal/v1_0/
DIThermalInterface.idl56 * @param freq CPU frequency to set.
62 SetCpuFreq([in] int freq);
67 * @param freq GPU frequency to set.
73 SetGpuFreq([in] int freq);
/drivers/peripheral/wlan/client/include/
Dwifi_driver_client.h132 int32_t freq; member
146 uint32_t freq; member
173 uint16_t freq; member
364 int32_t freq; member
416 uint32_t freq; member
445 uint32_t freq; member
494 uint32_t freq; member
519 uint32_t freq; member
525 uint32_t freq; member
/drivers/hdf_core/framework/include/platform/
Drtc_if.h220 int32_t RtcGetFreq(DevHandle handle, uint32_t *freq);
235 int32_t RtcSetFreq(DevHandle handle, uint32_t freq);
/drivers/interface/thermal/v1_1/
DIThermalInterface.idl57 * @param freq CPU frequency to set.
63 SetCpuFreq([in] int freq);
68 * @param freq GPU frequency to set.
74 SetGpuFreq([in] int freq);
/drivers/peripheral/thermal/test/unittest/
Dhdf_thermal_hdi_test.cpp172 std::string freq = freqValue; variable
173 int32_t value = HdfThermalHdiTest::ConvertInt(freq);
204 std::string freq = freqValue; variable
205 int32_t value = HdfThermalHdiTest::ConvertInt(freq);
/drivers/peripheral/wlan/client/src/sbuf/
Dsbuf_event_adapter.c68 if (!HdfSbufReadInt32(reqData, &rxMgmt.freq)) { in WifiEventRxMgmtProcess()
188 if (!HdfSbufReadUint32(reqData, &(scanResult.freq))) { in WifiEventScanResultProcess()
243 if (!HdfSbufReadUint16(reqData, &(result.freq))) { in WifiEventConnectResultProcess()
301 if (!HdfSbufReadUint32(reqData, &(result.freq))) { in WifiDriverEventRemainOnChannelProcess()
315 if (!HdfSbufReadUint32(reqData, &(result.freq))) { in WifiDriverEventCancelRemainOnChannelProcess()
/drivers/hdf_core/framework/model/network/wifi/platform/include/
Dhdf_wlan_utils.h20 struct WlanChannel* WifiGetChannel(struct WlanHwCapability* capality, int32_t freq);
/drivers/peripheral/wlan/test/hdi_service/
Dwlan_hdi_direct_test.cpp288 int32_t freq[WLAN_FREQ_MAX_NUM] = {0}; variable
295 int32_t rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, nullptr, &wifiInfo, freq, &freqLen);
298 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, &wifiInfo, freq, &freqLen);
301 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, nullptr, freq, &freqLen);
305 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, &wifiInfo, freq, nullptr);
307 rc = g_wlanObj->GetFreqsWithBand(g_wlanObj, &ifeature, &wifiInfo, freq, &freqLen);
694 int32_t freq = WLAN_TX_POWER; variable
699 int32_t rc = g_wlanObj->SendActionFrame(g_wlanObj, nullptr, freq, frameData, frameDataLen);
703 rc = g_wlanObj->SendActionFrame(g_wlanObj, ifName, freq, nullptr, frameDataLen);
705 rc = g_wlanObj->SendActionFrame(g_wlanObj, ifName, freq, frameData, 0);
[all …]
Dwlan_callback_impl.c67 scanResult->flags, scanResult->caps, scanResult->freq, scanResult->beaconInt); in WlanCallbackScanResult()
88 scanResult->flags, scanResult->caps, scanResult->freq, scanResult->beaconInt); in WlanCallbackScanResults()
/drivers/peripheral/wlan/wpa/client/include/
Dwpa_client.h208 int freq; member
229 int freq; member
/drivers/peripheral/wlan/hdi_service/service_common/
Dwlan_common_cmd.h34 const struct HdfWifiInfo *wifiInfo, int32_t *freq, uint32_t *freqLen);
70 int32_t WlanInterfaceSendActionFrame(struct IWlanInterface *self, const char *ifName, uint32_t freq,
/drivers/interface/wlan/wpa/v1_0/
DWpaTypes.idl71 int freq;
115 int freq;
344 int freq;
432 int freq;
470 int freq;

123