/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | hdi_wpa_common.c | 113 static int StaCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in StaCliCmd() argument 116 if (ctrl == NULL || ctrl->pSend == NULL || cmd == NULL || buf == NULL || bufLen == 0) { in StaCliCmd() 120 size_t len = bufLen - 1; in StaCliCmd() 140 static int P2pCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in P2pCliCmd() argument 143 if (ctrl == NULL || ctrl->pSend == NULL || cmd == NULL || buf == NULL || bufLen == 0) { in P2pCliCmd() 147 size_t len = bufLen - 1; in P2pCliCmd() 167 static int ChbaCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in ChbaCliCmd() argument 170 if (ctrl == NULL || ctrl->pSend == NULL || cmd == NULL || buf == NULL || bufLen == 0) { in ChbaCliCmd() 174 size_t len = bufLen - 1; in ChbaCliCmd() 194 static int CommonCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in CommonCliCmd() argument 222 WpaCliCmd(const char *cmd, char *buf, size_t bufLen) WpaCliCmd() argument [all...] |
H A D | hdi_wpa_common.h | 45 int WpaCliCmd(const char *cmd, char *buf, size_t bufLen);
|
/drivers/liteos/hievent/src/ |
H A D | hievent_driver.c | 142 static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen) in HieventReadRingBuffer() argument 146 if (bufLeft > bufLen) { in HieventReadRingBuffer() 147 retval = HieventBufferCopy(buffer, bufLen, HieventBufferHead(), bufLen); in HieventReadRingBuffer() 149 retval = HieventBufferCopy(buffer, bufLen, HieventBufferHead(), bufLeft); in HieventReadRingBuffer() 154 retval = HieventBufferCopy(buffer + bufLeft, bufLen - bufLeft, in HieventReadRingBuffer() 155 g_hieventDev.buffer, bufLen - bufLeft); in HieventReadRingBuffer() 160 static ssize_t HieventRead(struct file *filep, char *buffer, size_t bufLen) in HieventRead() argument 177 if (bufLen < header.len + sizeof(header)) { in HieventRead() 185 retval = HieventBufferCopy((unsigned char *)buffer, bufLen, in HieventRead() 214 HieventWriteRingBuffer(unsigned char *buffer, size_t bufLen) HieventWriteRingBuffer() argument 250 HieventCoverOldLog(size_t bufLen) HieventCoverOldLog() argument 268 HieventWriteInternal(const char *buffer, size_t bufLen) HieventWriteInternal() argument 323 HieventWrite(struct file *filep, const char *buffer, size_t bufLen) HieventWrite() argument [all...] |
H A D | hiview_hievent.c | 355 size_t bufLen = sizeof(int) + sizeof(struct IdapHeader) + msglen; in LogBufToException() local 356 char *buffer = LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, bufLen); in LogBufToException() 376 ret = HieventWriteInternal(buffer, bufLen); in LogBufToException() 504 int bufLen; in HiviewHieventReport() local 512 bufLen = HiviewHieventConvertString(obj, &str); in HiviewHieventReport() 516 sentPacket = HiviewHieventWriteLogException(str, bufLen); in HiviewHieventReport()
|
/drivers/external_device_manager/frameworks/js/napi/driver_extension_ability/ |
H A D | driver_extension_ability_module.cpp | 35 const char **buf, int *bufLen) in NAPI_app_ability_DriverExtensionAbility_GetJSCode() 41 if (bufLen != nullptr) { in NAPI_app_ability_DriverExtensionAbility_GetJSCode() 42 *bufLen = _binary_driver_extension_ability_js_end - _binary_driver_extension_ability_js_start; in NAPI_app_ability_DriverExtensionAbility_GetJSCode() 34 NAPI_app_ability_DriverExtensionAbility_GetJSCode( const char **buf, int *bufLen) NAPI_app_ability_DriverExtensionAbility_GetJSCode() argument
|
/drivers/external_device_manager/frameworks/js/napi/driver_extension_context/ |
H A D | driver_extension_context_module.cpp | 35 const char **buf, int *bufLen) in NAPI_application_DriverExtensionContext_GetJSCode() 41 if (bufLen != nullptr) { in NAPI_application_DriverExtensionContext_GetJSCode() 42 *bufLen = _binary_driver_extension_context_js_end - _binary_driver_extension_context_js_start; in NAPI_application_DriverExtensionContext_GetJSCode() 34 NAPI_application_DriverExtensionContext_GetJSCode( const char **buf, int *bufLen) NAPI_application_DriverExtensionContext_GetJSCode() argument
|
/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db_ops_base.c | 73 uint32_t bufLen = fileNameLen; in GenerateFileName() local 74 if (GetBufFromData((uint8_t *)prefix, strlen(prefix), (uint8_t **)(&buf), &bufLen) != RESULT_SUCCESS) { in GenerateFileName() 84 (uint8_t **)(&buf), &bufLen) != RESULT_SUCCESS) { in GenerateFileName() 88 if (GetBufFromData((uint8_t *)suffix, strlen(suffix), (uint8_t **)&buf, &bufLen) != RESULT_SUCCESS) { in GenerateFileName() 92 if (bufLen == 0) { in GenerateFileName()
|
/drivers/peripheral/sensor/chipset/ppg/ |
H A D | ppg_cs1262_spi.c | 136 uint8_t bufLen = CS1262_HEAD_BUF_SINGLEREG_LEN; in Cs1262ReadRegs() local 140 headBuf[bufLen++] = Cs1262GetHighByteInt16(dataLen - 1); in Cs1262ReadRegs() 141 headBuf[bufLen++] = Cs1262GetLowByteInt16(dataLen - 1); in Cs1262ReadRegs() 148 .len = bufLen, in Cs1262ReadRegs() 186 uint8_t bufLen = CS1262_HEAD_BUF_SINGLEREG_LEN; in Cs1262WriteRegs() local 190 headBuf[bufLen++] = Cs1262GetHighByteInt16(dataLen - 1); in Cs1262WriteRegs() 191 headBuf[bufLen++] = Cs1262GetLowByteInt16(dataLen - 1); in Cs1262WriteRegs() 202 .len = bufLen, in Cs1262WriteRegs()
|
/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
H A D | i2c_dev.c | 108 size_t bufLen; in I2cMsgsCreateFromUser() local 126 for (i = 0, bufLen = 0; i < wrap->nmsgs; i++) { in I2cMsgsCreateFromUser() 131 bufLen += uMsgs[i].len; in I2cMsgsCreateFromUser() 133 if (bufLen >= I2C_BUF_MAX) { in I2cMsgsCreateFromUser() 134 HDF_LOGE("I2cMsgsCreateFromUser: buf too long:%u", bufLen); in I2cMsgsCreateFromUser() 139 dataBuf = (uint8_t *)OsalMemCalloc(bufLen); in I2cMsgsCreateFromUser()
|
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | hostapd_hdi_direct_test.cpp | 235 const uint32_t bufLen = 4096*10;
in HWTEST_F() local 237 int32_t rc = g_hostapdObj->GetStaInfos(g_hostapdObj, IFNAME, buf, bufLen, size, 1);
in HWTEST_F() 239 rc = g_hostapdObj->GetStaInfos(g_hostapdObj, nullptr, buf, bufLen, size, 1);
in HWTEST_F() 241 rc = g_hostapdObj->GetStaInfos(g_hostapdObj, IFNAME, nullptr, bufLen, size, 1);
in HWTEST_F()
|
H A D | hostapd_hdi_hal_services_c_test.cpp | 220 uint32_t bufLen = 4096 * 10;
in HWTEST_F() local 222 int32_t rc = g_hostapdObj->GetStaInfos(g_hostapdObj, IFNAME, buf, bufLen, size, 1);
in HWTEST_F()
|
/drivers/hdf_core/framework/model/audio/usb/include/ |
H A D | audio_usb_validate_desc.h | 28 void *AudioUsbFindCsintDesc(void *buf, int32_t bufLen, void *after, uint8_t dsubType);
|
/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/ |
H A D | hdi_hostapd_hal.c | 531 int bufLen, int sock, char dataBuf[]) in SendPrivateCmd() 574 /* Set the data length and pointer based on bufLen and dataBuf */ in SendPrivateCmd() 575 if ((bufLen == 0) && (*dataBuf != 0)) { in SendPrivateCmd() 578 wrq->u.data.length = (uint16_t)bufLen; in SendPrivateCmd() 588 static int SetCommandHwHisi(const char *iface, const char *fName, unsigned int bufLen, char dataBuf[]) in SetCommandHwHisi() argument 628 ret = SendPrivateCmd(&wrq, privPtr, fName, bufLen, sock, dataBuf); in SetCommandHwHisi() 871 int bufLen = strlen(buf); in ShowConnectedDevList() local 873 if (bufLen + staLen + 1 >= size) { in ShowConnectedDevList() 878 buf[bufLen++] = ','; in ShowConnectedDevList() 880 buf[bufLen in ShowConnectedDevList() 530 SendPrivateCmd(struct iwreq *wrq, struct iw_priv_args *privPtr, const char *fName, int bufLen, int sock, char dataBuf[]) SendPrivateCmd() argument [all...] |
H A D | hostapd_common_cmd.h | 82 const char *ifName, char *buf, uint32_t bufLen, int32_t size, int32_t id);
|
H A D | hostapd_common_cmd.c | 515 char *buf, uint32_t bufLen, int32_t size, int32_t id) in HostapdInterfaceGetStaInfos() 533 bufLen = strlen(buf); in HostapdInterfaceGetStaInfos() 534 HDF_LOGD("bufLen is %{public}u", bufLen); in HostapdInterfaceGetStaInfos() 514 HostapdInterfaceGetStaInfos(struct IHostapdInterface *self, const char *ifName, char *buf, uint32_t bufLen, int32_t size, int32_t id) HostapdInterfaceGetStaInfos() argument
|
/drivers/peripheral/usb/ddk/device/include/ |
H A D | usbfn_io_mgr.h | 35 uint32_t bufLen; member
|
/drivers/peripheral/usb/ddk/host/include/ |
H A D | usb_ddk_request.h | 93 int32_t bufLen; member
|
/drivers/peripheral/wlan/test/fuzztest/ |
H A D | hostapd_common_fuzzer.cpp | 201 uint32_t bufLen = *const_cast<uint32_t *>(reinterpret_cast<const uint32_t *>(rawData)); in FuzzHostapdInterfaceGetStaInfos() local 205 interface->GetStaInfos(interface, ifName, buf, bufLen, size, id); in FuzzHostapdInterfaceGetStaInfos()
|
/drivers/peripheral/usb/test/unittest/host_sdk/ |
H A D | usb_raw_sdk_if_test.h | 186 int32_t bufLen; member
|
/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_io_mgr.c | 119 reqList->bufLen = len; in UsbFnIoMgrRequestAlloc() 140 ret = fnOps->unmapAddr(req->buf, reqList->bufLen); in UsbFnIoMgrRequestFree() 145 mem.size = reqList->bufLen; in UsbFnIoMgrRequestFree()
|
/drivers/peripheral/usb/test/unittest/mock/src/ |
H A D | mock_linux_adapter.cpp | 405 request->bufLen = len; in FuncAdapterAllocRequest() 459 int32_t ret = memset_s(request->buffer, request->bufLen, ACTIVE_NUM, request->bufLen); in RequestCompletion()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_mixer.c | 176 uint32_t bufLen; member 311 static int32_t AudioUsbCheckMappedName(const struct UsbMixerNameMap *usbMixerNameMap, char *buf, int32_t bufLen) in AudioUsbCheckMappedName() argument 317 bufLen--; in AudioUsbCheckMappedName() 318 return strlcpy(buf, usbMixerNameMap->name, bufLen); in AudioUsbCheckMappedName() 334 struct UsbMixerBuild *state, int32_t unitId, int32_t index, char *buf, int32_t bufLen) in AudioUsbCheckMappedSelectorName() 337 (void)bufLen; in AudioUsbCheckMappedSelectorName() 347 return strlcpy(buf, usbMixerSelectorMap->names[index], bufLen); in AudioUsbCheckMappedSelectorName() 364 featureUnitDesc = AudioUsbFindDesc(state->buffer, state->bufLen, featureUnitDesc, USB_DT_CS_INTERFACE); in AudioUsbFindAudioControlUnit() 374 featureUnitDesc = AudioUsbFindDesc(state->buffer, state->bufLen, featureUnitDesc, USB_DT_CS_INTERFACE); in AudioUsbFindAudioControlUnit() 2078 state.bufLen in AudioUsbMixerControls() 333 AudioUsbCheckMappedSelectorName( struct UsbMixerBuild *state, int32_t unitId, int32_t index, char *buf, int32_t bufLen) AudioUsbCheckMappedSelectorName() argument [all...] |
H A D | audio_usb_validate_desc.c | 148 void *AudioUsbFindCsintDesc(void *buf, int32_t bufLen, void *after, uint8_t descSubType) in AudioUsbFindCsintDesc() argument 157 while ((afterDesc = AudioUsbFindDesc(buf, bufLen, afterDesc, USB_DT_CS_INTERFACE)) != NULL) { in AudioUsbFindCsintDesc()
|
/drivers/hdf_core/framework/model/network/wifi/core/module/ |
H A D | wifi_base.c | 1572 static int32_t HdfWlanSetProjectionScreenParam(const char *ifName, int cmd, const int8_t *buf, uint32_t bufLen) in HdfWlanSetProjectionScreenParam() argument 1596 return chipDriver->ops->SetProjectionScreenParam(netdev, cmd, buf, bufLen); in HdfWlanSetProjectionScreenParam() 1606 uint32_t bufLen; in WifiSetProjectionScreenParam() local 1621 if (!HdfSbufReadBuffer(reqData, (const void **)&buf, &bufLen)) { in WifiSetProjectionScreenParam() 1625 ret = HdfWlanSetProjectionScreenParam(ifName, cmd, buf, bufLen); in WifiSetProjectionScreenParam() 1632 static int32_t HdfWlanSendCmdIoctl(const char *ifName, int32_t cmd, const int8_t *buf, uint32_t bufLen) in HdfWlanSendCmdIoctl() argument 1656 return chipDriver->ops->SendCmdIoctl(netdev, cmd, buf, bufLen); in HdfWlanSendCmdIoctl() 1665 uint32_t bufLen; in WifiSendCmdIoctl() local 1680 if (!HdfSbufReadBuffer(reqData, (const void **)&buf, &bufLen)) { in WifiSendCmdIoctl() 1684 ret = HdfWlanSendCmdIoctl(ifName, cmd, buf, bufLen); in WifiSendCmdIoctl() [all...] |
/drivers/peripheral/wlan/test/unittest/hal/ |
H A D | wifi_hal_test.cpp | 1394 param->bufLen = 1; 1434 param->bufLen = 1; 1465 param->bufLen = 1; 1496 param->bufLen = 1; 1527 param->bufLen = 1; 1559 param->bufLen = 1; 1599 param->bufLen = 1; 1630 param->bufLen = 1; 1661 param->bufLen = 1; 1692 param->bufLen [all...] |