Home
last modified time | relevance | path

Searched refs:mlx4_dev (Results 1 – 25 of 41) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmlx4.h205 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
207 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
394 struct mlx4_dev *dev;
835 struct mlx4_dev *dev;
851 struct mlx4_dev *dev;
883 struct mlx4_dev dev;
937 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv()
957 int mlx4_reset(struct mlx4_dev *dev);
959 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
960 void mlx4_free_eq_table(struct mlx4_dev *dev);
[all …]
H A Dfw.h230 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
231 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
232 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap);
233 int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u8 gen_or_port,
235 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave,
240 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave);
241 int mlx4_MAP_FA(struct mlx4_dev *dev, struct mlx4_icm *icm);
242 int mlx4_UNMAP_FA(struct mlx4_dev *dev);
243 int mlx4_RUN_FW(struct mlx4_dev *dev);
244 int mlx4_QUERY_FW(struct mlx4_dev *dev);
[all …]
H A Dicm.h78 struct mlx4_dev;
80 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages,
82 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent);
84 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj);
85 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj);
86 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
88 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
90 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
93 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table);
141 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm);
[all …]
H A Dpd.c47 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) in mlx4_pd_alloc()
59 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) in mlx4_pd_free()
65 int __mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) in __mlx4_xrcd_alloc()
76 int mlx4_xrcd_alloc(struct mlx4_dev *dev, u32 *xrcdn) in mlx4_xrcd_alloc()
96 void __mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) in __mlx4_xrcd_free()
101 void mlx4_xrcd_free(struct mlx4_dev *dev, u32 xrcdn) in mlx4_xrcd_free()
118 int mlx4_init_pd_table(struct mlx4_dev *dev) in mlx4_init_pd_table()
127 void mlx4_cleanup_pd_table(struct mlx4_dev *dev) in mlx4_cleanup_pd_table()
132 int mlx4_init_xrcd_table(struct mlx4_dev *dev) in mlx4_init_xrcd_table()
140 void mlx4_cleanup_xrcd_table(struct mlx4_dev *dev) in mlx4_cleanup_xrcd_table()
[all …]
H A Dsrq.c43 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type) in mlx4_srq_event()
64 static int mlx4_SW2HW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_SRQ()
72 static int mlx4_HW2SW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_SRQ()
80 static int mlx4_ARM_SRQ(struct mlx4_dev *dev, int srq_num, int limit_watermark) in mlx4_ARM_SRQ()
86 static int mlx4_QUERY_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_QUERY_SRQ()
93 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in __mlx4_srq_alloc_icm()
120 static int mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in mlx4_srq_alloc_icm()
138 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn) in __mlx4_srq_free_icm()
147 static void mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn) in mlx4_srq_free_icm()
162 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc()
[all …]
H A Dmr.c150 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in __mlx4_alloc_mtt_range()
174 static u32 mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in mlx4_alloc_mtt_range()
194 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift, in mlx4_mtt_init()
217 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order) in __mlx4_free_mtt_range()
231 static void mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order) in mlx4_free_mtt_range()
251 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_cleanup()
260 u64 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_addr()
276 static int mlx4_SW2HW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_MPT()
284 static int mlx4_HW2SW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_MPT()
293 int mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, in mlx4_mr_hw_get_mpt()
[all …]
H A Dintf.c44 static bool is_eth_supported(struct mlx4_dev *dev) in is_eth_supported()
53 static bool is_ib_supported(struct mlx4_dev *dev) in is_ib_supported()
67 bool (*is_supported)(struct mlx4_dev *dev);
73 int mlx4_adev_init(struct mlx4_dev *dev) in mlx4_adev_init()
91 void mlx4_adev_cleanup(struct mlx4_dev *dev) in mlx4_adev_cleanup()
110 static struct mlx4_adev *add_adev(struct mlx4_dev *dev, int idx) in add_adev()
162 int mlx4_do_bond(struct mlx4_dev *dev, bool enable) in mlx4_do_bond()
240 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type, in mlx4_dispatch_event()
248 int mlx4_register_event_notifier(struct mlx4_dev *dev, in mlx4_register_event_notifier()
257 int mlx4_unregister_event_notifier(struct mlx4_dev *dev, in mlx4_unregister_event_notifier()
[all …]
H A Dfw_qos.h66 int mlx4_SET_PORT_PRIO2TC(struct mlx4_dev *dev, u8 port, u8 *prio2tc);
84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw,
98 int mlx4_ALLOCATE_VPP_get(struct mlx4_dev *dev, u8 port,
113 int mlx4_ALLOCATE_VPP_set(struct mlx4_dev *dev, u8 port, u8 *vpp_p_up);
127 int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport,
142 int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport,
H A Dcatas.c50 static int read_vendor_id(struct mlx4_dev *dev) in read_vendor_id()
69 static int mlx4_reset_master(struct mlx4_dev *dev) in mlx4_reset_master()
92 static int mlx4_reset_slave(struct mlx4_dev *dev) in mlx4_reset_slave()
166 struct mlx4_dev *dev; in mlx4_enter_error_state()
207 struct mlx4_dev *dev = persist->dev; in mlx4_handle_error_state()
225 static void dump_err_buf(struct mlx4_dev *dev) in dump_err_buf()
240 struct mlx4_dev *dev = &priv->dev; in poll_catas()
277 void mlx4_start_catas_poll(struct mlx4_dev *dev) in mlx4_start_catas_poll()
304 void mlx4_stop_catas_poll(struct mlx4_dev *dev) in mlx4_stop_catas_poll()
319 int mlx4_catas_init(struct mlx4_dev *dev) in mlx4_catas_init()
[all …]
H A Dmcg.c43 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev) in mlx4_get_mgm_entry_size()
48 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev) in mlx4_get_qp_per_mgm()
53 static int mlx4_QP_FLOW_STEERING_ATTACH(struct mlx4_dev *dev, in mlx4_QP_FLOW_STEERING_ATTACH()
71 static int mlx4_QP_FLOW_STEERING_DETACH(struct mlx4_dev *dev, u64 regid) in mlx4_QP_FLOW_STEERING_DETACH()
82 static int mlx4_READ_ENTRY(struct mlx4_dev *dev, int index, in mlx4_READ_ENTRY()
89 static int mlx4_WRITE_ENTRY(struct mlx4_dev *dev, int index, in mlx4_WRITE_ENTRY()
96 static int mlx4_WRITE_PROMISC(struct mlx4_dev *dev, u8 port, u8 steer, in mlx4_WRITE_PROMISC()
107 static int mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_GID_HASH()
123 static struct mlx4_promisc_qp *get_promisc_qp(struct mlx4_dev *dev, u8 port, in get_promisc_qp()
147 static int new_steering_entry(struct mlx4_dev *dev, u8 port, in new_steering_entry()
[all …]
H A Dqp.c56 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type) in mlx4_qp_event()
79 static int is_master_qp0(struct mlx4_dev *dev, struct mlx4_qp *qp, int *real_qp0, int *proxy_qp0) in is_master_qp0()
92 static int __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in __mlx4_qp_modify()
213 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_modify()
224 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in __mlx4_qp_reserve_range()
252 int mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in mlx4_qp_reserve_range()
280 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) in __mlx4_qp_release_range()
290 void mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) in mlx4_qp_release_range()
313 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn) in __mlx4_qp_alloc_icm()
357 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn) in mlx4_qp_alloc_icm()
[all …]
H A Dsense.c41 int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port, in mlx4_SENSE_PORT()
64 void mlx4_do_sense_ports(struct mlx4_dev *dev, in mlx4_do_sense_ports()
96 struct mlx4_dev *dev = sense->dev; in mlx4_sense_port()
115 void mlx4_start_sense(struct mlx4_dev *dev) in mlx4_start_sense()
127 void mlx4_stop_sense(struct mlx4_dev *dev) in mlx4_stop_sense()
132 void mlx4_sense_init(struct mlx4_dev *dev) in mlx4_sense_init()
H A Dcq.c104 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) in mlx4_cq_completion()
126 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) in mlx4_cq_event()
146 static int mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_CQ()
154 static int mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_MODIFY_CQ()
161 static int mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_CQ()
169 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_modify()
191 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_resize()
217 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in __mlx4_cq_alloc_icm()
244 static int mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn, u8 usage) in mlx4_cq_alloc_icm()
264 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) in __mlx4_cq_free_icm()
[all …]
H A Deq.c86 static u64 get_async_ev_mask(struct mlx4_dev *dev) in get_async_ev_mask()
144 struct mlx4_dev *dev = &priv->dev; in mlx4_gen_slave_eqe()
194 static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) in slave_event()
223 static void mlx4_slave_event(struct mlx4_dev *dev, int slave, in mlx4_slave_event()
240 struct mlx4_dev *dev = &priv->dev; in mlx4_set_eq_affinity_hint()
253 int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port) in mlx4_gen_pkey_eqe()
273 int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port) in mlx4_gen_guid_change_eqe()
290 int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, in mlx4_gen_port_state_change_eqe()
311 enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port) in mlx4_get_slave_port_state()
327 static int mlx4_set_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, in mlx4_set_slave_port_state()
[all …]
H A Dicm.c55 static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_pages()
68 static void mlx4_free_icm_coherent(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_coherent()
79 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent) in mlx4_free_icm()
132 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages, in mlx4_alloc_icm()
236 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) in mlx4_MAP_ICM()
241 static int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) in mlx4_UNMAP_ICM()
247 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm) in mlx4_MAP_ICM_AUX()
252 int mlx4_UNMAP_ICM_AUX(struct mlx4_dev *dev) in mlx4_UNMAP_ICM_AUX()
258 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get()
294 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_put()
[all …]
H A Dcrdump.c60 static void crdump_enable_crspace_access(struct mlx4_dev *dev, in crdump_enable_crspace_access()
77 static void crdump_disable_crspace_access(struct mlx4_dev *dev, in crdump_disable_crspace_access()
90 static void mlx4_crdump_collect_crspace(struct mlx4_dev *dev, in mlx4_crdump_collect_crspace()
129 static void mlx4_crdump_collect_fw_health(struct mlx4_dev *dev, in mlx4_crdump_collect_fw_health()
168 int mlx4_crdump_collect(struct mlx4_dev *dev) in mlx4_crdump_collect()
219 int mlx4_crdump_init(struct mlx4_dev *dev) in mlx4_crdump_init()
252 void mlx4_crdump_end(struct mlx4_dev *dev) in mlx4_crdump_end()
H A Dmain.c193 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_get()
204 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_set()
288 static inline void mlx4_set_num_reserved_uars(struct mlx4_dev *dev, in mlx4_set_num_reserved_uars()
302 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params()
326 static void mlx4_set_port_mask(struct mlx4_dev *dev) in mlx4_set_port_mask()
338 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func()
357 static void mlx4_enable_cqe_eqe_stride(struct mlx4_dev *dev) in mlx4_enable_cqe_eqe_stride()
392 static int _mlx4_dev_port(struct mlx4_dev *dev, int port, in _mlx4_dev_port()
419 static int mlx4_dev_port(struct mlx4_dev *dev, int port, in mlx4_dev_port()
432 static inline void mlx4_enable_ignore_fcs(struct mlx4_dev *dev) in mlx4_enable_ignore_fcs()
[all …]
H A Dresource_tracker.c306 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
307 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource()
378 static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave, in mlx4_release_resource()
423 static inline void initialize_res_quotas(struct mlx4_dev *dev, in initialize_res_quotas()
442 void mlx4_init_quotas(struct mlx4_dev *dev) in mlx4_init_quotas()
475 mlx4_calc_res_counter_guaranteed(struct mlx4_dev *dev, in mlx4_calc_res_counter_guaranteed()
501 int mlx4_init_resource_tracker(struct mlx4_dev *dev) in mlx4_init_resource_tracker()
655 void mlx4_free_resource_tracker(struct mlx4_dev *dev, in mlx4_free_resource_tracker()
691 static void update_pkey_index(struct mlx4_dev *dev, int slave, in update_pkey_index()
706 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox, in update_gid()
[all …]
H A Dport.c62 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table()
76 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table) in mlx4_init_vlan_table()
90 void mlx4_init_roce_gid_table(struct mlx4_dev *dev, in mlx4_init_roce_gid_table()
100 static int validate_index(struct mlx4_dev *dev, in validate_index()
112 static int find_index(struct mlx4_dev *dev, in find_index()
127 static int mlx4_set_port_mac_table(struct mlx4_dev *dev, u8 port, in mlx4_set_port_mac_table()
150 int mlx4_find_cached_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *idx) in mlx4_find_cached_mac()
170 static bool mlx4_need_mf_bond(struct mlx4_dev *dev) in mlx4_need_mf_bond()
182 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in __mlx4_register_mac()
342 int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in mlx4_register_mac()
[all …]
H A Dcmd.c136 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
189 static int mlx4_internal_err_ret_value(struct mlx4_dev *dev, u16 op, in mlx4_internal_err_ret_value()
241 static int mlx4_cmd_reset_flow(struct mlx4_dev *dev, u16 op, u8 op_modifier, in mlx4_cmd_reset_flow()
255 static int comm_pending(struct mlx4_dev *dev) in comm_pending()
263 static int mlx4_comm_cmd_post(struct mlx4_dev *dev, u8 cmd, u16 param) in mlx4_comm_cmd_post()
288 static int mlx4_comm_cmd_poll(struct mlx4_dev *dev, u8 cmd, u16 param, in mlx4_comm_cmd_poll()
338 static int mlx4_comm_cmd_wait(struct mlx4_dev *dev, u8 vhcr_cmd, in mlx4_comm_cmd_wait()
407 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param, in mlx4_comm_cmd()
418 static int cmd_pending(struct mlx4_dev *dev) in cmd_pending()
432 static int mlx4_cmd_post(struct mlx4_dev *dev, u64 in_param, u64 out_param, in mlx4_cmd_post()
[all …]
H A Dfw_qos.c85 int mlx4_SET_PORT_PRIO2TC(struct mlx4_dev *dev, u8 port, u8 *prio2tc) in mlx4_SET_PORT_PRIO2TC()
111 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw, in mlx4_SET_PORT_SCHEDULER()
159 int mlx4_ALLOCATE_VPP_get(struct mlx4_dev *dev, u8 port, in mlx4_ALLOCATE_VPP_get()
194 int mlx4_ALLOCATE_VPP_set(struct mlx4_dev *dev, u8 port, u8 *vpp_p_up) in mlx4_ALLOCATE_VPP_set()
221 int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport, in mlx4_SET_VPORT_QOS_get()
258 int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport, in mlx4_SET_VPORT_QOS_set()
/linux/include/linux/mlx4/
H A Ddevice.h858 struct mlx4_dev *dev;
874 struct mlx4_dev { struct
895 struct mlx4_dev *mdev; argument
1036 static inline int mlx4_master_func_num(struct mlx4_dev *dev) in mlx4_master_func_num()
1041 static inline int mlx4_is_master(struct mlx4_dev *dev) in mlx4_is_master()
1046 static inline int mlx4_num_reserved_sqps(struct mlx4_dev *dev) in mlx4_num_reserved_sqps()
1052 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) in mlx4_is_qp_reserved()
1060 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy()
1070 static inline int mlx4_is_mfunc(struct mlx4_dev *dev) in mlx4_is_mfunc()
1075 static inline int mlx4_is_slave(struct mlx4_dev *dev) in mlx4_is_slave()
[all …]
H A Dcmd.h261 struct mlx4_dev;
268 int __mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u64 *out_param,
273 static inline int mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u32 in_modifier, in mlx4_cmd()
282 static inline int mlx4_cmd_box(struct mlx4_dev *dev, u64 in_param, u64 out_param, in mlx4_cmd_box()
295 static inline int mlx4_cmd_imm(struct mlx4_dev *dev, u64 in_param, u64 *out_param, in mlx4_cmd_imm()
303 struct mlx4_cmd_mailbox *mlx4_alloc_cmd_mailbox(struct mlx4_dev *dev);
304 void mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox);
306 int mlx4_get_counter_stats(struct mlx4_dev *dev, int counter_index,
308 int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx,
311 int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u8 *mac);
[all …]
H A Ddriver.h43 struct mlx4_dev;
70 int mlx4_register_event_notifier(struct mlx4_dev *dev,
72 int mlx4_unregister_event_notifier(struct mlx4_dev *dev,
75 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port);
H A Dqp.h474 struct mlx4_qp *mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn);
475 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn,
478 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
483 int mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp,
486 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
490 static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn) in __mlx4_qp_lookup()
495 void mlx4_qp_remove(struct mlx4_dev *dev, struct mlx4_qp *qp);
505 u16 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn);

12