Lines Matching refs:produce_idx

617 	tx_q->tpd.produce_idx = 0;  in emac_tx_q_descs_free()
651 rx_q->rrd.produce_idx = 0; in emac_rx_q_free_descs()
655 rx_q->rfd.produce_idx = 0; in emac_rx_q_free_descs()
690 tx_q->tpd.produce_idx = 0; in emac_tx_q_desc_alloc()
739 rx_q->rrd.produce_idx = 0; in emac_rx_descs_alloc()
742 rx_q->rfd.produce_idx = 0; in emac_rx_descs_alloc()
831 adpt->tx_q.tpd.produce_idx = 0; in emac_mac_rx_tx_ring_reset_all()
836 adpt->rx_q.rrd.produce_idx = 0; in emac_mac_rx_tx_ring_reset_all()
838 adpt->rx_q.rfd.produce_idx = 0; in emac_mac_rx_tx_ring_reset_all()
849 u32 *hw_rfd = EMAC_RFD(rx_q, adpt->rfd_size, rx_q->rfd.produce_idx); in emac_mac_rx_rfd_create()
854 if (++rx_q->rfd.produce_idx == rx_q->rfd.count) in emac_mac_rx_rfd_create()
855 rx_q->rfd.produce_idx = 0; in emac_mac_rx_rfd_create()
867 next_produce_idx = rx_q->rfd.produce_idx + 1; in emac_mac_rx_descs_refill()
871 curr_rxbuf = GET_RFD_BUFFER(rx_q, rx_q->rfd.produce_idx); in emac_mac_rx_descs_refill()
897 next_produce_idx = rx_q->rfd.produce_idx + 1; in emac_mac_rx_descs_refill()
901 curr_rxbuf = GET_RFD_BUFFER(rx_q, rx_q->rfd.produce_idx); in emac_mac_rx_descs_refill()
907 u32 prod_idx = (rx_q->rfd.produce_idx << rx_q->produce_shift) & in emac_mac_rx_descs_refill()
1030 tx_q->tpd.last_produce_idx = tx_q->tpd.produce_idx; in emac_tx_tpd_create()
1031 hw_tpd = EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.produce_idx); in emac_tx_tpd_create()
1033 if (++tx_q->tpd.produce_idx == tx_q->tpd.count) in emac_tx_tpd_create()
1034 tx_q->tpd.produce_idx = 0; in emac_tx_tpd_create()
1170 u32 produce_idx = tx_q->tpd.produce_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()
1332 unsigned int first = tx_q->tpd.produce_idx; in emac_tx_fill_tpd()
1344 tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx); in emac_tx_fill_tpd()
1364 tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx); in emac_tx_fill_tpd()
1387 tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx); in emac_tx_fill_tpd()
1417 tx_q->tpd.produce_idx = first; in emac_tx_fill_tpd()
1474 prod_idx = (tx_q->tpd.produce_idx << tx_q->produce_shift) & in emac_mac_tx_buf_send()