Lines Matching refs:mlx4_dev

298 static void rem_slave_vlans(struct mlx4_dev *dev, int slave);
299 static inline int mlx4_grant_resource(struct mlx4_dev *dev, int slave, in mlx4_grant_resource()
370 static inline void mlx4_release_resource(struct mlx4_dev *dev, int slave, in mlx4_release_resource()
415 static inline void initialize_res_quotas(struct mlx4_dev *dev, in initialize_res_quotas()
434 void mlx4_init_quotas(struct mlx4_dev *dev) in mlx4_init_quotas()
466 static int get_max_gauranteed_vfs_counter(struct mlx4_dev *dev) in get_max_gauranteed_vfs_counter()
474 int mlx4_init_resource_tracker(struct mlx4_dev *dev) in mlx4_init_resource_tracker()
636 void mlx4_free_resource_tracker(struct mlx4_dev *dev, in mlx4_free_resource_tracker()
672 static void update_pkey_index(struct mlx4_dev *dev, int slave, in update_pkey_index()
687 static void update_gid(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox, in update_gid()
727 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc,
730 static int update_vport_qp_param(struct mlx4_dev *dev, in update_vport_qp_param()
812 static int mpt_mask(struct mlx4_dev *dev) in mpt_mask()
817 static void *find_res(struct mlx4_dev *dev, u64 res_id, in find_res()
826 static int get_res(struct mlx4_dev *dev, int slave, u64 res_id, in get_res()
861 int mlx4_get_slave_from_resource_id(struct mlx4_dev *dev, in mlx4_get_slave_from_resource_id()
884 static void put_res(struct mlx4_dev *dev, int slave, u64 res_id, in put_res()
896 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,
899 static int handle_existing_counter(struct mlx4_dev *dev, u8 slave, int port, in handle_existing_counter()
921 static int handle_unexisting_counter(struct mlx4_dev *dev, in handle_unexisting_counter()
963 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc, in handle_counter()
1154 int mlx4_calc_vf_counters(struct mlx4_dev *dev, int slave, int port, in mlx4_calc_vf_counters()
1201 static int add_res_range(struct mlx4_dev *dev, int slave, u64 base, int count, in add_res_range()
1388 static int rem_res_range(struct mlx4_dev *dev, int slave, u64 base, int count, in rem_res_range()
1427 static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn, in qp_res_start_move_to()
1492 static int mr_res_start_move_to(struct mlx4_dev *dev, int slave, int index, in mr_res_start_move_to()
1545 static int eq_res_start_move_to(struct mlx4_dev *dev, int slave, int index, in eq_res_start_move_to()
1593 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, in cq_res_start_move_to()
1633 static int srq_res_start_move_to(struct mlx4_dev *dev, int slave, int index, in srq_res_start_move_to()
1669 static void res_abort_move(struct mlx4_dev *dev, int slave, in res_abort_move()
1683 static void res_end_move(struct mlx4_dev *dev, int slave, in res_end_move()
1697 static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn) in valid_reserved()
1703 static int fw_reserved(struct mlx4_dev *dev, int qpn) in fw_reserved()
1708 static int qp_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in qp_alloc_res()
1775 static int mtt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mtt_alloc_res()
1808 static int mpt_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mpt_alloc_res()
1857 static int cq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in cq_alloc_res()
1892 static int srq_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in srq_alloc_res()
1927 static int mac_find_smac_ix_in_slave(struct mlx4_dev *dev, int slave, int port, in mac_find_smac_ix_in_slave()
1945 static int mac_add_to_slave(struct mlx4_dev *dev, int slave, u64 mac, int port, u8 smac_index) in mac_add_to_slave()
1977 static void mac_del_from_slave(struct mlx4_dev *dev, int slave, u64 mac, in mac_del_from_slave()
1998 static void rem_slave_macs(struct mlx4_dev *dev, int slave) in rem_slave_macs()
2017 static int mac_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mac_alloc_res()
2051 static int vlan_add_to_slave(struct mlx4_dev *dev, int slave, u16 vlan, in vlan_add_to_slave()
2085 static void vlan_del_from_slave(struct mlx4_dev *dev, int slave, u16 vlan, in vlan_del_from_slave()
2107 static void rem_slave_vlans(struct mlx4_dev *dev, int slave) in rem_slave_vlans()
2126 static int vlan_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in vlan_alloc_res()
2164 static int counter_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in counter_alloc_res()
2194 static int xrcdn_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd, in xrcdn_alloc_res()
2216 int mlx4_ALLOC_RES_wrapper(struct mlx4_dev *dev, int slave, in mlx4_ALLOC_RES_wrapper()
2281 static int qp_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in qp_free_res()
2321 static int mtt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mtt_free_res()
2341 static int mpt_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mpt_free_res()
2384 static int cq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in cq_free_res()
2409 static int srq_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in srq_free_res()
2434 static int mac_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in mac_free_res()
2460 static int vlan_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in vlan_free_res()
2489 static int counter_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in counter_free_res()
2512 static int xrcdn_free_res(struct mlx4_dev *dev, int slave, int op, int cmd, in xrcdn_free_res()
2531 int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave, in mlx4_FREE_RES_wrapper()
2666 static int check_mtt_range(struct mlx4_dev *dev, int slave, int start, in check_mtt_range()
2677 int mlx4_SW2HW_MPT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_MPT_wrapper()
2760 int mlx4_HW2SW_MPT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_MPT_wrapper()
2792 int mlx4_QUERY_MPT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_MPT_wrapper()
2857 static void adjust_proxy_tun_qkey(struct mlx4_dev *dev, struct mlx4_vhcr *vhcr, in adjust_proxy_tun_qkey()
2870 static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave,
2874 int mlx4_RST2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_RST2INIT_QP_wrapper()
3012 int mlx4_SW2HW_EQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_EQ_wrapper()
3061 int mlx4_CONFIG_DEV_wrapper(struct mlx4_dev *dev, int slave, in mlx4_CONFIG_DEV_wrapper()
3078 static int get_containing_mtt(struct mlx4_dev *dev, int slave, int start, in get_containing_mtt()
3102 static int verify_qp_parameters(struct mlx4_dev *dev, in verify_qp_parameters()
3182 int mlx4_WRITE_MTT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_WRITE_MTT_wrapper()
3220 int mlx4_HW2SW_EQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_EQ_wrapper()
3258 int mlx4_GEN_EQE(struct mlx4_dev *dev, int slave, struct mlx4_eqe *eqe) in mlx4_GEN_EQE()
3326 int mlx4_QUERY_EQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_EQ_wrapper()
3353 int mlx4_SW2HW_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_CQ_wrapper()
3391 int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_CQ_wrapper()
3416 int mlx4_QUERY_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_CQ_wrapper()
3440 static int handle_resize(struct mlx4_dev *dev, int slave, in handle_resize()
3488 int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_MODIFY_CQ_wrapper()
3529 int mlx4_SW2HW_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SW2HW_SRQ_wrapper()
3574 int mlx4_HW2SW_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_HW2SW_SRQ_wrapper()
3603 int mlx4_QUERY_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_SRQ_wrapper()
3626 int mlx4_ARM_SRQ_wrapper(struct mlx4_dev *dev, int slave, in mlx4_ARM_SRQ_wrapper()
3651 int mlx4_GEN_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_GEN_QP_wrapper()
3675 int mlx4_INIT2INIT_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_INIT2INIT_QP_wrapper()
3687 static int adjust_qp_sched_queue(struct mlx4_dev *dev, int slave, in adjust_qp_sched_queue()
3720 static int roce_verify_mac(struct mlx4_dev *dev, int slave, in roce_verify_mac()
3739 int mlx4_INIT2RTR_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_INIT2RTR_QP_wrapper()
3803 int mlx4_RTR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_RTR2RTS_QP_wrapper()
3825 int mlx4_RTS2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_RTS2RTS_QP_wrapper()
3848 int mlx4_SQERR2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SQERR2RTS_QP_wrapper()
3862 int mlx4_SQD2SQD_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SQD2SQD_QP_wrapper()
3884 int mlx4_SQD2RTS_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_SQD2RTS_QP_wrapper()
3906 int mlx4_2RST_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_2RST_QP_wrapper()
3937 static struct res_gid *find_gid(struct mlx4_dev *dev, int slave, in find_gid()
3949 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in add_mcg_res()
3977 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, in rem_mcg_res()
3999 static int qp_attach(struct mlx4_dev *dev, int slave, struct mlx4_qp *qp, in qp_attach()
4026 static int qp_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, in qp_detach()
4040 static int mlx4_adjust_port(struct mlx4_dev *dev, int slave, in mlx4_adjust_port()
4059 int mlx4_QP_ATTACH_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QP_ATTACH_wrapper()
4162 static int add_eth_header(struct mlx4_dev *dev, int slave, in add_eth_header()
4221 int mlx4_UPDATE_QP_wrapper(struct mlx4_dev *dev, int slave, in mlx4_UPDATE_QP_wrapper()
4288 int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4378 int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4421 int mlx4_QUERY_IF_STAT_wrapper(struct mlx4_dev *dev, int slave, in mlx4_QUERY_IF_STAT_wrapper()
4439 static void detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp) in detach_qp()
4461 static int _move_all_busy(struct mlx4_dev *dev, int slave, in _move_all_busy()
4497 static int move_all_busy(struct mlx4_dev *dev, int slave, in move_all_busy()
4517 static void rem_slave_qps(struct mlx4_dev *dev, int slave) in rem_slave_qps()
4590 static void rem_slave_srqs(struct mlx4_dev *dev, int slave) in rem_slave_srqs()
4656 static void rem_slave_cqs(struct mlx4_dev *dev, int slave) in rem_slave_cqs()
4719 static void rem_slave_mrs(struct mlx4_dev *dev, int slave) in rem_slave_mrs()
4787 static void rem_slave_mtts(struct mlx4_dev *dev, int slave) in rem_slave_mtts()
4838 static void rem_slave_fs_rule(struct mlx4_dev *dev, int slave) in rem_slave_fs_rule()
4890 static void rem_slave_eqs(struct mlx4_dev *dev, int slave) in rem_slave_eqs()
4948 static void rem_slave_counters(struct mlx4_dev *dev, int slave) in rem_slave_counters()
4994 static void rem_slave_xrcdns(struct mlx4_dev *dev, int slave) in rem_slave_xrcdns()
5023 void mlx4_delete_all_resources_for_slave(struct mlx4_dev *dev, int slave) in mlx4_delete_all_resources_for_slave()
5048 struct mlx4_dev *dev = &work->priv->dev; in mlx4_vf_immed_vlan_work_handler()