Lines Matching refs:hca_param

560 		struct mlx4_init_hca_param hca_param;  in mlx4_dev_cap()  local
562 memset(&hca_param, 0, sizeof(hca_param)); in mlx4_dev_cap()
563 err = mlx4_QUERY_HCA(dev, &hca_param); in mlx4_dev_cap()
570 if (err || hca_param.phv_check_en) in mlx4_dev_cap()
844 struct mlx4_init_hca_param *hca_param) in slave_adjust_steering_mode() argument
846 dev->caps.steering_mode = hca_param->steering_mode; in slave_adjust_steering_mode()
853 4 * ((1 << hca_param->log_mc_entry_sz)/16 - 2); in slave_adjust_steering_mode()
913 struct mlx4_init_hca_param *hca_param = NULL; in mlx4_slave_cap() local
915 hca_param = kzalloc(sizeof(*hca_param), GFP_KERNEL); in mlx4_slave_cap()
918 if (!hca_param || !func_cap || !dev_cap) { in mlx4_slave_cap()
924 err = mlx4_QUERY_HCA(dev, hca_param); in mlx4_slave_cap()
933 if (hca_param->global_caps) { in mlx4_slave_cap()
939 dev->caps.hca_core_clock = hca_param->hca_core_clock; in mlx4_slave_cap()
941 dev->caps.max_qp_dest_rdma = 1 << hca_param->log_rd_per_qp; in mlx4_slave_cap()
962 dev->uar_page_shift = hca_param->uar_page_sz + 12; in mlx4_slave_cap()
1003 dev->caps.num_qps = 1 << hca_param->log_num_qps; in mlx4_slave_cap()
1004 dev->caps.num_srqs = 1 << hca_param->log_num_srqs; in mlx4_slave_cap()
1005 dev->caps.num_cqs = 1 << hca_param->log_num_cqs; in mlx4_slave_cap()
1006 dev->caps.num_mpts = 1 << hca_param->log_mpt_sz; in mlx4_slave_cap()
1041 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_64B_EQE_ENABLED) { in mlx4_slave_cap()
1049 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_64B_CQE_ENABLED) { in mlx4_slave_cap()
1056 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_EQE_STRIDE_ENABLED) { in mlx4_slave_cap()
1057 dev->caps.eqe_size = hca_param->eqe_size; in mlx4_slave_cap()
1061 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_CQE_STRIDE_ENABLED) { in mlx4_slave_cap()
1062 dev->caps.cqe_size = hca_param->cqe_size; in mlx4_slave_cap()
1073 slave_adjust_steering_mode(dev, dev_cap, hca_param); in mlx4_slave_cap()
1075 hca_param->rss_ip_frags ? "on" : "off"); in mlx4_slave_cap()
1088 kfree(hca_param); in mlx4_slave_cap()