Home
last modified time | relevance | path

Searched refs:mlx5_core_dev (Results 1 – 27 of 27) sorted by relevance

/linux-4.1.27/include/linux/mlx5/
Ddriver.h135 struct mlx5_core_dev *dev;
345 struct mlx5_core_dev *dev;
518 struct mlx5_core_dev { struct
526 void (*event) (struct mlx5_core_dev *dev, argument
609 static inline struct mlx5_core_dev *pci2mlx5_core_dev(struct pci_dev *pdev) in pci2mlx5_core_dev()
616 static inline u16 fw_rev_maj(struct mlx5_core_dev *dev) in fw_rev_maj()
621 static inline u16 fw_rev_min(struct mlx5_core_dev *dev) in fw_rev_min()
626 static inline u16 fw_rev_sub(struct mlx5_core_dev *dev) in fw_rev_sub()
631 static inline u16 cmdif_rev(struct mlx5_core_dev *dev) in cmdif_rev()
651 int mlx5_cmd_init(struct mlx5_core_dev *dev);
[all …]
Dcq.h163 int mlx5_init_cq_table(struct mlx5_core_dev *dev);
164 void mlx5_cleanup_cq_table(struct mlx5_core_dev *dev);
165 int mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
167 int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
168 int mlx5_core_query_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
170 int mlx5_core_modify_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
172 int mlx5_debug_cq_add(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
173 void mlx5_debug_cq_remove(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
Dqp.h573 static inline struct mlx5_core_qp *__mlx5_qp_lookup(struct mlx5_core_dev *dev, u32 qpn) in __mlx5_qp_lookup()
578 static inline struct mlx5_core_mr *__mlx5_mr_lookup(struct mlx5_core_dev *dev, u32 key) in __mlx5_mr_lookup()
594 int mlx5_core_create_qp(struct mlx5_core_dev *dev,
598 int mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state,
602 int mlx5_core_destroy_qp(struct mlx5_core_dev *dev,
604 int mlx5_core_qp_query(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp,
607 int mlx5_core_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn);
608 int mlx5_core_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn);
609 void mlx5_init_qp_table(struct mlx5_core_dev *dev);
610 void mlx5_cleanup_qp_table(struct mlx5_core_dev *dev);
[all …]
Dsrq.h38 void mlx5_init_srq_table(struct mlx5_core_dev *dev);
39 void mlx5_cleanup_srq_table(struct mlx5_core_dev *dev);
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c103 int mlx5_qp_debugfs_init(struct mlx5_core_dev *dev) in mlx5_qp_debugfs_init()
117 void mlx5_qp_debugfs_cleanup(struct mlx5_core_dev *dev) in mlx5_qp_debugfs_cleanup()
125 int mlx5_eq_debugfs_init(struct mlx5_core_dev *dev) in mlx5_eq_debugfs_init()
137 void mlx5_eq_debugfs_cleanup(struct mlx5_core_dev *dev) in mlx5_eq_debugfs_cleanup()
195 int mlx5_cmdif_debugfs_init(struct mlx5_core_dev *dev) in mlx5_cmdif_debugfs_init()
249 void mlx5_cmdif_debugfs_cleanup(struct mlx5_core_dev *dev) in mlx5_cmdif_debugfs_cleanup()
257 int mlx5_cq_debugfs_init(struct mlx5_core_dev *dev) in mlx5_cq_debugfs_init()
269 void mlx5_cq_debugfs_cleanup(struct mlx5_core_dev *dev) in mlx5_cq_debugfs_cleanup()
277 static u64 qp_read_field(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp, in qp_read_field()
358 static u64 eq_read_field(struct mlx5_core_dev *dev, struct mlx5_eq *eq, in eq_read_field()
[all …]
Dpagealloc.c53 struct mlx5_core_dev *dev;
105 static int insert_page(struct mlx5_core_dev *dev, u64 addr, struct page *page, u16 func_id) in insert_page()
143 static struct fw_page *find_fw_page(struct mlx5_core_dev *dev, u64 addr) in find_fw_page()
165 static int mlx5_cmd_query_pages(struct mlx5_core_dev *dev, u16 *func_id, in mlx5_cmd_query_pages()
190 static int alloc_4k(struct mlx5_core_dev *dev, u64 *addr) in alloc_4k()
216 static void free_4k(struct mlx5_core_dev *dev, u64 addr) in free_4k()
243 static int alloc_system_page(struct mlx5_core_dev *dev, u16 func_id) in alloc_system_page()
278 static int give_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, in give_pages()
359 static int reclaim_pages(struct mlx5_core_dev *dev, u32 func_id, int npages, in reclaim_pages()
413 struct mlx5_core_dev *dev = req->dev; in pages_work_handler()
[all …]
Dhealth.c64 struct mlx5_core_dev *dev; in health_care()
75 dev = container_of(priv, struct mlx5_core_dev, priv); in health_care()
118 static void print_health_info(struct mlx5_core_dev *dev) in print_health_info()
138 struct mlx5_core_dev *dev = (struct mlx5_core_dev *)data; in poll_health()
166 void mlx5_start_health_poll(struct mlx5_core_dev *dev) in mlx5_start_health_poll()
181 void mlx5_stop_health_poll(struct mlx5_core_dev *dev) in mlx5_stop_health_poll()
Dmlx5_core.h69 int mlx5_cmd_query_hca_cap(struct mlx5_core_dev *dev,
71 int mlx5_cmd_query_adapter(struct mlx5_core_dev *dev);
72 int mlx5_cmd_init_hca(struct mlx5_core_dev *dev);
73 int mlx5_cmd_teardown_hca(struct mlx5_core_dev *dev);
Dsrq.c41 void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type) in mlx5_srq_event()
65 struct mlx5_core_srq *mlx5_core_get_srq(struct mlx5_core_dev *dev, u32 srqn) in mlx5_core_get_srq()
82 int mlx5_core_create_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq, in mlx5_core_create_srq()
125 int mlx5_core_destroy_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq) in mlx5_core_destroy_srq()
164 int mlx5_core_query_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq, in mlx5_core_query_srq()
186 int mlx5_core_arm_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq, in mlx5_core_arm_srq()
212 void mlx5_init_srq_table(struct mlx5_core_dev *dev) in mlx5_init_srq_table()
220 void mlx5_cleanup_srq_table(struct mlx5_core_dev *dev) in mlx5_cleanup_srq_table()
Dcq.c42 void mlx5_cq_completion(struct mlx5_core_dev *dev, u32 cqn) in mlx5_cq_completion()
66 void mlx5_cq_event(struct mlx5_core_dev *dev, u32 cqn, int event_type) in mlx5_cq_event()
91 int mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, in mlx5_core_create_cq()
138 int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq) in mlx5_core_destroy_cq()
180 int mlx5_core_query_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, in mlx5_core_query_cq()
203 int mlx5_core_modify_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, in mlx5_core_modify_cq()
222 int mlx5_init_cq_table(struct mlx5_core_dev *dev) in mlx5_init_cq_table()
234 void mlx5_cleanup_cq_table(struct mlx5_core_dev *dev) in mlx5_cleanup_cq_table()
Dqp.c42 static struct mlx5_core_rsc_common *mlx5_get_rsc(struct mlx5_core_dev *dev, in mlx5_get_rsc()
70 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type) in mlx5_rsc_event()
92 void mlx5_eq_pagefault(struct mlx5_core_dev *dev, struct mlx5_eqe *eqe) in mlx5_eq_pagefault()
180 int mlx5_core_create_qp(struct mlx5_core_dev *dev, in mlx5_core_create_qp()
241 int mlx5_core_destroy_qp(struct mlx5_core_dev *dev, in mlx5_core_destroy_qp()
275 int mlx5_core_qp_modify(struct mlx5_core_dev *dev, enum mlx5_qp_state cur_state, in mlx5_core_qp_modify()
337 void mlx5_init_qp_table(struct mlx5_core_dev *dev) in mlx5_init_qp_table()
346 void mlx5_cleanup_qp_table(struct mlx5_core_dev *dev) in mlx5_cleanup_qp_table()
351 int mlx5_core_qp_query(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp, in mlx5_core_qp_query()
372 int mlx5_core_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn) in mlx5_core_xrcd_alloc()
[all …]
Dmain.c209 static int mlx5_enable_msix(struct mlx5_core_dev *dev) in mlx5_enable_msix()
238 static void mlx5_disable_msix(struct mlx5_core_dev *dev) in mlx5_disable_msix()
360 int mlx5_core_get_caps(struct mlx5_core_dev *dev, struct mlx5_caps *caps, in mlx5_core_get_caps()
391 static int set_caps(struct mlx5_core_dev *dev, void *in, int in_sz) in set_caps()
408 static int handle_hca_cap(struct mlx5_core_dev *dev) in handle_hca_cap()
458 static int set_hca_ctrl(struct mlx5_core_dev *dev) in set_hca_ctrl()
472 static int mlx5_core_enable_hca(struct mlx5_core_dev *dev) in mlx5_core_enable_hca()
491 static int mlx5_core_disable_hca(struct mlx5_core_dev *dev) in mlx5_core_disable_hca()
510 int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn, int *irqn) in mlx5_vector2eqn()
531 static void free_comp_eqs(struct mlx5_core_dev *dev) in free_comp_eqs()
[all …]
Dfw.c38 int mlx5_cmd_query_adapter(struct mlx5_core_dev *dev) in mlx5_cmd_query_adapter()
67 int mlx5_cmd_query_hca_cap(struct mlx5_core_dev *dev, struct mlx5_caps *caps) in mlx5_cmd_query_hca_cap()
72 int mlx5_query_odp_caps(struct mlx5_core_dev *dev, struct mlx5_odp_caps *caps) in mlx5_query_odp_caps()
112 int mlx5_cmd_init_hca(struct mlx5_core_dev *dev) in mlx5_cmd_init_hca()
131 int mlx5_cmd_teardown_hca(struct mlx5_core_dev *dev) in mlx5_cmd_teardown_hca()
Dmr.c39 void mlx5_init_mr_table(struct mlx5_core_dev *dev) in mlx5_init_mr_table()
47 void mlx5_cleanup_mr_table(struct mlx5_core_dev *dev) in mlx5_cleanup_mr_table()
51 int mlx5_core_create_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr, in mlx5_core_create_mkey()
107 int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr) in mlx5_core_destroy_mkey()
141 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr, in mlx5_core_query_mkey()
163 int mlx5_core_dump_fill_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr, in mlx5_core_dump_fill_mkey()
187 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn, in mlx5_core_create_psv()
221 int mlx5_core_destroy_psv(struct mlx5_core_dev *dev, int psv_num) in mlx5_core_destroy_psv()
Dcmd.c427 static void dump_command(struct mlx5_core_dev *dev, in dump_command()
483 struct mlx5_core_dev *dev = container_of(cmd, struct mlx5_core_dev, cmd); in cmd_work_handler()
571 static int wait_func(struct mlx5_core_dev *dev, struct mlx5_cmd_work_ent *ent) in wait_func()
601 static int mlx5_cmd_invoke(struct mlx5_core_dev *dev, struct mlx5_cmd_msg *in, in mlx5_cmd_invoke()
665 struct mlx5_core_dev *dev = filp->private_data; in dbg_write()
758 static struct mlx5_cmd_mailbox *alloc_cmd_box(struct mlx5_core_dev *dev, in alloc_cmd_box()
780 static void free_cmd_box(struct mlx5_core_dev *dev, in free_cmd_box()
787 static struct mlx5_cmd_msg *mlx5_alloc_cmd_msg(struct mlx5_core_dev *dev, in mlx5_alloc_cmd_msg()
834 static void mlx5_free_cmd_msg(struct mlx5_core_dev *dev, in mlx5_free_cmd_msg()
851 struct mlx5_core_dev *dev = filp->private_data; in data_write()
[all …]
Deq.c84 static int mlx5_cmd_destroy_eq(struct mlx5_core_dev *dev, u8 eqn) in mlx5_cmd_destroy_eq()
197 static int mlx5_eq_int(struct mlx5_core_dev *dev, struct mlx5_eq *eq) in mlx5_eq_int()
320 struct mlx5_core_dev *dev = eq->dev; in mlx5_msix_handler()
339 int mlx5_create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, u8 vecidx, in mlx5_create_map_eq()
418 int mlx5_destroy_unmap_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq) in mlx5_destroy_unmap_eq()
436 int mlx5_eq_init(struct mlx5_core_dev *dev) in mlx5_eq_init()
448 void mlx5_eq_cleanup(struct mlx5_core_dev *dev) in mlx5_eq_cleanup()
453 int mlx5_start_eqs(struct mlx5_core_dev *dev) in mlx5_start_eqs()
501 int mlx5_stop_eqs(struct mlx5_core_dev *dev) in mlx5_stop_eqs()
520 int mlx5_core_eq_query(struct mlx5_core_dev *dev, struct mlx5_eq *eq, in mlx5_core_eq_query()
Duar.c67 int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn) in mlx5_cmd_alloc_uar()
92 int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn) in mlx5_cmd_free_uar()
124 int mlx5_alloc_uuars(struct mlx5_core_dev *dev, struct mlx5_uuar_info *uuari) in mlx5_alloc_uuars()
210 int mlx5_free_uuars(struct mlx5_core_dev *dev, struct mlx5_uuar_info *uuari) in mlx5_free_uuars()
Dpd.c61 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) in mlx5_core_alloc_pd()
82 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) in mlx5_core_dealloc_pd()
Dalloc.c50 int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, int max_direct, in mlx5_buf_alloc()
116 void mlx5_buf_free(struct mlx5_core_dev *dev, struct mlx5_buf *buf) in mlx5_buf_free()
180 int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db) in mlx5_db_alloc()
209 void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db) in mlx5_db_free()
Dport.c38 int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in, in mlx5_core_access_reg()
89 int mlx5_set_port_caps(struct mlx5_core_dev *dev, u8 port_num, u32 caps) in mlx5_set_port_caps()
Dmcg.c64 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_attach_mcg()
86 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_detach_mcg()
Dmad.c39 int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, void *inb, void *outb, in mlx5_core_mad_ifc()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c835 static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context, in mlx5_ib_event()
1185 static void *mlx5_ib_add(struct mlx5_core_dev *mdev) in mlx5_ib_add()
1350 static void mlx5_ib_remove(struct mlx5_core_dev *mdev, void *context) in mlx5_ib_remove()
Dmlx5_ib.h422 struct mlx5_core_dev *mdev;
Dqp.c2045 struct mlx5_core_dev *mdev, in set_frwr_pages()
2449 struct mlx5_core_dev *mdev, struct mlx5_ib_pd *pd, struct mlx5_ib_qp *qp) in set_frwr_li_wr()
2593 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_post_send()
3006 struct mlx5_core_dev *dev = ibdev->mdev; in to_ib_ah_attr()
Dcq.c575 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq()
Dmr.c629 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_get_dma_mr()