/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | mlx4.h | 203 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 205 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 392 struct mlx4_dev *dev; 833 struct mlx4_dev *dev; 849 struct mlx4_dev *dev; 876 struct mlx4_dev dev; 930 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv() 950 int mlx4_reset(struct mlx4_dev *dev); 952 int mlx4_alloc_eq_table(struct mlx4_dev *dev); 953 void mlx4_free_eq_table(struct mlx4_dev *dev); [all …]
|
D | fw.h | 230 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 …]
|
D | icm.h | 78 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 …]
|
D | pd.c | 47 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 …]
|
D | srq.c | 43 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 …]
|
D | mr.c | 150 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 …]
|
D | fw_qos.h | 66 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,
|
D | catas.c | 50 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 …]
|
D | mcg.c | 43 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 …]
|
D | sense.c | 41 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()
|
D | qp.c | 49 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() 208 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_modify() 219 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in __mlx4_qp_reserve_range() 247 int mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in mlx4_qp_reserve_range() 275 void __mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) in __mlx4_qp_release_range() 285 void mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt) in mlx4_qp_release_range() 308 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn) in __mlx4_qp_alloc_icm() 352 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn) in mlx4_qp_alloc_icm() [all …]
|
D | cq.c | 104 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 …]
|
D | icm.c | 55 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 …]
|
D | eq.c | 86 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 …]
|
D | crdump.c | 60 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()
|
D | main.c | 199 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_get() 209 struct mlx4_dev *dev = &priv->dev; in mlx4_devlink_crdump_snapshot_set() 293 static inline void mlx4_set_num_reserved_uars(struct mlx4_dev *dev, in mlx4_set_num_reserved_uars() 307 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params() 331 static void mlx4_set_port_mask(struct mlx4_dev *dev) in mlx4_set_port_mask() 343 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func() 362 static void mlx4_enable_cqe_eqe_stride(struct mlx4_dev *dev) in mlx4_enable_cqe_eqe_stride() 397 static int _mlx4_dev_port(struct mlx4_dev *dev, int port, in _mlx4_dev_port() 424 static int mlx4_dev_port(struct mlx4_dev *dev, int port, in mlx4_dev_port() 437 static inline void mlx4_enable_ignore_fcs(struct mlx4_dev *dev) in mlx4_enable_ignore_fcs() [all …]
|
D | resource_tracker.c | 306 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 …]
|
D | port.c | 62 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 …]
|
D | cmd.c | 136 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 …]
|
D | fw_qos.c | 85 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()
|
D | intf.c | 130 int mlx4_do_bond(struct mlx4_dev *dev, bool enable) in mlx4_do_bond() 182 void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type, in mlx4_dispatch_event() 198 int mlx4_register_device(struct mlx4_dev *dev) in mlx4_register_device() 216 void mlx4_unregister_device(struct mlx4_dev *dev) in mlx4_unregister_device() 248 void *mlx4_get_protocol_dev(struct mlx4_dev *dev, enum mlx4_protocol proto, int port) in mlx4_get_protocol_dev() 269 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port) in mlx4_get_devlink_port()
|
/linux-6.1.9/include/linux/mlx4/ |
D | device.h | 857 struct mlx4_dev *dev; 873 struct mlx4_dev { struct 1029 static inline int mlx4_master_func_num(struct mlx4_dev *dev) in mlx4_master_func_num() 1034 static inline int mlx4_is_master(struct mlx4_dev *dev) in mlx4_is_master() 1039 static inline int mlx4_num_reserved_sqps(struct mlx4_dev *dev) in mlx4_num_reserved_sqps() 1045 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) in mlx4_is_qp_reserved() 1053 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy() 1063 static inline int mlx4_is_mfunc(struct mlx4_dev *dev) in mlx4_is_mfunc() 1068 static inline int mlx4_is_slave(struct mlx4_dev *dev) in mlx4_is_slave() 1073 static inline int mlx4_is_eth(struct mlx4_dev *dev, int port) in mlx4_is_eth() [all …]
|
D | driver.h | 39 struct mlx4_dev; 58 void * (*add) (struct mlx4_dev *dev); 59 void (*remove)(struct mlx4_dev *dev, void *context); 60 void (*event) (struct mlx4_dev *dev, void *context, 62 void * (*get_dev)(struct mlx4_dev *dev, void *context, u8 port); 63 void (*activate)(struct mlx4_dev *dev, void *context); 72 int mlx4_bond(struct mlx4_dev *dev); 73 int mlx4_unbond(struct mlx4_dev *dev); 74 static inline int mlx4_is_bonded(struct mlx4_dev *dev) in mlx4_is_bonded() 79 static inline int mlx4_is_mf_bonded(struct mlx4_dev *dev) in mlx4_is_mf_bonded() [all …]
|
D | cmd.h | 261 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 …]
|
D | qp.h | 473 struct mlx4_qp *mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn); 474 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, 477 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 482 int mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp, 485 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 489 static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn) in __mlx4_qp_lookup() 494 void mlx4_qp_remove(struct mlx4_dev *dev, struct mlx4_qp *qp); 504 u16 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn);
|