Lines Matching refs:tx
1417 for (i = 0; i < vptr->tx.numq; i++) { in velocity_init_registers()
1418 writel(vptr->tx.pool_dma[i], ®s->TDBaseLo[i]); in velocity_init_registers()
1493 pool = dma_alloc_coherent(vptr->dev, tx_ring_size * vptr->tx.numq + in velocity_init_dma_rings()
1507 for (i = 0; i < vptr->tx.numq; i++) { in velocity_init_dma_rings()
1508 vptr->tx.rings[i] = pool; in velocity_init_dma_rings()
1509 vptr->tx.pool_dma[i] = pool_dma; in velocity_init_dma_rings()
1666 for (j = 0; j < vptr->tx.numq; j++) { in velocity_init_td_ring()
1668 vptr->tx.infos[j] = kcalloc(vptr->options.numtx, in velocity_init_td_ring()
1671 if (!vptr->tx.infos[j]) { in velocity_init_td_ring()
1673 kfree(vptr->tx.infos[j]); in velocity_init_td_ring()
1677 vptr->tx.tail[j] = vptr->tx.curr[j] = vptr->tx.used[j] = 0; in velocity_init_td_ring()
1691 vptr->options.numtx * sizeof(struct tx_desc) * vptr->tx.numq; in velocity_free_dma_rings()
1764 struct velocity_td_info *td_info = &(vptr->tx.infos[q][n]); in velocity_free_td_ring_entry()
1794 for (j = 0; j < vptr->tx.numq; j++) { in velocity_free_td_ring()
1795 if (vptr->tx.infos[j] == NULL) in velocity_free_td_ring()
1800 kfree(vptr->tx.infos[j]); in velocity_free_td_ring()
1801 vptr->tx.infos[j] = NULL; in velocity_free_td_ring()
1919 for (qnum = 0; qnum < vptr->tx.numq; qnum++) { in velocity_tx_srv()
1920 for (idx = vptr->tx.tail[qnum]; vptr->tx.used[qnum] > 0; in velocity_tx_srv()
1926 td = &(vptr->tx.rings[qnum][idx]); in velocity_tx_srv()
1927 tdinfo = &(vptr->tx.infos[qnum][idx]); in velocity_tx_srv()
1951 vptr->tx.used[qnum]--; in velocity_tx_srv()
1953 vptr->tx.tail[qnum] = idx; in velocity_tx_srv()
2324 struct tx_info tx; in velocity_change_mtu() local
2336 tmp_vptr->tx.numq = vptr->tx.numq; in velocity_change_mtu()
2350 tx = vptr->tx; in velocity_change_mtu()
2353 vptr->tx = tmp_vptr->tx; in velocity_change_mtu()
2356 tmp_vptr->tx = tx; in velocity_change_mtu()
2578 index = vptr->tx.curr[qnum]; in velocity_xmit()
2579 td_ptr = &(vptr->tx.rings[qnum][index]); in velocity_xmit()
2580 tdinfo = &(vptr->tx.infos[qnum][index]); in velocity_xmit()
2635 vptr->tx.used[qnum]++; in velocity_xmit()
2636 vptr->tx.curr[qnum] = (index + 1) % vptr->options.numtx; in velocity_xmit()
2641 td_ptr = &(vptr->tx.rings[qnum][prev]); in velocity_xmit()
2680 vptr->tx.numq = info->txqueue; in velocity_init_info()
3250 for (i = 0; i < vptr->tx.numq; i++) { in velocity_resume()
3251 if (vptr->tx.used[i]) in velocity_resume()