/drivers/liteos/hievent/src/ |
D | hievent_driver.c | 143 static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen) in HieventReadRingBuffer() argument 147 if (bufLeft > bufLen) { in HieventReadRingBuffer() 148 retval = HieventBufferCopy(buffer, bufLen, HieventBufferHead(), bufLen); in HieventReadRingBuffer() 150 retval = HieventBufferCopy(buffer, bufLen, HieventBufferHead(), bufLeft); in HieventReadRingBuffer() 155 retval = HieventBufferCopy(buffer + bufLeft, bufLen - bufLeft, in HieventReadRingBuffer() 156 g_hieventDev.buffer, bufLen - bufLeft); in HieventReadRingBuffer() 161 static ssize_t HieventRead(struct file *filep, char *buffer, size_t bufLen) in HieventRead() argument 178 if (bufLen < header.len + sizeof(header)) { in HieventRead() 186 retval = HieventBufferCopy((unsigned char *)buffer, bufLen, in HieventRead() 216 static int HieventWriteRingBuffer(unsigned char *buffer, size_t bufLen) in HieventWriteRingBuffer() argument [all …]
|
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/ |
D | driver_extension_ability_module.cpp | 36 void NAPI_app_ability_DriverExtensionAbility_GetJSCode(const char **buf, int *bufLen) in NAPI_app_ability_DriverExtensionAbility_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_app_ability_DriverExtensionAbility_GetJSCode() 43 … *bufLen = _binary_driver_extension_ability_js_end - _binary_driver_extension_ability_js_start; in NAPI_app_ability_DriverExtensionAbility_GetJSCode()
|
/drivers/external_device_manager/frameworks/js/napi/driver_extension_context/ |
D | driver_extension_context_module.cpp | 36 void NAPI_application_DriverExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_DriverExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_DriverExtensionContext_GetJSCode() 43 … *bufLen = _binary_driver_extension_context_js_end - _binary_driver_extension_context_js_start; in NAPI_application_DriverExtensionContext_GetJSCode()
|
/drivers/peripheral/sensor/chipset/ppg/ |
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/ |
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/hdf_core/framework/model/audio/usb/include/ |
D | audio_usb_validate_desc.h | 28 void *AudioUsbFindCsintDesc(void *buf, int32_t bufLen, void *after, uint8_t dsubType);
|
/drivers/peripheral/usb/ddk/device/include/ |
D | usbfn_io_mgr.h | 35 uint32_t bufLen; member
|
/drivers/peripheral/usb/ddk/host/include/ |
D | usb_ddk_request.h | 93 int32_t bufLen; member
|
/drivers/peripheral/pin_auth/hdi_service/database/src/ |
D | pin_db.c | 43 static ResultCode CopyDataToBuf(uint8_t *data, uint32_t dataLen, uint8_t **buf, uint32_t *bufLen) in CopyDataToBuf() argument 45 if (memcpy_s(*buf, *bufLen, data, dataLen) != EOK) { in CopyDataToBuf() 51 *bufLen = *bufLen - dataLen; in CopyDataToBuf() 62 uint32_t bufLen = fileNameLen; in GenerateFileName() local 63 …if (CopyDataToBuf((uint8_t *)prefix, strlen(prefix), (uint8_t **)&buf, &bufLen) != RESULT_SUCCESS)… in GenerateFileName() 72 …if (CopyDataToBuf((uint8_t *)templateIdStr, strlen(templateIdStr), (uint8_t **)&buf, &bufLen) != R… in GenerateFileName() 76 …if (CopyDataToBuf((uint8_t *)suffix, strlen(suffix), (uint8_t **)&buf, &bufLen) != RESULT_SUCCESS)… in GenerateFileName() 80 if (bufLen == 0) { in GenerateFileName()
|
/drivers/peripheral/usb/ddk/device/src/ |
D | usbfn_io_mgr.c | 118 reqList->bufLen = len; in UsbFnIoMgrRequestAlloc() 139 ret = fnOps->unmapAddr(req->buf, reqList->bufLen); in UsbFnIoMgrRequestFree() 144 mem.size = reqList->bufLen; in UsbFnIoMgrRequestFree()
|
/drivers/peripheral/usb/test/unittest/host_sdk/ |
D | usb_raw_sdk_if_test.h | 186 int32_t bufLen; member
|
/drivers/peripheral/usb/test/unittest/mock/src/ |
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/network/wifi/core/module/ |
D | wifi_base.c | 1572 …_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 …ic 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()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
D | audio_usb_mixer.c | 176 uint32_t bufLen; member 311 …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() argument 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_INTERF… in AudioUsbFindAudioControlUnit() 374 …featureUnitDesc = AudioUsbFindDesc(state->buffer, state->bufLen, featureUnitDesc, USB_DT_CS_INTERF… in AudioUsbFindAudioControlUnit() 2035 state.bufLen = mixer->hostIf->extralen; in AudioUsbMixerControls()
|
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/peripheral/wlan/test/unittest/hal/ |
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 = 1;
|
/drivers/peripheral/wlan/test/hdi_service/ |
D | wlan_hdi_hal_services_c_test.cpp | 848 param.bufLen = sizeof(data); 871 param.bufLen = sizeof(data); 894 param.bufLen = sizeof(data); 917 param.bufLen = sizeof(data); 940 param.bufLen = sizeof(data);
|
/drivers/peripheral/wlan/hdi_service/service_common/ |
D | wlan_common_cmd.c | 1234 projectionScreenParam = OsalMemCalloc(sizeof(ProjectionScreenParam) + param->bufLen); in WlanInterfaceSetProjectionScreenParam() 1240 projectionScreenParam->bufLen = param->bufLen; in WlanInterfaceSetProjectionScreenParam() 1242 …memcpy_s(projectionScreenParam->buf, projectionScreenParam->bufLen, param->buf, param->bufLen) != … in WlanInterfaceSetProjectionScreenParam()
|
/drivers/peripheral/wlan/test/fuzztest/ |
D | wlan_common_fuzzer.cpp | 216 param.bufLen = g_wlanTestSize; in FuzzSetProjectionScreenParam()
|
/drivers/peripheral/usb/ddk/host/src/ |
D | linux_adapter.c | 1232 request->bufLen = (int32_t)len; in AdapterAllocRequest() 1270 request->bufLen = (int32_t)len; in AdapterAllocRequestByMmap() 1292 if (munmap((void *)request->buffer, request->bufLen) != 0) { in AdapterFreeRequestByMmap() 1315 … (sizeof(struct UsbIsoPacketDesc) * (size_t)(request->numIsoPackets)) + (size_t)request->bufLen; in AdapterFreeRequest()
|
D | usb_raw_api_library.c | 101 ret = memcpy_s(request->buffer, request->bufLen, requestData->data, requestData->length); in HandleSyncRequest() 925 …if (memcpy_s(request->buffer, request->bufLen, fillRequestData->buffer, fillRequestData->length) !… in RawFillBulkRequest() 989 …if (memcpy_s(request->buffer, request->bufLen, fillRequestData->buffer, fillRequestData->length) !… in RawFillInterruptRequest() 1035 …int32_t ret = memcpy_s(request->buffer, request->bufLen, fillRequestData->buffer, fillRequestData-… in RawFillIsoRequest()
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/ |
D | usb_raw_test.h | 321 int32_t bufLen; member
|
/drivers/peripheral/wlan/client/include/ |
D | wifi_driver_client.h | 261 uint32_t bufLen; member
|
/drivers/peripheral/wlan/client/src/netlink/ |
D | netlink_cmd_adapter.c | 1797 ret = SetGoChannel(ifName, param->buf, param->bufLen); in SetProjectionScreenParam() 1800 ret = SetGoDetectRadar(ifName, param->buf, param->bufLen); in SetProjectionScreenParam() 1803 ret = SetDynamicDbacMode(ifName, param->buf, param->bufLen); in SetProjectionScreenParam() 1806 ret = SetP2pScenes(ifName, param->buf, param->bufLen); in SetProjectionScreenParam()
|