| 222 | } |
| 223 | |
| 224 | static inline int |
| 225 | get_free(struct mlx5_regex_hw_qp *qp, uint8_t has_umr) { |
| 226 | return (qp_size_get(qp) - ((qp->pi - qp->ci) & |
| 227 | (has_umr ? (MLX5_REGEX_MAX_WQE_INDEX >> 2) : |
| 228 | MLX5_REGEX_MAX_WQE_INDEX))); |
| 229 | } |
| 230 | |
| 231 | static inline uint32_t |
| 232 | job_id_get(uint32_t qid, size_t qp_size, size_t index) { |
no test coverage detected