Lines Matching defs:packet
528 struct xgbe_packet_data *packet;
541 packet = &ring->packet_data;
542 packet->rdesc_count = 0;
543 packet->length = 0;
545 tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
547 vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
551 if ((tso && (packet->mss != ring->tx.cur_mss)) ||
552 (vlan && (packet->vlan_ctag != ring->tx.cur_vlan_ctag)))
559 packet->header_len, DMA_TO_DEVICE);
565 rdata->skb_dma_len = packet->header_len;
568 cur_index, &skb_dma, packet->header_len);
570 offset = packet->header_len;
572 packet->length += packet->header_len;
578 /* Map the (remainder of the) packet */
597 packet->length += len;
631 packet->length += len;
646 packet->rdesc_count = cur_index - start_index;
648 DBGPR("<--xgbe_map_tx_skb: count=%u\n", packet->rdesc_count);
650 return packet->rdesc_count;