Home
last modified time | relevance | path

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

/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);
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);
1049 * @db_bits: Doorbell bits to set.
1058 static inline int ntb_db_set(struct ntb_dev *ntb, u64 db_bits) in ntb_db_set() argument
1076 ntb_db_clear(struct ntb_dev * ntb,u64 db_bits) ntb_db_clear() argument
1110 ntb_db_set_mask(struct ntb_dev * ntb,u64 db_bits) ntb_db_set_mask() argument
1129 ntb_db_clear_mask(struct ntb_dev * ntb,u64 db_bits) ntb_db_clear_mask() argument
1191 ntb_peer_db_set(struct ntb_dev * ntb,u64 db_bits) ntb_peer_db_set() argument
1208 ntb_peer_db_clear(struct ntb_dev * ntb,u64 db_bits) ntb_peer_db_clear() argument
1247 ntb_peer_db_set_mask(struct ntb_dev * ntb,u64 db_bits) ntb_peer_db_set_mask() argument
1269 ntb_peer_db_clear_mask(struct ntb_dev * ntb,u64 db_bits) ntb_peer_db_clear_mask() argument
[all...]
/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.c568 int intel_ntb3_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_peer_db_set() argument
573 if (db_bits & ~ndev->db_valid_mask) in intel_ntb3_peer_db_set()
576 while (db_bits) { in intel_ntb3_peer_db_set()
577 bit = __ffs(db_bits); in intel_ntb3_peer_db_set()
580 db_bits &= db_bits - 1; in intel_ntb3_peer_db_set()
595 int intel_ntb3_db_clear(struct ntb_dev *ntb, u64 db_bits) in intel_ntb3_db_clear() argument
599 return ndev_db_write(ndev, db_bits, in intel_ntb3_db_clear()
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_gen1.c211 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
1097 intel_ntb_db_set_mask(struct ntb_dev * ntb,u64 db_bits) intel_ntb_db_set_mask() argument
1106 intel_ntb_db_clear_mask(struct ntb_dev * ntb,u64 db_bits) intel_ntb_db_clear_mask() argument
1118 u64 db_bits; intel_ntb_peer_db_addr() local
1139 intel_ntb_peer_db_set(struct ntb_dev * ntb,u64 db_bits) intel_ntb_peer_db_set() argument
[all...]
H A Dntb_hw_intel.h105 void (*db_iowrite)(u64 db_bits, void __iomem *mmio);
/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, mmi in amd_ntb_peer_db_set()
[all...]
/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
/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 << snde in switchtec_ntb_peer_db_set()
[all...]
/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-vntb.c1148 static int vntb_epf_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in vntb_epf_db_set_mask() argument
1249 static int vntb_epf_peer_db_set(struct ntb_dev *ndev, u64 db_bits) in vntb_epf_peer_db_set() argument
1251 u32 interrupt_num = ffs(db_bits) + 1; in vntb_epf_peer_db_set()
1302 static int vntb_epf_db_clear_mask(struct ntb_dev *ndev, u64 db_bits) in vntb_epf_db_clear_mask() argument
1307 static int vntb_epf_db_clear(struct ntb_dev *ndev, u64 db_bits) in vntb_epf_db_clear() argument
1311 ntb->db &= ~db_bits; in vntb_epf_db_clear()
/linux/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c1468 * @db_bits: Doorbell bits to clear.
1477 static int idt_ntb_db_clear(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_db_clear() argument
1481 idt_nt_write(ndev, IDT_NT_INDBELLSTS, (u32)db_bits); in idt_ntb_db_clear()
1507 * @db_bits: Doorbell mask bits to set.
1514 static int idt_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_db_set_mask() argument
1519 IDT_DBELL_MASK, db_bits); in idt_ntb_db_set_mask()
1526 * @db_bits: Doorbell bits to clear.
1535 static int idt_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in idt_ntb_db_clear_mask() argument
1540 db_bits); in idt_ntb_db_clear_mask()
1549 * @db_bits
1556 idt_ntb_peer_db_set(struct ntb_dev * ntb,u64 db_bits) idt_ntb_peer_db_set() argument
[all...]
/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()