Lines Matching refs:txr_idx
922 OID_AUTO, "tx_ring_index", CTLFLAG_RW, &ha->txr_idx, in ql_hw_add_sysctls()
923 ha->txr_idx, "Tx Ring Used"); in ql_hw_add_sysctls()
2469 uint32_t tx_idx, struct mbuf *mp, uint32_t txr_idx, uint32_t iscsi_pdu) in ql_hw_send() argument
2535 if (hw->tx_cntxt[txr_idx].txr_free <= (num_tx_cmds + QLA_TX_MIN_FREE)) { in ql_hw_send()
2536 ql_hw_tx_done_locked(ha, txr_idx); in ql_hw_send()
2537 if (hw->tx_cntxt[txr_idx].txr_free <= in ql_hw_send()
2551 if (NULL != ha->tx_ring[txr_idx].tx_buf[j].m_head) { in ql_hw_send()
2554 __func__, __LINE__, txr_idx, j,\ in ql_hw_send()
2555 ha->tx_ring[txr_idx].tx_buf[j].m_head)); in ql_hw_send()
2560 tx_cmd = &hw->tx_cntxt[txr_idx].tx_ring_base[tx_idx]; in ql_hw_send()
2638 txr_next = hw->tx_cntxt[txr_idx].txr_next = in ql_hw_send()
2639 (hw->tx_cntxt[txr_idx].txr_next + 1) & in ql_hw_send()
2646 tx_cmd = &hw->tx_cntxt[txr_idx].tx_ring_base[txr_next]; in ql_hw_send()
2653 txr_next = hw->tx_cntxt[txr_idx].txr_next; in ql_hw_send()
2655 tx_cmd = &hw->tx_cntxt[txr_idx].tx_ring_base[txr_next]; in ql_hw_send()
2690 txr_next = hw->tx_cntxt[txr_idx].txr_next = in ql_hw_send()
2691 (hw->tx_cntxt[txr_idx].txr_next + 1) & in ql_hw_send()
2696 tx_cmd = &hw->tx_cntxt[txr_idx].tx_ring_base[txr_next]; in ql_hw_send()
2705 txr_next = hw->tx_cntxt[txr_idx].txr_next = in ql_hw_send()
2706 (hw->tx_cntxt[txr_idx].txr_next + 1) & in ql_hw_send()
2712 hw->tx_cntxt[txr_idx].txr_free = in ql_hw_send()
2713 hw->tx_cntxt[txr_idx].txr_free - tx_cmd_count; in ql_hw_send()
2715 QL_UPDATE_TX_PRODUCER_INDEX(ha, hw->tx_cntxt[txr_idx].txr_next,\ in ql_hw_send()
2716 txr_idx); in ql_hw_send()
3345 qla_init_xmt_cntxt_i(qla_host_t *ha, uint32_t txr_idx) in qla_init_xmt_cntxt_i() argument
3355 hw_tx_cntxt = &hw->tx_cntxt[txr_idx]; in qla_init_xmt_cntxt_i()
3369 intr_idx = txr_idx; in qla_init_xmt_cntxt_i()
3376 if (txr_idx >= (ha->hw.num_tx_rings >> 1)) { in qla_init_xmt_cntxt_i()
3380 intr_idx = txr_idx % (ha->hw.num_tx_rings >> 1); in qla_init_xmt_cntxt_i()
3432 qla_del_xmt_cntxt_i(qla_host_t *ha, uint32_t txr_idx) in qla_del_xmt_cntxt_i() argument
3446 tcntxt->cntxt_id = ha->hw.tx_cntxt[txr_idx].tx_cntxt_id; in qla_del_xmt_cntxt_i()
3730 ql_hw_tx_done_locked(qla_host_t *ha, uint32_t txr_idx) in ql_hw_tx_done_locked() argument
3737 hw_tx_cntxt = &hw->tx_cntxt[txr_idx]; in ql_hw_tx_done_locked()
3743 txb = &ha->tx_ring[txr_idx].tx_buf[hw_tx_cntxt->txr_comp]; in ql_hw_tx_done_locked()
3768 txr_idx, hw_tx_cntxt->txr_free, in ql_hw_tx_done_locked()
3773 __func__, __LINE__, txr_idx, hw_tx_cntxt->txr_free, \ in ql_hw_tx_done_locked()