Lines Matching refs:pkt_info
709 struct xlgmac_pkt_info *pkt_info; in xlgmac_dev_xmit() local
716 pkt_info = &ring->pkt_info; in xlgmac_dev_xmit()
717 csum = XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_dev_xmit()
720 tso = XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_dev_xmit()
723 vlan = XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_dev_xmit()
727 if (tso && (pkt_info->mss != ring->tx.cur_mss)) in xlgmac_dev_xmit()
732 if (vlan && (pkt_info->vlan_ctag != ring->tx.cur_vlan_ctag)) in xlgmac_dev_xmit()
747 ring->coalesce_count += pkt_info->tx_packets; in xlgmac_dev_xmit()
750 else if (pkt_info->tx_packets > pdata->tx_frames) in xlgmac_dev_xmit()
753 pkt_info->tx_packets) in xlgmac_dev_xmit()
766 pkt_info->mss); in xlgmac_dev_xmit()
773 pkt_info->mss); in xlgmac_dev_xmit()
789 ring->tx.cur_mss = pkt_info->mss; in xlgmac_dev_xmit()
795 pkt_info->vlan_ctag); in xlgmac_dev_xmit()
809 pkt_info->vlan_ctag); in xlgmac_dev_xmit()
818 ring->tx.cur_vlan_ctag = pkt_info->vlan_ctag; in xlgmac_dev_xmit()
848 if (XLGMAC_GET_REG_BITS(pkt_info->attributes, in xlgmac_dev_xmit()
889 pkt_info->tcp_payload_len); in xlgmac_dev_xmit()
894 pkt_info->tcp_header_len / 4); in xlgmac_dev_xmit()
917 pkt_info->length); in xlgmac_dev_xmit()
920 for (i = cur_index - start_index + 1; i < pkt_info->desc_count; i++) { in xlgmac_dev_xmit()
973 desc_data->tx.packets = pkt_info->tx_packets; in xlgmac_dev_xmit()
974 desc_data->tx.bytes = pkt_info->tx_bytes; in xlgmac_dev_xmit()
992 pkt_info->desc_count, 1); in xlgmac_dev_xmit()
1010 static void xlgmac_get_rx_tstamp(struct xlgmac_pkt_info *pkt_info, in xlgmac_get_rx_tstamp() argument
1027 pkt_info->rx_tstamp = nsec; in xlgmac_get_rx_tstamp()
1028 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_get_rx_tstamp()
1029 pkt_info->attributes, in xlgmac_get_rx_tstamp()
2645 struct xlgmac_pkt_info *pkt_info; in xlgmac_dev_read() local
2650 pkt_info = &ring->pkt_info; in xlgmac_dev_read()
2668 xlgmac_get_rx_tstamp(pkt_info, dma_desc); in xlgmac_dev_read()
2670 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2671 pkt_info->attributes, in xlgmac_dev_read()
2675 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2676 pkt_info->attributes, in xlgmac_dev_read()
2684 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2685 pkt_info->attributes, in xlgmac_dev_read()
2694 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2695 pkt_info->attributes, in xlgmac_dev_read()
2715 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2716 pkt_info->attributes, in xlgmac_dev_read()
2721 pkt_info->rss_hash = le32_to_cpu(dma_desc->desc1); in xlgmac_dev_read()
2731 pkt_info->rss_hash_type = PKT_HASH_TYPE_L4; in xlgmac_dev_read()
2734 pkt_info->rss_hash_type = PKT_HASH_TYPE_L3; in xlgmac_dev_read()
2747 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2748 pkt_info->attributes, in xlgmac_dev_read()
2756 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2757 pkt_info->attributes, in xlgmac_dev_read()
2764 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2765 pkt_info->attributes, in xlgmac_dev_read()
2783 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2784 pkt_info->attributes, in xlgmac_dev_read()
2788 pkt_info->vlan_ctag = in xlgmac_dev_read()
2793 pkt_info->vlan_ctag); in xlgmac_dev_read()
2797 pkt_info->attributes = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2798 pkt_info->attributes, in xlgmac_dev_read()
2803 pkt_info->errors = XLGMAC_SET_REG_BITS( in xlgmac_dev_read()
2804 pkt_info->errors, in xlgmac_dev_read()