Lines Matching refs:ndev
110 struct ntb_device *ndev; member
174 static inline unsigned char ntb_max_cbs(struct ntb_device *ndev) in ntb_max_cbs() argument
176 return ndev->max_cbs; in ntb_max_cbs()
187 static inline unsigned char ntb_max_mw(struct ntb_device *ndev) in ntb_max_mw() argument
189 return ndev->limits.max_mw; in ntb_max_mw()
200 static inline bool ntb_hw_link_status(struct ntb_device *ndev) in ntb_hw_link_status() argument
202 return ndev->link_status == NTB_LINK_UP; in ntb_hw_link_status()
213 static inline struct pci_dev *ntb_query_pdev(struct ntb_device *ndev) in ntb_query_pdev() argument
215 return ndev->pdev; in ntb_query_pdev()
227 static inline struct dentry *ntb_query_debugfs(struct ntb_device *ndev) in ntb_query_debugfs() argument
229 return ndev->debugfs_dir; in ntb_query_debugfs()
234 void ntb_unregister_transport(struct ntb_device *ndev);
235 void ntb_set_mw_addr(struct ntb_device *ndev, unsigned int mw, u64 addr);
236 int ntb_register_db_callback(struct ntb_device *ndev, unsigned int idx,
239 void ntb_unregister_db_callback(struct ntb_device *ndev, unsigned int idx);
240 int ntb_register_event_callback(struct ntb_device *ndev,
243 void ntb_unregister_event_callback(struct ntb_device *ndev);
244 int ntb_get_max_spads(struct ntb_device *ndev);
245 int ntb_write_local_spad(struct ntb_device *ndev, unsigned int idx, u32 val);
246 int ntb_read_local_spad(struct ntb_device *ndev, unsigned int idx, u32 *val);
247 int ntb_write_remote_spad(struct ntb_device *ndev, unsigned int idx, u32 val);
248 int ntb_read_remote_spad(struct ntb_device *ndev, unsigned int idx, u32 *val);
249 resource_size_t ntb_get_mw_base(struct ntb_device *ndev, unsigned int mw);
250 void __iomem *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw);
251 u64 ntb_get_mw_size(struct ntb_device *ndev, unsigned int mw);
252 void ntb_ring_doorbell(struct ntb_device *ndev, unsigned int idx);