Lines Matching refs:hca_param

559 		struct mlx4_init_hca_param hca_param;  in mlx4_dev_cap()  local
561 memset(&hca_param, 0, sizeof(hca_param)); in mlx4_dev_cap()
562 err = mlx4_QUERY_HCA(dev, &hca_param); in mlx4_dev_cap()
569 if (err || hca_param.phv_check_en) in mlx4_dev_cap()
843 struct mlx4_init_hca_param *hca_param) in slave_adjust_steering_mode() argument
845 dev->caps.steering_mode = hca_param->steering_mode; in slave_adjust_steering_mode()
852 4 * ((1 << hca_param->log_mc_entry_sz)/16 - 2); in slave_adjust_steering_mode()
912 struct mlx4_init_hca_param *hca_param; in mlx4_slave_cap() local
914 hca_param = kzalloc(sizeof(*hca_param), GFP_KERNEL); in mlx4_slave_cap()
917 if (!hca_param || !func_cap || !dev_cap) { in mlx4_slave_cap()
923 err = mlx4_QUERY_HCA(dev, hca_param); in mlx4_slave_cap()
932 if (hca_param->global_caps) { in mlx4_slave_cap()
938 dev->caps.hca_core_clock = hca_param->hca_core_clock; in mlx4_slave_cap()
940 dev->caps.max_qp_dest_rdma = 1 << hca_param->log_rd_per_qp; in mlx4_slave_cap()
961 dev->uar_page_shift = hca_param->uar_page_sz + 12; in mlx4_slave_cap()
1002 dev->caps.num_qps = 1 << hca_param->log_num_qps; in mlx4_slave_cap()
1003 dev->caps.num_srqs = 1 << hca_param->log_num_srqs; in mlx4_slave_cap()
1004 dev->caps.num_cqs = 1 << hca_param->log_num_cqs; in mlx4_slave_cap()
1005 dev->caps.num_mpts = 1 << hca_param->log_mpt_sz; in mlx4_slave_cap()
1040 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_64B_EQE_ENABLED) { in mlx4_slave_cap()
1048 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_64B_CQE_ENABLED) { in mlx4_slave_cap()
1055 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_EQE_STRIDE_ENABLED) { in mlx4_slave_cap()
1056 dev->caps.eqe_size = hca_param->eqe_size; in mlx4_slave_cap()
1060 if (hca_param->dev_cap_enabled & MLX4_DEV_CAP_CQE_STRIDE_ENABLED) { in mlx4_slave_cap()
1061 dev->caps.cqe_size = hca_param->cqe_size; in mlx4_slave_cap()
1072 slave_adjust_steering_mode(dev, dev_cap, hca_param); in mlx4_slave_cap()
1074 hca_param->rss_ip_frags ? "on" : "off"); in mlx4_slave_cap()
1087 kfree(hca_param); in mlx4_slave_cap()