Lines Matching full:qos

2 /* Texas Instruments K3 AM65 Ethernet QoS submodule
14 #include "am65-cpsw-qos.h"
60 return port->qos.est_oper || port->qos.est_admin; in am65_cpsw_port_est_enabled()
169 devm_kfree(&ndev->dev, port->qos.est_oper); in am65_cpsw_admin_to_oper()
171 port->qos.est_oper = port->qos.est_admin; in am65_cpsw_admin_to_oper()
172 port->qos.est_admin = NULL; in am65_cpsw_admin_to_oper()
188 if (port->qos.est_oper && port->qos.est_admin && in am65_cpsw_port_est_get_buf_num()
189 est_new->buf == port->qos.est_oper->buf) in am65_cpsw_port_est_get_buf_num()
218 if (!port->qos.est_admin) in am65_cpsw_est_update_state()
307 port->qos.link_speed); in am65_cpsw_est_check_scheds()
337 port->qos.link_speed); in am65_cpsw_est_set_sched_list()
394 if (!port->qos.est_oper) in am65_cpsw_timer_act()
398 taprio_oper = &port->qos.est_oper->taprio; in am65_cpsw_timer_act()
436 devm_kfree(&ndev->dev, port->qos.est_admin); in am65_cpsw_purge_est()
437 devm_kfree(&ndev->dev, port->qos.est_oper); in am65_cpsw_purge_est()
439 port->qos.est_oper = NULL; in am65_cpsw_purge_est()
440 port->qos.est_admin = NULL; in am65_cpsw_purge_est()
523 devm_kfree(&ndev->dev, port->qos.est_admin); in am65_cpsw_set_taprio()
525 port->qos.est_admin = est_new; in am65_cpsw_set_taprio()
543 port->qos.link_speed = link_speed; in am65_cpsw_est_link_up()
547 if (port->qos.link_down_time) { in am65_cpsw_est_link_up()
549 delta = ktime_us_delta(cur_time, port->qos.link_down_time); in am65_cpsw_est_link_up()
582 if (port->qos.link_speed == SPEED_UNKNOWN) in am65_cpsw_setup_taprio()
596 struct am65_cpsw_qos *qos = &port->qos; in am65_cpsw_qos_clsflower_add_policer() local
628 qos->ale_bc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
629 qos->ale_bc_ratelimit.rate_packet_ps = rate_pkt_ps; in am65_cpsw_qos_clsflower_add_policer()
636 qos->ale_mc_ratelimit.cookie = cls->cookie; in am65_cpsw_qos_clsflower_add_policer()
637 qos->ale_mc_ratelimit.rate_packet_ps = rate_pkt_ps; in am65_cpsw_qos_clsflower_add_policer()
708 struct am65_cpsw_qos *qos = &port->qos; in am65_cpsw_qos_delete_clsflower() local
710 if (cls->cookie == qos->ale_bc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower()
711 qos->ale_bc_ratelimit.cookie = 0; in am65_cpsw_qos_delete_clsflower()
712 qos->ale_bc_ratelimit.rate_packet_ps = 0; in am65_cpsw_qos_delete_clsflower()
716 if (cls->cookie == qos->ale_mc_ratelimit.cookie) { in am65_cpsw_qos_delete_clsflower()
717 qos->ale_mc_ratelimit.cookie = 0; in am65_cpsw_qos_delete_clsflower()
718 qos->ale_mc_ratelimit.rate_packet_ps = 0; in am65_cpsw_qos_delete_clsflower()
785 port->qos.link_down_time = 0; in am65_cpsw_qos_link_up()
795 if (!port->qos.link_down_time) in am65_cpsw_qos_link_down()
796 port->qos.link_down_time = ktime_get(); in am65_cpsw_qos_link_down()
798 port->qos.link_speed = SPEED_UNKNOWN; in am65_cpsw_qos_link_down()