Lines Matching refs:cos2bw

100 	struct bnxt_cos2bw_cfg cos2bw;  in bnxt_hwrm_queue_cos2bw_cfg()  local
114 memset(&cos2bw, 0, sizeof(cos2bw)); in bnxt_hwrm_queue_cos2bw_cfg()
115 cos2bw.queue_id = bp->q_info[qidx].queue_id; in bnxt_hwrm_queue_cos2bw_cfg()
117 cos2bw.tsa = in bnxt_hwrm_queue_cos2bw_cfg()
119 cos2bw.pri_lvl = i; in bnxt_hwrm_queue_cos2bw_cfg()
121 cos2bw.tsa = in bnxt_hwrm_queue_cos2bw_cfg()
123 cos2bw.bw_weight = ets->tc_tx_bw[i]; in bnxt_hwrm_queue_cos2bw_cfg()
127 cos2bw.min_bw = in bnxt_hwrm_queue_cos2bw_cfg()
132 req->queue_id0 = cos2bw.queue_id; in bnxt_hwrm_queue_cos2bw_cfg()
133 req->queue_id0_min_bw = cos2bw.min_bw; in bnxt_hwrm_queue_cos2bw_cfg()
134 req->queue_id0_max_bw = cos2bw.max_bw; in bnxt_hwrm_queue_cos2bw_cfg()
135 req->queue_id0_tsa_assign = cos2bw.tsa; in bnxt_hwrm_queue_cos2bw_cfg()
136 req->queue_id0_pri_lvl = cos2bw.pri_lvl; in bnxt_hwrm_queue_cos2bw_cfg()
137 req->queue_id0_bw_weight = cos2bw.bw_weight; in bnxt_hwrm_queue_cos2bw_cfg()
139 memcpy(&req->cfg[i - 1], &cos2bw.cfg, sizeof(cos2bw.cfg)); in bnxt_hwrm_queue_cos2bw_cfg()
149 struct bnxt_cos2bw_cfg cos2bw; in bnxt_hwrm_queue_cos2bw_qcfg() local
167 cos2bw.queue_id = resp->queue_id0; in bnxt_hwrm_queue_cos2bw_qcfg()
168 cos2bw.min_bw = resp->queue_id0_min_bw; in bnxt_hwrm_queue_cos2bw_qcfg()
169 cos2bw.max_bw = resp->queue_id0_max_bw; in bnxt_hwrm_queue_cos2bw_qcfg()
170 cos2bw.tsa = resp->queue_id0_tsa_assign; in bnxt_hwrm_queue_cos2bw_qcfg()
171 cos2bw.pri_lvl = resp->queue_id0_pri_lvl; in bnxt_hwrm_queue_cos2bw_qcfg()
172 cos2bw.bw_weight = resp->queue_id0_bw_weight; in bnxt_hwrm_queue_cos2bw_qcfg()
174 memcpy(&cos2bw.cfg, &resp->cfg[i - 1], sizeof(cos2bw.cfg)); in bnxt_hwrm_queue_cos2bw_qcfg()
177 tc = bnxt_queue_to_tc(bp, cos2bw.queue_id); in bnxt_hwrm_queue_cos2bw_qcfg()
181 if (cos2bw.tsa == in bnxt_hwrm_queue_cos2bw_qcfg()
186 ets->tc_tx_bw[tc] = cos2bw.bw_weight; in bnxt_hwrm_queue_cos2bw_qcfg()