summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKoichiro Den <den@valinux.co.jp>2026-05-13 11:49:23 +0900
committerBjorn Helgaas <bhelgaas@google.com>2026-06-23 11:37:44 -0500
commit1fda82e37e00eb679d762756867b2e7508dd73f9 (patch)
tree70f3da2f503d62eafcf7c4645d2612925f1b4c17 /include/linux
parent4fdea8dbb62d746429498e07385a3ba0b0f6d1ab (diff)
NTB: epf: Implement .db_vector_count()/mask() for doorbells
Implement .db_vector_count() and .db_vector_mask() so NTB core/clients can map doorbell events to per-vector work. Report vectors as 0..(db_count - 2) (skipping the unused slot) and return BIT_ULL(db_vector) for the corresponding doorbell bit. Use ntb_epf_db_vector_count() for bounds checks in ntb_epf_db_vector_mask(), so the same lower-bound guard is applied before building the bitmask. Signed-off-by: Koichiro Den <den@valinux.co.jp> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://patch.msgid.link/20260513024923.451765-13-den@valinux.co.jp
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions