Lines Matching refs:my_ets
252 struct ieee_ets *my_ets = bp->ieee_ets; in bnxt_hwrm_queue_pfc_cfg() local
258 if (!my_ets) in bnxt_hwrm_queue_pfc_cfg()
264 (my_ets->prio_tc[pri] == i)) { in bnxt_hwrm_queue_pfc_cfg()
521 struct ieee_ets *my_ets = bp->ieee_ets; in bnxt_dcbnl_ieee_getets() local
526 if (!my_ets) { in bnxt_dcbnl_ieee_getets()
530 my_ets = kzalloc(sizeof(*my_ets), GFP_KERNEL); in bnxt_dcbnl_ieee_getets()
531 if (!my_ets) in bnxt_dcbnl_ieee_getets()
533 rc = bnxt_hwrm_queue_cos2bw_qcfg(bp, my_ets); in bnxt_dcbnl_ieee_getets()
536 rc = bnxt_hwrm_queue_pri2cos_qcfg(bp, my_ets); in bnxt_dcbnl_ieee_getets()
541 bp->ieee_ets = my_ets; in bnxt_dcbnl_ieee_getets()
544 ets->cbs = my_ets->cbs; in bnxt_dcbnl_ieee_getets()
545 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in bnxt_dcbnl_ieee_getets()
546 memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw)); in bnxt_dcbnl_ieee_getets()
547 memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa)); in bnxt_dcbnl_ieee_getets()
548 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
551 kfree(my_ets); in bnxt_dcbnl_ieee_getets()
558 struct ieee_ets *my_ets = bp->ieee_ets; in bnxt_dcbnl_ieee_setets() local
568 if (!my_ets) { in bnxt_dcbnl_ieee_setets()
569 my_ets = kzalloc(sizeof(*my_ets), GFP_KERNEL); in bnxt_dcbnl_ieee_setets()
570 if (!my_ets) in bnxt_dcbnl_ieee_setets()
574 my_ets->prio_tc[i] = IEEE_8021QAZ_MAX_TCS; in bnxt_dcbnl_ieee_setets()
575 bp->ieee_ets = my_ets; in bnxt_dcbnl_ieee_setets()
586 memcpy(my_ets, ets, sizeof(*my_ets)); in bnxt_dcbnl_ieee_setets()