Lines Matching refs:rxp
826 int len, struct sk_buff *skb, int rxp) in fst_rx_dma_complete() argument
837 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_rx_dma_complete()
1096 unsigned char dmabits, int rxp, unsigned short len) in fst_log_rx_error() argument
1106 card->card_no, port->index, rxp); in fst_log_rx_error()
1129 unsigned char dmabits, int rxp, unsigned short len) in fst_recover_rx_error() argument
1141 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_recover_rx_error()
1142 rxp = (rxp + 1) % NUM_RX_BUFFER; in fst_recover_rx_error()
1148 dmabits = FST_RDB(card, rxDescrRing[pi][rxp].bits); in fst_recover_rx_error()
1155 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_recover_rx_error()
1156 rxp = (rxp + 1) % NUM_RX_BUFFER; in fst_recover_rx_error()
1158 port->rxpos = rxp; in fst_recover_rx_error()
1168 int rxp; in fst_intr_rx() local
1176 rxp = port->rxpos; in fst_intr_rx()
1177 dmabits = FST_RDB(card, rxDescrRing[pi][rxp].bits); in fst_intr_rx()
1180 pi, rxp); in fst_intr_rx()
1187 len = FST_RDW(card, rxDescrRing[pi][rxp].mcnt); in fst_intr_rx()
1197 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_intr_rx()
1199 rxp = (rxp + 1) % NUM_RX_BUFFER; in fst_intr_rx()
1200 port->rxpos = rxp; in fst_intr_rx()
1208 dbg(DBG_RX, "intr_rx: %d,%d: flags %x len %d\n", pi, rxp, dmabits, len); in fst_intr_rx()
1210 fst_log_rx_error(card, port, dmabits, rxp, len); in fst_intr_rx()
1211 fst_recover_rx_error(card, port, dmabits, rxp, len); in fst_intr_rx()
1223 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_intr_rx()
1225 rxp = (rxp + 1) % NUM_RX_BUFFER; in fst_intr_rx()
1226 port->rxpos = rxp; in fst_intr_rx()
1237 card->mem + BUF_OFFSET(rxBuffer[pi][rxp][0]), in fst_intr_rx()
1241 FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); in fst_intr_rx()
1261 card->dma_rxpos = rxp; in fst_intr_rx()
1263 BUF_OFFSET(rxBuffer[pi][rxp][0]), len); in fst_intr_rx()
1265 if (rxp != port->rxpos) { in fst_intr_rx()
1267 dbg(DBG_ASS, "rxp = %d rxpos = %d\n", rxp, port->rxpos); in fst_intr_rx()
1269 rxp = (rxp + 1) % NUM_RX_BUFFER; in fst_intr_rx()
1270 port->rxpos = rxp; in fst_intr_rx()