Lines Matching defs:fd_status
185 unsigned int fd_status;
189 fd_status = readl(pspim->m_base + SP7021_SPI_STATUS_REG);
190 tx_cnt = FIELD_GET(SP7021_TX_CNT_MASK, fd_status);
191 tx_len = FIELD_GET(SP7021_TX_LEN_MASK, fd_status);
192 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status);
194 if ((fd_status & SP7021_TX_EMP_FLAG) && (fd_status & SP7021_RX_EMP_FLAG) && total_len == 0)
200 rx_cnt = FIELD_GET(SP7021_RX_CNT_MASK, fd_status);
201 if (fd_status & SP7021_RX_FULL_FLAG)
206 fd_status, rx_cnt, tx_cnt, tx_len);
213 fd_status = readl(pspim->m_base + SP7021_SPI_STATUS_REG);
214 tx_len = FIELD_GET(SP7021_TX_LEN_MASK, fd_status);
215 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status);
217 if (fd_status & SP7021_FINISH_FLAG || tx_len == pspim->tx_cur_len) {
219 fd_status = readl(pspim->m_base + SP7021_SPI_STATUS_REG);
220 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status);
221 if (fd_status & SP7021_RX_FULL_FLAG)
224 rx_cnt = FIELD_GET(SP7021_RX_CNT_MASK, fd_status);