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

Function intel_ntb_db_clear

dpdk/drivers/raw/ntb/ntb_hw_intel.c:531–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531static int
532intel_ntb_db_clear(const struct rte_rawdev *dev, uint64_t db_bits)
533{
534 struct ntb_hw *hw = dev->dev_private;
535 uint64_t db_off;
536 void *db_addr;
537
538 db_off = XEON_IM_INT_STATUS_OFFSET;
539 db_addr = hw->hw_addr + db_off;
540
541 if (is_gen4_ntb(hw))
542 rte_write16(XEON_GEN4_SLOTSTS_DLLSCS,
543 hw->hw_addr + XEON_GEN4_SLOTSTS);
544 rte_write64(db_bits, db_addr);
545
546 return 0;
547}
548
549static int
550intel_ntb_db_set_mask(const struct rte_rawdev *dev, uint64_t db_mask)

Callers

nothing calls this directly

Calls 3

is_gen4_ntbFunction · 0.85
rte_write16Function · 0.50
rte_write64Function · 0.50

Tested by

no test coverage detected