tm_info 18 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->tm_info.tc_info[i].tc_sch_mode = tm_info 20 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; tm_info 23 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->tm_info.tc_info[i].tc_sch_mode = tm_info 25 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->tm_info.pg_info[0].tc_dwrr[i] = tm_info 53 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; tm_info 54 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; tm_info 56 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (hdev->tm_info.tc_info[i].tc_sch_mode == tm_info 116 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) tm_info 130 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (hdev->tm_info.tc_info[i].tc_sch_mode != tm_info 135 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (hdev->tm_info.tc_info[i].tc_sch_mode != tm_info 151 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (*tc != hdev->tm_info.num_tc) tm_info 193 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c ret = client->ops->setup_tc(handle, hdev->tm_info.num_tc); tm_info 289 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c prio_tc = hdev->tm_info.prio_tc; tm_info 290 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c pfc_map = hdev->tm_info.hw_pfc_map; tm_info 293 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 327 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (pfc->pfc_en == hdev->tm_info.pfc_en) tm_info 330 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c prio_tc = hdev->tm_info.prio_tc; tm_info 333 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 342 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->tm_info.hw_pfc_map = pfc_map; tm_info 343 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->tm_info.pfc_en = pfc->pfc_en; tm_info 347 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); tm_info 1349 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->tm_info.num_pg = 1; tm_info 1351 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->tm_info.hw_pfc_map = 0; tm_info 1382 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->tm_info.num_tc = 1; tm_info 1385 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (i = 0; i < hdev->tm_info.num_tc; i++) tm_info 1520 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport->alloc_tqps / hdev->tm_info.num_tc); tm_info 1524 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c (hdev->num_nic_msi - 1) / hdev->tm_info.num_tc); tm_info 1738 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if ((hdev->tm_info.hw_pfc_map & BIT(i)) && tm_info 1757 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c !(hdev->tm_info.hw_pfc_map & BIT(i)) && tm_info 1901 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (hdev->tm_info.hw_pfc_map & BIT(i)) { tm_info 1930 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c !(hdev->tm_info.hw_pfc_map & mask)) { tm_info 1960 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->tm_info.hw_pfc_map & mask) { tm_info 8620 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (hdev->tm_info.fc_mode == HCLGE_FC_PFC) tm_info 8672 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (hdev->tm_info.fc_mode == HCLGE_FC_PFC) { tm_info 8678 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (hdev->tm_info.fc_mode == HCLGE_FC_RX_PAUSE) { tm_info 8681 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c } else if (hdev->tm_info.fc_mode == HCLGE_FC_TX_PAUSE) { tm_info 8684 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c } else if (hdev->tm_info.fc_mode == HCLGE_FC_FULL) { tm_info 8705 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->tm_info.fc_mode = hdev->fc_mode_last_time; tm_info 8725 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (hdev->tm_info.fc_mode == HCLGE_FC_PFC) { tm_info 757 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h struct hclge_tm_info tm_info; tm_info 231 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c tc = hdev->tm_info.prio_tc[pri_id]; tm_info 233 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (tc >= hdev->tm_info.num_tc) tm_info 454 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.pg_info[pg_id].pg_sch_mode == HCLGE_SCH_MODE_DWRR) tm_info 470 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.tc_info[pri_id].tc_sch_mode == HCLGE_SCH_MODE_DWRR) tm_info 525 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc); tm_info 526 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c vport->qs_offset = (vport->vport_id ? hdev->tm_info.num_tc : 0) + tm_info 556 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c vport->bw_limit = hdev->tm_info.pg_info[0].bw_limit; tm_info 573 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c memcpy(kinfo->prio_tc, hdev->tm_info.prio_tc, tm_info 593 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 594 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.tc_info[i].tc_id = i; tm_info 595 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.tc_info[i].tc_sch_mode = HCLGE_SCH_MODE_DWRR; tm_info 596 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.tc_info[i].pgid = 0; tm_info 597 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.tc_info[i].bw_limit = tm_info 598 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[0].bw_limit; tm_info 602 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.prio_tc[i] = tm_info 603 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c (i >= hdev->tm_info.num_tc) ? 0 : i; tm_info 608 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.num_tc > 1 || hdev->tm_info.pfc_en) tm_info 620 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_pg; i++) { tm_info 623 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_dwrr[i] = i ? 0 : BW_PERCENT; tm_info 625 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[i].pg_id = i; tm_info 626 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[i].pg_sch_mode = HCLGE_SCH_MODE_DWRR; tm_info 628 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[i].bw_limit = HCLGE_ETHER_MAX_RATE; tm_info 633 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[i].tc_bit_map = hdev->hw_tc_map; tm_info 634 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (k = 0; k < hdev->tm_info.num_tc; k++) tm_info 635 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[i].tc_dwrr[k] = BW_PERCENT; tm_info 646 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.fc_mode = hdev->fc_mode_last_time; tm_info 647 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c } else if (hdev->tm_info.fc_mode != HCLGE_FC_PFC) { tm_info 652 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->fc_mode_last_time = hdev->tm_info.fc_mode; tm_info 653 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.fc_mode = HCLGE_FC_PFC; tm_info 676 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_pg; i++) { tm_info 679 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev, i, hdev->tm_info.pg_info[i].tc_bit_map); tm_info 699 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_pg; i++) { tm_info 702 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[i].bw_limit, tm_info 740 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_pg; i++) { tm_info 742 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c ret = hclge_tm_pg_weight_cfg(hdev, i, hdev->tm_info.pg_dwrr[i]); tm_info 826 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 828 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.tc_info[i].bw_limit, tm_info 895 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.tc_info[i].bw_limit, tm_info 952 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 954 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; tm_info 994 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; tm_info 1019 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pg_info[0].tc_dwrr[i]); tm_info 1124 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_pg; i++) { tm_info 1148 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c u8 sch_mode = hdev->tm_info.tc_info[i].tc_sch_mode; tm_info 1166 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 1239 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.fc_mode == HCLGE_FC_PFC) tm_info 1244 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.pfc_en); tm_info 1284 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c switch (hdev->tm_info.fc_mode) { tm_info 1318 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { tm_info 1366 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.prio_tc[i] = prio_tc[i]; tm_info 1380 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.num_tc = num_tc; tm_info 1382 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) tm_info 1387 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.num_tc = 1; tm_info 1400 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.num_tc > 1 || hdev->tm_info.pfc_en) tm_info 1430 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.fc_mode = HCLGE_FC_FULL; tm_info 1431 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->fc_mode_last_time = hdev->tm_info.fc_mode; tm_info 1434 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.num_pg != 1)