Lines Matching refs:buf

37 static status_t s3mu_read_data_wait(S3MU_Type *mu, uint32_t *buf, uint8_t *size, uint32_t wait);
55 status_t S3MU_SendMessage(S3MU_Type *mu, void *buf, size_t wordCount) in S3MU_SendMessage() argument
60 if (buf == NULL) in S3MU_SendMessage()
69 s3mu_hal_send_data(mu, tx_reg_idx, (uint32_t*)buf+counter); in S3MU_SendMessage()
101 status_t S3MU_GetResponse(S3MU_Type *mu, void *buf) in S3MU_GetResponse() argument
106 if (buf == NULL) in S3MU_GetResponse()
111 return S3MU_ReadMessage(mu, buf, &size, MU_READ_HEADER); in S3MU_GetResponse()
128 status_t S3MU_ReadMessage(S3MU_Type *mu, uint32_t *buf, size_t *size, uint8_t read_header) in S3MU_ReadMessage() argument
132 uint32_t *buf_ptr = buf; in S3MU_ReadMessage()
135 if ((buf == NULL) || (size == NULL)) in S3MU_ReadMessage()
143 s3mu_hal_receive_data(mu, rx_reg_idx, buf); in S3MU_ReadMessage()
144 msg_size = (GET_HDR_SIZE(buf[0])); in S3MU_ReadMessage()
193 status_t S3MU_WaitForData(S3MU_Type *mu, uint32_t *buf, size_t wordCount, uint32_t wait) in S3MU_WaitForData() argument
197 if (buf == NULL) in S3MU_WaitForData()
207 ret = s3mu_read_data_wait(mu, buf, &size, wait); in S3MU_WaitForData()
213 static status_t s3mu_read_data_wait(S3MU_Type *mu, uint32_t *buf, uint8_t *size, uint32_t wait) in s3mu_read_data_wait() argument
220 if ((buf == NULL) || (size == NULL)) in s3mu_read_data_wait()
231 … if ((ret = s3mu_hal_receive_data_wait(mu, rx_reg_idx, &buf[counter], wait)) != kStatus_Success) in s3mu_read_data_wait()
238 s3mu_hal_receive_data(mu, rx_reg_idx, &buf[counter]); in s3mu_read_data_wait()