Lines Matching refs:dx_buff

375 	struct aq_ring_buff_s *dx_buff = &ring->buff_ring[dx];  in aq_nic_map_skb()  local
378 dx_buff->flags = 0U; in aq_nic_map_skb()
379 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
380 dx_buff->len_l2 = ETH_HLEN; in aq_nic_map_skb()
381 dx_buff->len_l3 = ip_hdrlen(skb); in aq_nic_map_skb()
382 dx_buff->len_l4 = tcp_hdrlen(skb); in aq_nic_map_skb()
383 dx_buff->mss = skb_shinfo(skb)->gso_size; in aq_nic_map_skb()
384 dx_buff->is_txc = 1U; in aq_nic_map_skb()
385 dx_buff->eop_index = 0xffffU; in aq_nic_map_skb()
387 dx_buff->is_ipv6 = in aq_nic_map_skb()
391 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
395 dx_buff->flags = 0U; in aq_nic_map_skb()
396 dx_buff->len = skb_headlen(skb); in aq_nic_map_skb()
397 dx_buff->pa = dma_map_single(aq_nic_get_dev(self), in aq_nic_map_skb()
399 dx_buff->len, in aq_nic_map_skb()
402 if (unlikely(dma_mapping_error(aq_nic_get_dev(self), dx_buff->pa))) in aq_nic_map_skb()
405 first = dx_buff; in aq_nic_map_skb()
406 dx_buff->len_pkt = skb->len; in aq_nic_map_skb()
407 dx_buff->is_sop = 1U; in aq_nic_map_skb()
408 dx_buff->is_mapped = 1U; in aq_nic_map_skb()
412 dx_buff->is_ip_cso = (htons(ETH_P_IP) == skb->protocol) ? in aq_nic_map_skb()
416 dx_buff->is_tcp_cso = in aq_nic_map_skb()
419 dx_buff->is_udp_cso = in aq_nic_map_skb()
423 dx_buff->is_tcp_cso = in aq_nic_map_skb()
426 dx_buff->is_udp_cso = in aq_nic_map_skb()
458 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
460 dx_buff->flags = 0U; in aq_nic_map_skb()
461 dx_buff->len = buff_size; in aq_nic_map_skb()
462 dx_buff->pa = frag_pa; in aq_nic_map_skb()
463 dx_buff->is_mapped = 1U; in aq_nic_map_skb()
464 dx_buff->eop_index = 0xffffU; in aq_nic_map_skb()
474 dx_buff->is_eop = 1U; in aq_nic_map_skb()
475 dx_buff->skb = skb; in aq_nic_map_skb()
482 dx_buff = &ring->buff_ring[dx]; in aq_nic_map_skb()
484 if (!dx_buff->is_txc && dx_buff->pa) { in aq_nic_map_skb()
485 if (unlikely(dx_buff->is_sop)) { in aq_nic_map_skb()
487 dx_buff->pa, in aq_nic_map_skb()
488 dx_buff->len, in aq_nic_map_skb()
492 dx_buff->pa, in aq_nic_map_skb()
493 dx_buff->len, in aq_nic_map_skb()