Lines Matching full:qos

2 /* Texas Instruments K3 AM65 Ethernet QoS submodule
18 #include "am65-cpsw-qos.h"
54 struct am65_cpsw_mqprio *p_mqprio = &port->qos.mqprio; in am65_cpsw_tx_pn_shaper_apply()
63 if (p_mqprio->max_rate_total > port->qos.link_speed) in am65_cpsw_tx_pn_shaper_apply()
106 struct am65_cpsw_mqprio *p_mqprio = &port->qos.mqprio; in am65_cpsw_mqprio_verify_shaper()
189 struct am65_cpsw_mqprio *p_mqprio = &port->qos.mqprio; in am65_cpsw_reset_tc_mqprio()
206 struct am65_cpsw_mqprio *p_mqprio = &port->qos.mqprio; in am65_cpsw_setup_mqprio()
273 int verify_time_ms = port->qos.iet.verify_time_ms; in am65_cpsw_iet_set_verify_timeout_count()
312 msleep(port->qos.iet.verify_time_ms); in am65_cpsw_iet_verify_wait()
388 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_iet_commit_preemptible_tcs()
412 preemptible_tcs = port->qos.iet.preemptible_tcs; in am65_cpsw_iet_commit_preemptible_tcs()
420 port->qos.iet.preemptible_tcs = preemptible_tcs; in am65_cpsw_iet_change_preemptible_tcs()
438 return port->qos.est_oper || port->qos.est_admin; in am65_cpsw_port_est_enabled()
547 devm_kfree(&ndev->dev, port->qos.est_oper); in am65_cpsw_admin_to_oper()
549 port->qos.est_oper = port->qos.est_admin; in am65_cpsw_admin_to_oper()
550 port->qos.est_admin = NULL; in am65_cpsw_admin_to_oper()
566 if (port->qos.est_oper && port->qos.est_admin && in am65_cpsw_port_est_get_buf_num()
567 est_new->buf == port->qos.est_oper->buf) in am65_cpsw_port_est_get_buf_num()
596 if (!port->qos.est_admin) in am65_cpsw_est_update_state()
685 port->qos.link_speed); in am65_cpsw_est_check_scheds()
715 port->qos.link_speed); in am65_cpsw_est_set_sched_list()
772 if (!port->qos.est_oper) in am65_cpsw_timer_act()
776 taprio_oper = &port->qos.est_oper->taprio; in am65_cpsw_timer_act()
814 devm_kfree(&ndev->dev, port->qos.est_admin); in am65_cpsw_taprio_destroy()
815 devm_kfree(&ndev->dev, port->qos.est_oper); in am65_cpsw_taprio_destroy()
817 port->qos.est_oper = NULL; in am65_cpsw_taprio_destroy()
818 port->qos.est_admin = NULL; in am65_cpsw_taprio_destroy()
855 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_taprio_replace()
919 devm_kfree(&ndev->dev, port->qos.est_admin); in am65_cpsw_taprio_replace()
920 port->qos.est_admin = est_new; in am65_cpsw_taprio_replace()
940 if (port->qos.link_down_time) { in am65_cpsw_est_link_up()
942 delta = ktime_us_delta(cur_time, port->qos.link_down_time); in am65_cpsw_est_link_up()
1008 struct am65_cpsw_qos *qos = &port->qos; in am65_cpsw_qos_clsflower_add_policer() local
1043 qos->ale_bc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
1044 qos->ale_bc_ratelimit.rate_packet_ps = rate_pkt_ps; in am65_cpsw_qos_clsflower_add_policer()
1051 qos->ale_mc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
1052 qos->ale_mc_ratelimit.rate_packet_ps = rate_pkt_ps; in am65_cpsw_qos_clsflower_add_policer()
1123 struct am65_cpsw_qos *qos = &port->qos; in am65_cpsw_qos_delete_clsflower() local
1125 if (cls->cookie == qos->ale_bc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower()
1126 qos->ale_bc_ratelimit.cookie = 0; in am65_cpsw_qos_delete_clsflower()
1127 qos->ale_bc_ratelimit.rate_packet_ps = 0; in am65_cpsw_qos_delete_clsflower()
1131 if (cls->cookie == qos->ale_mc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower()
1132 qos->ale_mc_ratelimit.cookie = 0; in am65_cpsw_qos_delete_clsflower()
1133 qos->ale_mc_ratelimit.rate_packet_ps = 0; in am65_cpsw_qos_delete_clsflower()
1302 port->qos.link_speed = link_speed; in am65_cpsw_qos_link_up()
1307 port->qos.link_down_time = 0; in am65_cpsw_qos_link_up()
1314 port->qos.link_speed = SPEED_UNKNOWN; in am65_cpsw_qos_link_down()
1318 if (!port->qos.link_down_time) in am65_cpsw_qos_link_down()
1319 port->qos.link_down_time = ktime_get(); in am65_cpsw_qos_link_down()