Home
last modified time | relevance | path

Searched refs:mdev (Results 1 – 25 of 70) sorted by relevance

123

/freebsd-12.1/sys/dev/mthca/
H A Dmthca_main.c222 mdev->limits.max_srq_sge = mthca_max_srq_sge(mdev); in mthca_dev_lim()
353 mthca_alloc_icm(mdev, mdev->fw.arbel.fw_pages, in mthca_load_fw()
360 err = mthca_MAP_FA(mdev, mdev->fw.arbel.fw_icm); in mthca_load_fw()
377 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_load_fw()
552 mthca_free_icm(mdev, mdev->fw.arbel.aux_icm, 0); in mthca_init_icm()
572 mthca_free_icm(mdev, mdev->fw.arbel.aux_icm, 0); in mthca_free_icms()
639 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_init_arbel()
656 mthca_free_icm(mdev, mdev->fw.arbel.fw_icm, 0); in mthca_close_hca()
1057 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_init_one()
1104 mthca_pd_free(mdev, &mdev->driver_pd); in __mthca_remove_one()
[all …]
H A Dmthca_reset.c41 int mthca_reset(struct mthca_dev *mdev) in mthca_reset() argument
73 if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) { in mthca_reset()
78 mdev->pdev->device + 2, in mthca_reset()
81 bridge->subordinate == mdev->pdev->bus) { in mthca_reset()
82 mthca_dbg(mdev, "Found bridge: %s\n", in mthca_reset()
94 mthca_warn(mdev, "No bridge found for %s\n", in mthca_reset()
95 pci_name(mdev->pdev)); in mthca_reset()
118 mthca_err(mdev, "Couldn't save HCA " in mthca_reset()
142 mthca_err(mdev, "Couldn't save HCA bridge " in mthca_reset()
150 mthca_err(mdev, "Couldn't locate HCA bridge " in mthca_reset()
[all …]
/freebsd-12.1/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_main.c164 kfree(mdev); in mlx4_en_remove()
175 if (mlx4_en_init_netdev(mdev, i, &mdev->profile.prof[i])) in mlx4_en_activate()
185 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in mlx4_en_add()
186 if (!mdev) in mlx4_en_add()
201 mdev->dev = dev; in mlx4_en_add()
211 if (mlx4_mr_alloc(mdev->dev, mdev->priv_pdn, 0, ~0ull, in mlx4_en_add()
217 if (mlx4_mr_enable(mdev->dev, &mdev->mr)) { in mlx4_en_add()
231 mdev->port_cnt++; in mlx4_en_add()
248 return mdev; in mlx4_en_add()
253 if (mdev->uar_map) in mlx4_en_add()
[all …]
H A Dmlx4_en_cq.c57 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_cq() local
88 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq()
91 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
116 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_activate_cq() local
121 cq->dev = mdev->pndev[priv->port]; in mlx4_en_activate_cq()
133 err = mlx4_assign_eq(mdev->dev, priv->port, in mlx4_en_activate_cq()
177 mlx4_release_eq(mdev->dev, cq->vector); in mlx4_en_activate_cq()
178 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_activate_cq()
184 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_destroy_cq() local
210 mlx4_cq_free(priv->mdev->dev, &cq->mcq); in mlx4_en_deactivate_cq()
[all …]
H A Dmlx4_en_netdev.c405 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_add_vid() local
432 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_kill_vid() local
477 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_uc_steer_add() local
529 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_uc_steer_release() local
555 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_get_qp() local
591 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_put_qp() local
1013 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_do_set_rx_mode() local
1642 mdev = priv->mdev; in mlx4_en_open()
1969 mdev = priv->mdev; in mlx4_en_ioctl()
2180 priv->mdev = mdev; in mlx4_en_init_netdev()
[all …]
H A Dmlx4_en_rx.c326 struct mlx4_dev *dev = mdev->dev; in mlx4_en_set_num_rx_rings()
336 mdev->profile.prof[i].rx_ring_num = in mlx4_en_set_num_rx_rings()
369 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_rx_ring() local
549 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_destroy_rx_ring() local
921 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_config_rss_qp() local
952 mlx4_qp_remove(mdev->dev, qp); in mlx4_en_config_rss_qp()
953 mlx4_qp_free(mdev->dev, qp); in mlx4_en_config_rss_qp()
1018 if (priv->mdev->profile.udp_rss) in mlx4_en_get_rss_mask()
1026 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_config_rss_steer() local
1079 if (priv->mdev->profile.udp_rss) in mlx4_en_config_rss_steer()
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fwdump.c59 mdev->dump_data = NULL; in mlx5_fwdump_destroy_dd()
70 mdev->dump_data = NULL; in mlx5_fwdump_prep()
74 mlx5_core_warn(mdev, in mlx5_fwdump_prep()
100 mlx5_core_warn(mdev, in mlx5_fwdump_prep()
124 mlx5_core_warn(mdev, in mlx5_fwdump_prep()
144 mdev->dump_size = mlx5_fwdump_getsize(mdev->dump_rege); in mlx5_fwdump_prep()
145 mdev->dump_data = malloc(mdev->dump_size * sizeof(uint32_t), in mlx5_fwdump_prep()
169 mlx5_core_warn(mdev, in mlx5_fwdump()
205 msleep(&mdev->dump_copyout, &mdev->dump_lock, 0, "mlx5fwc", 0); in mlx5_fwdump_clean()
220 msleep(&mdev->dump_copyout, &mdev->dump_lock, in mlx5_fwdump_reset()
[all …]
H A Dmlx5_vsc.c34 device_t dev = mdev->pdev->dev.bsddev; in mlx5_vsc_lock()
35 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_lock()
74 device_t dev = mdev->pdev->dev.bsddev; in mlx5_vsc_unlock()
75 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_unlock()
89 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_wait_on_flag()
111 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_set_space()
134 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_write()
148 err = mlx5_vsc_wait_on_flag(mdev, 0); in mlx5_vsc_write()
158 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_read()
184 int vsc_addr = mdev->vsc_addr; in mlx5_vsc_lock_addr_space()
[all …]
H A Dmlx5_wq.c74 mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err); in mlx5_wq_cyc_create()
82 mlx5_core_warn(mdev, "mlx5_buf_alloc() failed, %d\n", err); in mlx5_wq_cyc_create()
89 wq_ctrl->mdev = mdev; in mlx5_wq_cyc_create()
94 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create()
112 mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err); in mlx5_cqwq_create()
127 wq_ctrl->mdev = mdev; in mlx5_cqwq_create()
132 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_cqwq_create()
173 wq_ctrl->mdev = mdev; in mlx5_wq_ll_create()
178 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_ll_create()
185 mlx5_buf_free(wq_ctrl->mdev, &wq_ctrl->buf); in mlx5_wq_destroy()
[all …]
H A Dmlx5_vport.c49 err = mlx5_cmd_exec(mdev, in, sizeof(in), out, outlen); in _mlx5_query_vport_state()
121 return (MLX5_CAP_GEN(mdev, max_qp_cnt) - in mlx5_vport_max_q_counter_allocator()
138 if (mdev->num_q_counter_allocated[client_id] > in mlx5_vport_alloc_q_counter()
151 mdev->num_q_counter_allocated[client_id]++; in mlx5_vport_alloc_q_counter()
163 if (mdev->num_q_counter_allocated[client_id] <= 0) in mlx5_vport_dealloc_q_counter()
173 mdev->num_q_counter_allocated[client_id]--; in mlx5_vport_dealloc_q_counter()
225 int mlx5_query_min_inline(struct mlx5_core_dev *mdev, in mlx5_query_min_inline() argument
230 switch (MLX5_CAP_ETH(mdev, wqe_inline_mode)) { in mlx5_query_min_inline()
517 if (!MLX5_CAP_GEN(mdev, vport_group_manager)) in mlx5_modify_nic_vport_node_guid()
556 if (!MLX5_CAP_GEN(mdev, vport_group_manager)) in mlx5_modify_nic_vport_port_guid()
[all …]
H A Dmlx5_port.c843 if (!MLX5_CAP_GEN(mdev, ets)) in mlx5_query_port_qetcr_reg()
851 int mlx5_max_tc(struct mlx5_core_dev *mdev) in mlx5_max_tc() argument
853 u8 num_tc = MLX5_CAP_GEN(mdev, max_tc) ? : 8; in mlx5_max_tc()
864 if (!MLX5_CAP_GEN(mdev, ets)) in mlx5_set_port_qetcr_reg()
884 for (i = 0; i <= mlx5_max_tc(mdev); i++) { in mlx5_query_port_tc_rate_limit()
907 for (i = 0; i <= mlx5_max_tc(mdev); i++) { in mlx5_modify_port_tc_rate_limit()
950 if (prio_tc > mlx5_max_tc(mdev)) in mlx5_set_port_prio_tc()
968 for (i = 0; i <= mlx5_max_tc(mdev); i++) { in mlx5_set_port_tc_group()
1003 for (i = 0; i <= mlx5_max_tc(mdev); i++) { in mlx5_set_port_tc_bw_alloc()
1023 for (i = 0; i <= mlx5_max_tc(mdev); i++) { in mlx5_query_port_tc_bw_alloc()
[all …]
H A Dmlx5_uar.c162 int mlx5_alloc_map_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar) in mlx5_alloc_map_uar() argument
168 err = mlx5_cmd_alloc_uar(mdev, &uar->index); in mlx5_alloc_map_uar()
170 mlx5_core_warn(mdev, "mlx5_cmd_alloc_uar() failed, %d\n", err); in mlx5_alloc_map_uar()
174 uar_bar_start = pci_resource_start(mdev->pdev, 0); in mlx5_alloc_map_uar()
178 mlx5_core_warn(mdev, "ioremap() failed, %d\n", err); in mlx5_alloc_map_uar()
183 if (mdev->priv.bf_mapping) in mlx5_alloc_map_uar()
184 uar->bf_map = io_mapping_map_wc(mdev->priv.bf_mapping, in mlx5_alloc_map_uar()
191 mlx5_cmd_free_uar(mdev, uar->index); in mlx5_alloc_map_uar()
197 void mlx5_unmap_free_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar) in mlx5_unmap_free_uar() argument
201 mlx5_cmd_free_uar(mdev, uar->index); in mlx5_unmap_free_uar()
/freebsd-12.1/sys/dev/mlx5/
H A Dvport.h43 int mlx5_vport_query_q_counter(struct mlx5_core_dev *mdev,
56 int mlx5_nic_vport_query_local_lb(struct mlx5_core_dev *mdev,
59 int mlx5_nic_vport_modify_local_lb(struct mlx5_core_dev *mdev,
68 int mlx5_query_vport_mtu(struct mlx5_core_dev *mdev, int *mtu);
69 int mlx5_set_vport_mtu(struct mlx5_core_dev *mdev, int mtu);
73 int mlx5_query_nic_vport_promisc(struct mlx5_core_dev *mdev,
79 int mlx5_modify_nic_vport_promisc(struct mlx5_core_dev *mdev,
89 int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev,
124 int mlx5_nic_vport_enable_roce(struct mlx5_core_dev *mdev);
125 int mlx5_nic_vport_disable_roce(struct mlx5_core_dev *mdev);
[all …]
H A Ddevice.h951 #define MLX5_CAP_GEN(mdev, cap) \ argument
957 #define MLX5_CAP_ETH(mdev, cap) \ argument
965 #define MLX5_CAP_ROCE(mdev, cap) \ argument
971 #define MLX5_CAP_ATOMIC(mdev, cap) \ argument
1009 #define MLX5_CAP_ESW(mdev, cap) \ argument
1017 #define MLX5_CAP_ODP(mdev, cap)\ argument
1020 #define MLX5_CAP_ODP_MAX(mdev, cap)\ argument
1039 #define MLX5_CAP_DEBUG(mdev, cap) \ argument
1047 #define MLX5_CAP_QOS(mdev, cap) \ argument
1073 #define MLX5_CAP_FPGA(mdev, cap) \ argument
[all …]
H A Dport.h259 int mlx5_max_tc(struct mlx5_core_dev *mdev);
260 int mlx5_query_port_tc_rate_limit(struct mlx5_core_dev *mdev,
263 int mlx5_modify_port_tc_rate_limit(struct mlx5_core_dev *mdev,
266 int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev,
268 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, int prio_index,
271 int mlx5_query_port_tc_group(struct mlx5_core_dev *mdev,
276 int mlx5_set_trust_state(struct mlx5_core_dev *mdev, u8 trust_state);
281 int mlx5_query_dscp2prio(struct mlx5_core_dev *mdev, u8 *dscp2prio);
286 int mlx5e_port_linkspeed(struct mlx5_core_dev *mdev, u32 *speed);
290 int mlx5e_port_query_pbmc(struct mlx5_core_dev *mdev, void *out);
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_core.c155 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
186 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_brb() local
209 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_device_start()
222 err = mlx5_fpga_caps(fdev->mdev); in mlx5_fpga_device_start()
337 if (!MLX5_CAP_GEN(mdev, fpga)) { in mlx5_fpga_init()
348 fdev->mdev = mdev; in mlx5_fpga_init()
349 mdev->fpga = fdev; in mlx5_fpga_init()
373 fpga_id = MLX5_CAP_FPGA(mdev, fpga_id); in mlx5_fpga_device_stop()
428 mlx5_fpga_device_stop(mdev); in mlx5_fpga_cleanup()
435 mdev->fpga = NULL; in mlx5_fpga_cleanup()
[all …]
H A Dcore.h61 struct mlx5_core_dev *mdev; member
99 dev_warn_ratelimited(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d: " \
106 dev_info(&(__adev)->mdev->pdev->dev, "FPGA: " format, ##__VA_ARGS__)
108 int mlx5_fpga_init(struct mlx5_core_dev *mdev);
109 void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev);
110 int mlx5_fpga_device_start(struct mlx5_core_dev *mdev);
111 void mlx5_fpga_device_stop(struct mlx5_core_dev *mdev);
116 static inline int mlx5_fpga_init(struct mlx5_core_dev *mdev) in mlx5_fpga_init() argument
121 static inline void mlx5_fpga_cleanup(struct mlx5_core_dev *mdev) in mlx5_fpga_cleanup() argument
125 static inline int mlx5_fpga_device_start(struct mlx5_core_dev *mdev) in mlx5_fpga_device_start() argument
[all …]
H A Dipsec.h42 void *mlx5_fpga_ipsec_sa_cmd_exec(struct mlx5_core_dev *mdev,
46 u32 mlx5_fpga_ipsec_device_caps(struct mlx5_core_dev *mdev);
47 unsigned int mlx5_fpga_ipsec_counters_count(struct mlx5_core_dev *mdev);
51 int mlx5_fpga_ipsec_init(struct mlx5_core_dev *mdev);
52 void mlx5_fpga_ipsec_cleanup(struct mlx5_core_dev *mdev);
56 static inline void *mlx5_fpga_ipsec_sa_cmd_exec(struct mlx5_core_dev *mdev, in mlx5_fpga_ipsec_sa_cmd_exec() argument
67 static inline u32 mlx5_fpga_ipsec_device_caps(struct mlx5_core_dev *mdev) in mlx5_fpga_ipsec_device_caps() argument
73 mlx5_fpga_ipsec_counters_count(struct mlx5_core_dev *mdev) in mlx5_fpga_ipsec_counters_count() argument
78 static inline int mlx5_fpga_ipsec_counters_read(struct mlx5_core_dev *mdev, in mlx5_fpga_ipsec_counters_read() argument
84 static inline int mlx5_fpga_ipsec_init(struct mlx5_core_dev *mdev) in mlx5_fpga_ipsec_init() argument
[all …]
H A Dmlx5fpga_sdk.c143 if (!fdev->mdev) in mlx5_fpga_mem_read_i2c()
175 if (!fdev->mdev) in mlx5_fpga_mem_write_i2c()
329 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_reload_cmd() local
352 err = mlx5_fpga_device_start(mdev); in mlx5_fpga_device_reload_cmd()
369 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_device_reload() local
400 mlx5_unregister_device(mdev); in mlx5_fpga_device_reload()
402 mlx5_fpga_device_stop(mdev); in mlx5_fpga_device_reload()
448 err = mlx5_register_device(mdev); in mlx5_fpga_device_reload()
461 mlx5_fpga_device_stop(mdev); in mlx5_fpga_device_reload()
531 return &fdev->mdev->pdev->dev; in mlx5_fpga_dev()
[all …]
H A Dmlx5fpga_ipsec.c82 if (!mdev->fpga || !MLX5_CAP_GEN(mdev, fpga)) in mlx5_fpga_is_ipsec_device()
85 if (MLX5_CAP_FPGA(mdev, ieee_vendor_id) != in mlx5_fpga_is_ipsec_device()
180 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_ipsec_sa_cmd_exec()
240 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_ipsec_device_caps()
243 if (mlx5_fpga_is_ipsec_device(mdev)) in mlx5_fpga_ipsec_device_caps()
265 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_ipsec_counters_count()
277 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_ipsec_counters_read()
325 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_ipsec_init()
329 if (!mlx5_fpga_is_ipsec_device(mdev)) in mlx5_fpga_ipsec_init()
369 struct mlx5_fpga_device *fdev = mdev->fpga; in mlx5_fpga_ipsec_cleanup()
[all …]
H A Dmlx5fpga_conn.c57 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_map_buf()
89 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_unmap_buf()
430 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_conn_create_cq() local
443 wqp.buf_numa_node = mdev->priv.numa_node; in mlx5_fpga_conn_create_cq()
519 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_conn_create_wq() local
533 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_conn_create_qp() local
665 struct mlx5_core_dev *mdev = conn->fdev->mdev; in mlx5_fpga_conn_reset_qp() local
676 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_conn_init_qp() local
712 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_conn_rtr_qp() local
757 struct mlx5_core_dev *mdev = fdev->mdev; in mlx5_fpga_conn_rts_qp() local
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_ethtool.c90 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_getmaxrate() local
126 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_get_max_alloc() local
149 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_get_dscp() local
204 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_tc_maxrate_handler() local
247 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_tc_rate_share_handler() local
291 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_get_prio_tc() local
314 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_prio_to_tc_handler() local
351 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_fec_update() local
421 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_fec_mask_10x_25x_handler() local
526 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_fec_mask_50x_handler() local
[all …]
H A Dmlx5_en_main.c404 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier() local
561 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_media_change() local
661 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_pcie_counters() local
711 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_pport_counters() local
837 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_stats_locked() local
1215 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_create_rq() local
1349 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_enable_rq() local
1392 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_modify_rq() local
1422 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_disable_rq() local
1591 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_create_sq() local
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_accel/
H A Dipsec.h67 #define MLX5_IPSEC_DEV(mdev) (mlx5_accel_ipsec_device_caps(mdev) & \ argument
104 void *mlx5_accel_ipsec_sa_cmd_exec(struct mlx5_core_dev *mdev,
115 u32 mlx5_accel_ipsec_device_caps(struct mlx5_core_dev *mdev);
117 unsigned int mlx5_accel_ipsec_counters_count(struct mlx5_core_dev *mdev);
118 int mlx5_accel_ipsec_counters_read(struct mlx5_core_dev *mdev, u64 *counters,
121 int mlx5_accel_ipsec_init(struct mlx5_core_dev *mdev);
122 void mlx5_accel_ipsec_cleanup(struct mlx5_core_dev *mdev);
126 #define MLX5_IPSEC_DEV(mdev) false argument
128 static inline int mlx5_accel_ipsec_init(struct mlx5_core_dev *mdev) in mlx5_accel_ipsec_init() argument
133 static inline void mlx5_accel_ipsec_cleanup(struct mlx5_core_dev *mdev) in mlx5_accel_ipsec_cleanup() argument
/freebsd-12.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_main.c519 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_query_system_image_guid() local
551 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_query_max_pkeys() local
637 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_query_device() local
672 fw_rev_sub(dev->mdev); in mlx5_ib_query_device()
908 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_query_hca_port() local
1012 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_query_gid() local
1031 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_query_pkey() local
1169 if (mlx5_core_is_pf(dev->mdev) && MLX5_CAP_GEN(dev->mdev, bf)) in mlx5_ib_alloc_ucontext()
1624 mlx5_core_dealloc_pd(mdev->mdev, mpd->pdn); in mlx5_ib_dealloc_pd()
2897 fw_rev_min(dev->mdev), fw_rev_sub(dev->mdev)); in get_dev_fw_str()
[all …]

123