Lines Matching full:rx_desc
559 * @rx_desc: pointer to receive descriptor (in le64 format)
567 static bool idpf_rx_singleq_test_staterr(const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_test_staterr() argument
570 return !!(rx_desc->base_wb.qword1.status_error_ptype_len & in idpf_rx_singleq_test_staterr()
576 * @rx_desc: Rx descriptor for current buffer
578 static bool idpf_rx_singleq_is_non_eop(const union virtchnl2_rx_desc *rx_desc) in idpf_rx_singleq_is_non_eop() argument
581 if (likely(idpf_rx_singleq_test_staterr(rx_desc, IDPF_RXD_EOF_SINGLEQ))) in idpf_rx_singleq_is_non_eop()
657 * @rx_desc: the receive descriptor
665 idpf_rx_singleq_base_csum(const union virtchnl2_rx_desc *rx_desc) in idpf_rx_singleq_base_csum() argument
671 qword = le64_to_cpu(rx_desc->base_wb.qword1.status_error_ptype_len); in idpf_rx_singleq_base_csum()
692 * @rx_desc: the receive descriptor
700 idpf_rx_singleq_flex_csum(const union virtchnl2_rx_desc *rx_desc) in idpf_rx_singleq_flex_csum() argument
705 rx_status0 = le16_to_cpu(rx_desc->flex_nic_wb.status_error0); in idpf_rx_singleq_flex_csum()
706 rx_status1 = le16_to_cpu(rx_desc->flex_nic_wb.status_error1); in idpf_rx_singleq_flex_csum()
730 * @rx_desc: specific descriptor
738 const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_base_hash() argument
747 qw1 = le64_to_cpu(rx_desc->base_wb.qword1.status_error_ptype_len); in idpf_rx_singleq_base_hash()
750 u32 hash = le32_to_cpu(rx_desc->base_wb.qword0.hi_dword.rss); in idpf_rx_singleq_base_hash()
760 * @rx_desc: specific descriptor
768 const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_flex_hash() argument
775 le16_to_cpu(rx_desc->flex_nic_wb.status_error0))) { in idpf_rx_singleq_flex_hash()
776 u32 hash = le32_to_cpu(rx_desc->flex_nic_wb.rss_hash); in idpf_rx_singleq_flex_hash()
787 * @rx_desc: descriptor for skb
797 const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_process_skb_fields() argument
808 idpf_rx_singleq_base_hash(rx_q, skb, rx_desc, decoded); in idpf_rx_singleq_process_skb_fields()
809 csum_bits = idpf_rx_singleq_base_csum(rx_desc); in idpf_rx_singleq_process_skb_fields()
811 idpf_rx_singleq_flex_hash(rx_q, skb, rx_desc, decoded); in idpf_rx_singleq_process_skb_fields()
812 csum_bits = idpf_rx_singleq_flex_csum(rx_desc); in idpf_rx_singleq_process_skb_fields()
892 * @rx_desc: the descriptor to process
902 idpf_rx_singleq_extract_base_fields(const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_extract_base_fields() argument
907 qword = le64_to_cpu(rx_desc->base_wb.qword1.status_error_ptype_len); in idpf_rx_singleq_extract_base_fields()
915 * @rx_desc: the descriptor to process
925 idpf_rx_singleq_extract_flex_fields(const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_extract_flex_fields() argument
929 le16_to_cpu(rx_desc->flex_nic_wb.pkt_len)); in idpf_rx_singleq_extract_flex_fields()
931 le16_to_cpu(rx_desc->flex_nic_wb.ptype_flex_flags0)); in idpf_rx_singleq_extract_flex_fields()
937 * @rx_desc: the descriptor to process
943 const union virtchnl2_rx_desc *rx_desc, in idpf_rx_singleq_extract_fields() argument
947 idpf_rx_singleq_extract_base_fields(rx_desc, fields); in idpf_rx_singleq_extract_fields()
949 idpf_rx_singleq_extract_flex_fields(rx_desc, fields); in idpf_rx_singleq_extract_fields()
970 union virtchnl2_rx_desc *rx_desc; in idpf_rx_singleq_clean() local
974 rx_desc = &rx_q->rx[ntc]; in idpf_rx_singleq_clean()
983 if (!idpf_rx_singleq_test_staterr(rx_desc, in idpf_rx_singleq_clean()
988 * any other fields out of the rx_desc in idpf_rx_singleq_clean()
992 idpf_rx_singleq_extract_fields(rx_q, rx_desc, &fields); in idpf_rx_singleq_clean()
1014 if (idpf_rx_singleq_is_non_eop(rx_desc) || unlikely(!skb)) in idpf_rx_singleq_clean()
1019 if (unlikely(idpf_rx_singleq_test_staterr(rx_desc, in idpf_rx_singleq_clean()
1037 rx_desc, fields.rx_ptype); in idpf_rx_singleq_clean()