Lines Matching refs:consume_idx
616 tx_q->tpd.consume_idx = 0; in emac_tx_q_descs_free()
652 rx_q->rrd.consume_idx = 0; in emac_rx_q_free_descs()
656 rx_q->rfd.consume_idx = 0; in emac_rx_q_free_descs()
691 tx_q->tpd.consume_idx = 0; in emac_tx_q_desc_alloc()
740 rx_q->rrd.consume_idx = 0; in emac_rx_descs_alloc()
743 rx_q->rfd.consume_idx = 0; in emac_rx_descs_alloc()
832 adpt->tx_q.tpd.consume_idx = 0; in emac_mac_rx_tx_ring_reset_all()
837 adpt->rx_q.rrd.consume_idx = 0; in emac_mac_rx_tx_ring_reset_all()
839 adpt->rx_q.rfd.consume_idx = 0; in emac_mac_rx_tx_ring_reset_all()
994 u32 *hw_rrd = EMAC_RRD(rx_q, adpt->rrd_size, rx_q->rrd.consume_idx); in emac_rx_process_rrd()
1018 if (++rx_q->rrd.consume_idx == rx_q->rrd.count) in emac_rx_process_rrd()
1019 rx_q->rrd.consume_idx = 0; in emac_rx_process_rrd()
1058 u32 consume_idx = RRD_SI(rrd); in emac_rx_rfd_clean() local
1062 rfbuf[consume_idx].skb = NULL; in emac_rx_rfd_clean()
1063 if (++consume_idx == rx_q->rfd.count) in emac_rx_rfd_clean()
1064 consume_idx = 0; in emac_rx_rfd_clean()
1067 rx_q->rfd.consume_idx = consume_idx; in emac_rx_rfd_clean()
1068 rx_q->rfd.process_idx = consume_idx; in emac_rx_rfd_clean()
1101 num_consume_pkts = (hw_consume_idx >= rx_q->rrd.consume_idx) ? in emac_mac_rx_process()
1102 (hw_consume_idx - rx_q->rrd.consume_idx) : in emac_mac_rx_process()
1103 (hw_consume_idx + rx_q->rrd.count - rx_q->rrd.consume_idx); in emac_mac_rx_process()
1171 u32 consume_idx = tx_q->tpd.consume_idx; in emac_tpd_num_free_descs() local
1173 return (consume_idx > produce_idx) ? in emac_tpd_num_free_descs()
1174 (consume_idx - produce_idx - 1) : in emac_tpd_num_free_descs()
1175 (tx_q->tpd.count + consume_idx - produce_idx - 1); in emac_tpd_num_free_descs()
1187 while (tx_q->tpd.consume_idx != hw_consume_idx) { in emac_mac_tx_process()
1188 tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.consume_idx); in emac_mac_tx_process()
1203 if (++tx_q->tpd.consume_idx == tx_q->tpd.count) in emac_mac_tx_process()
1204 tx_q->tpd.consume_idx = 0; in emac_mac_tx_process()