Home
last modified time | relevance | path

Searched refs:db_bits (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/include/linux/
H A Dntb.h293 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);
1063 return ntb->ops->db_set(ntb, db_bits); in ntb_db_set()
1078 return ntb->ops->db_clear(ntb, db_bits); in ntb_db_clear()
1112 return ntb->ops->db_set_mask(ntb, db_bits); in ntb_db_set_mask()
1131 return ntb->ops->db_clear_mask(ntb, db_bits); in ntb_db_clear_mask()
1193 return ntb->ops->peer_db_set(ntb, db_bits); in ntb_peer_db_set()
1213 return ntb->ops->peer_db_clear(ntb, db_bits); in ntb_peer_db_clear()
1252 return ntb->ops->peer_db_set_mask(ntb, db_bits); in ntb_peer_db_set_mask()
[all …]
/openbmc/linux/drivers/ntb/hw/intel/
H A Dntb_hw_gen1.h156 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);
H A Dntb_hw_gen3.h110 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);
H A Dntb_hw_gen3.c565 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()
H A Dntb_hw_gen1.c217 if (db_bits & ~ndev->db_valid_mask) in ndev_db_write()
220 ndev->reg->db_iowrite(db_bits, mmio); in ndev_db_write()
233 if (db_bits & ~ndev->db_valid_mask) in ndev_db_set_mask()
238 ndev->db_mask |= db_bits; in ndev_db_set_mask()
254 if (db_bits & ~ndev->db_valid_mask) in ndev_db_clear_mask()
259 ndev->db_mask &= ~db_bits; in ndev_db_clear_mask()
1092 return ndev_db_write(ndev, db_bits, in intel_ntb_db_clear()
1118 u64 db_bits; in intel_ntb_peer_db_addr() local
1124 db_bits = BIT_ULL(db_bit); in intel_ntb_peer_db_addr()
1133 *db_data = db_bits; in intel_ntb_peer_db_addr()
[all …]
H A Dntb_hw_intel.h105 void (*db_iowrite)(u64 db_bits, void __iomem *mmio);
/openbmc/linux/drivers/ntb/hw/amd/
H A Dntb_hw_amd.c428 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()
/openbmc/linux/drivers/ntb/hw/epf/
H A Dntb_hw_epf.c398 static int ntb_epf_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_db_set_mask() argument
469 static int ntb_epf_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_peer_db_set() argument
472 u32 interrupt_num = ffs(db_bits) + 1; in ntb_epf_peer_db_set()
501 static int ntb_epf_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_db_clear_mask() argument
506 static int ntb_epf_db_clear(struct ntb_dev *ntb, u64 db_bits) in ntb_epf_db_clear() argument
/openbmc/linux/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c635 static int switchtec_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_db_clear() argument
639 iowrite64(db_bits << sndev->db_shift, &sndev->mmio_self_dbmsg->idb); in switchtec_ntb_db_clear()
644 static int switchtec_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_db_set_mask() argument
649 if (db_bits & ~sndev->db_valid_mask) in switchtec_ntb_db_set_mask()
654 sndev->db_mask |= db_bits << sndev->db_shift; in switchtec_ntb_db_set_mask()
662 static int switchtec_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_db_clear_mask() argument
667 if (db_bits & ~sndev->db_valid_mask) in switchtec_ntb_db_clear_mask()
672 sndev->db_mask &= ~(db_bits << sndev->db_shift); in switchtec_ntb_db_clear_mask()
714 static int switchtec_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in switchtec_ntb_peer_db_set() argument
718 iowrite64(db_bits << sndev->db_peer_shift, in switchtec_ntb_peer_db_set()
/openbmc/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-vntb.c1067 static int vntb_epf_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in vntb_epf_db_set_mask() argument
1168 static int vntb_epf_peer_db_set(struct ntb_dev *ndev, u64 db_bits) in vntb_epf_peer_db_set() argument
1170 u32 interrupt_num = ffs(db_bits) + 1; in vntb_epf_peer_db_set()
1224 static int vntb_epf_db_clear_mask(struct ntb_dev *ndev, u64 db_bits) in vntb_epf_db_clear_mask() argument
1229 static int vntb_epf_db_clear(struct ntb_dev *ndev, u64 db_bits) in vntb_epf_db_clear() argument
1233 ntb->db &= ~db_bits; in vntb_epf_db_clear()
/openbmc/linux/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c1481 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()
/openbmc/linux/drivers/ntb/
H A Dntb_transport.c2453 u64 db_bits; in ntb_transport_doorbell_callback() local
2461 db_bits = (nt->qp_bitmap & ~nt->qp_bitmap_free & in ntb_transport_doorbell_callback()
2464 while (db_bits) { in ntb_transport_doorbell_callback()
2465 qp_num = __ffs(db_bits); in ntb_transport_doorbell_callback()
2471 db_bits &= ~BIT_ULL(qp_num); in ntb_transport_doorbell_callback()
/openbmc/linux/drivers/ntb/test/
H A Dntb_tool.c307 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()