Lines Matching defs:dev
188 static u32 mthca_alloc_mtt_range(struct mthca_dev *dev, int order, in mthca_alloc_mtt_range()
206 static struct mthca_mtt *__mthca_alloc_mtt(struct mthca_dev *dev, int size, in __mthca_alloc_mtt()
233 struct mthca_mtt *mthca_alloc_mtt(struct mthca_dev *dev, int size) in mthca_alloc_mtt()
238 void mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt) in mthca_free_mtt()
252 static int __mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt, in __mthca_write_mtt()
297 int mthca_write_mtt_size(struct mthca_dev *dev) in mthca_write_mtt_size()
313 static void mthca_tavor_write_mtt_seg(struct mthca_dev *dev, in mthca_tavor_write_mtt_seg()
327 static void mthca_arbel_write_mtt_seg(struct mthca_dev *dev, in mthca_arbel_write_mtt_seg()
356 int mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt, in mthca_write_mtt()
403 static inline u32 hw_index_to_key(struct mthca_dev *dev, u32 ind) in hw_index_to_key()
411 static inline u32 key_to_hw_index(struct mthca_dev *dev, u32 key) in key_to_hw_index()
419 static inline u32 adjust_key(struct mthca_dev *dev, u32 key) in adjust_key()
427 int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift, in mthca_mr_alloc()
509 int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd, in mthca_mr_alloc_notrans()
516 int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, in mthca_mr_alloc_phys()
542 static void mthca_free_region(struct mthca_dev *dev, u32 lkey) in mthca_free_region()
550 void mthca_free_mr(struct mthca_dev *dev, struct mthca_mr *mr) in mthca_free_mr()
564 int mthca_init_mr_table(struct mthca_dev *dev) in mthca_init_mr_table()
688 void mthca_cleanup_mr_table(struct mthca_dev *dev) in mthca_cleanup_mr_table()