/drivers/ntb/hw/intel/ |
D | ntb_hw_gen3.c | 565 int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_peer_db_set() argument 570 if (db_bits & ~ndev->db_valid_mask) in intel_ntb3_peer_db_set() 573 while (db_bits) { in intel_ntb3_peer_db_set() 574 bit = __ffs(db_bits); in intel_ntb3_peer_db_set() 577 db_bits &= db_bits - 1; in intel_ntb3_peer_db_set() 592 int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_db_clear() argument 596 return ndev_db_write(ndev, db_bits, in intel_ntb3_db_clear()
|
D | ntb_hw_gen1.h | 156 int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, 172 int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits); 173 int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits);
|
D | ntb_hw_gen1.c | 211 int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, in ndev_db_write() argument 217 if (db_bits & ~ndev->db_valid_mask) in ndev_db_write() 220 ndev->reg->db_iowrite(db_bits, mmio); in ndev_db_write() 225 static inline int ndev_db_set_mask(struct intel_ntb_dev *ndev, u64 db_bits, in ndev_db_set_mask() argument 233 if (db_bits & ~ndev->db_valid_mask) in ndev_db_set_mask() 238 ndev->db_mask |= db_bits; in ndev_db_set_mask() 246 static inline int ndev_db_clear_mask(struct intel_ntb_dev *ndev, u64 db_bits, in ndev_db_clear_mask() argument 254 if (db_bits & ~ndev->db_valid_mask) in ndev_db_clear_mask() 259 ndev->db_mask &= ~db_bits; in ndev_db_clear_mask() 1088 static int intel_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_db_clear() argument [all …]
|
D | ntb_hw_gen3.h | 110 int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits); 111 int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits);
|
D | ntb_hw_intel.h | 104 void (*db_iowrite)(u64 db_bits, void __iomem *mmio);
|
/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 428 static int amd_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_db_clear() argument 433 writew((u16)db_bits, mmio + AMD_DBSTAT_OFFSET); in amd_ntb_db_clear() 438 static int amd_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_db_set_mask() argument 444 if (db_bits & ~ndev->db_valid_mask) in amd_ntb_db_set_mask() 448 ndev->db_mask |= db_bits; in amd_ntb_db_set_mask() 455 static int amd_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_db_clear_mask() argument 461 if (db_bits & ~ndev->db_valid_mask) in amd_ntb_db_clear_mask() 465 ndev->db_mask &= ~db_bits; in amd_ntb_db_clear_mask() 472 static int amd_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in amd_ntb_peer_db_set() argument 477 writew((u16)db_bits, mmio + AMD_DBREQ_OFFSET); in amd_ntb_peer_db_set()
|
/drivers/ntb/hw/epf/ |
D | ntb_hw_epf.c | 396 static int ntb_epf_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_db_set_mask() argument 467 static int ntb_epf_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_peer_db_set() argument 470 u32 interrupt_num = ffs(db_bits) + 1; in ntb_epf_peer_db_set() 499 static int ntb_epf_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_db_clear_mask() argument 504 static int ntb_epf_db_clear(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_db_clear() argument
|
/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()
|
/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()
|
/drivers/ntb/ |
D | ntb_transport.c | 2440 u64 db_bits; in ntb_transport_doorbell_callback() local 2448 db_bits = (nt->qp_bitmap & ~nt->qp_bitmap_free & in ntb_transport_doorbell_callback() 2451 while (db_bits) { in ntb_transport_doorbell_callback() 2452 qp_num = __ffs(db_bits); in ntb_transport_doorbell_callback() 2458 db_bits &= ~BIT_ULL(qp_num); in ntb_transport_doorbell_callback()
|
/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()
|