db_bits 347 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 352 drivers/ntb/hw/amd/ntb_hw_amd.c writew((u16)db_bits, mmio + AMD_DBSTAT_OFFSET); db_bits 357 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 363 drivers/ntb/hw/amd/ntb_hw_amd.c if (db_bits & ~ndev->db_valid_mask) db_bits 367 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_mask |= db_bits; db_bits 374 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 380 drivers/ntb/hw/amd/ntb_hw_amd.c if (db_bits & ~ndev->db_valid_mask) db_bits 384 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_mask &= ~db_bits; db_bits 391 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 396 drivers/ntb/hw/amd/ntb_hw_amd.c writew((u16)db_bits, mmio + AMD_DBREQ_OFFSET); db_bits 1481 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 1485 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_INDBELLSTS, (u32)db_bits); db_bits 1518 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1523 drivers/ntb/hw/idt/ntb_hw_idt.c IDT_DBELL_MASK, db_bits); db_bits 1539 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1544 drivers/ntb/hw/idt/ntb_hw_idt.c db_bits); db_bits 1560 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 1564 drivers/ntb/hw/idt/ntb_hw_idt.c if (db_bits & ~(u64)IDT_DBELL_MASK) db_bits 1567 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_OUTDBELLSET, (u32)db_bits); db_bits 210 drivers/ntb/hw/intel/ntb_hw_gen1.c int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, db_bits 216 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_bits & ~ndev->db_valid_mask) db_bits 219 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(db_bits, mmio); db_bits 224 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_db_set_mask(struct intel_ntb_dev *ndev, u64 db_bits, db_bits 232 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_bits & ~ndev->db_valid_mask) db_bits 237 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask |= db_bits; db_bits 245 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_db_clear_mask(struct intel_ntb_dev *ndev, u64 db_bits, db_bits 253 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_bits & ~ndev->db_valid_mask) db_bits 258 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask &= ~db_bits; db_bits 1085 drivers/ntb/hw/intel/ntb_hw_gen1.c static int intel_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 1089 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_write(ndev, db_bits, db_bits 1094 drivers/ntb/hw/intel/ntb_hw_gen1.c int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1098 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_set_mask(ndev, db_bits, db_bits 1103 drivers/ntb/hw/intel/ntb_hw_gen1.c int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1107 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_clear_mask(ndev, db_bits, db_bits 1115 drivers/ntb/hw/intel/ntb_hw_gen1.c u64 db_bits; db_bits 1121 drivers/ntb/hw/intel/ntb_hw_gen1.c db_bits = BIT_ULL(db_bit); db_bits 1123 drivers/ntb/hw/intel/ntb_hw_gen1.c if (unlikely(db_bits & ~ntb_ndev(ntb)->db_valid_mask)) db_bits 1130 drivers/ntb/hw/intel/ntb_hw_gen1.c *db_data = db_bits; db_bits 1136 drivers/ntb/hw/intel/ntb_hw_gen1.c static int intel_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 1140 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_write(ndev, db_bits, db_bits 154 drivers/ntb/hw/intel/ntb_hw_gen1.h int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, db_bits 170 drivers/ntb/hw/intel/ntb_hw_gen1.h int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits); db_bits 171 drivers/ntb/hw/intel/ntb_hw_gen1.h int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits); db_bits 566 drivers/ntb/hw/intel/ntb_hw_gen3.c static int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 571 drivers/ntb/hw/intel/ntb_hw_gen3.c if (db_bits & ~ndev->db_valid_mask) db_bits 574 drivers/ntb/hw/intel/ntb_hw_gen3.c while (db_bits) { db_bits 575 drivers/ntb/hw/intel/ntb_hw_gen3.c bit = __ffs(db_bits); db_bits 578 drivers/ntb/hw/intel/ntb_hw_gen3.c db_bits &= db_bits - 1; db_bits 593 drivers/ntb/hw/intel/ntb_hw_gen3.c static int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 597 drivers/ntb/hw/intel/ntb_hw_gen3.c return ndev_db_write(ndev, db_bits, db_bits 106 drivers/ntb/hw/intel/ntb_hw_intel.h void (*db_iowrite)(u64 db_bits, void __iomem *mmio); db_bits 633 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 637 drivers/ntb/hw/mscc/ntb_hw_switchtec.c iowrite64(db_bits << sndev->db_shift, &sndev->mmio_self_dbmsg->idb); db_bits 642 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 647 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (db_bits & ~sndev->db_valid_mask) db_bits 652 drivers/ntb/hw/mscc/ntb_hw_switchtec.c sndev->db_mask |= db_bits << sndev->db_shift; db_bits 660 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 665 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (db_bits & ~sndev->db_valid_mask) db_bits 670 drivers/ntb/hw/mscc/ntb_hw_switchtec.c sndev->db_mask &= ~(db_bits << sndev->db_shift); db_bits 712 drivers/ntb/hw/mscc/ntb_hw_switchtec.c static int switchtec_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 716 drivers/ntb/hw/mscc/ntb_hw_switchtec.c iowrite64(db_bits << sndev->db_peer_shift, db_bits 2431 drivers/ntb/ntb_transport.c u64 db_bits; db_bits 2439 drivers/ntb/ntb_transport.c db_bits = (nt->qp_bitmap & ~nt->qp_bitmap_free & db_bits 2442 drivers/ntb/ntb_transport.c while (db_bits) { db_bits 2443 drivers/ntb/ntb_transport.c qp_num = __ffs(db_bits); db_bits 2449 drivers/ntb/ntb_transport.c db_bits &= ~BIT_ULL(qp_num); db_bits 307 drivers/ntb/test/ntb_tool.c u64 db_bits, db_mask; db_bits 310 drivers/ntb/test/ntb_tool.c db_bits = ntb_db_read(tc->ntb); db_bits 313 drivers/ntb/test/ntb_tool.c vec, db_mask, db_bits); db_bits 293 include/linux/ntb.h int (*db_set)(struct ntb_dev *ntb, u64 db_bits); db_bits 294 include/linux/ntb.h int (*db_clear)(struct ntb_dev *ntb, u64 db_bits); db_bits 297 include/linux/ntb.h int (*db_set_mask)(struct ntb_dev *ntb, u64 db_bits); db_bits 298 include/linux/ntb.h int (*db_clear_mask)(struct ntb_dev *ntb, u64 db_bits); db_bits 304 include/linux/ntb.h int (*peer_db_set)(struct ntb_dev *ntb, u64 db_bits); db_bits 305 include/linux/ntb.h int (*peer_db_clear)(struct ntb_dev *ntb, u64 db_bits); db_bits 308 include/linux/ntb.h int (*peer_db_set_mask)(struct ntb_dev *ntb, u64 db_bits); db_bits 309 include/linux/ntb.h int (*peer_db_clear_mask)(struct ntb_dev *ntb, u64 db_bits); db_bits 1058 include/linux/ntb.h static inline int ntb_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 1063 include/linux/ntb.h return ntb->ops->db_set(ntb, db_bits); db_bits 1076 include/linux/ntb.h static inline int ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 1078 include/linux/ntb.h return ntb->ops->db_clear(ntb, db_bits); db_bits 1110 include/linux/ntb.h static inline int ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1112 include/linux/ntb.h return ntb->ops->db_set_mask(ntb, db_bits); db_bits 1129 include/linux/ntb.h static inline int ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1131 include/linux/ntb.h return ntb->ops->db_clear_mask(ntb, db_bits); db_bits 1191 include/linux/ntb.h static inline int ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) db_bits 1193 include/linux/ntb.h return ntb->ops->peer_db_set(ntb, db_bits); db_bits 1208 include/linux/ntb.h static inline int ntb_peer_db_clear(struct ntb_dev *ntb, u64 db_bits) db_bits 1213 include/linux/ntb.h return ntb->ops->peer_db_clear(ntb, db_bits); db_bits 1247 include/linux/ntb.h static inline int ntb_peer_db_set_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1252 include/linux/ntb.h return ntb->ops->peer_db_set_mask(ntb, db_bits); db_bits 1269 include/linux/ntb.h static inline int ntb_peer_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) db_bits 1274 include/linux/ntb.h return ntb->ops->peer_db_clear_mask(ntb, db_bits);