Ring an NQ doorbell and enable interrupts for the ring. */
| 113 | |
| 114 | /* Ring an NQ doorbell and enable interrupts for the ring. */ |
| 115 | static inline void bnxt_db_nq_arm(struct bnxt_cp_ring_info *cpr) |
| 116 | { |
| 117 | uint32_t db_idx = DB_RING_IDX(&cpr->cp_db, cpr->cp_raw_cons); |
| 118 | uint64_t key_idx = cpr->cp_db.db_key64 | DBR_TYPE_NQ_ARM | db_idx; |
| 119 | void *doorbell = cpr->cp_db.doorbell; |
| 120 | |
| 121 | if (unlikely(!cpr->cp_db.db_64)) |
| 122 | return; |
| 123 | |
| 124 | rte_write64(key_idx, doorbell); |
| 125 | } |
| 126 | |
| 127 | static inline void bnxt_db_cq(struct bnxt_cp_ring_info *cpr) |
| 128 | { |
no test coverage detected