Lines Matching refs:dx_buff
432 struct aq_ring_buff_s *dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb() local
435 dx_buff->flags = 0U; in aq_nic_map_skb()
438 dx_buff->mss = skb_shinfo(skb)->gso_size; in aq_nic_map_skb()
439 dx_buff->is_gso = 1U; in aq_nic_map_skb()
440 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
441 dx_buff->len_l2 = ETH_HLEN; in aq_nic_map_skb()
442 dx_buff->len_l3 = ip_hdrlen(skb); in aq_nic_map_skb()
443 dx_buff->len_l4 = tcp_hdrlen(skb); in aq_nic_map_skb()
444 dx_buff->eop_index = 0xffffU; in aq_nic_map_skb()
445 dx_buff->is_ipv6 = in aq_nic_map_skb()
451 dx_buff->vlan_tx_tag = skb_vlan_tag_get(skb); in aq_nic_map_skb()
452 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
453 dx_buff->is_vlan = 1U; in aq_nic_map_skb()
459 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
460 dx_buff->flags = 0U; in aq_nic_map_skb()
464 dx_buff->len = skb_headlen(skb); in aq_nic_map_skb()
465 dx_buff->pa = dma_map_single(aq_nic_get_dev(self), in aq_nic_map_skb()
467 dx_buff->len, in aq_nic_map_skb()
470 if (unlikely(dma_mapping_error(aq_nic_get_dev(self), dx_buff->pa))) in aq_nic_map_skb()
473 first = dx_buff; in aq_nic_map_skb()
474 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
475 dx_buff->is_sop = 1U; in aq_nic_map_skb()
476 dx_buff->is_mapped = 1U; in aq_nic_map_skb()
480 dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol) ? in aq_nic_map_skb()
484 dx_buff->is_tcp_cso = in aq_nic_map_skb()
487 dx_buff->is_udp_cso = in aq_nic_map_skb()
491 dx_buff->is_tcp_cso = in aq_nic_map_skb()
494 dx_buff->is_udp_cso = in aq_nic_map_skb()
526 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
528 dx_buff->flags = 0U; in aq_nic_map_skb()
529 dx_buff->len = buff_size; in aq_nic_map_skb()
530 dx_buff->pa = frag_pa; in aq_nic_map_skb()
531 dx_buff->is_mapped = 1U; in aq_nic_map_skb()
532 dx_buff->eop_index = 0xffffU; in aq_nic_map_skb()
542 dx_buff->is_eop = 1U; in aq_nic_map_skb()
543 dx_buff->skb = skb; in aq_nic_map_skb()
550 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
552 if (!dx_buff->is_gso && !dx_buff->is_vlan && dx_buff->pa) { in aq_nic_map_skb()
553 if (unlikely(dx_buff->is_sop)) { in aq_nic_map_skb()
555 dx_buff->pa, in aq_nic_map_skb()
556 dx_buff->len, in aq_nic_map_skb()
560 dx_buff->pa, in aq_nic_map_skb()
561 dx_buff->len, in aq_nic_map_skb()