Home
last modified time | relevance | path

Searched refs:bufLen (Results 1 - 25 of 40) sorted by relevance

12

/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dhdi_wpa_common.c113 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 Dhdi_wpa_common.h45 int WpaCliCmd(const char *cmd, char *buf, size_t bufLen);
/drivers/liteos/hievent/src/
H A Dhievent_driver.c142 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 Dhiview_hievent.c355 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 Ddriver_extension_ability_module.cpp35 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 Ddriver_extension_context_module.cpp35 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 Dpin_db_ops_base.c73 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 Dppg_cs1262_spi.c136 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 Di2c_dev.c108 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 Dhostapd_hdi_direct_test.cpp235 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 Dhostapd_hdi_hal_services_c_test.cpp220 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 Daudio_usb_validate_desc.h28 void *AudioUsbFindCsintDesc(void *buf, int32_t bufLen, void *after, uint8_t dsubType);
/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/
H A Dhdi_hostapd_hal.c531 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 Dhostapd_common_cmd.h82 const char *ifName, char *buf, uint32_t bufLen, int32_t size, int32_t id);
H A Dhostapd_common_cmd.c515 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 Dusbfn_io_mgr.h35 uint32_t bufLen; member
/drivers/peripheral/usb/ddk/host/include/
H A Dusb_ddk_request.h93 int32_t bufLen; member
/drivers/peripheral/wlan/test/fuzztest/
H A Dhostapd_common_fuzzer.cpp201 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 Dusb_raw_sdk_if_test.h186 int32_t bufLen; member
/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_io_mgr.c119 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 Dmock_linux_adapter.cpp405 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 Daudio_usb_mixer.c176 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 Daudio_usb_validate_desc.c148 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 Dwifi_base.c1572 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 Dwifi_hal_test.cpp1394 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...]

Completed in 22 milliseconds

12