Searched refs:qm_info (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_dev.c73 struct qed_qm_info *qm_info = &p_hwfn->qm_info; qed_qm_info_free() local
75 kfree(qm_info->qm_pq_params); qed_qm_info_free()
76 qm_info->qm_pq_params = NULL; qed_qm_info_free()
77 kfree(qm_info->qm_vport_params); qed_qm_info_free()
78 qm_info->qm_vport_params = NULL; qed_qm_info_free()
79 kfree(qm_info->qm_port_params); qed_qm_info_free()
80 qm_info->qm_port_params = NULL; qed_qm_info_free()
116 struct qed_qm_info *qm_info = &p_hwfn->qm_info; qed_init_qm_info() local
121 memset(qm_info, 0, sizeof(*qm_info)); qed_init_qm_info()
136 qm_info->qm_pq_params = kzalloc(sizeof(*qm_info->qm_pq_params) * qed_init_qm_info()
138 if (!qm_info->qm_pq_params) qed_init_qm_info()
141 qm_info->qm_vport_params = kzalloc(sizeof(*qm_info->qm_vport_params) * qed_init_qm_info()
143 if (!qm_info->qm_vport_params) qed_init_qm_info()
146 qm_info->qm_port_params = kzalloc(sizeof(*qm_info->qm_port_params) * qed_init_qm_info()
148 if (!qm_info->qm_port_params) qed_init_qm_info()
155 struct init_qm_pq_params *params = &qm_info->qm_pq_params[i]; qed_init_qm_info()
163 qm_info->pure_lb_pq = i; qed_init_qm_info()
164 qm_info->qm_pq_params[i].vport_id = (u8)RESC_START(p_hwfn, QED_VPORT); qed_init_qm_info()
165 qm_info->qm_pq_params[i].tc_id = PURE_LB_TC; qed_init_qm_info()
166 qm_info->qm_pq_params[i].wrr_group = 1; qed_init_qm_info()
169 qm_info->offload_pq = 0; qed_init_qm_info()
170 qm_info->num_pqs = num_pqs; qed_init_qm_info()
171 qm_info->num_vports = num_vports; qed_init_qm_info()
176 p_qm_port = &qm_info->qm_port_params[i]; qed_init_qm_info()
183 qm_info->max_phys_tcs_per_port = NUM_OF_PHYS_TCS; qed_init_qm_info()
185 qm_info->start_pq = (u16)RESC_START(p_hwfn, QED_PQ); qed_init_qm_info()
187 qm_info->start_vport = (u8)RESC_START(p_hwfn, QED_VPORT); qed_init_qm_info()
189 qm_info->pf_wfq = 0; qed_init_qm_info()
190 qm_info->pf_rl = 0; qed_init_qm_info()
191 qm_info->vport_rl_en = 1; qed_init_qm_info()
197 kfree(qm_info->qm_pq_params); qed_init_qm_info()
198 kfree(qm_info->qm_vport_params); qed_init_qm_info()
199 kfree(qm_info->qm_port_params); qed_init_qm_info()
470 struct qed_qm_info *qm_info = &p_hwfn->qm_info; qed_hw_init_common() local
482 qm_info->pf_rl_en = 1; qed_hw_init_common()
484 qm_info->pf_wfq_en = 1; qed_hw_init_common()
489 params.max_phys_tcs_per_port = qm_info->max_phys_tcs_per_port; qed_hw_init_common()
490 params.pf_rl_en = qm_info->pf_rl_en; qed_hw_init_common()
491 params.pf_wfq_en = qm_info->pf_wfq_en; qed_hw_init_common()
492 params.vport_rl_en = qm_info->vport_rl_en; qed_hw_init_common()
493 params.vport_wfq_en = qm_info->vport_wfq_en; qed_hw_init_common()
494 params.port_params = qm_info->qm_port_params; qed_hw_init_common()
552 p_hwfn->qm_info.pf_wfq = p_info->bandwidth_min; qed_hw_init_pf()
555 p_hwfn->qm_info.pf_rl = 100; qed_hw_init_pf()
H A Dqed_cxt.c248 p_hwfn->qm_info.num_pqs, 0); qed_cxt_cfg_ilt_compute()
252 qm_iids.cids, p_hwfn->qm_info.num_pqs, total); qed_cxt_cfg_ilt_compute()
570 struct qed_qm_info *qm_info = &p_hwfn->qm_info; qed_qm_init_pf() local
579 params.max_phys_tcs_per_port = qm_info->max_phys_tcs_per_port; qed_qm_init_pf()
582 params.start_pq = qm_info->start_pq; qed_qm_init_pf()
583 params.num_pf_pqs = qm_info->num_pqs; qed_qm_init_pf()
584 params.start_vport = qm_info->num_vports; qed_qm_init_pf()
585 params.pf_wfq = qm_info->pf_wfq; qed_qm_init_pf()
586 params.pf_rl = qm_info->pf_rl; qed_qm_init_pf()
587 params.pq_params = qm_info->qm_pq_params; qed_qm_init_pf()
588 params.vport_params = qm_info->qm_vport_params; qed_qm_init_pf()
H A Dqed_hw.c762 pq_id = p_hwfn->qm_info.pure_lb_pq; qed_get_qm_pq()
764 pq_id = p_hwfn->qm_info.offload_pq; qed_get_qm_pq()
H A Dqed.h312 struct qed_qm_info qm_info; member in struct:qed_hwfn

Completed in 122 milliseconds