* Add the value to the selected pointer of a queue. * * @param queue * Base address for queue structure * @param ptr * Add to the read or write pointer * @param val * Value to add to the queue pointer */
| 172 | * Value to add to the queue pointer |
| 173 | */ |
| 174 | static inline void |
| 175 | nfp_qcp_ptr_add(uint8_t *queue, |
| 176 | enum nfp_qcp_ptr ptr, |
| 177 | uint32_t val) |
| 178 | { |
| 179 | uint32_t off; |
| 180 | |
| 181 | if (ptr == NFP_QCP_READ_PTR) |
| 182 | off = NFP_QCP_QUEUE_ADD_RPTR; |
| 183 | else |
| 184 | off = NFP_QCP_QUEUE_ADD_WPTR; |
| 185 | |
| 186 | nn_writel(rte_cpu_to_le_32(val), queue + off); |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * Read the current read/write pointer value for a queue. |
no test coverage detected