Home
last modified time | relevance | path

Searched refs:bufReply (Results 1 – 2 of 2) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/i2c/
Di2c_msg.c17 int32_t AssignReplayBuffer(uint32_t lenReply, uint8_t **bufReply, struct I2cMsg *msgs, int16_t coun… in AssignReplayBuffer() argument
22 *bufReply = OsalMemCalloc(lenReply); in AssignReplayBuffer()
23 if (*bufReply == NULL) { in AssignReplayBuffer()
27 for (i = 0, buf = *bufReply; i < count && buf < (*bufReply + lenReply); i++) { in AssignReplayBuffer()
42 uint8_t **bufReply = NULL; in RebuildMsgs() local
53 bufReply = (uint8_t **)((uint8_t *)msgs + msgSize); in RebuildMsgs()
76 if (lenReply > 0 && AssignReplayBuffer(lenReply, bufReply, msgs, count) != HDF_SUCCESS) { in RebuildMsgs()
127 uint8_t **bufReply = NULL; in I2cMsgsFree() local
134 bufReply = (uint8_t **)((uint8_t *)msgs + sizeof(struct I2cMsg) * count); in I2cMsgsFree()
135 OsalMemFree(*bufReply); in I2cMsgsFree()
/drivers/hdf_core/framework/support/platform/src/spi/
Dspi_core.c191 uint8_t *bufReply = NULL; in SpiTransferRebuildMsgs() local
211 bufReply = OsalMemCalloc(lenReply); in SpiTransferRebuildMsgs()
212 if (bufReply == NULL) { in SpiTransferRebuildMsgs()
216 for (i = 0, buf = bufReply; i < count && buf < (bufReply + lenReply); i++) { in SpiTransferRebuildMsgs()
226 *ppbuf = bufReply; in SpiTransferRebuildMsgs()
254 uint8_t *bufReply = NULL; in SpiIoTransfer() local
261 ret = SpiTransferRebuildMsgs(data, &msgs, &count, &bufReply); in SpiIoTransfer()
276 OsalMemFree(bufReply); in SpiIoTransfer()