Lines Matching refs:txq

848 	struct be_queue_info *txq = &txo->q;  in be_tx_setup_wrb_hdr()  local
849 struct be_eth_hdr_wrb *hdr = queue_index_node(txq, head); in be_tx_setup_wrb_hdr()
857 atomic_add(num_frags, &txq->used); in be_tx_setup_wrb_hdr()
867 struct be_queue_info *txq = &txo->q; in be_tx_setup_wrb_frag() local
869 wrb = queue_head_node(txq); in be_tx_setup_wrb_frag()
871 queue_head_inc(txq); in be_tx_setup_wrb_frag()
884 struct be_queue_info *txq = &txo->q; in be_xmit_restore() local
887 txq->head = head; in be_xmit_restore()
890 queue_head_inc(txq); in be_xmit_restore()
892 wrb = queue_head_node(txq); in be_xmit_restore()
896 queue_head_inc(txq); in be_xmit_restore()
899 txq->head = head; in be_xmit_restore()
912 struct be_queue_info *txq = &txo->q; in be_xmit_enqueue() local
914 u16 head = txq->head; in be_xmit_enqueue()
1127 struct be_queue_info *txq = &txo->q; in be_xmit_flush() local
1128 struct be_eth_hdr_wrb *hdr = queue_index_node(txq, txo->last_req_hdr); in be_xmit_flush()
1136 wrb_fill_dummy(queue_head_node(txq)); in be_xmit_flush()
1137 queue_head_inc(txq); in be_xmit_flush()
1138 atomic_inc(&txq->used); in be_xmit_flush()
2160 struct be_queue_info *txq = &txo->q; in be_tx_compl_process() local
2167 if (sent_skbs[txq->tail]) { in be_tx_compl_process()
2171 skb = sent_skbs[txq->tail]; in be_tx_compl_process()
2172 sent_skbs[txq->tail] = NULL; in be_tx_compl_process()
2173 queue_tail_inc(txq); /* skip hdr wrb */ in be_tx_compl_process()
2177 wrb = queue_tail_node(txq); in be_tx_compl_process()
2178 frag_index = txq->tail; in be_tx_compl_process()
2182 queue_tail_inc(txq); in be_tx_compl_process()
2273 struct be_queue_info *txq; in be_tx_compl_clean() local
2284 txq = &txo->q; in be_tx_compl_clean()
2293 atomic_sub(num_wrbs, &txq->used); in be_tx_compl_clean()
2308 txq = &txo->q; in be_tx_compl_clean()
2310 if (atomic_read(&txq->used)) { in be_tx_compl_clean()
2312 i, atomic_read(&txq->used)); in be_tx_compl_clean()
2313 notified_idx = txq->tail; in be_tx_compl_clean()
2314 end_idx = txq->tail; in be_tx_compl_clean()
2315 index_adv(&end_idx, atomic_read(&txq->used) - 1, in be_tx_compl_clean()
2316 txq->len); in be_tx_compl_clean()
2321 atomic_sub(num_wrbs, &txq->used); in be_tx_compl_clean()
2322 BUG_ON(atomic_read(&txq->used)); in be_tx_compl_clean()
2327 txq->head = notified_idx; in be_tx_compl_clean()
2328 txq->tail = notified_idx; in be_tx_compl_clean()