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

Function bnxt_db_write

dpdk/drivers/net/bnxt/bnxt_ring.h:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82void bnxt_free_rxtx_nq_ring(struct bnxt *bp);
83
84static inline void bnxt_db_write(struct bnxt_db_info *db, uint32_t idx)
85{
86 uint32_t db_idx = DB_RING_IDX(db, idx);
87 void *doorbell = db->doorbell;
88
89 if (db->db_64) {
90 uint64_t key_idx = db->db_key64 | db_idx;
91
92 rte_write64(key_idx, doorbell);
93 } else {
94 uint32_t key_idx = db->db_key32 | db_idx;
95
96 rte_write32(key_idx, doorbell);
97 }
98}
99
100/* Ring an NQ doorbell and disable interrupts for the ring. */
101static inline void bnxt_db_nq(struct bnxt_cp_ring_info *cpr)

Callers 10

_bnxt_xmit_pktsFunction · 0.85
bnxt_rx_ring_resetFunction · 0.85
bnxt_recv_pktsFunction · 0.85
bnxt_alloc_rx_ringFunction · 0.85
bnxt_alloc_rx_agg_ringFunction · 0.85
bnxt_alloc_hwrm_rx_ringFunction · 0.85
bnxt_rxq_rearmFunction · 0.85

Calls 2

rte_write64Function · 0.50
rte_write32Function · 0.50

Tested by

no test coverage detected