/Linux-v5.4/include/linux/ |
D | ntb.h | 293 int (*db_set)(struct ntb_dev *ntb, u64 db_bits); 294 int (*db_clear)(struct ntb_dev *ntb, u64 db_bits); 297 int (*db_set_mask)(struct ntb_dev *ntb, u64 db_bits); 298 int (*db_clear_mask)(struct ntb_dev *ntb, u64 db_bits); 304 int (*peer_db_set)(struct ntb_dev *ntb, u64 db_bits); 305 int (*peer_db_clear)(struct ntb_dev *ntb, u64 db_bits); 308 int (*peer_db_set_mask)(struct ntb_dev *ntb, u64 db_bits); 309 int (*peer_db_clear_mask)(struct ntb_dev *ntb, u64 db_bits); 1058 static inline int ntb_db_set(struct ntb_dev *ntb, u64 db_bits) in ntb_db_set() argument 1063 return ntb->ops->db_set(ntb, db_bits); in ntb_db_set() [all …]
|
/Linux-v5.4/drivers/ntb/hw/intel/ |
D | ntb_hw_gen1.h | 154 int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, 170 int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits); 171 int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits);
|
D | ntb_hw_gen3.c | 566 static int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_peer_db_set() argument 571 if (db_bits & ~ndev->db_valid_mask) in intel_ntb3_peer_db_set() 574 while (db_bits) { in intel_ntb3_peer_db_set() 575 bit = __ffs(db_bits); in intel_ntb3_peer_db_set() 578 db_bits &= db_bits - 1; in intel_ntb3_peer_db_set() 593 static int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_db_clear() argument 597 return ndev_db_write(ndev, db_bits, in intel_ntb3_db_clear()
|
D | ntb_hw_gen1.c | 210 int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, in ndev_db_write() argument 216 if (db_bits & ~ndev->db_valid_mask) in ndev_db_write() 219 ndev->reg->db_iowrite(db_bits, mmio); in ndev_db_write() 224 static inline int ndev_db_set_mask(struct intel_ntb_dev *ndev, u64 db_bits, in ndev_db_set_mask() argument 232 if (db_bits & ~ndev->db_valid_mask) in ndev_db_set_mask() 237 ndev->db_mask |= db_bits; in ndev_db_set_mask() 245 static inline int ndev_db_clear_mask(struct intel_ntb_dev *ndev, u64 db_bits, in ndev_db_clear_mask() argument 253 if (db_bits & ~ndev->db_valid_mask) in ndev_db_clear_mask() 258 ndev->db_mask &= ~db_bits; in ndev_db_clear_mask() 1085 static int intel_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_db_clear() argument [all …]
|
D | ntb_hw_intel.h | 106 void (*db_iowrite)(u64 db_bits, void __iomem *mmio);
|
/Linux-v5.4/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 347 static int amd_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_db_clear() argument 352 writew((u16)db_bits, mmio + AMD_DBSTAT_OFFSET); in amd_ntb_db_clear() 357 static int amd_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_db_set_mask() argument 363 if (db_bits & ~ndev->db_valid_mask) in amd_ntb_db_set_mask() 367 ndev->db_mask |= db_bits; in amd_ntb_db_set_mask() 374 static int amd_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_db_clear_mask() argument 380 if (db_bits & ~ndev->db_valid_mask) in amd_ntb_db_clear_mask() 384 ndev->db_mask &= ~db_bits; in amd_ntb_db_clear_mask() 391 static int amd_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_peer_db_set() argument 396 writew((u16)db_bits, mmio + AMD_DBREQ_OFFSET); in amd_ntb_peer_db_set()
|
/Linux-v5.4/drivers/ntb/hw/mscc/ |
D | ntb_hw_switchtec.c | 633 static int switchtec_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_db_clear() argument 637 iowrite64(db_bits << sndev->db_shift, &sndev->mmio_self_dbmsg->idb); in switchtec_ntb_db_clear() 642 static int switchtec_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_db_set_mask() argument 647 if (db_bits & ~sndev->db_valid_mask) in switchtec_ntb_db_set_mask() 652 sndev->db_mask |= db_bits << sndev->db_shift; in switchtec_ntb_db_set_mask() 660 static int switchtec_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_db_clear_mask() argument 665 if (db_bits & ~sndev->db_valid_mask) in switchtec_ntb_db_clear_mask() 670 sndev->db_mask &= ~(db_bits << sndev->db_shift); in switchtec_ntb_db_clear_mask() 712 static int switchtec_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_peer_db_set() argument 716 iowrite64(db_bits << sndev->db_peer_shift, in switchtec_ntb_peer_db_set()
|
/Linux-v5.4/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.c | 1481 static int idt_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_db_clear() argument 1485 idt_nt_write(ndev, IDT_NT_INDBELLSTS, (u32)db_bits); in idt_ntb_db_clear() 1518 static int idt_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_db_set_mask() argument 1523 IDT_DBELL_MASK, db_bits); in idt_ntb_db_set_mask() 1539 static int idt_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_db_clear_mask() argument 1544 db_bits); in idt_ntb_db_clear_mask() 1560 static int idt_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_peer_db_set() argument 1564 if (db_bits & ~(u64)IDT_DBELL_MASK) in idt_ntb_peer_db_set() 1567 idt_nt_write(ndev, IDT_NT_OUTDBELLSET, (u32)db_bits); in idt_ntb_peer_db_set()
|
/Linux-v5.4/drivers/ntb/ |
D | ntb_transport.c | 2431 u64 db_bits; in ntb_transport_doorbell_callback() local 2439 db_bits = (nt->qp_bitmap & ~nt->qp_bitmap_free & in ntb_transport_doorbell_callback() 2442 while (db_bits) { in ntb_transport_doorbell_callback() 2443 qp_num = __ffs(db_bits); in ntb_transport_doorbell_callback() 2449 db_bits &= ~BIT_ULL(qp_num); in ntb_transport_doorbell_callback()
|
/Linux-v5.4/drivers/ntb/test/ |
D | ntb_tool.c | 307 u64 db_bits, db_mask; in tool_db_event() local 310 db_bits = ntb_db_read(tc->ntb); in tool_db_event() 313 vec, db_mask, db_bits); in tool_db_event()
|