Lines Matching refs:dx_buff
574 struct aq_ring_buff_s *dx_buff; in aq_nic_map_skb() local
587 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
588 dx_buff->flags = 0U; in aq_nic_map_skb()
591 dx_buff->mss = skb_shinfo(skb)->gso_size; in aq_nic_map_skb()
593 dx_buff->is_gso_tcp = 1U; in aq_nic_map_skb()
594 dx_buff->len_l4 = tcp_hdrlen(skb); in aq_nic_map_skb()
596 dx_buff->is_gso_udp = 1U; in aq_nic_map_skb()
597 dx_buff->len_l4 = sizeof(struct udphdr); in aq_nic_map_skb()
599 udp_hdr(skb)->len = htons(dx_buff->mss + in aq_nic_map_skb()
600 dx_buff->len_l4); in aq_nic_map_skb()
605 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
606 dx_buff->len_l2 = ETH_HLEN; in aq_nic_map_skb()
607 dx_buff->len_l3 = skb_network_header_len(skb); in aq_nic_map_skb()
608 dx_buff->eop_index = 0xffffU; in aq_nic_map_skb()
609 dx_buff->is_ipv6 = (ipver == 6); in aq_nic_map_skb()
614 dx_buff->vlan_tx_tag = skb_vlan_tag_get(skb); in aq_nic_map_skb()
615 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
616 dx_buff->is_vlan = 1U; in aq_nic_map_skb()
622 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
623 dx_buff->flags = 0U; in aq_nic_map_skb()
627 dx_buff->len = skb_headlen(skb); in aq_nic_map_skb()
628 dx_buff->pa = dma_map_single(dev, in aq_nic_map_skb()
630 dx_buff->len, in aq_nic_map_skb()
633 if (unlikely(dma_mapping_error(dev, dx_buff->pa))) { in aq_nic_map_skb()
638 first = dx_buff; in aq_nic_map_skb()
639 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
640 dx_buff->is_sop = 1U; in aq_nic_map_skb()
641 dx_buff->is_mapped = 1U; in aq_nic_map_skb()
645 dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol); in aq_nic_map_skb()
646 dx_buff->is_tcp_cso = (l4proto == IPPROTO_TCP); in aq_nic_map_skb()
647 dx_buff->is_udp_cso = (l4proto == IPPROTO_UDP); in aq_nic_map_skb()
676 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
678 dx_buff->flags = 0U; in aq_nic_map_skb()
679 dx_buff->len = buff_size; in aq_nic_map_skb()
680 dx_buff->pa = frag_pa; in aq_nic_map_skb()
681 dx_buff->is_mapped = 1U; in aq_nic_map_skb()
682 dx_buff->eop_index = 0xffffU; in aq_nic_map_skb()
692 dx_buff->is_eop = 1U; in aq_nic_map_skb()
693 dx_buff->skb = skb; in aq_nic_map_skb()
700 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
702 if (!(dx_buff->is_gso_tcp || dx_buff->is_gso_udp) && in aq_nic_map_skb()
703 !dx_buff->is_vlan && dx_buff->pa) { in aq_nic_map_skb()
704 if (unlikely(dx_buff->is_sop)) { in aq_nic_map_skb()
706 dx_buff->pa, in aq_nic_map_skb()
707 dx_buff->len, in aq_nic_map_skb()
711 dx_buff->pa, in aq_nic_map_skb()
712 dx_buff->len, in aq_nic_map_skb()