/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 310 struct tc_cbs_qopt_offload *qopt) in tc_setup_cbs() argument 313 u32 queue = qopt->queue; in tc_setup_cbs() 352 if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) { in tc_setup_cbs() 358 } else if (!qopt->enable) { in tc_setup_cbs() 368 value = div_s64(qopt->idleslope * 1024ll * ptr, speed_div); in tc_setup_cbs() 371 value = div_s64(-qopt->sendslope * 1024ll * ptr, speed_div); in tc_setup_cbs() 374 value = qopt->hicredit * 1024ll * 8; in tc_setup_cbs() 377 value = qopt->locredit * 1024ll * 8; in tc_setup_cbs() 390 queue, qopt->sendslope, qopt->idleslope, in tc_setup_cbs() 391 qopt->hicredit, qopt->locredit); in tc_setup_cbs() [all …]
|
D | stmmac_selftests.c | 1760 struct tc_etf_qopt_offload qopt; in stmmac_test_tbs() local 1776 qopt.enable = true; in stmmac_test_tbs() 1777 qopt.queue = i; in stmmac_test_tbs() 1779 ret = stmmac_tc_setup_etf(priv, priv, &qopt); in stmmac_test_tbs() 1813 qopt.enable = false; in stmmac_test_tbs() 1814 stmmac_tc_setup_etf(priv, priv, &qopt); in stmmac_test_tbs()
|
D | hwif.h | 558 struct tc_cbs_qopt_offload *qopt); 562 struct tc_taprio_qopt_offload *qopt); 564 struct tc_etf_qopt_offload *qopt);
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_mqprio.c | 19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate() 22 if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS) { in cxgb4_mqprio_validate() 31 } else if (mqprio->qopt.num_tc > adap->params.nsched_cls) { in cxgb4_mqprio_validate() 47 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_validate() 48 qoffset = max_t(u16, mqprio->qopt.offset[i], qoffset); in cxgb4_mqprio_validate() 49 qcount += mqprio->qopt.count[i]; in cxgb4_mqprio_validate() 51 start_a = mqprio->qopt.offset[i]; in cxgb4_mqprio_validate() 52 end_a = start_a + mqprio->qopt.count[i] - 1; in cxgb4_mqprio_validate() 53 for (j = i + 1; j < mqprio->qopt.num_tc; j++) { in cxgb4_mqprio_validate() 54 start_b = mqprio->qopt.offset[j]; in cxgb4_mqprio_validate() [all …]
|
D | cxgb4_debugfs.c | 2863 for (tc = 0; tc < port_mqprio->mqprio.qopt.num_tc; tc++) in sge_qinfo_show() 2864 entries += port_mqprio->mqprio.qopt.count[tc]; in sge_qinfo_show() 3170 for (tc = 0; tc < port_mqprio->mqprio.qopt.num_tc; tc++) in sge_queue_entries() 3171 entries += port_mqprio->mqprio.qopt.count[tc]; in sge_queue_entries()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 389 err = aq_validate_mqprio_opt(aq_nic, mqprio, mqprio->qopt.num_tc); in aq_ndo_setup_tc() 393 for (i = 0; i < mqprio->qopt.num_tc; i++) { in aq_ndo_setup_tc() 409 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc() 410 mqprio->qopt.prio_tc_map); in aq_ndo_setup_tc()
|
/drivers/net/ethernet/ti/ |
D | cpsw_priv.c | 931 struct tc_cbs_qopt_offload *qopt) in cpsw_set_cbs() argument 940 tc = netdev_txq_to_tc(priv->ndev, qopt->queue); in cpsw_set_cbs() 953 if (!qopt->enable && !priv->fifo_bw[fifo]) in cpsw_set_cbs() 977 bw = qopt->enable ? qopt->idleslope : 0; in cpsw_set_cbs() 1002 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio() 1017 tc = mqprio->qopt.prio_tc_map[i]; in cpsw_set_mqprio() 1024 count = mqprio->qopt.count[i]; in cpsw_set_mqprio() 1025 offset = mqprio->qopt.offset[i]; in cpsw_set_mqprio() 1030 if (!mqprio->qopt.hw) { in cpsw_set_mqprio() 1036 priv->mqprio_hw = mqprio->qopt.hw; in cpsw_set_mqprio()
|
/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 4869 const struct tc_taprio_qopt_offload *qopt) in validate_schedule() argument 4875 if (qopt->cycle_time_extension) in validate_schedule() 4885 if (!is_base_time_past(qopt->base_time, &now)) in validate_schedule() 4888 for (n = 0; n < qopt->num_entries; n++) { in validate_schedule() 4892 prev = n ? &qopt->entries[n - 1] : NULL; in validate_schedule() 4893 e = &qopt->entries[n]; in validate_schedule() 4919 struct tc_etf_qopt_offload *qopt) in igc_tsn_enable_launchtime() argument 4927 err = igc_save_launchtime_params(adapter, qopt->queue, qopt->enable); in igc_tsn_enable_launchtime() 4935 struct tc_taprio_qopt_offload *qopt) in igc_save_qbv_schedule() argument 4942 if (!qopt->enable) { in igc_save_qbv_schedule() [all …]
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 2578 if (mqprio_qopt->qopt.num_tc > IAVF_MAX_TRAFFIC_CLASS || in iavf_validate_ch_config() 2579 mqprio_qopt->qopt.num_tc < 1) in iavf_validate_ch_config() 2582 for (i = 0; i <= mqprio_qopt->qopt.num_tc - 1; i++) { in iavf_validate_ch_config() 2583 if (!mqprio_qopt->qopt.count[i] || in iavf_validate_ch_config() 2584 mqprio_qopt->qopt.offset[i] != num_qps) in iavf_validate_ch_config() 2615 num_qps += mqprio_qopt->qopt.count[i]; in iavf_validate_ch_config() 2667 num_tc = mqprio_qopt->qopt.num_tc; in __iavf_setup_tc() 2671 if (!mqprio_qopt->qopt.hw) { in __iavf_setup_tc() 2708 mqprio_qopt->qopt.count[i]; in __iavf_setup_tc() 2710 mqprio_qopt->qopt.offset[i]; in __iavf_setup_tc() [all …]
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_qos.c | 303 struct tc_etf_qopt_offload *qopt = type_data; in enetc_setup_tc_txtime() local 311 tc = qopt->queue; in enetc_setup_tc_txtime() 324 priv->tx_ring[tc]->tsd_enable = qopt->enable; in enetc_setup_tc_txtime() 325 enetc_port_wr(hw, ENETC_PTCTSDR(tc), qopt->enable ? ENETC_TSDE : 0); in enetc_setup_tc_txtime()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 2559 struct tc_cbs_qopt_offload *qopt) in igb_offload_cbs() argument 2569 if (qopt->queue < 0 || qopt->queue > 1) in igb_offload_cbs() 2572 err = igb_save_cbs_params(adapter, qopt->queue, qopt->enable, in igb_offload_cbs() 2573 qopt->idleslope, qopt->sendslope, in igb_offload_cbs() 2574 qopt->hicredit, qopt->locredit); in igb_offload_cbs() 2578 igb_offload_apply(adapter, qopt->queue); in igb_offload_cbs() 2794 struct tc_etf_qopt_offload *qopt) in igb_offload_txtime() argument 2804 if (qopt->queue < 0 || qopt->queue > 1) in igb_offload_txtime() 2807 err = igb_save_txtime_params(adapter, qopt->queue, qopt->enable); in igb_offload_txtime() 2811 igb_offload_apply(adapter, qopt->queue); in igb_offload_txtime()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_main.c | 1815 vsi->tc_config.numtc = vsi->mqprio_qopt.qopt.num_tc; in i40e_vsi_setup_queue_map_mqprio() 1817 num_qps = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio() 1827 max_qcount = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio() 1831 offset = vsi->mqprio_qopt.qopt.offset[i]; in i40e_vsi_setup_queue_map_mqprio() 1832 qcount = vsi->mqprio_qopt.qopt.count[i]; in i40e_vsi_setup_queue_map_mqprio() 1874 override_q = vsi->mqprio_qopt.qopt.count[0]; in i40e_vsi_setup_queue_map_mqprio() 5269 u8 num_tc = vsi->mqprio_qopt.qopt.num_tc; in i40e_mqprio_get_enabled_tc() 5291 return pf->vsi[pf->lan_vsi]->mqprio_qopt.qopt.num_tc; in i40e_pf_get_num_tc() 5421 if (!vsi->mqprio_qopt.qopt.hw && !(pf->flags & I40E_FLAG_DCB_ENABLED)) { in i40e_vsi_configure_bw_alloc() 5662 if (!vsi->mqprio_qopt.qopt.hw && vsi->reconfig_rss) { in i40e_vsi_config_tc() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1747 u8 *prio_tc = mqprio_qopt->qopt.prio_tc_map; in hns3_setup_tc() 1749 u8 tc = mqprio_qopt->qopt.num_tc; in hns3_setup_tc() 1751 u8 hw = mqprio_qopt->qopt.hw; in hns3_setup_tc()
|