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, 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()
474 static int get_max_gauranteed_vfs_counter(struct mlx4_dev *dev) in get_max_gauranteed_vfs_counter()
482 int mlx4_init_resource_tracker(struct mlx4_dev *dev) in mlx4_init_resource_tracker()
645 void mlx4_free_resource_tracker(struct mlx4_dev *dev, in mlx4_free_resource_tracker()
681 static void update_pkey_index(struct mlx4_dev *dev, int slave, in update_pkey_index()
696 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox, in update_gid()
736 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc,
739 static int update_vport_qp_param(struct mlx4_dev *dev, in update_vport_qp_param()
837 static int mpt_mask(struct mlx4_dev *dev) in mpt_mask()
872 static void *find_res(struct mlx4_dev *dev, u64 res_id, in find_res()
881 static int _get_res(struct mlx4_dev *dev, int slave, u64 res_id, in _get_res()
924 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev, in mlx4_get_slave_from_resource_id()
947 static void put_res(struct mlx4_dev *dev, int slave, u64 res_id, in put_res()
961 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
964 static int handle_existing_counter(struct mlx4_dev *dev, u8 slave, int port, in handle_existing_counter()
988 static int handle_unexisting_counter(struct mlx4_dev *dev, in handle_unexisting_counter()
1030 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc, in handle_counter()
1221 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port, in mlx4_calc_vf_counters()
1268 static int add_res_range(struct mlx4_dev *dev, int slave, u64 base, int count, in add_res_range()
1455 static int rem_res_range(struct mlx4_dev *dev, int slave, u64 base, int count, in rem_res_range()
1494 static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn, in qp_res_start_move_to()
1559 static int mr_res_start_move_to(struct mlx4_dev *dev, int slave, int index, in mr_res_start_move_to()
1612 static int eq_res_start_move_to(struct mlx4_dev *dev, int slave, int index, in eq_res_start_move_to()
1661 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, in cq_res_start_move_to()
1701 static int srq_res_start_move_to(struct mlx4_dev *dev, int slave, int index, in srq_res_start_move_to()
1737 static void res_abort_move(struct mlx4_dev *dev, int slave, in res_abort_move()
1751 static void res_end_move(struct mlx4_dev *dev, int slave, in res_end_move()
1765 static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn) in valid_reserved()
1771 static int fw_reserved(struct mlx4_dev *dev, int qpn) in fw_reserved()
1776 static int qp_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in qp_alloc_res()
1843 static int mtt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mtt_alloc_res()
1876 static int mpt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mpt_alloc_res()
1925 static int cq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in cq_alloc_res()
1960 static int srq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in srq_alloc_res()
1995 static int mac_find_smac_ix_in_slave(struct mlx4_dev *dev, int slave, int port, in mac_find_smac_ix_in_slave()
2013 static int mac_add_to_slave(struct mlx4_dev *dev, int slave, u64 mac, int port, u8 smac_index) in mac_add_to_slave()
2045 static void mac_del_from_slave(struct mlx4_dev *dev, int slave, u64 mac, in mac_del_from_slave()
2066 static void rem_slave_macs(struct mlx4_dev *dev, int slave) in rem_slave_macs()
2085 static int mac_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mac_alloc_res()
2119 static int vlan_add_to_slave(struct mlx4_dev *dev, int slave, u16 vlan, in vlan_add_to_slave()
2153 static void vlan_del_from_slave(struct mlx4_dev *dev, int slave, u16 vlan, in vlan_del_from_slave()
2175 static void rem_slave_vlans(struct mlx4_dev *dev, int slave) in rem_slave_vlans()
2194 static int vlan_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in vlan_alloc_res()
2232 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in counter_alloc_res()
2262 static int xrcdn_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in xrcdn_alloc_res()
2284 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave, in mlx4_ALLOC_RES_wrapper()
2349 static int qp_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in qp_free_res()
2389 static int mtt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mtt_free_res()
2409 static int mpt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mpt_free_res()
2451 static int cq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in cq_free_res()
2476 static int srq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in srq_free_res()
2501 static int mac_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mac_free_res()
2527 static int vlan_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in vlan_free_res()
2556 static int counter_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in counter_free_res()
2579 static int xrcdn_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in xrcdn_free_res()
2598 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave, in mlx4_FREE_RES_wrapper()
2733 static int check_mtt_range(struct mlx4_dev *dev, int slave, int start, in check_mtt_range()
2744 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_MPT_wrapper()
2827 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_MPT_wrapper()
2859 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_MPT_wrapper()
2924 static void adjust_proxy_tun_qkey(struct mlx4_dev *dev, struct mlx4_vhcr *vhcr, in adjust_proxy_tun_qkey()
2937 static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave,
2941 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_RST2INIT_QP_wrapper()
3082 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_EQ_wrapper()
3131 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave, in mlx4_CONFIG_DEV_wrapper()
3148 static int get_containing_mtt(struct mlx4_dev *dev, int slave, int start, in get_containing_mtt()
3172 static int verify_qp_parameters(struct mlx4_dev *dev, in verify_qp_parameters()
3252 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_WRITE_MTT_wrapper()
3290 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_EQ_wrapper()
3328 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe) in mlx4_GEN_EQE()
3396 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_EQ_wrapper()
3423 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_CQ_wrapper()
3461 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_CQ_wrapper()
3486 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_CQ_wrapper()
3510 static int handle_resize(struct mlx4_dev *dev, int slave, in handle_resize()
3558 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_MODIFY_CQ_wrapper()
3599 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_SRQ_wrapper()
3644 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_SRQ_wrapper()
3673 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_SRQ_wrapper()
3696 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_ARM_SRQ_wrapper()
3721 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_GEN_QP_wrapper()
3745 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_INIT2INIT_QP_wrapper()
3757 static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave, in adjust_qp_sched_queue()
3790 static int roce_verify_mac(struct mlx4_dev *dev, int slave, in roce_verify_mac()
3809 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_INIT2RTR_QP_wrapper()
3871 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_RTR2RTS_QP_wrapper()
3893 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_RTS2RTS_QP_wrapper()
3916 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SQERR2RTS_QP_wrapper()
3930 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SQD2SQD_QP_wrapper()
3952 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SQD2RTS_QP_wrapper()
3974 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_2RST_QP_wrapper()
4005 static struct res_gid *find_gid(struct mlx4_dev *dev, int slave, in find_gid()
4017 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in add_mcg_res()
4045 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in rem_mcg_res()
4067 static int qp_attach(struct mlx4_dev *dev, int slave, struct mlx4_qp *qp, in qp_attach()
4094 static int qp_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, in qp_detach()
4108 static int mlx4_adjust_port(struct mlx4_dev *dev, int slave, in mlx4_adjust_port()
4127 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QP_ATTACH_wrapper()
4214 static int add_eth_header(struct mlx4_dev *dev, int slave, in add_eth_header()
4273 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_UPDATE_QP_wrapper()
4353 static int mlx4_do_mirror_rule(struct mlx4_dev *dev, struct res_fs_rule *fs_rule);
4355 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4474 static int mlx4_undo_mirror_rule(struct mlx4_dev *dev, struct res_fs_rule *fs_rule) in mlx4_undo_mirror_rule()
4489 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4553 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_IF_STAT_wrapper()
4571 static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp) in detach_qp()
4593 static int _move_all_busy(struct mlx4_dev *dev, int slave, in _move_all_busy()
4629 static int move_all_busy(struct mlx4_dev *dev, int slave, in move_all_busy()
4649 static void rem_slave_qps(struct mlx4_dev *dev, int slave) in rem_slave_qps()
4722 static void rem_slave_srqs(struct mlx4_dev *dev, int slave) in rem_slave_srqs()
4788 static void rem_slave_cqs(struct mlx4_dev *dev, int slave) in rem_slave_cqs()
4851 static void rem_slave_mrs(struct mlx4_dev *dev, int slave) in rem_slave_mrs()
4919 static void rem_slave_mtts(struct mlx4_dev *dev, int slave) in rem_slave_mtts()
4970 static int mlx4_do_mirror_rule(struct mlx4_dev *dev, struct res_fs_rule *fs_rule) in mlx4_do_mirror_rule()
5018 static int mlx4_mirror_fs_rules(struct mlx4_dev *dev, bool bond) in mlx4_mirror_fs_rules()
5045 int mlx4_bond_fs_rules(struct mlx4_dev *dev) in mlx4_bond_fs_rules()
5050 int mlx4_unbond_fs_rules(struct mlx4_dev *dev) in mlx4_unbond_fs_rules()
5055 static void rem_slave_fs_rule(struct mlx4_dev *dev, int slave) in rem_slave_fs_rule()
5108 static void rem_slave_eqs(struct mlx4_dev *dev, int slave) in rem_slave_eqs()
5166 static void rem_slave_counters(struct mlx4_dev *dev, int slave) in rem_slave_counters()
5212 static void rem_slave_xrcdns(struct mlx4_dev *dev, int slave) in rem_slave_xrcdns()
5241 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave) in mlx4_delete_all_resources_for_slave()
5273 struct mlx4_dev *dev = &work->priv->dev; in mlx4_vf_immed_vlan_work_handler()