| 61 | } |
| 62 | |
| 63 | static inline void |
| 64 | ionic_intr_credits(struct ionic_intr __iomem *intr_ctrl, |
| 65 | int intr_idx, uint32_t cred, uint32_t flags) |
| 66 | { |
| 67 | if (cred > IONIC_INTR_CRED_COUNT) { |
| 68 | IONIC_WARN_ON(cred > IONIC_INTR_CRED_COUNT); |
| 69 | cred = ioread32(&intr_ctrl[intr_idx].credits); |
| 70 | cred &= IONIC_INTR_CRED_COUNT_SIGNED; |
| 71 | } |
| 72 | |
| 73 | iowrite32(cred | flags, &intr_ctrl[intr_idx].credits); |
| 74 | } |
| 75 | |
| 76 | static inline void |
| 77 | ionic_intr_clean(struct ionic_intr __iomem *intr_ctrl, |
no test coverage detected