Lines Matching refs:index

387 	int index = 0;
397 index,
403 txq->tx_buf[index].buf_p);
405 index++;
487 unsigned int index;
525 index = fec_enet_get_bd_index(bdp, &txq->bd);
528 memcpy(txq->tx_bounce[index], bufaddr, frag_len);
529 bufaddr = txq->tx_bounce[index];
574 unsigned int index;
601 index = fec_enet_get_bd_index(bdp, &txq->bd);
604 memcpy(txq->tx_bounce[index], skb->data, buflen);
605 bufaddr = txq->tx_bounce[index];
658 index = fec_enet_get_bd_index(last_bdp, &txq->bd);
660 txq->tx_buf[index].buf_p = skb;
691 struct bufdesc *bdp, int index, char *data,
707 memcpy(txq->tx_bounce[index], data, size);
708 data = txq->tx_bounce[index];
751 struct bufdesc *bdp, int index)
765 bufaddr = txq->tso_hdrs + index * TSO_HEADER_SIZE;
766 dmabuf = txq->tso_hdrs_dma + index * TSO_HEADER_SIZE;
769 memcpy(txq->tx_bounce[index], skb->data, hdr_len);
770 bufaddr = txq->tx_bounce[index];
810 unsigned int index = 0;
833 index = fec_enet_get_bd_index(bdp, &txq->bd);
838 hdr = txq->tso_hdrs + index * TSO_HEADER_SIZE;
840 ret = fec_enet_txq_put_hdr_tso(txq, skb, ndev, bdp, index);
849 index = fec_enet_get_bd_index(bdp, &txq->bd);
851 bdp, index,
866 txq->tx_buf[index].buf_p = skb;
1388 int index = 0;
1410 index = fec_enet_get_bd_index(bdp, &txq->bd);
1412 if (txq->tx_buf[index].type == FEC_TXBUF_T_SKB) {
1413 skb = txq->tx_buf[index].buf_p;
1432 if (txq->tx_buf[index].type == FEC_TXBUF_T_XDP_NDO) {
1433 xdpf = txq->tx_buf[index].buf_p;
1440 page = txq->tx_buf[index].buf_p;
1444 if (unlikely(!txq->tx_buf[index].buf_p)) {
1445 txq->tx_buf[index].type = FEC_TXBUF_T_SKB;
1470 if (txq->tx_buf[index].type == FEC_TXBUF_T_SKB)
1482 if (txq->tx_buf[index].type == FEC_TXBUF_T_SKB) {
1498 } else if (txq->tx_buf[index].type == FEC_TXBUF_T_XDP_NDO) {
1505 txq->tx_buf[index].buf_p = NULL;
1507 txq->tx_buf[index].type = FEC_TXBUF_T_SKB;
1545 struct bufdesc *bdp, int index)
1552 rxq->rx_skb_info[index].page = new_page;
1554 rxq->rx_skb_info[index].offset = FEC_ENET_XDP_HEADROOM;
1643 int index = 0;
1713 index = fec_enet_get_bd_index(bdp, &rxq->bd);
1714 page = rxq->rx_skb_info[index].page;
1720 fec_enet_update_cbd(rxq, bdp, index);
3787 fec_enet_xdp_get_tx_queue(struct fec_enet_private *fep, int index)
3789 if (unlikely(index < 0))
3792 return (index % fep->num_tx_queues);
3800 unsigned int index, status, estatus;
3817 index = fec_enet_get_bd_index(bdp, &txq->bd);
3828 txq->tx_buf[index].buf_p = xdpf;
3829 txq->tx_buf[index].type = FEC_TXBUF_T_XDP_NDO;
3840 txq->tx_buf[index].buf_p = page;
3841 txq->tx_buf[index].type = FEC_TXBUF_T_XDP_TX;