| 107 | } |
| 108 | |
| 109 | void bnxt_disable_int(struct bnxt *bp) |
| 110 | { |
| 111 | struct bnxt_cp_ring_info *cpr = bp->async_cp_ring; |
| 112 | |
| 113 | if (BNXT_NUM_ASYNC_CPR(bp) == 0) |
| 114 | return; |
| 115 | |
| 116 | if (is_bnxt_in_error(bp)) |
| 117 | return; |
| 118 | |
| 119 | if (!cpr || !cpr->cp_db.doorbell) |
| 120 | return; |
| 121 | |
| 122 | /* Only the default completion ring */ |
| 123 | if (BNXT_HAS_NQ(bp)) |
| 124 | bnxt_db_nq(cpr); |
| 125 | else |
| 126 | B_CP_DB_DISARM(cpr); |
| 127 | } |
| 128 | |
| 129 | void bnxt_enable_int(struct bnxt *bp) |
| 130 | { |
no test coverage detected