Lines Matching refs:cqe
760 static inline u8 mlx5_get_cqe_format(struct mlx5_cqe64 *cqe) in mlx5_get_cqe_format() argument
762 return (cqe->op_own >> 2) & 0x3; in mlx5_get_cqe_format()
765 static inline u8 get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe) in get_cqe_lro_tcppsh() argument
767 return (cqe->lro_tcppsh_abort_dupack >> 6) & 1; in get_cqe_lro_tcppsh()
770 static inline u8 get_cqe_l4_hdr_type(struct mlx5_cqe64 *cqe) in get_cqe_l4_hdr_type() argument
772 return (cqe->l4_l3_hdr_type >> 4) & 0x7; in get_cqe_l4_hdr_type()
775 static inline u8 get_cqe_l3_hdr_type(struct mlx5_cqe64 *cqe) in get_cqe_l3_hdr_type() argument
777 return (cqe->l4_l3_hdr_type >> 2) & 0x3; in get_cqe_l3_hdr_type()
780 static inline bool cqe_is_tunneled(struct mlx5_cqe64 *cqe) in cqe_is_tunneled() argument
782 return cqe->outer_l3_tunneled & 0x1; in cqe_is_tunneled()
785 static inline bool cqe_has_vlan(struct mlx5_cqe64 *cqe) in cqe_has_vlan() argument
787 return cqe->l4_l3_hdr_type & 0x1; in cqe_has_vlan()
790 static inline u64 get_cqe_ts(struct mlx5_cqe64 *cqe) in get_cqe_ts() argument
794 hi = be32_to_cpu(cqe->timestamp_h); in get_cqe_ts()
795 lo = be32_to_cpu(cqe->timestamp_l); in get_cqe_ts()
808 static inline u16 mpwrq_get_cqe_byte_cnt(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_byte_cnt() argument
810 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_get_cqe_byte_cnt()
820 static inline u16 mpwrq_get_cqe_consumed_strides(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_consumed_strides() argument
822 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_get_cqe_consumed_strides()
827 static inline bool mpwrq_is_filler_cqe(struct mlx5_cqe64 *cqe) in mpwrq_is_filler_cqe() argument
829 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_is_filler_cqe()
834 static inline u16 mpwrq_get_cqe_stride_index(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_stride_index() argument
836 return be16_to_cpu(cqe->wqe_counter); in mpwrq_get_cqe_stride_index()