| 127 | } |
| 128 | |
| 129 | void bnxt_enable_int(struct bnxt *bp) |
| 130 | { |
| 131 | struct bnxt_cp_ring_info *cpr = bp->async_cp_ring; |
| 132 | |
| 133 | if (BNXT_NUM_ASYNC_CPR(bp) == 0) |
| 134 | return; |
| 135 | |
| 136 | if (!cpr || !cpr->cp_db.doorbell) |
| 137 | return; |
| 138 | |
| 139 | /* Only the default completion ring */ |
| 140 | if (BNXT_HAS_NQ(bp)) |
| 141 | bnxt_db_nq_arm(cpr); |
| 142 | else |
| 143 | B_CP_DB_ARM(cpr); |
| 144 | } |
| 145 | |
| 146 | int bnxt_setup_int(struct bnxt *bp) |
| 147 | { |
no test coverage detected