Lines Matching refs:msgs
419 static int32_t Hi35xxI2sRead(struct I2sCntlr *cntlr, struct I2sMsg *msgs)
421 if (cntlr == NULL || cntlr->priv == NULL || msgs == NULL || msgs->rbuf == NULL || msgs->pRlen == NULL) {
430 if (GetRxBuffData(i2sCfg, msgs, &rptrOffset) != HDF_SUCCESS) {
436 if (*msgs->pRlen == 0) {
448 static int32_t Hi35xxI2sWrite(struct I2sCntlr *cntlr, struct I2sMsg *msgs)
450 if (cntlr == NULL || cntlr->priv == NULL || msgs == NULL) {
459 msgs->len, i2sCfg->isplay, i2sCfg->txSize);
471 if (msgs->len >= i2sCfg->txSize) {
479 if (UpdateTxBuffData(i2sCfg, msgs, &offset) != HDF_SUCCESS) {
485 if (*msgs->pRlen == 0) {
498 static int32_t Hi35xxI2sTransfer(struct I2sCntlr *cntlr, struct I2sMsg *msgs)
500 if (cntlr == NULL || cntlr->priv == NULL || msgs == NULL) {
508 if (msgs->rbuf != NULL) {
509 Hi35xxI2sRead(cntlr, msgs);
510 } else if (msgs->wbuf != NULL) {
511 Hi35xxI2sWrite(cntlr, msgs);