Lines Matching refs:tx

1409 		for (i = 0; i < vptr->tx.numq; i++) {  in velocity_init_registers()
1410 writel(vptr->tx.pool_dma[i], &regs->TDBaseLo[i]); in velocity_init_registers()
1485 pool = dma_alloc_coherent(vptr->dev, tx_ring_size * vptr->tx.numq + in velocity_init_dma_rings()
1499 for (i = 0; i < vptr->tx.numq; i++) { in velocity_init_dma_rings()
1500 vptr->tx.rings[i] = pool; in velocity_init_dma_rings()
1501 vptr->tx.pool_dma[i] = pool_dma; in velocity_init_dma_rings()
1658 for (j = 0; j < vptr->tx.numq; j++) { in velocity_init_td_ring()
1660 vptr->tx.infos[j] = kcalloc(vptr->options.numtx, in velocity_init_td_ring()
1663 if (!vptr->tx.infos[j]) { in velocity_init_td_ring()
1665 kfree(vptr->tx.infos[j]); in velocity_init_td_ring()
1669 vptr->tx.tail[j] = vptr->tx.curr[j] = vptr->tx.used[j] = 0; in velocity_init_td_ring()
1683 vptr->options.numtx * sizeof(struct tx_desc) * vptr->tx.numq; in velocity_free_dma_rings()
1756 struct velocity_td_info *td_info = &(vptr->tx.infos[q][n]); in velocity_free_td_ring_entry()
1786 for (j = 0; j < vptr->tx.numq; j++) { in velocity_free_td_ring()
1787 if (vptr->tx.infos[j] == NULL) in velocity_free_td_ring()
1792 kfree(vptr->tx.infos[j]); in velocity_free_td_ring()
1793 vptr->tx.infos[j] = NULL; in velocity_free_td_ring()
1911 for (qnum = 0; qnum < vptr->tx.numq; qnum++) { in velocity_tx_srv()
1912 for (idx = vptr->tx.tail[qnum]; vptr->tx.used[qnum] > 0; in velocity_tx_srv()
1918 td = &(vptr->tx.rings[qnum][idx]); in velocity_tx_srv()
1919 tdinfo = &(vptr->tx.infos[qnum][idx]); in velocity_tx_srv()
1943 vptr->tx.used[qnum]--; in velocity_tx_srv()
1945 vptr->tx.tail[qnum] = idx; in velocity_tx_srv()
2306 struct tx_info tx; in velocity_change_mtu() local
2318 tmp_vptr->tx.numq = vptr->tx.numq; in velocity_change_mtu()
2332 tx = vptr->tx; in velocity_change_mtu()
2335 vptr->tx = tmp_vptr->tx; in velocity_change_mtu()
2338 tmp_vptr->tx = tx; in velocity_change_mtu()
2560 index = vptr->tx.curr[qnum]; in velocity_xmit()
2561 td_ptr = &(vptr->tx.rings[qnum][index]); in velocity_xmit()
2562 tdinfo = &(vptr->tx.infos[qnum][index]); in velocity_xmit()
2617 vptr->tx.used[qnum]++; in velocity_xmit()
2618 vptr->tx.curr[qnum] = (index + 1) % vptr->options.numtx; in velocity_xmit()
2623 td_ptr = &(vptr->tx.rings[qnum][prev]); in velocity_xmit()
2662 vptr->tx.numq = info->txqueue; in velocity_init_info()
3232 for (i = 0; i < vptr->tx.numq; i++) { in velocity_resume()
3233 if (vptr->tx.used[i]) in velocity_resume()