Home
last modified time | relevance | path

Searched refs:writeSize (Results 1 – 25 of 28) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/util/
Dstring_builder.cpp93 size_t writeSize = static_cast<size_t>(len); in AppendFormat() local
94 if (position_ + writeSize >= capacity_) { in AppendFormat()
95 if (!Grow(writeSize)) { in AppendFormat()
102 if (vsnprintf_s(buffer_ + position_, writeSize + 1, writeSize, format, argsCopy) < 0) { in AppendFormat()
107 position_ += writeSize; in AppendFormat()
/drivers/interface/display/composer/command_pack/
Dcommand_data_packer.h189 size_t writeSize = sizeof(T); in Write() local
190 size_t newSize = writePos_ + writeSize; in Write()
213 writePos_ += writeSize; in Write()
/drivers/hdf_core/framework/model/storage/src/mtd/
Dmtd_core.c49 if (mtdDevice->writeSize == 0) { in MtdDeviceCheckParms()
50 HDF_LOGE("MtdDeviceCheckParms: invalid write size:%zu!", mtdDevice->writeSize); in MtdDeviceCheckParms()
380 …if ((msg->addr % mtdDevice->writeSize) != 0 || (msg->len % (mtdDevice->writeSize + oobSize)) != 0)… in MtdDeviceCheckMsg()
403 (msg->len / (mtdDevice->writeSize + mtdDevice->oobSize)) * mtdDevice->writeSize : msg->len; in MtdDeviceWriteReadByPageUnlock()
422 mtdPage.dataLen = mtdDevice->writeSize - (addr & (mtdDevice->writeSize - 1)); in MtdDeviceWriteReadByPageUnlock()
/drivers/peripheral/usb/test/unittest/host_sdk/
Dusb_host_sdk_if_test_io.cpp81 wb->buf = (uint8_t *)OsalMemCalloc(acm->writeSize); in AcmWriteBufAlloc()
192 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize; in AcmGetRequest()
197 g_acm->wb[i].request = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->writeSize); in AcmGetRequest()
241 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize; in AcmFillWriteRequest()
242 size = (size > g_acm->writeSize) ? g_acm->writeSize : size; in AcmFillWriteRequest()
246 if ((g_acm->wb[i].buf == nullptr) || (g_acm->writeSize == 0)) { in AcmFillWriteRequest()
249 ret = memcpy_s(g_acm->wb[i].buf, g_acm->writeSize, sendData, size); in AcmFillWriteRequest()
Dusb_host_sdk_if_test.cpp101 wb->buf = (uint8_t *)OsalMemCalloc(acm->writeSize); in AcmWriteBufAlloc()
1127 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize;
1132 g_acm->wb[i].request = UsbAllocRequest(NULL, 0, g_acm->writeSize);
1149 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize;
1154 g_acm->wb[i].request = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->writeSize);
1287 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize;
1289 g_acm->wb[i].request = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->writeSize);
1356 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize;
1357 size = (size > g_acm->writeSize) ? g_acm->writeSize : size;
1361 ret = memcpy_s(g_acm->wb[i].buf, g_acm->writeSize, sendData, size);
[all …]
Dusb_host_sdk_if_test.h114 uint32_t writeSize; member
/drivers/hdf_core/framework/model/storage/include/mtd/
Dmtd_core.h142 size_t writeSize; member
359 HDF_LOGI("%s: writeSize: %zu", __func__, (mtd)->writeSize); \
370 return (((uint64_t)addr & (mtdDevice->writeSize - 1)) == 0); in MtdDeviceIsPageAligned()
/drivers/hdf_core/framework/utils/include/
Dhdf_sbuf_impl.h26 bool (*writeBuffer)(struct HdfSBufImpl *sbuf, const uint8_t *data, uint32_t writeSize);
27 bool (*writeUnpadBuffer)(struct HdfSBufImpl *sbuf, const uint8_t *data, uint32_t writeSize);
/drivers/hdf_core/adapter/uhdf2/ipc/src/
Dhdf_sbuf_impl_hipc.cpp52 … bool SbufMParcelImplWriteBuffer(struct HdfSBufImpl *sbuf, const uint8_t *data, uint32_t writeSize) in SbufMParcelImplWriteBuffer() argument
55 if (!parcel->WriteUint32(writeSize)) { in SbufMParcelImplWriteBuffer()
58 return parcel->WriteUnpadBuffer(static_cast<const void *>(data), writeSize); in SbufMParcelImplWriteBuffer()
61 … SbufMParcelImplWriteUnpadBuffer(struct HdfSBufImpl *sbuf, const uint8_t *data, uint32_t writeSize) in SbufMParcelImplWriteUnpadBuffer() argument
63 return MParcelCast(sbuf)->WriteUnpadBuffer(static_cast<const void *>(data), writeSize); in SbufMParcelImplWriteUnpadBuffer()
/drivers/hdf_core/interfaces/inner_api/utils/
Dhdf_sbuf.h67 bool HdfSbufWriteBuffer(struct HdfSBuf *sbuf, const void *data, uint32_t writeSize);
79 bool HdfSbufWriteUnpadBuffer(struct HdfSBuf *sbuf, const uint8_t *data, uint32_t writeSize);
/drivers/hdf_core/interfaces/inner_api/core/
Dhdf_io_service.h39 uint32_t writeSize; // bytes to write member
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
Dusb_test.c90 wb->buf = (uint8_t *)OsalMemCalloc(acm->writeSize); in AcmWriteBufAllocHandle()
871 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize; in CheckHostSdkIfAllocRequest003()
878 g_acm->wb[i].request = UsbAllocRequest(NULL, 0, g_acm->writeSize); in CheckHostSdkIfAllocRequest003()
890 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize; in CheckHostSdkIfAllocRequest004()
898 g_acm->wb[i].request = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->writeSize); in CheckHostSdkIfAllocRequest004()
1180 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize; in CheckHostSdkIfAllocRequest009()
1187 g_acm->wb[i].request = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->writeSize); in CheckHostSdkIfAllocRequest009()
1236 g_acm->writeSize = g_acm->dataOutPipe->maxPacketSize; in CheckHostSdkIfFillRequest002()
1237 size = (size > g_acm->writeSize) ? g_acm->writeSize : size; in CheckHostSdkIfFillRequest002()
1240 int32_t ret = memcpy_s(g_acm->wb[0].buf, g_acm->writeSize, sendData, size); in CheckHostSdkIfFillRequest002()
[all …]
/drivers/peripheral/usb/net/include/
Dcdc_ether.h118 uint32_t writeSize; member
/drivers/peripheral/usb/sample/host/liteos_test/include/
Dusbhost_sdkapi_speed.h127 uint32_t writeSize; member
Dusbhost_nosdk_speed.h124 uint32_t writeSize; member
/drivers/peripheral/usb/sample/host/include/
Dusbhost_sdkapi_speed.h130 uint32_t writeSize; member
/drivers/hdf_core/framework/utils/src/
Dhdf_sbuf.c105 bool HdfSbufWriteBuffer(struct HdfSBuf *sbuf, const void *data, uint32_t writeSize) in HdfSbufWriteBuffer() argument
108 return sbuf->impl->writeBuffer(sbuf->impl, (const uint8_t *)data, writeSize); in HdfSbufWriteBuffer()
111 bool HdfSbufWriteUnpadBuffer(struct HdfSBuf *sbuf, const uint8_t *data, uint32_t writeSize) in HdfSbufWriteUnpadBuffer() argument
118 return sbuf->impl->writeUnpadBuffer(sbuf->impl, data, writeSize); in HdfSbufWriteUnpadBuffer()
Dhdf_sbuf_impl_raw.c289 …atic bool SbufRawImplWriteBuffer(struct HdfSBufImpl *impl, const uint8_t *data, uint32_t writeSize) in SbufRawImplWriteBuffer() argument
299 if (!SbufRawImplWriteInt32(impl, writeSize)) { in SbufRawImplWriteBuffer()
302 if (!SbufRawImplWrite(impl, data, writeSize)) { in SbufRawImplWriteBuffer()
/drivers/peripheral/usb/serial/include/
Dusb_serial.h134 uint32_t writeSize; member
/drivers/peripheral/usb/net/src/
Dcdc_ether.c153 wb->buf = OsalMemCalloc(ecm->writeSize); in EcmWriteBufAlloc()
454 if (size > ecm->writeSize) { in EcmWrite()
455 len = ecm->writeSize; in EcmWrite()
456 size -= ecm->writeSize; in EcmWrite()
462 ret = memcpy_s(wb->buf, ecm->writeSize, tmp, len); in EcmWrite()
664 ecm->writeSize = ecm->dataOutPipe->maxPacketSize; in EcmGetPipes()
839 …uest = UsbAllocRequest(InterfaceIdToHandle(ecm, ecm->dataOutPipe->interfaceId), 0, ecm->writeSize); in EcmAllocWriteReq()
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/
Dusb_test.h199 uint32_t writeSize; member
/drivers/peripheral/usb/serial/src/
Dusb_serial.c174 wb->buf = OsalMemCalloc(acm->writeSize); in AcmWriteBufAlloc()
843 size = (size > acm->writeSize) ? acm->writeSize : size; in SerialWriteSync()
844 ret = memcpy_s(wb->buf, (size_t)acm->writeSize, tmp, (size_t)size); in SerialWriteSync()
991 size = (size > acm->writeSize) ? acm->writeSize : size; in SerialWrite()
992 ret = memcpy_s(wb->buf, (size_t)acm->writeSize, tmp, (size_t)size); in SerialWrite()
1596 acm->writeSize = acm->dataOutPipe->maxPacketSize; in AcmGetPipes()
1631 … InterfaceIdToHandle((struct AcmDevice *)acm, acm->dataOutPipe->interfaceId), 0, acm->writeSize); in AcmAllocRequests()
/drivers/peripheral/usb/gadget/function/mtp/include/
Dusbfn_mtp_impl.h221 int32_t UsbMtpPortAllocReadWriteRequests(int32_t readSize, int32_t writeSize);
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
Dmtd_legacy_lite.c350 nand_mtd->writesize = mtdDevice->writeSize; in MtdDeviceLegacyFillMtdInfo()
/drivers/hdf_core/framework/core/adapter/vnode/src/
Dhdf_vnode_adapter.c220 if (bwr.writeSize > MAX_RW_SIZE || bwr.readSize > MAX_RW_SIZE) { in HdfVNodeAdapterServCall()
224 data = HdfSbufCopyFromUser(bwr.writeBuffer, bwr.writeSize); in HdfVNodeAdapterServCall()

12