Searched refs:txr_idx (Results 1 – 9 of 9) sorted by relevance
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_os.c | 81 static int qla_send(qla_host_t *ha, struct mbuf **m_headp, uint32_t txr_idx, 473 ha->tx_fp[i].txr_idx = i; in qla_pci_attach() 1253 qla_send(qla_host_t *ha, struct mbuf **m_headp, uint32_t txr_idx, in qla_send() argument 1265 tx_idx = ha->hw.tx_cntxt[txr_idx].txr_next; in qla_send() 1267 if ((NULL != ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head) || in qla_send() 1270 "mbuf = %p\n", __func__, __LINE__, txr_idx, tx_idx,\ in qla_send() 1271 ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head)); in qla_send() 1274 "mbuf = %p\n", __func__, __LINE__, txr_idx, tx_idx, in qla_send() 1275 ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head)); in qla_send() 1284 map = ha->tx_ring[txr_idx].tx_buf[tx_idx].map; in qla_send() [all …]
|
H A D | ql_hw.c | 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() [all …]
|
H A D | ql_glbl.h | 59 uint32_t tx_idx, struct mbuf *mp, uint32_t txr_idx, 71 extern void ql_hw_tx_done_locked(qla_host_t *ha, uint32_t txr_idx);
|
H A D | ql_def.h | 123 uint32_t txr_idx; member 191 uint32_t txr_idx; /* index of the current tx ring */ member
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_isr.c | 44 qls_tx_comp(qla_host_t *ha, uint32_t txr_idx, q81_tx_mac_comp_t *tx_comp) in qls_tx_comp() argument 54 txb = &ha->tx_ring[txr_idx].tx_buf[tx_idx]; in qls_tx_comp() 66 ha->tx_ring[txr_idx].txr_done++; in qls_tx_comp() 68 if (ha->tx_ring[txr_idx].txr_done == NUM_TX_DESCRIPTORS) in qls_tx_comp() 69 ha->tx_ring[txr_idx].txr_done = 0; in qls_tx_comp()
|
H A D | qls_hw.c | 635 qls_hw_tx_done(qla_host_t *ha, uint32_t txr_idx) in qls_hw_tx_done() argument 639 txr_done = ha->tx_ring[txr_idx].txr_done; in qls_hw_tx_done() 640 txr_next = ha->tx_ring[txr_idx].txr_next; in qls_hw_tx_done() 643 ha->tx_ring[txr_idx].txr_free = NUM_TX_DESCRIPTORS; in qls_hw_tx_done() 645 ha->tx_ring[txr_idx].txr_free = txr_done - txr_next; in qls_hw_tx_done() 647 ha->tx_ring[txr_idx].txr_free = NUM_TX_DESCRIPTORS + in qls_hw_tx_done() 651 if (ha->tx_ring[txr_idx].txr_free <= QLA_TX_MIN_FREE) in qls_hw_tx_done() 666 uint32_t txr_next, struct mbuf *mp, uint32_t txr_idx) in qls_hw_send() argument 685 if (ha->tx_ring[txr_idx].txr_free <= (NUM_TX_DESCRIPTORS >> 2)) { in qls_hw_send() 686 if (qls_hw_tx_done(ha, txr_idx)) { in qls_hw_send() [all …]
|
H A D | qls_glbl.h | 68 extern int qls_hw_tx_done(qla_host_t *ha, uint32_t txr_idx); 71 uint32_t tx_idx, struct mbuf *mp, uint32_t txr_idx);
|
H A D | qls_os.c | 1115 uint32_t txr_idx = 0; in qls_send() local 1121 txr_idx = m_head->m_pkthdr.flowid & (ha->num_tx_rings - 1); in qls_send() 1123 tx_idx = ha->tx_ring[txr_idx].txr_next; in qls_send() 1125 map = ha->tx_ring[txr_idx].tx_buf[tx_idx].map; in qls_send() 1182 if (!(ret = qls_hw_send(ha, segs, nsegs, tx_idx, m_head, txr_idx))) { in qls_send() 1183 ha->tx_ring[txr_idx].count++; in qls_send() 1184 ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head = m_head; in qls_send() 1185 ha->tx_ring[txr_idx].tx_buf[tx_idx].map = map; in qls_send()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_def.h | 422 uint32_t txr_idx; member
|