Lines Matching refs:db_bits

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
1089 return ndev_db_write(ndev, db_bits, in intel_ntb_db_clear()
1094 int intel_ntb_db_set_mask(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_db_set_mask() argument
1098 return ndev_db_set_mask(ndev, db_bits, in intel_ntb_db_set_mask()
1103 int intel_ntb_db_clear_mask(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_db_clear_mask() argument
1107 return ndev_db_clear_mask(ndev, db_bits, in intel_ntb_db_clear_mask()
1115 u64 db_bits; in intel_ntb_peer_db_addr() local
1121 db_bits = BIT_ULL(db_bit); in intel_ntb_peer_db_addr()
1123 if (unlikely(db_bits & ~ntb_ndev(ntb)->db_valid_mask)) in intel_ntb_peer_db_addr()
1130 *db_data = db_bits; in intel_ntb_peer_db_addr()
1136 static int intel_ntb_peer_db_set(struct ntb_dev *ntb, u64 db_bits) in intel_ntb_peer_db_set() argument
1140 return ndev_db_write(ndev, db_bits, in intel_ntb_peer_db_set()