Lines Matching refs:cp

193     hermon_cfg_profile_t *cp);
196 hermon_cfg_profile_t *cp);
206 hermon_cfg_profile_t *cp; in hermon_cfg_profile_init_phase1() local
211 cp = (hermon_cfg_profile_t *)kmem_zalloc(sizeof (hermon_cfg_profile_t), in hermon_cfg_profile_init_phase1()
217 cp->cp_qp0_agents_in_fw = hermon_qp0_agents_in_fw; in hermon_cfg_profile_init_phase1()
218 cp->cp_qp1_agents_in_fw = hermon_qp1_agents_in_fw; in hermon_cfg_profile_init_phase1()
219 cp->cp_sw_reset_delay = hermon_sw_reset_delay; in hermon_cfg_profile_init_phase1()
220 cp->cp_cmd_poll_delay = hermon_cmd_poll_delay; in hermon_cfg_profile_init_phase1()
221 cp->cp_cmd_poll_max = hermon_cmd_poll_max; in hermon_cfg_profile_init_phase1()
222 cp->cp_ackreq_freq = hermon_qp_ackreq_freq; in hermon_cfg_profile_init_phase1()
223 cp->cp_fmr_max_remaps = hermon_fmr_num_remaps; in hermon_cfg_profile_init_phase1()
234 cp->cp_log_num_outmbox = hermon_log_num_outmbox; in hermon_cfg_profile_init_phase1()
235 cp->cp_log_outmbox_size = hermon_log_outmbox_size; in hermon_cfg_profile_init_phase1()
236 cp->cp_log_num_inmbox = hermon_log_num_inmbox; in hermon_cfg_profile_init_phase1()
237 cp->cp_log_inmbox_size = hermon_log_inmbox_size; in hermon_cfg_profile_init_phase1()
238 cp->cp_log_num_intr_inmbox = hermon_log_num_intr_inmbox; in hermon_cfg_profile_init_phase1()
239 cp->cp_log_num_intr_outmbox = hermon_log_num_intr_outmbox; in hermon_cfg_profile_init_phase1()
251 hermon_check_iommu_bypass(state, cp); in hermon_cfg_profile_init_phase1()
253 cp->cp_iommu_bypass = HERMON_BINDMEM_NORMAL; in hermon_cfg_profile_init_phase1()
256 cp->cp_iommu_bypass = HERMON_BINDMEM_NORMAL; in hermon_cfg_profile_init_phase1()
260 state->hs_cfg_profile = cp; in hermon_cfg_profile_init_phase1()
272 hermon_cfg_profile_t *cp; in hermon_cfg_profile_init_phase2() local
284 cp = state->hs_cfg_profile; in hermon_cfg_profile_init_phase2()
300 cp->cp_log_num_mtt = min(hermon_log_num_mtt, devlim->log_max_mtt); in hermon_cfg_profile_init_phase2()
301 cp->cp_log_num_dmpt = min(hermon_log_num_dmpt, devlim->log_max_dmpt); in hermon_cfg_profile_init_phase2()
302 cp->cp_log_num_cmpt = HERMON_LOG_CMPT_PER_TYPE + 2; /* times 4, */ in hermon_cfg_profile_init_phase2()
304 cp->cp_log_max_mrw_sz = min(hermon_log_max_mrw_sz, in hermon_cfg_profile_init_phase2()
306 cp->cp_log_num_pd = min(hermon_log_num_pd, devlim->log_max_pd); in hermon_cfg_profile_init_phase2()
307 cp->cp_log_num_qp = min(hermon_log_num_qp, devlim->log_max_qp); in hermon_cfg_profile_init_phase2()
308 cp->cp_log_num_cq = min(hermon_log_num_cq, devlim->log_max_cq); in hermon_cfg_profile_init_phase2()
309 cp->cp_log_num_srq = min(hermon_log_num_srq, devlim->log_max_srq); in hermon_cfg_profile_init_phase2()
310 cp->cp_log_num_eq = min(hermon_log_num_eq, devlim->log_max_eq); in hermon_cfg_profile_init_phase2()
311 cp->cp_log_eq_sz = min(hermon_log_eq_sz, devlim->log_max_eq_sz); in hermon_cfg_profile_init_phase2()
312 cp->cp_log_num_rdb = cp->cp_log_num_qp + in hermon_cfg_profile_init_phase2()
314 cp->cp_hca_max_rdma_in_qp = cp->cp_hca_max_rdma_out_qp = in hermon_cfg_profile_init_phase2()
316 cp->cp_num_qp_per_mcg = max(hermon_num_qp_per_mcg, in hermon_cfg_profile_init_phase2()
318 cp->cp_num_qp_per_mcg = min(cp->cp_num_qp_per_mcg, in hermon_cfg_profile_init_phase2()
320 cp->cp_num_qp_per_mcg = (1 << highbit(cp->cp_num_qp_per_mcg + 7)) - 8; in hermon_cfg_profile_init_phase2()
321 cp->cp_log_num_mcg = min(hermon_log_num_mcg, devlim->log_max_mcg); in hermon_cfg_profile_init_phase2()
322 cp->cp_log_num_mcg_hash = hermon_log_num_mcg_hash; in hermon_cfg_profile_init_phase2()
325 cp->cp_srq_resize_enabled = 0; in hermon_cfg_profile_init_phase2()
338 cp->cp_log_num_uar = min(hermon_log_num_uar, num); in hermon_cfg_profile_init_phase2()
346 cp->cp_log_max_pkeytbl = port->log_max_pkey; in hermon_cfg_profile_init_phase2()
348 cp->cp_log_max_qp_sz = devlim->log_max_qp_sz; in hermon_cfg_profile_init_phase2()
349 cp->cp_log_max_cq_sz = devlim->log_max_cq_sz; in hermon_cfg_profile_init_phase2()
350 cp->cp_log_max_srq_sz = devlim->log_max_srq_sz; in hermon_cfg_profile_init_phase2()
351 cp->cp_log_max_gidtbl = port->log_max_gid; in hermon_cfg_profile_init_phase2()
352 cp->cp_max_mtu = port->ib_mtu; /* XXX now from query_port */ in hermon_cfg_profile_init_phase2()
353 cp->cp_max_port_width = port->ib_port_wid; /* now from query_port */ in hermon_cfg_profile_init_phase2()
354 cp->cp_max_vlcap = port->max_vl; in hermon_cfg_profile_init_phase2()
355 cp->cp_log_num_ah = hermon_log_num_ah; in hermon_cfg_profile_init_phase2()
358 cp->cp_num_ports = devlim->num_ports; in hermon_cfg_profile_init_phase2()
359 if (cp->cp_num_ports > HERMON_MAX_PORTS) { in hermon_cfg_profile_init_phase2()
362 cp->cp_num_ports, HERMON_MAX_PORTS); in hermon_cfg_profile_init_phase2()
363 cp->cp_num_ports = HERMON_MAX_PORTS; in hermon_cfg_profile_init_phase2()
368 state->hs_pkey[i] = kmem_zalloc((1 << cp->cp_log_max_pkeytbl) * in hermon_cfg_profile_init_phase2()
370 state->hs_guid[i] = kmem_zalloc((1 << cp->cp_log_max_gidtbl) * in hermon_cfg_profile_init_phase2()
375 hermon_cfg_wqe_sizes(state, cp); in hermon_cfg_profile_init_phase2()
378 cp->cp_use_msi_if_avail = hermon_use_msi_if_avail; in hermon_cfg_profile_init_phase2()
385 cp->cp_log_num_mtt -= 6; in hermon_cfg_profile_init_phase2()
386 cp->cp_log_num_dmpt -= 6; in hermon_cfg_profile_init_phase2()
387 cp->cp_log_num_pd -= 6; in hermon_cfg_profile_init_phase2()
388 cp->cp_log_num_qp -= 6; in hermon_cfg_profile_init_phase2()
389 cp->cp_log_num_cq -= 6; in hermon_cfg_profile_init_phase2()
390 cp->cp_log_num_srq -= 6; in hermon_cfg_profile_init_phase2()
391 cp->cp_log_num_rdb = cp->cp_log_num_qp + in hermon_cfg_profile_init_phase2()
393 cp->cp_hca_max_rdma_in_qp = cp->cp_hca_max_rdma_out_qp = in hermon_cfg_profile_init_phase2()
420 hermon_cfg_wqe_sizes(hermon_state_t *state, hermon_cfg_profile_t *cp) in hermon_cfg_wqe_sizes() argument
456 cp->cp_wqe_max_sgl = max_sgl; in hermon_cfg_wqe_sizes()
457 cp->cp_wqe_real_max_sgl = real_max_sgl; in hermon_cfg_wqe_sizes()
460 cp->cp_srq_max_sgl = hermon_srq_max_sgl; in hermon_cfg_wqe_sizes()
471 hermon_check_iommu_bypass(hermon_state_t *state, hermon_cfg_profile_t *cp) in hermon_check_iommu_bypass() argument
499 cp->cp_iommu_bypass = HERMON_BINDMEM_NORMAL; in hermon_check_iommu_bypass()
504 cp->cp_iommu_bypass = HERMON_BINDMEM_BYPASS; in hermon_check_iommu_bypass()
507 cp->cp_iommu_bypass = HERMON_BINDMEM_BYPASS; in hermon_check_iommu_bypass()