MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nfp_qcp_ptr_add

Function nfp_qcp_ptr_add

dpdk/drivers/common/nfp/nfp_common.h:174–187  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

172 * Value to add to the queue pointer
173 */
174static inline void
175nfp_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.

Callers 8

nfp_net_rx_fill_freelistFunction · 0.85
nfp_net_recv_pktsFunction · 0.85
nfp_reconfig_realFunction · 0.85

Calls 1

nn_writelFunction · 0.85

Tested by

no test coverage detected