Lines Matching refs:t
505 int t; in mlx4_init_resource_tracker() local
514 for (t = 0; t < MLX4_NUM_OF_RESOURCE_TYPE; ++t) in mlx4_init_resource_tracker()
516 slave_list[i].res_list[t]); in mlx4_init_resource_tracker()
552 for (t = 0; t < dev->persist->num_vfs + 1; t++) { in mlx4_init_resource_tracker()
554 mlx4_get_active_ports(dev, t); in mlx4_init_resource_tracker()
558 t, dev->caps.num_qps - in mlx4_init_resource_tracker()
564 t, dev->caps.num_cqs - in mlx4_init_resource_tracker()
569 t, dev->caps.num_srqs - in mlx4_init_resource_tracker()
574 t, dev->caps.num_mpts - in mlx4_init_resource_tracker()
579 t, dev->caps.num_mtts - in mlx4_init_resource_tracker()
583 if (t == mlx4_master_func_num(dev)) { in mlx4_init_resource_tracker()
598 res_alloc->quota[t] = in mlx4_init_resource_tracker()
601 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
606 res_alloc->quota[t] = MLX4_MAX_MAC_NUM; in mlx4_init_resource_tracker()
607 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
611 if (t == mlx4_master_func_num(dev)) { in mlx4_init_resource_tracker()
612 res_alloc->quota[t] = MLX4_MAX_VLAN_NUM; in mlx4_init_resource_tracker()
613 res_alloc->guaranteed[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
616 res_alloc->quota[t]; in mlx4_init_resource_tracker()
618 res_alloc->quota[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
619 res_alloc->guaranteed[t] = 0; in mlx4_init_resource_tracker()
623 res_alloc->quota[t] = dev->caps.max_counters; in mlx4_init_resource_tracker()
624 res_alloc->guaranteed[t] = in mlx4_init_resource_tracker()
625 mlx4_calc_res_counter_guaranteed(dev, res_alloc, t); in mlx4_init_resource_tracker()
634 res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
636 res_alloc->res_reserved += res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
852 static const char *mlx4_resource_type_to_str(enum mlx4_resource t) in mlx4_resource_type_to_str() argument
854 switch (t) { in mlx4_resource_type_to_str()