Lines Matching refs:mlx4_dev

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,
378 static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave,
423 static inline void initialize_res_quotas(struct mlx4_dev *dev,
442 void mlx4_init_quotas(struct mlx4_dev *dev)
475 mlx4_calc_res_counter_guaranteed(struct mlx4_dev *dev,
501 int mlx4_init_resource_tracker(struct mlx4_dev *dev)
655 void mlx4_free_resource_tracker(struct mlx4_dev *dev,
691 static void update_pkey_index(struct mlx4_dev *dev, int slave,
706 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox,
746 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc,
749 static int update_vport_qp_param(struct mlx4_dev *dev,
847 static int mpt_mask(struct mlx4_dev *dev)
882 static void *find_res(struct mlx4_dev *dev, u64 res_id,
891 static int _get_res(struct mlx4_dev *dev, int slave, u64 res_id,
934 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev,
957 static void put_res(struct mlx4_dev *dev, int slave, u64 res_id,
971 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
974 static int handle_existing_counter(struct mlx4_dev *dev, u8 slave, int port,
998 static int handle_unexisting_counter(struct mlx4_dev *dev,
1040 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc,
1231 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port,
1278 static int add_res_range(struct mlx4_dev *dev, int slave, u64 base, int count,
1465 static int rem_res_range(struct mlx4_dev *dev, int slave, u64 base, int count,
1504 static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn,
1569 static int mr_res_start_move_to(struct mlx4_dev *dev, int slave, int index,
1622 static int eq_res_start_move_to(struct mlx4_dev *dev, int slave, int index,
1671 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn,
1711 static int srq_res_start_move_to(struct mlx4_dev *dev, int slave, int index,
1747 static void res_abort_move(struct mlx4_dev *dev, int slave,
1761 static void res_end_move(struct mlx4_dev *dev, int slave,
1775 static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn)
1781 static int fw_reserved(struct mlx4_dev *dev, int qpn)
1786 static int qp_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1853 static int mtt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1886 static int mpt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1935 static int cq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
1970 static int srq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2005 static int mac_find_smac_ix_in_slave(struct mlx4_dev *dev, int slave, int port,
2023 static int mac_add_to_slave(struct mlx4_dev *dev, int slave, u64 mac, int port, u8 smac_index)
2055 static void mac_del_from_slave(struct mlx4_dev *dev, int slave, u64 mac,
2076 static void rem_slave_macs(struct mlx4_dev *dev, int slave)
2095 static int mac_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2129 static int vlan_add_to_slave(struct mlx4_dev *dev, int slave, u16 vlan,
2163 static void vlan_del_from_slave(struct mlx4_dev *dev, int slave, u16 vlan,
2185 static void rem_slave_vlans(struct mlx4_dev *dev, int slave)
2204 static int vlan_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2242 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2272 static int xrcdn_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2294 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave,
2359 static int qp_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2399 static int mtt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2419 static int mpt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2461 static int cq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2486 static int srq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2511 static int mac_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2537 static int vlan_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2566 static int counter_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2589 static int xrcdn_free_res(struct mlx4_dev *dev, int slave, int op, int cmd,
2608 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
2744 static int check_mtt_range(struct mlx4_dev *dev, int slave, int start,
2755 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave,
2838 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave,
2870 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave,
2935 static void adjust_proxy_tun_qkey(struct mlx4_dev *dev, struct mlx4_vhcr *vhcr,
2948 static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave,
2952 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
3093 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave,
3142 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave,
3159 static int get_containing_mtt(struct mlx4_dev *dev, int slave, int start,
3183 static int verify_qp_parameters(struct mlx4_dev *dev,
3263 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave,
3301 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave,
3339 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe)
3407 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave,
3434 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave,
3472 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
3497 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave,
3521 static int handle_resize(struct mlx4_dev *dev, int slave,
3569 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
3610 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3655 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3684 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3707 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave,
3732 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave,
3756 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave,
3768 static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave,
3801 static int roce_verify_mac(struct mlx4_dev *dev, int slave,
3820 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave,
3882 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3904 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3927 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3941 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave,
3963 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave,
3985 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave,
4016 static struct res_gid *find_gid(struct mlx4_dev *dev, int slave,
4028 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp,
4056 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp,
4078 static int qp_attach(struct mlx4_dev *dev, int slave, struct mlx4_qp *qp,
4105 static int qp_detach(struct mlx4_dev *dev, struct mlx4_qp *qp,
4119 static int mlx4_adjust_port(struct mlx4_dev *dev, int slave,
4138 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
4225 static int add_eth_header(struct mlx4_dev *dev, int slave,
4284 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave,
4364 static int mlx4_do_mirror_rule(struct mlx4_dev *dev, struct res_fs_rule *fs_rule);
4366 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
4485 static int mlx4_undo_mirror_rule(struct mlx4_dev *dev, struct res_fs_rule *fs_rule)
4500 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
4564 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave,
4582 static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp)
4604 static int _move_all_busy(struct mlx4_dev *dev, int slave,
4640 static int move_all_busy(struct mlx4_dev *dev, int slave,
4660 static void rem_slave_qps(struct mlx4_dev *dev, int slave)
4733 static void rem_slave_srqs(struct mlx4_dev *dev, int slave)
4798 static void rem_slave_cqs(struct mlx4_dev *dev, int slave)
4860 static void rem_slave_mrs(struct mlx4_dev *dev, int slave)
4927 static void rem_slave_mtts(struct mlx4_dev *dev, int slave)
4977 static int mlx4_do_mirror_rule(struct mlx4_dev *dev, struct res_fs_rule *fs_rule)
5026 static int mlx4_mirror_fs_rules(struct mlx4_dev *dev, bool bond)
5053 int mlx4_bond_fs_rules(struct mlx4_dev *dev)
5058 int mlx4_unbond_fs_rules(struct mlx4_dev *dev)
5063 static void rem_slave_fs_rule(struct mlx4_dev *dev, int slave)
5116 static void rem_slave_eqs(struct mlx4_dev *dev, int slave)
5173 static void rem_slave_counters(struct mlx4_dev *dev, int slave)
5219 static void rem_slave_xrcdns(struct mlx4_dev *dev, int slave)
5248 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave)
5280 struct mlx4_dev *dev = &work->priv->dev;