Searched refs:lenReply (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/drivers/hdf_core/framework/support/platform/src/i2c/ |
H A D | i2c_msg.c | 17 int32_t AssignReplayBuffer(uint32_t lenReply, uint8_t **bufReply, struct I2cMsg *msgs, int16_t coun… in AssignReplayBuffer() argument 22 *bufReply = OsalMemCalloc(lenReply); in AssignReplayBuffer() 27 for (i = 0, buf = *bufReply; i < count && buf < (*bufReply + lenReply); i++) { in AssignReplayBuffer() 41 uint32_t lenReply = 0; in RebuildMsgs() local 67 lenReply += msgs[i].len; in RebuildMsgs() 76 if (lenReply > 0 && AssignReplayBuffer(lenReply, bufReply, msgs, count) != HDF_SUCCESS) { in RebuildMsgs()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/spi/ |
H A D | spi_core.c | 140 struct HdfSBuf *data, uint32_t count, uint8_t *tmpFlag, struct SpiMsg *msgs, uint32_t *lenReply) in SpiMsgsRwProcess() argument 162 (*lenReply) += msgs[i].len; in SpiMsgsRwProcess() 175 if ((!HdfSbufReadUint32(data, &rbufLen)) || (rbufLen != *lenReply)) { in SpiMsgsRwProcess() 176 HDF_LOGE("SpiMsgsRwProcess: read rbufLen failed %u != %u!", rbufLen, *lenReply); in SpiMsgsRwProcess() 188 uint32_t lenReply = 0; in SpiTransferRebuildMsgs() local 205 if (SpiMsgsRwProcess(data, count, &tmpFlag, msgs, &lenReply) != HDF_SUCCESS) { in SpiTransferRebuildMsgs() 210 if (lenReply > 0) { in SpiTransferRebuildMsgs() 211 bufReply = OsalMemCalloc(lenReply); in SpiTransferRebuildMsgs() 216 for (i = 0, buf = bufReply; i < count && buf < (bufReply + lenReply); i++) { in SpiTransferRebuildMsgs()
|