Lines Matching full:qos
399 struct lan966x_port_qos_pcp *qos) in lan966x_port_qos_pcp_set() argument
401 u8 *pcp_itr = qos->map; in lan966x_port_qos_pcp_set()
404 lan_rmw(ANA_QOS_CFG_QOS_PCP_ENA_SET(qos->enable), in lan966x_port_qos_pcp_set()
409 for (int i = 0; i < ARRAY_SIZE(qos->map); i++) { in lan966x_port_qos_pcp_set()
423 struct lan966x_port_qos_dscp *qos) in lan966x_port_qos_dscp_set() argument
427 /* Enable/disable dscp for qos classification. */ in lan966x_port_qos_dscp_set()
428 lan_rmw(ANA_QOS_CFG_QOS_DSCP_ENA_SET(qos->enable), in lan966x_port_qos_dscp_set()
433 for (int i = 0; i < ARRAY_SIZE(qos->map); i++) in lan966x_port_qos_dscp_set()
435 ANA_DSCP_CFG_QOS_DSCP_VAL_SET(*(qos->map + i)), in lan966x_port_qos_dscp_set()
441 for (int i = 0; i < ARRAY_SIZE(qos->map); i++) in lan966x_port_qos_dscp_set()
442 lan_rmw(ANA_DSCP_CFG_DSCP_TRUST_ENA_SET(qos->enable), in lan966x_port_qos_dscp_set()
448 struct lan966x_port_qos *qos) in lan966x_port_qos_default_set() argument
452 ANA_QOS_CFG_QOS_DEFAULT_VAL_SET(qos->default_prio), in lan966x_port_qos_default_set()
468 struct lan966x_port_qos_pcp_rewr *qos) in lan966x_port_qos_pcp_rewr_set() argument
473 if (qos->enable) in lan966x_port_qos_pcp_rewr_set()
486 for (int i = 0; i < ARRAY_SIZE(qos->map); i++) { in lan966x_port_qos_pcp_rewr_set()
487 pcp = qos->map[i]; in lan966x_port_qos_pcp_rewr_set()
504 struct lan966x_port_qos_dscp_rewr *qos) in lan966x_port_qos_dscp_rewr_set() argument
509 if (qos->enable) in lan966x_port_qos_dscp_rewr_set()
519 /* Map each classified Qos class and DP to classified DSCP value */ in lan966x_port_qos_dscp_rewr_set()
520 for (int i = 0; i < ARRAY_SIZE(qos->map); i++) { in lan966x_port_qos_dscp_rewr_set()
521 dscp = qos->map[i]; in lan966x_port_qos_dscp_rewr_set()
538 struct lan966x_port_qos *qos) in lan966x_port_qos_set() argument
540 lan966x_port_qos_pcp_set(port, &qos->pcp); in lan966x_port_qos_set()
541 lan966x_port_qos_dscp_set(port, &qos->dscp); in lan966x_port_qos_set()
542 lan966x_port_qos_default_set(port, qos); in lan966x_port_qos_set()
543 lan966x_port_qos_pcp_rewr_set(port, &qos->pcp_rewr); in lan966x_port_qos_set()
544 lan966x_port_qos_dscp_rewr_set(port, &qos->dscp_rewr); in lan966x_port_qos_set()