Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmlx4.h200 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
202 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr,
384 struct mlx4_dev *dev;
800 struct mlx4_dev *dev;
814 struct mlx4_dev *dev;
841 struct mlx4_dev dev;
894 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv()
914 int mlx4_reset(struct mlx4_dev *dev);
916 int mlx4_alloc_eq_table(struct mlx4_dev *dev);
917 void mlx4_free_eq_table(struct mlx4_dev *dev);
[all …]
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 …]
Dicm.h68 struct mlx4_dev;
70 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages,
72 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent);
74 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj,
76 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj);
77 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
79 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
81 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
84 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table);
126 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm);
[all …]
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 …]
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,
Dsrq.c43 void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type) in mlx4_srq_event()
67 static int mlx4_SW2HW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_SRQ()
75 static int mlx4_HW2SW_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_SRQ()
83 static int mlx4_ARM_SRQ(struct mlx4_dev *dev, int srq_num, int limit_watermark) in mlx4_ARM_SRQ()
89 static int mlx4_QUERY_SRQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_QUERY_SRQ()
96 int __mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in __mlx4_srq_alloc_icm()
123 static int mlx4_srq_alloc_icm(struct mlx4_dev *dev, int *srqn) in mlx4_srq_alloc_icm()
141 void __mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn) in __mlx4_srq_free_icm()
150 static void mlx4_srq_free_icm(struct mlx4_dev *dev, int srqn) in mlx4_srq_free_icm()
165 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc()
[all …]
Dmr.c153 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in __mlx4_alloc_mtt_range()
177 static u32 mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in mlx4_alloc_mtt_range()
197 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift, in mlx4_mtt_init()
220 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order) in __mlx4_free_mtt_range()
234 static void mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order) in mlx4_free_mtt_range()
254 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_cleanup()
263 u64 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_addr()
279 static int mlx4_SW2HW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_MPT()
287 static int mlx4_HW2SW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_MPT()
296 int mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, in mlx4_mr_hw_get_mpt()
[all …]
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()
170 struct mlx4_dev *dev; in mlx4_enter_error_state()
215 static void dump_err_buf(struct mlx4_dev *dev) in dump_err_buf()
229 struct mlx4_dev *dev = (struct mlx4_dev *) dev_ptr; in poll_catas()
267 void mlx4_start_catas_poll(struct mlx4_dev *dev) in mlx4_start_catas_poll()
296 void mlx4_stop_catas_poll(struct mlx4_dev *dev) in mlx4_stop_catas_poll()
311 int mlx4_catas_init(struct mlx4_dev *dev) in mlx4_catas_init()
321 void mlx4_catas_end(struct mlx4_dev *dev) in mlx4_catas_end()
Dcq.c100 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) in mlx4_cq_completion()
116 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) in mlx4_cq_event()
140 static int mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_CQ()
148 static int mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_MODIFY_CQ()
155 static int mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_CQ()
163 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_modify()
185 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_resize()
211 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in __mlx4_cq_alloc_icm()
238 static int mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in mlx4_cq_alloc_icm()
257 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) in __mlx4_cq_free_icm()
[all …]
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()
Dmcg.c44 int mlx4_get_mgm_entry_size(struct mlx4_dev *dev) in mlx4_get_mgm_entry_size()
49 int mlx4_get_qp_per_mgm(struct mlx4_dev *dev) in mlx4_get_qp_per_mgm()
54 static int mlx4_QP_FLOW_STEERING_ATTACH(struct mlx4_dev *dev, in mlx4_QP_FLOW_STEERING_ATTACH()
72 static int mlx4_QP_FLOW_STEERING_DETACH(struct mlx4_dev *dev, u64 regid) in mlx4_QP_FLOW_STEERING_DETACH()
83 static int mlx4_READ_ENTRY(struct mlx4_dev *dev, int index, in mlx4_READ_ENTRY()
90 static int mlx4_WRITE_ENTRY(struct mlx4_dev *dev, int index, in mlx4_WRITE_ENTRY()
97 static int mlx4_WRITE_PROMISC(struct mlx4_dev *dev, u8 port, u8 steer, in mlx4_WRITE_PROMISC()
108 static int mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_GID_HASH()
124 static struct mlx4_promisc_qp *get_promisc_qp(struct mlx4_dev *dev, u8 port, in get_promisc_qp()
148 static int new_steering_entry(struct mlx4_dev *dev, u8 port, in new_steering_entry()
[all …]
Dport.c56 void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table) in mlx4_init_mac_table()
69 void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table) in mlx4_init_vlan_table()
82 void mlx4_init_roce_gid_table(struct mlx4_dev *dev, in mlx4_init_roce_gid_table()
92 static int validate_index(struct mlx4_dev *dev, in validate_index()
104 static int find_index(struct mlx4_dev *dev, in find_index()
119 static int mlx4_set_port_mac_table(struct mlx4_dev *dev, u8 port, in mlx4_set_port_mac_table()
142 int mlx4_find_cached_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *idx) in mlx4_find_cached_mac()
162 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in __mlx4_register_mac()
216 int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in mlx4_register_mac()
246 int mlx4_get_base_qpn(struct mlx4_dev *dev, u8 port) in mlx4_get_base_qpn()
[all …]
Dicm.c54 static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_pages()
67 static void mlx4_free_icm_coherent(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_coherent()
78 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent) in mlx4_free_icm()
127 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages, in mlx4_alloc_icm()
227 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) in mlx4_MAP_ICM()
232 static int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) in mlx4_UNMAP_ICM()
238 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm) in mlx4_MAP_ICM_AUX()
243 int mlx4_UNMAP_ICM_AUX(struct mlx4_dev *dev) in mlx4_UNMAP_ICM_AUX()
249 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, in mlx4_table_get()
286 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_put()
[all …]
Dqp.c49 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type) in mlx4_qp_event()
74 static int is_master_qp0(struct mlx4_dev *dev, struct mlx4_qp *qp, int *real_qp0, int *proxy_qp0) in is_master_qp0()
87 static int __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in __mlx4_qp_modify()
202 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_modify()
213 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in __mlx4_qp_reserve_range()
241 int mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in mlx4_qp_reserve_range()
268 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) in __mlx4_qp_release_range()
278 void mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) in mlx4_qp_release_range()
298 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) in __mlx4_qp_alloc_icm()
342 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) in mlx4_qp_alloc_icm()
[all …]
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()
171 static void slave_event(struct mlx4_dev *dev, u8 slave, struct mlx4_eqe *eqe) in slave_event()
200 static void mlx4_slave_event(struct mlx4_dev *dev, int slave, in mlx4_slave_event()
213 int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port) in mlx4_gen_pkey_eqe()
233 int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port) in mlx4_gen_guid_change_eqe()
250 int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, in mlx4_gen_port_state_change_eqe()
270 enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port) in mlx4_get_slave_port_state()
286 static int mlx4_set_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, in mlx4_set_slave_port_state()
304 static void set_all_slave_state(struct mlx4_dev *dev, u8 port, int event) in set_all_slave_state()
[all …]
Dresource_tracker.c295 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
296 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource()
367 static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave, in mlx4_release_resource()
412 static inline void initialize_res_quotas(struct mlx4_dev *dev, in initialize_res_quotas()
431 void mlx4_init_quotas(struct mlx4_dev *dev) in mlx4_init_quotas()
462 int mlx4_init_resource_tracker(struct mlx4_dev *dev) in mlx4_init_resource_tracker()
612 void mlx4_free_resource_tracker(struct mlx4_dev *dev, in mlx4_free_resource_tracker()
648 static void update_pkey_index(struct mlx4_dev *dev, int slave, in update_pkey_index()
663 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox, in update_gid()
703 static int update_vport_qp_param(struct mlx4_dev *dev, in update_vport_qp_param()
[all …]
Dmain.c171 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params()
195 static void mlx4_set_port_mask(struct mlx4_dev *dev) in mlx4_set_port_mask()
207 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func()
226 static void mlx4_enable_cqe_eqe_stride(struct mlx4_dev *dev) in mlx4_enable_cqe_eqe_stride()
261 static int _mlx4_dev_port(struct mlx4_dev *dev, int port, in _mlx4_dev_port()
287 static int mlx4_dev_port(struct mlx4_dev *dev, int port, in mlx4_dev_port()
300 static inline void mlx4_enable_ignore_fcs(struct mlx4_dev *dev) in mlx4_enable_ignore_fcs()
320 static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap()
567 static int mlx4_get_pcie_dev_link_caps(struct mlx4_dev *dev, in mlx4_get_pcie_dev_link_caps()
608 static void mlx4_check_pcie_caps(struct mlx4_dev *dev) in mlx4_check_pcie_caps()
[all …]
Dcmd.c134 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave,
187 static int mlx4_internal_err_ret_value(struct mlx4_dev *dev, u16 op, in mlx4_internal_err_ret_value()
239 static int mlx4_cmd_reset_flow(struct mlx4_dev *dev, u16 op, u8 op_modifier, in mlx4_cmd_reset_flow()
253 static int comm_pending(struct mlx4_dev *dev) in comm_pending()
261 static int mlx4_comm_cmd_post(struct mlx4_dev *dev, u8 cmd, u16 param) in mlx4_comm_cmd_post()
287 static int mlx4_comm_cmd_poll(struct mlx4_dev *dev, u8 cmd, u16 param, in mlx4_comm_cmd_poll()
337 static int mlx4_comm_cmd_wait(struct mlx4_dev *dev, u8 vhcr_cmd, in mlx4_comm_cmd_wait()
406 int mlx4_comm_cmd(struct mlx4_dev *dev, u8 cmd, u16 param, in mlx4_comm_cmd()
417 static int cmd_pending(struct mlx4_dev *dev) in cmd_pending()
431 static int mlx4_cmd_post(struct mlx4_dev *dev, u64 in_param, u64 out_param, in mlx4_cmd_post()
[all …]
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()
Dintf.c126 int mlx4_do_bond(struct mlx4_dev *dev, bool enable) in mlx4_do_bond()
178 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type, in mlx4_dispatch_event()
194 int mlx4_register_device(struct mlx4_dev *dev) in mlx4_register_device()
212 void mlx4_unregister_device(struct mlx4_dev *dev) in mlx4_unregister_device()
229 void *mlx4_get_protocol_dev(struct mlx4_dev *dev, enum mlx4_protocol proto, int port) in mlx4_get_protocol_dev()
Dfw.c82 static void dump_dev_cap_flags(struct mlx4_dev *dev, u64 flags) in dump_dev_cap_flags()
125 static void dump_dev_cap_flags2(struct mlx4_dev *dev, u64 flags) in dump_dev_cap_flags2()
165 int mlx4_MOD_STAT_CFG(struct mlx4_dev *dev, struct mlx4_mod_stat_cfg *cfg) in mlx4_MOD_STAT_CFG()
191 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave) in mlx4_QUERY_FUNC()
246 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_FUNC_CAP_wrapper()
436 int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u8 gen_or_port, in mlx4_QUERY_FUNC_CAP()
616 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_QUERY_DEV_CAP()
978 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap_dump()
1034 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) in mlx4_QUERY_PORT()
1118 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_DEV_CAP_wrapper()
[all …]
Den_main.c159 static void *mlx4_en_get_netdev(struct mlx4_dev *dev, void *ctx, u8 port) in mlx4_en_get_netdev()
166 static void mlx4_en_event(struct mlx4_dev *dev, void *endev_ptr, in mlx4_en_event()
200 static void mlx4_en_remove(struct mlx4_dev *dev, void *endev_ptr) in mlx4_en_remove()
227 static void *mlx4_en_add(struct mlx4_dev *dev) in mlx4_en_add()
Dalloc.c586 int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, in mlx4_buf_alloc()
656 void mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf) in mlx4_buf_free()
732 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order, gfp_t gfp) in mlx4_db_alloc()
762 void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db) in mlx4_db_free()
791 int mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_alloc_hwq_res()
828 void mlx4_free_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, in mlx4_free_hwq_res()
Dmlx4_en.h389 struct mlx4_dev *dev;
743 void mlx4_en_set_stats_bitmap(struct mlx4_dev *dev,
807 int mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, u64 mac, u64 clear, u8 mode);
808 int mlx4_SET_VLAN_FLTR(struct mlx4_dev *dev, struct mlx4_en_priv *priv);
834 void mlx4_en_update_pfc_stats_bitmap(struct mlx4_dev *dev,
Den_clock.c45 struct mlx4_dev *dev = mdev->dev; in mlx4_en_read_clock()
259 struct mlx4_dev *dev = mdev->dev; in mlx4_en_init_timestamp()
Dreset.c42 int mlx4_reset(struct mlx4_dev *dev) in mlx4_reset()
Den_netdev.c497 struct mlx4_dev *dev = mdev->dev; in mlx4_en_uc_steer_add()
549 struct mlx4_dev *dev = mdev->dev; in mlx4_en_uc_steer_release()
575 struct mlx4_dev *dev = mdev->dev; in mlx4_en_get_qp()
646 struct mlx4_dev *dev = mdev->dev; in mlx4_en_put_qp()
692 struct mlx4_dev *dev = mdev->dev; in mlx4_en_replace_mac()
2296 struct mlx4_dev *mdev = priv->mdev->dev; in mlx4_en_get_phys_port_id()
2515 struct mlx4_dev *dev = bond->priv->mdev->dev; in mlx4_en_bond_work()
2565 struct mlx4_dev *dev; in mlx4_en_netdev_event()
2676 void mlx4_en_update_pfc_stats_bitmap(struct mlx4_dev *dev, in mlx4_en_update_pfc_stats_bitmap()
2712 void mlx4_en_set_stats_bitmap(struct mlx4_dev *dev, in mlx4_en_set_stats_bitmap()
Dprofile.c69 u64 mlx4_make_profile(struct mlx4_dev *dev, in mlx4_make_profile()
Den_port.c44 int mlx4_SET_VLAN_FLTR(struct mlx4_dev *dev, struct mlx4_en_priv *priv) in mlx4_SET_VLAN_FLTR()
Den_rx.c337 struct mlx4_dev *dev = mdev->dev; in mlx4_en_set_num_rx_rings()
/linux-4.1.27/include/linux/mlx4/
Ddevice.h802 struct mlx4_dev *dev;
815 struct mlx4_dev { struct
963 static inline int mlx4_master_func_num(struct mlx4_dev *dev) in mlx4_master_func_num()
968 static inline int mlx4_is_master(struct mlx4_dev *dev) in mlx4_is_master()
973 static inline int mlx4_num_reserved_sqps(struct mlx4_dev *dev) in mlx4_num_reserved_sqps()
979 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) in mlx4_is_qp_reserved()
987 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy()
997 static inline int mlx4_is_mfunc(struct mlx4_dev *dev) in mlx4_is_mfunc()
1002 static inline int mlx4_is_slave(struct mlx4_dev *dev) in mlx4_is_slave()
1007 static inline int mlx4_is_eth(struct mlx4_dev *dev, int port) in mlx4_is_eth()
[all …]
Ddriver.h38 struct mlx4_dev;
57 void * (*add) (struct mlx4_dev *dev);
58 void (*remove)(struct mlx4_dev *dev, void *context);
59 void (*event) (struct mlx4_dev *dev, void *context,
61 void * (*get_dev)(struct mlx4_dev *dev, void *context, u8 port);
70 int mlx4_bond(struct mlx4_dev *dev);
71 int mlx4_unbond(struct mlx4_dev *dev);
72 static inline int mlx4_is_bonded(struct mlx4_dev *dev) in mlx4_is_bonded()
82 int mlx4_port_map_set(struct mlx4_dev *dev, struct mlx4_port_map *v2p);
84 void *mlx4_get_protocol_dev(struct mlx4_dev *dev, enum mlx4_protocol proto, int port);
Dcmd.h258 struct mlx4_dev;
265 int __mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u64 *out_param,
270 static inline int mlx4_cmd(struct mlx4_dev *dev, u64 in_param, u32 in_modifier, in mlx4_cmd()
279 static inline int mlx4_cmd_box(struct mlx4_dev *dev, u64 in_param, u64 out_param, in mlx4_cmd_box()
292 static inline int mlx4_cmd_imm(struct mlx4_dev *dev, u64 in_param, u64 *out_param, in mlx4_cmd_imm()
300 struct mlx4_cmd_mailbox *mlx4_alloc_cmd_mailbox(struct mlx4_dev *dev);
301 void mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox);
304 int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac);
305 int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos);
306 int mlx4_set_vf_rate(struct mlx4_dev *dev, int port, int vf, int min_tx_rate,
[all …]
Dqp.h453 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn,
456 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
461 int mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp,
464 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
468 static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn) in __mlx4_qp_lookup()
473 void mlx4_qp_remove(struct mlx4_dev *dev, struct mlx4_qp *qp);
Dcq.h173 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq,
175 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq,
Dsrq.h42 struct mlx4_srq *mlx4_srq_lookup(struct mlx4_dev *dev, u32 srqn);
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dah.c46 struct mlx4_dev *dev = to_mdev(pd->device)->dev; in create_ib_ah()
76 struct mlx4_dev *dev = ibdev->dev; in create_iboe_ah()
Dmain.c98 static int check_flow_steering_support(struct mlx4_dev *dev) in check_flow_steering_support()
123 static int num_ib_ports(struct mlx4_dev *dev) in num_ib_ports()
243 struct mlx4_dev *dev = to_mdev(device)->dev; in mlx4_ib_port_link_layer()
859 static int parse_flow_attr(struct mlx4_dev *dev, in parse_flow_attr()
1105 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) in __mlx4_ib_destroy_flow()
1122 struct mlx4_dev *dev = to_mdev(qp->device)->dev; in mlx4_ib_tunnel_steer_add()
1149 struct mlx4_dev *dev = (to_mdev(qp->device))->dev; in mlx4_ib_create_flow()
1270 struct mlx4_dev *dev = mdev->dev; in mlx4_ib_mcg_attach()
1348 struct mlx4_dev *dev = mdev->dev; in mlx4_ib_mcg_detach()
1513 struct mlx4_dev *dev = gw->dev->dev; in update_gids_task()
[all …]
Dmr.c482 struct mlx4_dev *mdev = NULL; in mlx4_ib_unmap_fmr()
Dmlx4_ib.h508 struct mlx4_dev *dev;
Dqp.c610 static int qp0_enabled_vf(struct mlx4_dev *dev, int qpn) in qp0_enabled_vf()
2020 static int vf_get_qp0_qkey(struct mlx4_dev *dev, int qpn, u32 *qkey) in vf_get_qp0_qkey()
3082 struct mlx4_dev *dev = ibdev->dev; in to_ib_ah_attr()