/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4.h | 204 int (*verify)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 206 int (*wrapper)(struct mlx4_dev *dev, int slave, struct mlx4_vhcr *vhcr, 386 struct mlx4_dev *dev; 817 struct mlx4_dev *dev; 831 struct mlx4_dev *dev; 859 struct mlx4_dev dev; 913 static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) in mlx4_priv() 933 int mlx4_reset(struct mlx4_dev *dev); 935 int mlx4_alloc_eq_table(struct mlx4_dev *dev); 936 void mlx4_free_eq_table(struct mlx4_dev *dev); [all …]
|
H A D | fw.h | 232 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap); 233 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap); 234 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap); 235 int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u8 gen_or_port, 237 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, 242 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave); 243 int mlx4_MAP_FA(struct mlx4_dev *dev, struct mlx4_icm *icm); 244 int mlx4_UNMAP_FA(struct mlx4_dev *dev); 245 int mlx4_RUN_FW(struct mlx4_dev *dev); 246 int mlx4_QUERY_FW(struct mlx4_dev *dev); [all …]
|
H A D | mlx4_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 …]
|
H A D | mlx4_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 …]
|
H A D | icm.h | 67 struct mlx4_dev; 69 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages, 71 void mlx4_free_icm(struct mlx4_dev *dev, struct mlx4_icm *icm, int coherent); 73 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, 75 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj); 76 int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, 78 void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table, 80 int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table, 83 void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table);
|
H A D | mlx4_mr.c | 156 u32 __mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in __mlx4_alloc_mtt_range() 180 static u32 mlx4_alloc_mtt_range(struct mlx4_dev *dev, int order) in mlx4_alloc_mtt_range() 200 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift, in mlx4_mtt_init() 223 void __mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order) in __mlx4_free_mtt_range() 237 static void mlx4_free_mtt_range(struct mlx4_dev *dev, u32 offset, int order) in mlx4_free_mtt_range() 257 void mlx4_mtt_cleanup(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_cleanup() 266 u64 mlx4_mtt_addr(struct mlx4_dev *dev, struct mlx4_mtt *mtt) in mlx4_mtt_addr() 282 static int mlx4_SW2HW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_MPT() 290 static int mlx4_HW2SW_MPT(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_MPT() 299 int mlx4_mr_hw_get_mpt(struct mlx4_dev *dev, struct mlx4_mr *mmr, in mlx4_mr_hw_get_mpt() [all …]
|
H A 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,
|
H A D | mlx4_cq.c | 54 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) in mlx4_cq_completion() 70 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) in mlx4_cq_event() 94 static int mlx4_SW2HW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_SW2HW_CQ() 102 static int mlx4_MODIFY_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_MODIFY_CQ() 109 static int mlx4_HW2SW_CQ(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, in mlx4_HW2SW_CQ() 117 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_modify() 139 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, in mlx4_cq_resize() 165 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in __mlx4_cq_alloc_icm() 192 static int mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in mlx4_cq_alloc_icm() 211 void __mlx4_cq_free_icm(struct mlx4_dev *dev, int cqn) in __mlx4_cq_free_icm() [all …]
|
H A D | mlx4_catas.c | 52 static int read_vendor_id(struct mlx4_dev *dev) in read_vendor_id() 71 static int mlx4_reset_master(struct mlx4_dev *dev) in mlx4_reset_master() 94 static int mlx4_reset_slave(struct mlx4_dev *dev) in mlx4_reset_slave() 172 struct mlx4_dev *dev; in mlx4_enter_error_state() 217 static void dump_err_buf(struct mlx4_dev *dev) in dump_err_buf() 231 struct mlx4_dev *dev = (struct mlx4_dev *) dev_ptr; in poll_catas() 269 void mlx4_start_catas_poll(struct mlx4_dev *dev) in mlx4_start_catas_poll() 298 void mlx4_stop_catas_poll(struct mlx4_dev *dev) in mlx4_stop_catas_poll() 313 int mlx4_catas_init(struct mlx4_dev *dev) in mlx4_catas_init() 323 void mlx4_catas_end(struct mlx4_dev *dev) in mlx4_catas_end()
|
H A D | mlx4_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 …]
|
H A D | mlx4_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() 239 struct mlx4_dev *dev = &priv->dev; in mlx4_set_eq_affinity_hint() 248 int mlx4_gen_pkey_eqe(struct mlx4_dev *dev, int slave, u8 port) in mlx4_gen_pkey_eqe() 268 int mlx4_gen_guid_change_eqe(struct mlx4_dev *dev, int slave, u8 port) in mlx4_gen_guid_change_eqe() 285 int mlx4_gen_port_state_change_eqe(struct mlx4_dev *dev, int slave, u8 port, in mlx4_gen_port_state_change_eqe() 306 enum slave_port_state mlx4_get_slave_port_state(struct mlx4_dev *dev, int slave, u8 port) in mlx4_get_slave_port_state() 322 static int mlx4_set_slave_port_state(struct mlx4_dev *dev, int slave, u8 port, in mlx4_set_slave_port_state() [all …]
|
H A D | mlx4_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() 128 struct mlx4_icm *mlx4_alloc_icm(struct mlx4_dev *dev, int npages, in mlx4_alloc_icm() 228 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) in mlx4_MAP_ICM() 233 static int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) in mlx4_UNMAP_ICM() 239 int mlx4_MAP_ICM_AUX(struct mlx4_dev *dev, struct mlx4_icm *icm) in mlx4_MAP_ICM_AUX() 244 int mlx4_UNMAP_ICM_AUX(struct mlx4_dev *dev) in mlx4_UNMAP_ICM_AUX() 250 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, in mlx4_table_get() 287 void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_put() [all …]
|
H A D | mlx4_qp.c | 50 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type) in mlx4_qp_event() 75 static int is_master_qp0(struct mlx4_dev *dev, struct mlx4_qp *qp, int *real_qp0, int *proxy_qp0) in is_master_qp0() 88 static int __mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in __mlx4_qp_modify() 209 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, in mlx4_qp_modify() 220 int __mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, in __mlx4_qp_reserve_range() 248 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() 305 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) in __mlx4_qp_alloc_icm() 349 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) in mlx4_qp_alloc_icm() [all …]
|
H A D | mlx4_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() 119 void mlx4_start_sense(struct mlx4_dev *dev) in mlx4_start_sense() 134 void mlx4_stop_sense(struct mlx4_dev *dev) in mlx4_stop_sense() 146 void mlx4_sense_init(struct mlx4_dev *dev) in mlx4_sense_init()
|
H A D | mlx4_resource_tracker.c | 304 static void rem_slave_vlans(struct mlx4_dev *dev, int slave); 305 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource() 376 static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave, in mlx4_release_resource() 421 static inline void initialize_res_quotas(struct mlx4_dev *dev, in initialize_res_quotas() 440 void mlx4_init_quotas(struct mlx4_dev *dev) in mlx4_init_quotas() 472 static int get_max_gauranteed_vfs_counter(struct mlx4_dev *dev) in get_max_gauranteed_vfs_counter() 480 int mlx4_init_resource_tracker(struct mlx4_dev *dev) in mlx4_init_resource_tracker() 642 void mlx4_free_resource_tracker(struct mlx4_dev *dev, in mlx4_free_resource_tracker() 678 static void update_pkey_index(struct mlx4_dev *dev, int slave, in update_pkey_index() 693 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox, in update_gid() [all …]
|
H A D | mlx4_main.c | 181 static inline void mlx4_set_num_reserved_uars(struct mlx4_dev *dev, in mlx4_set_num_reserved_uars() 195 int mlx4_check_port_params(struct mlx4_dev *dev, in mlx4_check_port_params() 219 static void mlx4_set_port_mask(struct mlx4_dev *dev) in mlx4_set_port_mask() 231 static int mlx4_query_func(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_query_func() 250 static void mlx4_enable_cqe_eqe_stride(struct mlx4_dev *dev) in mlx4_enable_cqe_eqe_stride() 285 static int _mlx4_dev_port(struct mlx4_dev *dev, int port, in _mlx4_dev_port() 312 static int mlx4_dev_port(struct mlx4_dev *dev, int port, in mlx4_dev_port() 325 static inline void mlx4_enable_ignore_fcs(struct mlx4_dev *dev) in mlx4_enable_ignore_fcs() 345 static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap() 627 static int mlx4_get_pcie_dev_link_caps(struct mlx4_dev *dev, in mlx4_get_pcie_dev_link_caps() [all …]
|
H A D | mlx4_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 …]
|
H A D | mlx4_cmd.c | 135 static int mlx4_master_process_vhcr(struct mlx4_dev *dev, int slave, 188 static int mlx4_internal_err_ret_value(struct mlx4_dev *dev, u16 op, in mlx4_internal_err_ret_value() 240 static int mlx4_cmd_reset_flow(struct mlx4_dev *dev, u16 op, u8 op_modifier, in mlx4_cmd_reset_flow() 254 static int comm_pending(struct mlx4_dev *dev) in comm_pending() 262 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 D | mlx4_fw.c | 87 static void dump_dev_cap_flags(struct mlx4_dev *dev, u64 flags) in dump_dev_cap_flags() 130 static void dump_dev_cap_flags2(struct mlx4_dev *dev, u64 flags) in dump_dev_cap_flags2() 177 int mlx4_MOD_STAT_CFG(struct mlx4_dev *dev, struct mlx4_mod_stat_cfg *cfg) in mlx4_MOD_STAT_CFG() 203 int mlx4_QUERY_FUNC(struct mlx4_dev *dev, struct mlx4_func *func, int slave) in mlx4_QUERY_FUNC() 324 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_FUNC_CAP_wrapper() 538 int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u8 gen_or_port, in mlx4_QUERY_FUNC_CAP() 724 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_QUERY_DEV_CAP() 1114 void mlx4_dev_cap_dump(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) in mlx4_dev_cap_dump() 1170 int mlx4_QUERY_PORT(struct mlx4_dev *dev, int port, struct mlx4_port_cap *port_cap) in mlx4_QUERY_PORT() 1256 int mlx4_QUERY_DEV_CAP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_DEV_CAP_wrapper() [all …]
|
H A D | mlx4_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()
|
H A D | mlx4_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() 236 void *mlx4_get_protocol_dev(struct mlx4_dev *dev, enum mlx4_protocol proto, int port) in mlx4_get_protocol_dev()
|
/freebsd/sys/dev/mlx4/ |
H A D | device.h | 849 struct mlx4_dev *dev; 864 struct mlx4_dev { struct 1023 static inline int mlx4_master_func_num(struct mlx4_dev *dev) in mlx4_master_func_num() 1028 static inline int mlx4_is_master(struct mlx4_dev *dev) in mlx4_is_master() 1033 static inline int mlx4_num_reserved_sqps(struct mlx4_dev *dev) in mlx4_num_reserved_sqps() 1039 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) in mlx4_is_qp_reserved() 1047 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) in mlx4_is_guest_proxy() 1057 static inline int mlx4_is_mfunc(struct mlx4_dev *dev) in mlx4_is_mfunc() 1062 static inline int mlx4_is_slave(struct mlx4_dev *dev) in mlx4_is_slave() 1067 static inline int mlx4_is_eth(struct mlx4_dev *dev, int port) in mlx4_is_eth() [all …]
|
H A D | driver.h | 38 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); 62 void (*activate)(struct mlx4_dev *dev, void *context); 71 int mlx4_bond(struct mlx4_dev *dev); 72 int mlx4_unbond(struct mlx4_dev *dev); 73 static inline int mlx4_is_bonded(struct mlx4_dev *dev) in mlx4_is_bonded() 78 static inline int mlx4_is_mf_bonded(struct mlx4_dev *dev) in mlx4_is_mf_bonded() [all …]
|
H A 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, 309 int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); 310 int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, [all …]
|
H A D | qp.h | 477 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, 480 int mlx4_qp_modify(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 485 int mlx4_qp_query(struct mlx4_dev *dev, struct mlx4_qp *qp, 488 int mlx4_qp_to_ready(struct mlx4_dev *dev, struct mlx4_mtt *mtt, 492 static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn) in __mlx4_qp_lookup() 497 void mlx4_qp_remove(struct mlx4_dev *dev, struct mlx4_qp *qp); 507 u16 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn);
|