Lines Matching refs:state
150 /* Driver state flags */
185 atomic_t state;
224 dev_warn(rs->dev, "spi controller is in busy state!\n");
289 if (atomic_read(&rs->state) & TXDMA)
292 if (atomic_read(&rs->state) & RXDMA)
406 int state = atomic_fetch_andnot(RXDMA, &rs->state);
408 if (state & TXDMA && !rs->target_abort)
422 int state = atomic_fetch_andnot(TXDMA, &rs->state);
424 if (state & RXDMA && !rs->target_abort)
452 atomic_set(&rs->state, 0);
506 atomic_or(RXDMA, &rs->state);
517 atomic_or(TXDMA, &rs->state);
621 struct dma_tx_state state;
625 if (atomic_read(&rs->state) & RXDMA) {
627 status = dmaengine_tx_status(ctlr->dma_rx, ctlr->dma_rx->cookie, &state);
636 rs->rx += rs->xfer->len - rs->n_bytes * state.residue;
656 if (atomic_read(&rs->state) & RXDMA)
658 if (atomic_read(&rs->state) & TXDMA)
660 atomic_set(&rs->state, 0);