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

Function ionic_intr_credits

dpdk/drivers/net/ionic/ionic_regs.h:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static inline void
64ionic_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
76static inline void
77ionic_intr_clean(struct ionic_intr __iomem *intr_ctrl,

Callers 1

ionic_notifyq_handlerFunction · 0.85

Calls 2

ioread32Function · 0.50
iowrite32Function · 0.50

Tested by

no test coverage detected