• Home
  • Raw
  • Download

Lines Matching refs:db_bits

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
1092 return ndev_db_write(ndev, db_bits, in intel_ntb_db_clear()
1097 int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_db_set_mask() argument
1101 return ndev_db_set_mask(ndev, db_bits, in intel_ntb_db_set_mask()
1106 int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_db_clear_mask() argument
1110 return ndev_db_clear_mask(ndev, db_bits, in intel_ntb_db_clear_mask()
1118 u64 db_bits; in intel_ntb_peer_db_addr() local
1124 db_bits = BIT_ULL(db_bit); in intel_ntb_peer_db_addr()
1126 if (unlikely(db_bits & ~ntb_ndev(ntb)->db_valid_mask)) in intel_ntb_peer_db_addr()
1133 *db_data = db_bits; in intel_ntb_peer_db_addr()
1139 static int intel_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_peer_db_set() argument
1143 return ndev_db_write(ndev, db_bits, in intel_ntb_peer_db_set()