Lines Matching refs:mfunc
313 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_grant_resource()
384 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_release_resource()
463 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf]; in mlx4_init_quotas()
465 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf]; in mlx4_init_quotas()
467 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf]; in mlx4_init_quotas()
469 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas()
471 priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf]; in mlx4_init_quotas()
507 priv->mfunc.master.res_tracker.slave_list = in mlx4_init_resource_tracker()
510 if (!priv->mfunc.master.res_tracker.slave_list) in mlx4_init_resource_tracker()
515 INIT_LIST_HEAD(&priv->mfunc.master.res_tracker. in mlx4_init_resource_tracker()
517 mutex_init(&priv->mfunc.master.res_tracker.slave_list[i].mutex); in mlx4_init_resource_tracker()
523 priv->mfunc.master.res_tracker.res_tree[i] = RB_ROOT; in mlx4_init_resource_tracker()
527 &priv->mfunc.master.res_tracker.res_alloc[i]; in mlx4_init_resource_tracker()
640 spin_lock_init(&priv->mfunc.master.res_tracker.lock); in mlx4_init_resource_tracker()
645 kfree(priv->mfunc.master.res_tracker.res_alloc[i].allocated); in mlx4_init_resource_tracker()
646 priv->mfunc.master.res_tracker.res_alloc[i].allocated = NULL; in mlx4_init_resource_tracker()
647 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_init_resource_tracker()
648 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_init_resource_tracker()
649 kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota); in mlx4_init_resource_tracker()
650 priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL; in mlx4_init_resource_tracker()
661 if (priv->mfunc.master.res_tracker.slave_list) { in mlx4_free_resource_tracker()
671 mutex_lock(&priv->mfunc.master.res_tracker.slave_list[i].mutex); in mlx4_free_resource_tracker()
673 mutex_unlock(&priv->mfunc.master.res_tracker.slave_list[i].mutex); in mlx4_free_resource_tracker()
678 kfree(priv->mfunc.master.res_tracker.res_alloc[i].allocated); in mlx4_free_resource_tracker()
679 priv->mfunc.master.res_tracker.res_alloc[i].allocated = NULL; in mlx4_free_resource_tracker()
680 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_free_resource_tracker()
681 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_free_resource_tracker()
682 kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota); in mlx4_free_resource_tracker()
683 priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL; in mlx4_free_resource_tracker()
685 kfree(priv->mfunc.master.res_tracker.slave_list); in mlx4_free_resource_tracker()
686 priv->mfunc.master.res_tracker.slave_list = NULL; in mlx4_free_resource_tracker()
761 vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port]; in update_vport_qp_param()
887 return res_tracker_lookup(&priv->mfunc.master.res_tracker.res_tree[type], in find_res()
1003 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in handle_unexisting_counter()
1235 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in mlx4_calc_vf_counters()
1285 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in add_res_range()
1471 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_res_range()
1509 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in qp_res_start_move_to()
1573 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in mr_res_start_move_to()
1626 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in eq_res_start_move_to()
1675 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in cq_res_start_move_to()
1715 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in srq_res_start_move_to()
1751 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in res_abort_move()
1765 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in res_end_move()
2009 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in mac_find_smac_ix_in_slave()
2026 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in mac_add_to_slave()
2059 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in mac_del_from_slave()
2079 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_macs()
2133 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in vlan_add_to_slave()
2167 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in vlan_del_from_slave()
2188 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_vlans()
2208 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; in vlan_alloc_res()
2541 struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state; in vlan_free_res()
3163 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in get_containing_mtt()
3349 if (!priv->mfunc.master.slave_state) in mlx4_GEN_EQE()
3355 !priv->mfunc.master.slave_state[slave].active) in mlx4_GEN_EQE()
3358 event_eq = &priv->mfunc.master.slave_state[slave].event_eq[eqe->type]; in mlx4_GEN_EQE()
3364 mutex_lock(&priv->mfunc.master.gen_eqe_mutex[slave]); in mlx4_GEN_EQE()
3395 mutex_unlock(&priv->mfunc.master.gen_eqe_mutex[slave]); in mlx4_GEN_EQE()
3403 mutex_unlock(&priv->mfunc.master.gen_eqe_mutex[slave]); in mlx4_GEN_EQE()
4374 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4609 &priv->mfunc.master.res_tracker; in _move_all_busy()
4663 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_qps()
4736 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_srqs()
4801 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_cqs()
4863 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_mrs()
4931 &priv->mfunc.master.res_tracker; in rem_slave_mtts()
5030 &priv->mfunc.master.res_tracker; in mlx4_mirror_fs_rules()
5067 &priv->mfunc.master.res_tracker; in rem_slave_fs_rule()
5119 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_eqs()
5176 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_counters()
5222 struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker; in rem_slave_xrcdns()
5252 mutex_lock(&priv->mfunc.master.res_tracker.slave_list[slave].mutex); in mlx4_delete_all_resources_for_slave()
5264 mutex_unlock(&priv->mfunc.master.res_tracker.slave_list[slave].mutex); in mlx4_delete_all_resources_for_slave()
5282 &work->priv->mfunc.master.res_tracker; in mlx4_vf_immed_vlan_work_handler()