Lines Matching refs:sr

269 	uint32_t sr;  in sam_hsmci_send_cmd()  local
287 sr = hsmci->HSMCI_SR; in sam_hsmci_send_cmd()
291 sr &= ~HSMCI_SR_RCRCE; in sam_hsmci_send_cmd()
294 if ((sr & _HSMCI_SR_ERR) != 0) { in sam_hsmci_send_cmd()
295 LOG_DBG("Status register error bits: %08x", sr & _HSMCI_SR_ERR); in sam_hsmci_send_cmd()
298 } while (!(sr & HSMCI_SR_CMDRDY)); in sam_hsmci_send_cmd()
302 sr = hsmci->HSMCI_SR; in sam_hsmci_send_cmd()
303 } while (!((sr & HSMCI_SR_NOTBUSY) && ((sr & HSMCI_SR_DTIP) == 0))); in sam_hsmci_send_cmd()
316 uint32_t sr = 0; in sam_hsmci_wait_write_end() local
321 sr = hsmci->HSMCI_SR; in sam_hsmci_wait_write_end()
322 if (sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | HSMCI_SR_DTOE | HSMCI_SR_DCRCE)) { in sam_hsmci_wait_write_end()
323 LOG_DBG("PDC sr 0x%08x error", sr); in sam_hsmci_wait_write_end()
326 } while (!(sr & HSMCI_SR_TXBUFE)); in sam_hsmci_wait_write_end()
330 sr = hsmci->HSMCI_SR; in sam_hsmci_wait_write_end()
331 if (sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | HSMCI_SR_DTOE | HSMCI_SR_DCRCE)) { in sam_hsmci_wait_write_end()
332 LOG_DBG("PDC sr 0x%08x last transfer error", sr); in sam_hsmci_wait_write_end()
335 } while (!(sr & HSMCI_SR_NOTBUSY)); in sam_hsmci_wait_write_end()
345 uint32_t sr; in sam_hsmci_wait_read_end() local
349 sr = hsmci->HSMCI_SR; in sam_hsmci_wait_read_end()
350 if (sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | HSMCI_SR_DTOE | HSMCI_SR_DCRCE)) { in sam_hsmci_wait_read_end()
351 LOG_DBG("PDC sr 0x%08x error", sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | in sam_hsmci_wait_read_end()
355 } while (!(sr & HSMCI_SR_RXBUFF)); in sam_hsmci_wait_read_end()
359 sr = hsmci->HSMCI_SR; in sam_hsmci_wait_read_end()
360 if (sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | HSMCI_SR_DTOE | HSMCI_SR_DCRCE)) { in sam_hsmci_wait_read_end()
363 } while (!(sr & HSMCI_SR_XFRDONE)); in sam_hsmci_wait_read_end()
392 int sr; in wait_write_transfer_done() local
395 sr = hsmci->HSMCI_SR; in wait_write_transfer_done()
396 if (sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | HSMCI_SR_DTOE | HSMCI_SR_DCRCE)) { in wait_write_transfer_done()
399 } while (!(sr & HSMCI_SR_TXRDY)); in wait_write_transfer_done()
405 int sr; in wait_read_transfer_done() local
408 sr = HSMCI->HSMCI_SR; in wait_read_transfer_done()
409 if (sr & (HSMCI_SR_UNRE | HSMCI_SR_OVRE | HSMCI_SR_DTOE | HSMCI_SR_DCRCE)) { in wait_read_transfer_done()
412 } while (!(sr & HSMCI_SR_RXRDY)); in wait_read_transfer_done()
485 uint32_t sr; in sam_hsmci_request_inner() local
594 sr = hsmci->HSMCI_SR; in sam_hsmci_request_inner()
597 cmd->response[1], cmd->response[2], cmd->response[3], sr); in sam_hsmci_request_inner()