/drivers/infiniband/hw/mthca/ |
D | mthca_cmd.h | 244 int mthca_cmd_init(struct mthca_dev *dev); 245 void mthca_cmd_cleanup(struct mthca_dev *dev); 246 int mthca_cmd_use_events(struct mthca_dev *dev); 247 void mthca_cmd_use_polling(struct mthca_dev *dev); 248 void mthca_cmd_event(struct mthca_dev *dev, u16 token, 251 struct mthca_mailbox *mthca_alloc_mailbox(struct mthca_dev *dev, 253 void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox); 255 int mthca_SYS_EN(struct mthca_dev *dev); 256 int mthca_SYS_DIS(struct mthca_dev *dev); 257 int mthca_MAP_FA(struct mthca_dev *dev, struct mthca_icm *icm); [all …]
|
D | mthca_dev.h | 288 struct mthca_dev { struct 411 int mthca_reset(struct mthca_dev *mdev); 423 int mthca_buf_alloc(struct mthca_dev *dev, int size, int max_direct, 426 void mthca_buf_free(struct mthca_dev *dev, int size, union mthca_buf *buf, 429 int mthca_init_uar_table(struct mthca_dev *dev); 430 int mthca_init_pd_table(struct mthca_dev *dev); 431 int mthca_init_mr_table(struct mthca_dev *dev); 432 int mthca_init_eq_table(struct mthca_dev *dev); 433 int mthca_init_cq_table(struct mthca_dev *dev); 434 int mthca_init_srq_table(struct mthca_dev *dev); [all …]
|
D | mthca_memfree.h | 80 struct mthca_dev; 82 struct mthca_icm *mthca_alloc_icm(struct mthca_dev *dev, int npages, 84 void mthca_free_icm(struct mthca_dev *dev, struct mthca_icm *icm, int coherent); 86 struct mthca_icm_table *mthca_alloc_icm_table(struct mthca_dev *dev, 90 void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table); 91 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj); 92 void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj); 94 int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table, 96 void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table, 165 int mthca_map_user_db(struct mthca_dev *dev, struct mthca_uar *uar, [all …]
|
D | mthca_cmd.c | 192 static inline int go_bit(struct mthca_dev *dev) in go_bit() 198 static void mthca_cmd_post_dbell(struct mthca_dev *dev, in mthca_cmd_post_dbell() 230 static int mthca_cmd_post_hcr(struct mthca_dev *dev, in mthca_cmd_post_hcr() 275 static int mthca_cmd_post(struct mthca_dev *dev, in mthca_cmd_post() 331 static int mthca_cmd_poll(struct mthca_dev *dev, in mthca_cmd_poll() 387 void mthca_cmd_event(struct mthca_dev *dev, in mthca_cmd_event() 406 static int mthca_cmd_wait(struct mthca_dev *dev, in mthca_cmd_wait() 469 static int mthca_cmd_box(struct mthca_dev *dev, in mthca_cmd_box() 488 static int mthca_cmd(struct mthca_dev *dev, in mthca_cmd() 504 static int mthca_cmd_imm(struct mthca_dev *dev, in mthca_cmd_imm() [all …]
|
D | mthca_mr.c | 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() [all …]
|
D | mthca_eq.c | 166 static inline u64 async_mask(struct mthca_dev *dev) in async_mask() 173 static inline void tavor_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in tavor_set_eq_ci() 189 static inline void arbel_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in arbel_set_eq_ci() 199 static inline void set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in set_eq_ci() 207 static inline void tavor_eq_req_not(struct mthca_dev *dev, int eqn) in tavor_eq_req_not() 214 static inline void arbel_eq_req_not(struct mthca_dev *dev, u32 eqn_mask) in arbel_eq_req_not() 219 static inline void disarm_cq(struct mthca_dev *dev, int eqn, int cqn) in disarm_cq() 246 static void port_change(struct mthca_dev *dev, int port, int active) in port_change() 260 static int mthca_eq_int(struct mthca_dev *dev, struct mthca_eq *eq) in mthca_eq_int() 393 struct mthca_dev *dev = dev_ptr; in mthca_tavor_interrupt() [all …]
|
D | mthca_memfree.c | 64 static void mthca_free_icm_pages(struct mthca_dev *dev, struct mthca_icm_chunk *chunk) in mthca_free_icm_pages() 77 static void mthca_free_icm_coherent(struct mthca_dev *dev, struct mthca_icm_chunk *chunk) in mthca_free_icm_coherent() 88 void mthca_free_icm(struct mthca_dev *dev, struct mthca_icm *icm, int coherent) in mthca_free_icm() 137 struct mthca_icm *mthca_alloc_icm(struct mthca_dev *dev, int npages, in mthca_alloc_icm() 222 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_get() 257 void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_put() 321 int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table, in mthca_table_get_range() 344 void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table, in mthca_table_put_range() 356 struct mthca_icm_table *mthca_alloc_icm_table(struct mthca_dev *dev, in mthca_alloc_icm_table() 424 void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table) in mthca_free_icm_table() [all …]
|
D | mthca_catas.c | 61 struct mthca_dev *dev, *tmpdev; in catas_reset() 79 struct mthca_dev *d = pci_get_drvdata(pdev); in catas_reset() 87 static void handle_catas(struct mthca_dev *dev) in handle_catas() 135 struct mthca_dev *dev = from_timer(dev, t, catas_err.timer); in poll_catas() 148 void mthca_start_catas_poll(struct mthca_dev *dev) in mthca_start_catas_poll() 172 void mthca_stop_catas_poll(struct mthca_dev *dev) in mthca_stop_catas_poll()
|
D | mthca_uar.c | 38 int mthca_uar_alloc(struct mthca_dev *dev, struct mthca_uar *uar) in mthca_uar_alloc() 49 void mthca_uar_free(struct mthca_dev *dev, struct mthca_uar *uar) in mthca_uar_free() 54 int mthca_init_uar_table(struct mthca_dev *dev) in mthca_init_uar_table() 72 void mthca_cleanup_uar_table(struct mthca_dev *dev) in mthca_cleanup_uar_table()
|
D | mthca_pd.c | 39 int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd) in mthca_pd_alloc() 62 void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd) in mthca_pd_free() 69 int mthca_init_pd_table(struct mthca_dev *dev) in mthca_init_pd_table() 77 void mthca_cleanup_pd_table(struct mthca_dev *dev) in mthca_cleanup_pd_table()
|
D | mthca_srq.c | 97 static void mthca_tavor_init_srq_context(struct mthca_dev *dev, in mthca_tavor_init_srq_context() 118 static void mthca_arbel_init_srq_context(struct mthca_dev *dev, in mthca_arbel_init_srq_context() 147 static void mthca_free_srq_buf(struct mthca_dev *dev, struct mthca_srq *srq) in mthca_free_srq_buf() 154 static int mthca_alloc_srq_buf(struct mthca_dev *dev, struct mthca_pd *pd, in mthca_alloc_srq_buf() 206 int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd, in mthca_alloc_srq() 327 static inline int get_srq_refcount(struct mthca_dev *dev, struct mthca_srq *srq) in get_srq_refcount() 338 void mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq) in mthca_free_srq() 375 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_modify_srq() 398 struct mthca_dev *dev = to_mdev(ibsrq->device); in mthca_query_srq() 430 void mthca_srq_event(struct mthca_dev *dev, u32 srqn, in mthca_srq_event() [all …]
|
D | mthca_av.c | 94 enum ib_rate mthca_rate_to_ib(struct mthca_dev *dev, u8 mthca_rate, u32 port) in mthca_rate_to_ib() 134 u8 mthca_get_rate(struct mthca_dev *dev, int static_rate, u32 port) in mthca_get_rate() 153 int mthca_create_ah(struct mthca_dev *dev, in mthca_create_ah() 243 int mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah) in mthca_destroy_ah() 269 int mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah, in mthca_read_ah() 295 struct mthca_dev *dev = to_mdev(ibah->device); in mthca_ah_query() 326 int mthca_init_av_table(struct mthca_dev *dev) in mthca_init_av_table() 367 void mthca_cleanup_av_table(struct mthca_dev *dev) in mthca_cleanup_av_table()
|
D | mthca_cq.c | 189 static void dump_cqe(struct mthca_dev *dev, void *cqe_ptr) in dump_cqe() 204 static inline void update_cons_index(struct mthca_dev *dev, struct mthca_cq *cq, in update_cons_index() 217 void mthca_cq_completion(struct mthca_dev *dev, u32 cqn) in mthca_cq_completion() 233 void mthca_cq_event(struct mthca_dev *dev, u32 cqn, in mthca_cq_event() 273 void mthca_cq_clean(struct mthca_dev *dev, struct mthca_cq *cq, u32 qpn, in mthca_cq_clean() 348 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent) in mthca_alloc_cq_buf() 366 void mthca_free_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int cqe) in mthca_free_cq_buf() 372 static void handle_error_cqe(struct mthca_dev *dev, struct mthca_cq *cq, in handle_error_cqe() 478 static inline int mthca_poll_one(struct mthca_dev *dev, in mthca_poll_one() 657 struct mthca_dev *dev = to_mdev(ibcq->device); in mthca_poll_cq() [all …]
|
D | mthca_main.c | 136 static int mthca_tune_pci(struct mthca_dev *mdev) in mthca_tune_pci() 164 static int mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim) in mthca_dev_lim() 287 static int mthca_init_tavor(struct mthca_dev *mdev) in mthca_init_tavor() 345 static int mthca_load_fw(struct mthca_dev *mdev) in mthca_load_fw() 380 static int mthca_init_icm(struct mthca_dev *mdev, in mthca_init_icm() 556 static void mthca_free_icms(struct mthca_dev *mdev) in mthca_free_icms() 574 static int mthca_init_arbel(struct mthca_dev *mdev) in mthca_init_arbel() 647 static void mthca_close_hca(struct mthca_dev *mdev) in mthca_close_hca() 663 static int mthca_init_hca(struct mthca_dev *mdev) in mthca_init_hca() 694 static int mthca_setup_hca(struct mthca_dev *dev) in mthca_setup_hca() [all …]
|
D | mthca_qp.c | 196 static int is_sqp(struct mthca_dev *dev, struct mthca_qp *qp) in is_sqp() 202 static int is_qp0(struct mthca_dev *dev, struct mthca_qp *qp) in is_qp0() 238 void mthca_qp_event(struct mthca_dev *dev, u32 qpn, in mthca_qp_event() 310 static void init_port(struct mthca_dev *dev, int port) in init_port() 397 static void to_rdma_ah_attr(struct mthca_dev *dev, in to_rdma_ah_attr() 433 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_query_qp() 522 static int mthca_path_set(struct mthca_dev *dev, const struct rdma_ah_attr *ah, in mthca_path_set() 562 struct mthca_dev *dev = to_mdev(ibqp->device); in __mthca_modify_qp() 861 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_modify_qp() 931 static int mthca_max_data_size(struct mthca_dev *dev, struct mthca_qp *qp, int desc_sz) in mthca_max_data_size() [all …]
|
D | mthca_provider.c | 59 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device() 462 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_create_qp() 651 static int mthca_alloc_resize_buf(struct mthca_dev *dev, struct mthca_cq *cq, in mthca_alloc_resize_buf() 698 struct mthca_dev *dev = to_mdev(ibcq->device); in mthca_resize_cq() 829 struct mthca_dev *dev = to_mdev(pd->device); in mthca_reg_user_mr() 935 struct mthca_dev *dev = in hw_rev_show() 936 rdma_device_to_drv_device(device, struct mthca_dev, ib_dev); in hw_rev_show() 962 struct mthca_dev *dev = in hca_type_show() 963 rdma_device_to_drv_device(device, struct mthca_dev, ib_dev); in hca_type_show() 972 struct mthca_dev *dev = in board_id_show() [all …]
|
D | mthca_mcg.c | 63 static int find_mgm(struct mthca_dev *dev, in find_mgm() 122 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_attach() 216 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_detach() 315 int mthca_init_mcg_table(struct mthca_dev *dev) in mthca_init_mcg_table() 332 void mthca_cleanup_mcg_table(struct mthca_dev *dev) in mthca_cleanup_mcg_table()
|
D | mthca_mad.c | 50 static int mthca_update_rate(struct mthca_dev *dev, u8 port_num) in mthca_update_rate() 75 static void update_sm_ah(struct mthca_dev *dev, in update_sm_ah() 164 static void forward_trap(struct mthca_dev *dev, in forward_trap() 283 int mthca_create_agents(struct mthca_dev *dev) in mthca_create_agents() 325 void mthca_free_agents(struct mthca_dev *dev) in mthca_free_agents()
|
D | mthca_profile.h | 54 s64 mthca_make_profile(struct mthca_dev *mdev,
|
D | mthca_allocator.c | 190 int mthca_buf_alloc(struct mthca_dev *dev, int size, int max_direct, in mthca_buf_alloc() 279 void mthca_buf_free(struct mthca_dev *dev, int size, union mthca_buf *buf, in mthca_buf_free()
|
D | mthca_provider.h | 88 struct mthca_dev *dev;
|
D | mthca_reset.c | 41 int mthca_reset(struct mthca_dev *mdev) in mthca_reset()
|
D | mthca_profile.c | 62 s64 mthca_make_profile(struct mthca_dev *dev, in mthca_make_profile()
|