Lines Matching refs:txq

867 	struct be_queue_info *txq = &txo->q;  in be_tx_setup_wrb_hdr()  local
868 struct be_eth_hdr_wrb *hdr = queue_index_node(txq, head); in be_tx_setup_wrb_hdr()
876 atomic_add(num_frags, &txq->used); in be_tx_setup_wrb_hdr()
886 struct be_queue_info *txq = &txo->q; in be_tx_setup_wrb_frag() local
888 wrb = queue_head_node(txq); in be_tx_setup_wrb_frag()
890 queue_head_inc(txq); in be_tx_setup_wrb_frag()
903 struct be_queue_info *txq = &txo->q; in be_xmit_restore() local
906 txq->head = head; in be_xmit_restore()
909 queue_head_inc(txq); in be_xmit_restore()
911 wrb = queue_head_node(txq); in be_xmit_restore()
915 queue_head_inc(txq); in be_xmit_restore()
918 txq->head = head; in be_xmit_restore()
931 struct be_queue_info *txq = &txo->q; in be_xmit_enqueue() local
933 u16 head = txq->head; in be_xmit_enqueue()
1147 struct be_queue_info *txq = &txo->q; in be_xmit_flush() local
1148 struct be_eth_hdr_wrb *hdr = queue_index_node(txq, txo->last_req_hdr); in be_xmit_flush()
1156 wrb_fill_dummy(queue_head_node(txq)); in be_xmit_flush()
1157 queue_head_inc(txq); in be_xmit_flush()
1158 atomic_inc(&txq->used); in be_xmit_flush()
2402 struct be_queue_info *txq = &txo->q; in be_tx_compl_process() local
2409 if (sent_skbs[txq->tail]) { in be_tx_compl_process()
2413 skb = sent_skbs[txq->tail]; in be_tx_compl_process()
2414 sent_skbs[txq->tail] = NULL; in be_tx_compl_process()
2415 queue_tail_inc(txq); /* skip hdr wrb */ in be_tx_compl_process()
2419 wrb = queue_tail_node(txq); in be_tx_compl_process()
2420 frag_index = txq->tail; in be_tx_compl_process()
2424 queue_tail_inc(txq); in be_tx_compl_process()
2521 struct be_queue_info *txq; in be_tx_compl_clean() local
2532 txq = &txo->q; in be_tx_compl_clean()
2541 atomic_sub(num_wrbs, &txq->used); in be_tx_compl_clean()
2557 txq = &txo->q; in be_tx_compl_clean()
2559 if (atomic_read(&txq->used)) { in be_tx_compl_clean()
2561 i, atomic_read(&txq->used)); in be_tx_compl_clean()
2562 notified_idx = txq->tail; in be_tx_compl_clean()
2563 end_idx = txq->tail; in be_tx_compl_clean()
2564 index_adv(&end_idx, atomic_read(&txq->used) - 1, in be_tx_compl_clean()
2565 txq->len); in be_tx_compl_clean()
2570 atomic_sub(num_wrbs, &txq->used); in be_tx_compl_clean()
2571 BUG_ON(atomic_read(&txq->used)); in be_tx_compl_clean()
2576 txq->head = notified_idx; in be_tx_compl_clean()
2577 txq->tail = notified_idx; in be_tx_compl_clean()