/Linux-v5.4/drivers/infiniband/hw/mlx5/ |
D | mlx5_ib.h | 182 struct mlx5_ib_dev *dev; 606 struct mlx5_ib_dev *dev; 683 struct mlx5_ib_dev *dev; 745 struct mlx5_ib_dev *dev; 759 struct mlx5_ib_dev *dev; 803 struct mlx5_ib_dev *dev; 838 int (*init)(struct mlx5_ib_dev *dev); 839 void (*cleanup)(struct mlx5_ib_dev *dev); 851 struct mlx5_ib_dev *ibdev; 869 struct mlx5_ib_dev *dev; [all …]
|
D | srq.h | 38 struct mlx5_ib_dev; 57 int mlx5_cmd_create_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, 59 void mlx5_cmd_destroy_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq); 60 int mlx5_cmd_query_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, 62 int mlx5_cmd_arm_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, 64 struct mlx5_core_srq *mlx5_cmd_get_srq(struct mlx5_ib_dev *dev, u32 srqn); 66 int mlx5_init_srq_table(struct mlx5_ib_dev *dev); 67 void mlx5_cleanup_srq_table(struct mlx5_ib_dev *dev);
|
D | ib_rep.h | 16 struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, 18 struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw); 23 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, 35 struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, in mlx5_ib_get_rep_ibdev() 42 struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw) in mlx5_ib_get_uplink_ibdev() 57 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, in create_flow_rule_vport_sq() 73 struct mlx5_ib_dev *mlx5_ib_rep_to_dev(struct mlx5_eswitch_rep *rep) in mlx5_ib_rep_to_dev()
|
D | ib_rep.c | 13 struct mlx5_ib_dev *ibdev; in mlx5_ib_set_vport_rep() 34 struct mlx5_ib_dev *ibdev; in mlx5_ib_vport_rep_load() 42 ibdev = ib_alloc_device(mlx5_ib_dev, ib_dev); in mlx5_ib_vport_rep_load() 72 struct mlx5_ib_dev *dev = mlx5_ib_rep_to_dev(rep); in mlx5_ib_vport_rep_unload() 116 struct mlx5_ib_dev *mlx5_ib_get_rep_ibdev(struct mlx5_eswitch *esw, in mlx5_ib_get_rep_ibdev() 128 struct mlx5_ib_dev *mlx5_ib_get_uplink_ibdev(struct mlx5_eswitch *esw) in mlx5_ib_get_uplink_ibdev() 139 struct mlx5_flow_handle *create_flow_rule_vport_sq(struct mlx5_ib_dev *dev, in create_flow_rule_vport_sq()
|
D | srq_cmd.c | 81 struct mlx5_core_srq *mlx5_cmd_get_srq(struct mlx5_ib_dev *dev, u32 srqn) in mlx5_cmd_get_srq() 95 static int create_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in create_srq_cmd() 133 static int destroy_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq) in destroy_srq_cmd() 147 static int arm_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in arm_srq_cmd() 163 static int query_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in query_srq_cmd() 192 static int create_xrc_srq_cmd(struct mlx5_ib_dev *dev, in create_xrc_srq_cmd() 234 static int destroy_xrc_srq_cmd(struct mlx5_ib_dev *dev, in destroy_xrc_srq_cmd() 249 static int arm_xrc_srq_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in arm_xrc_srq_cmd() 265 static int query_xrc_srq_cmd(struct mlx5_ib_dev *dev, in query_xrc_srq_cmd() 299 static int create_rmp_cmd(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq, in create_rmp_cmd() [all …]
|
D | main.c | 88 struct mlx5_ib_dev *dev; 114 struct mlx5_ib_dev *mlx5_ib_get_ibdev_from_mpi(struct mlx5_ib_multiport_info *mpi) in mlx5_ib_get_ibdev_from_mpi() 116 struct mlx5_ib_dev *dev; in mlx5_ib_get_ibdev_from_mpi() 140 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_port_link_layer() 160 static struct mlx5_roce *mlx5_get_rep_roce(struct mlx5_ib_dev *dev, in mlx5_get_rep_roce() 195 struct mlx5_ib_dev *ibdev; in mlx5_netdev_event() 274 struct mlx5_ib_dev *ibdev = to_mdev(device); in mlx5_ib_get_netdev() 299 struct mlx5_core_dev *mlx5_ib_get_native_port_mdev(struct mlx5_ib_dev *ibdev, in mlx5_ib_get_native_port_mdev() 338 void mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev *ibdev, u8 port_num) in mlx5_ib_put_native_port_mdev() 485 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_query_port_roce() [all …]
|
D | ib_virt.c | 54 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_get_vf_config() 96 struct mlx5_ib_dev *dev = to_mdev(device); in mlx5_ib_set_vf_link_state() 126 struct mlx5_ib_dev *dev; in mlx5_ib_get_vf_stats() 154 struct mlx5_ib_dev *dev = to_mdev(device); in set_vf_node_guid() 175 struct mlx5_ib_dev *dev = to_mdev(device); in set_vf_port_guid()
|
D | mr.c | 50 static void clean_mr(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr); 51 static void dereg_mr(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr); 52 static int mr_cache_max_order(struct mlx5_ib_dev *dev); 53 static int unreg_umr(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr); 55 static bool umr_can_use_indirect_mkey(struct mlx5_ib_dev *dev) in umr_can_use_indirect_mkey() 60 static int destroy_mkey(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr) in destroy_mkey() 71 static int order2idx(struct mlx5_ib_dev *dev, int order) in order2idx() 91 struct mlx5_ib_dev *dev = mr->dev; in reg_mr_callback() 136 static int add_keys(struct mlx5_ib_dev *dev, int c, int num) in add_keys() 198 static void remove_keys(struct mlx5_ib_dev *dev, int c, int num) in remove_keys() [all …]
|
D | odp.c | 167 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_odp_populate_klm() 329 void mlx5_ib_internal_fill_odp_caps(struct mlx5_ib_dev *dev) in mlx5_ib_internal_fill_odp_caps() 397 static void mlx5_ib_page_fault_resume(struct mlx5_ib_dev *dev, in mlx5_ib_page_fault_resume() 423 struct mlx5_ib_dev *dev = to_mdev(pd->device); in implicit_mr_alloc() 478 struct mlx5_ib_dev *dev = to_mdev(mr->ibmr.pd->device); in implicit_mr_get_data() 611 static int pagefault_mr(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr, in pagefault_mr() 774 static int pagefault_single_data_segment(struct mlx5_ib_dev *dev, in pagefault_single_data_segment() 953 static int pagefault_data_segments(struct mlx5_ib_dev *dev, in pagefault_data_segments() 1026 struct mlx5_ib_dev *dev, struct mlx5_pagefault *pfault, in mlx5_ib_mr_initiator_pfault_handler() 1085 static int mlx5_ib_mr_responder_pfault_handler_srq(struct mlx5_ib_dev *dev, in mlx5_ib_mr_responder_pfault_handler_srq() [all …]
|
D | cq.c | 50 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_cq_event() 169 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); in handle_responder() 268 static void dump_cqe(struct mlx5_ib_dev *dev, struct mlx5_err_cqe *cqe) in dump_cqe() 274 static void mlx5_handle_error_cqe(struct mlx5_ib_dev *dev, in mlx5_handle_error_cqe() 333 static void free_cq_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf) in free_cq_buf() 421 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one() 550 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in poll_soft_wc() 577 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_poll_cq() 634 static int alloc_cq_frag_buf(struct mlx5_ib_dev *dev, in alloc_cq_frag_buf() 665 static int mini_cqe_res_format_to_hw(struct mlx5_ib_dev *dev, u8 format) in mini_cqe_res_format_to_hw() [all …]
|
D | gsi.c | 67 static bool mlx5_ib_deth_sqpn_cap(struct mlx5_ib_dev *dev) in mlx5_ib_deth_sqpn_cap() 118 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_gsi_create_qp() 215 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_gsi_destroy_qp() 275 struct mlx5_ib_dev *dev = to_mdev(qp->device); in modify_to_rts() 315 struct mlx5_ib_dev *dev = to_mdev(device); in setup_qp() 376 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_gsi_modify_qp() 417 struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); in mlx5_ib_add_outstanding_wr() 468 struct mlx5_ib_dev *dev = to_mdev(gsi->rx_qp->device); in get_tx_qp()
|
D | flow.c | 85 struct mlx5_ib_dev *dev = mlx5_udata_to_mdev(&attrs->driver_udata); in UVERBS_HANDLER() 282 struct mlx5_ib_dev *dev = mlx5_udata_to_mdev(&attrs->driver_udata); in UVERBS_HANDLER() 348 mlx5_ib_create_modify_header(struct mlx5_ib_dev *dev, in mlx5_ib_create_modify_header() 379 static bool mlx5_ib_modify_header_supported(struct mlx5_ib_dev *dev) in mlx5_ib_modify_header_supported() 391 struct mlx5_ib_dev *mdev = mlx5_udata_to_mdev(&attrs->driver_udata); in UVERBS_HANDLER() 424 static bool mlx5_ib_flow_action_packet_reformat_valid(struct mlx5_ib_dev *ibdev, in mlx5_ib_flow_action_packet_reformat_valid() 475 struct mlx5_ib_dev *dev, in mlx5_ib_flow_action_create_packet_reformat_ctx() 512 struct mlx5_ib_dev *mdev = mlx5_udata_to_mdev(&attrs->driver_udata); in UVERBS_HANDLER()
|
D | srq.c | 48 struct mlx5_ib_dev *dev = to_mdev(pd->device); in create_srq_user() 131 static int create_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq, in create_srq_kernel() 210 static void destroy_srq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_srq *srq) in destroy_srq_kernel() 221 struct mlx5_ib_dev *dev = to_mdev(ib_srq->device); in mlx5_ib_create_srq() 339 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_modify_srq() 364 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_query_srq() 388 struct mlx5_ib_dev *dev = to_mdev(srq->device); in mlx5_ib_destroy_srq() 426 struct mlx5_ib_dev *dev = to_mdev(ibsrq->device); in mlx5_ib_post_srq_recv()
|
D | devx.c | 31 struct mlx5_ib_dev *mdev; 86 struct mlx5_ib_dev *dev; 94 struct mlx5_ib_dev *ib_dev; 129 int mlx5_ib_devx_create(struct mlx5_ib_dev *dev, bool is_user) in mlx5_ib_devx_create() 162 void mlx5_ib_devx_destroy(struct mlx5_ib_dev *dev, u16 uid) in mlx5_ib_devx_destroy() 570 struct mlx5_ib_dev *dev = mlx5_udata_to_mdev(&attrs->driver_udata); in devx_is_valid_obj_id() 896 struct mlx5_ib_dev *dev; in devx_get_uid() 914 static bool devx_is_general_cmd(void *in, struct mlx5_ib_dev *dev) in devx_is_general_cmd() 952 struct mlx5_ib_dev *dev; in UVERBS_HANDLER() 1002 struct mlx5_ib_dev *dev; in UVERBS_HANDLER() [all …]
|
D | mad.c | 46 static bool can_do_mad_ifc(struct mlx5_ib_dev *dev, u8 port_num, in can_do_mad_ifc() 55 static int mlx5_MAD_IFC(struct mlx5_ib_dev *dev, int ignore_mkey, in mlx5_MAD_IFC() 203 static int process_pma_cmd(struct mlx5_ib_dev *dev, u8 port_num, in process_pma_cmd() 278 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_ib_process_mad() 300 int mlx5_query_ext_port_caps(struct mlx5_ib_dev *dev, u8 port) in mlx5_query_ext_port_caps() 415 int mlx5_query_mad_ifc_node_desc(struct mlx5_ib_dev *dev, char *node_desc) in mlx5_query_mad_ifc_node_desc() 440 int mlx5_query_mad_ifc_node_guid(struct mlx5_ib_dev *dev, __be64 *node_guid) in mlx5_query_mad_ifc_node_guid() 537 struct mlx5_ib_dev *dev = to_mdev(ibdev); in mlx5_query_mad_ifc_port()
|
D | qp.c | 330 static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap, in set_rq_size() 476 static int calc_sq_size(struct mlx5_ib_dev *dev, struct ib_qp_init_attr *attr, in calc_sq_size() 521 static int set_user_buf_size(struct mlx5_ib_dev *dev, in set_user_buf_size() 582 static int max_bfregs(struct mlx5_ib_dev *dev, struct mlx5_bfreg_info *bfregi) in max_bfregs() 587 static int num_med_bfreg(struct mlx5_ib_dev *dev, in num_med_bfreg() 598 static int first_med_bfreg(struct mlx5_ib_dev *dev, in first_med_bfreg() 604 static int first_hi_bfreg(struct mlx5_ib_dev *dev, in first_hi_bfreg() 613 static int alloc_high_class_bfreg(struct mlx5_ib_dev *dev, in alloc_high_class_bfreg() 628 static int alloc_med_class_bfreg(struct mlx5_ib_dev *dev, in alloc_med_class_bfreg() 648 static int alloc_bfreg(struct mlx5_ib_dev *dev, in alloc_bfreg() [all …]
|
D | cong.c | 250 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u8 port_num, in mlx5_ib_get_cc_params() 287 static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u8 port_num, in mlx5_ib_set_cc_params() 380 void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_ib_cleanup_cong_debugfs() 392 void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u8 port_num) in mlx5_ib_init_cong_debugfs()
|
D | ah.c | 35 static void create_ib_ah(struct mlx5_ib_dev *dev, struct mlx5_ib_ah *ah, in create_ib_ah() 76 struct mlx5_ib_dev *dev = to_mdev(ibah->device); in mlx5_ib_create_ah()
|
D | mem.c | 128 void __mlx5_ib_populate_pas(struct mlx5_ib_dev *dev, struct ib_umem *umem, in __mlx5_ib_populate_pas() 192 void mlx5_ib_populate_pas(struct mlx5_ib_dev *dev, struct ib_umem *umem, in mlx5_ib_populate_pas()
|