/linux/drivers/base/power/ |
H A D | qos-test.c | 11 struct freq_constraints qos; in freq_qos_test_min() local 15 freq_constraints_init(&qos); in freq_qos_test_min() 19 ret = freq_qos_add_request(&qos, &req1, FREQ_QOS_MIN, 1000); in freq_qos_test_min() 21 ret = freq_qos_add_request(&qos, &req2, FREQ_QOS_MIN, 2000); in freq_qos_test_min() 24 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 2000); in freq_qos_test_min() 28 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 1000); in freq_qos_test_min() 32 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), in freq_qos_test_min() 39 struct freq_constraints qos; in freq_qos_test_maxdef() local 43 freq_constraints_init(&qos); in freq_qos_test_maxdef() 46 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), in freq_qos_test_maxdef() [all …]
|
/linux/net/atm/ |
H A D | common.c | 104 return (vcc->qos.txtp.max_sdu + in vcc_writable() 159 vcc->qos.txtp.max_sdu = 1 << 16; /* for meta VCs */ in vcc_create() 324 walk->vci == vci && ((walk->qos.txtp.traffic_class != in check_ci() 325 ATM_NONE && vcc->qos.txtp.traffic_class != ATM_NONE) || in check_ci() 326 (walk->qos.rxtp.traffic_class != ATM_NONE && in check_ci() 327 vcc->qos.rxtp.traffic_class != ATM_NONE))) in check_ci() 408 switch (vcc->qos.aal) { in __vcc_connect() 419 vcc->qos.aal = ATM_AAL5; in __vcc_connect() 429 error = adjust_tp(&vcc->qos.txtp, vcc->qos.aal); in __vcc_connect() 431 error = adjust_tp(&vcc->qos.rxtp, vcc->qos.aal); in __vcc_connect() [all …]
|
H A D | mpc.c | 177 struct atm_mpoa_qos *atm_mpoa_add_qos(__be32 dst_ip, struct atm_qos *qos) in atm_mpoa_add_qos() argument 183 entry->qos = *qos; in atm_mpoa_add_qos() 194 entry->qos = *qos; in atm_mpoa_add_qos() 204 struct atm_mpoa_qos *qos; in atm_mpoa_search_qos() local 206 qos = qos_head; in atm_mpoa_search_qos() 207 while (qos) { in atm_mpoa_search_qos() 208 if (qos->ipaddr == dst_ip) in atm_mpoa_search_qos() 210 qos = qos->next; in atm_mpoa_search_qos() 213 return qos; in atm_mpoa_search_qos() 247 struct atm_mpoa_qos *qos; in atm_mpoa_disp_qos() local [all …]
|
H A D | mpoa_proc.c | 250 struct atm_qos qos; in parse_qos() local 252 memset(&qos, 0, sizeof(struct atm_qos)); in parse_qos() 269 qos.txtp.traffic_class = ATM_CBR; in parse_qos() 270 qos.txtp.max_pcr = tx_pcr; in parse_qos() 271 qos.txtp.max_sdu = tx_sdu; in parse_qos() 272 qos.rxtp.traffic_class = ATM_CBR; in parse_qos() 273 qos.rxtp.max_pcr = rx_pcr; in parse_qos() 274 qos.rxtp.max_sdu = rx_sdu; in parse_qos() 275 qos.aal = ATM_AAL5; in parse_qos() 277 qos.txtp.max_pcr, qos.txtp.max_sdu, in parse_qos() [all …]
|
H A D | mpoa_caches.c | 135 struct atm_mpoa_qos *qos; in cache_hit() local 147 qos = atm_mpoa_search_qos(entry->ctrl_info.in_dst_ip); in cache_hit() 148 if (qos != NULL) in cache_hit() 149 msg.qos = qos->qos; in cache_hit() 170 qos = atm_mpoa_search_qos(entry->ctrl_info.in_dst_ip); in cache_hit() 171 if (qos != NULL) in cache_hit() 172 msg.qos = qos->qos; in cache_hit() 252 struct atm_mpoa_qos *qos; in check_resolving_entries() local 286 qos = atm_mpoa_search_qos(entry->ctrl_info.in_dst_ip); in check_resolving_entries() 287 if (qos != NULL) in check_resolving_entries() [all …]
|
H A D | signaling.c | 49 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos() 94 session_vcc->qos = msg->qos; in sigd_send() 144 const struct sockaddr_atmsvc *svc, const struct atm_qos *qos, in sigd_enq2() argument 159 if (qos) in sigd_enq2() 160 msg->qos = *qos; in sigd_enq2() 183 sigd_enq2(vcc, type, listen_vcc, pvc, svc, vcc ? &vcc->qos : NULL, 0); in sigd_enq()
|
/linux/kernel/power/ |
H A D | qos.c | 245 return req->qos == &cpu_latency_constraints; in cpu_latency_qos_request_active() 252 int ret = pm_qos_update_target(req->qos, &req->node, action, value); in cpu_latency_qos_apply() 281 req->qos = &cpu_latency_constraints; in cpu_latency_qos_add_request() 443 void freq_constraints_init(struct freq_constraints *qos) in freq_constraints_init() argument 447 c = &qos->min_freq; in freq_constraints_init() 453 c->notifiers = &qos->min_freq_notifiers; in freq_constraints_init() 456 c = &qos->max_freq; in freq_constraints_init() 462 c->notifiers = &qos->max_freq_notifiers; in freq_constraints_init() 471 s32 freq_qos_read_value(struct freq_constraints *qos, in freq_qos_read_value() argument 478 ret = IS_ERR_OR_NULL(qos) ? in freq_qos_read_value() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | qos.c | 24 mutex_lock(&esw->qos.domain->lock); in esw_qos_lock() 29 mutex_unlock(&esw->qos.domain->lock); in esw_qos_unlock() 34 lockdep_assert_held(&esw->qos.domain->lock); in esw_assert_qos_lock_held() 53 esw->qos.domain = esw_qos_domain_alloc(); in esw_qos_domain_init() 55 return esw->qos.domain ? 0 : -ENOMEM; in esw_qos_domain_init() 60 kfree(esw->qos.domain); in esw_qos_domain_release() 61 esw->qos.domain = NULL; in esw_qos_domain_release() 106 kfree(vport->qos.sched_node); in mlx5_esw_qos_vport_qos_free() 107 memset(&vport->qos, 0, sizeof(vport->qos)); in mlx5_esw_qos_vport_qos_free() 112 if (!vport->qos.sched_node) in mlx5_esw_qos_vport_get_sched_elem_ix() [all …]
|
/linux/drivers/infiniband/hw/irdma/ |
H A D | ws.c | 46 node->traffic_class = vsi->qos[user_pri].traffic_class; in irdma_alloc_node() 48 node->rel_bw = vsi->qos[user_pri].rel_bw; in irdma_alloc_node() 52 node->lan_qs_handle = vsi->qos[user_pri].lan_qos_handle; in irdma_alloc_node() 113 vsi->qos[node->user_pri].qs_handle = node_info.qs_handle; in irdma_ws_cqp_cmd() 160 mutex_lock(&vsi->qos[user_pri].qos_mutex); in irdma_tc_in_use() 161 if (!list_empty(&vsi->qos[user_pri].qplist)) { in irdma_tc_in_use() 162 mutex_unlock(&vsi->qos[user_pri].qos_mutex); in irdma_tc_in_use() 170 if (vsi->qos[i].traffic_class == vsi->qos[user_pri].traffic_class && in irdma_tc_in_use() 171 !list_empty(&vsi->qos[i].qplist)) { in irdma_tc_in_use() 172 mutex_unlock(&vsi->qos[user_pri].qos_mutex); in irdma_tc_in_use() [all …]
|
/linux/net/bluetooth/ |
H A D | hci_conn.c | 1429 static int qos_set_big(struct hci_dev *hdev, struct bt_iso_qos *qos) in qos_set_big() argument 1435 if (qos->bcast.big == BT_ISO_QOS_BIG_UNSET) { in qos_set_big() 1447 qos->bcast.big = big; in qos_set_big() 1453 static int qos_set_bis(struct hci_dev *hdev, struct bt_iso_qos *qos) in qos_set_bis() argument 1459 if (qos->bcast.bis == BT_ISO_QOS_BIS_UNSET) { in qos_set_bis() 1460 if (qos->bcast.big != BT_ISO_QOS_BIG_UNSET) { in qos_set_bis() 1461 conn = hci_conn_hash_lookup_big(hdev, qos->bcast.big); in qos_set_bis() 1467 qos->bcast.bis = conn->iso_qos.bcast.bis; in qos_set_bis() 1487 qos->bcast.bis = bis; in qos_set_bis() 1495 struct bt_iso_qos *qos, __u8 base_len, in hci_add_bis() argument [all …]
|
H A D | iso.c | 71 struct bt_iso_qos qos; member 80 static bool check_ucast_qos(struct bt_iso_qos *qos); 81 static bool check_bcast_qos(struct bt_iso_qos *qos); 354 if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) { in iso_connect_bis() 355 iso_pi(sk)->qos = default_qos; in iso_connect_bis() 361 if (!iso_pi(sk)->qos.bcast.out.phy) { in iso_connect_bis() 369 &iso_pi(sk)->qos, iso_pi(sk)->base_len, in iso_connect_bis() 378 &iso_pi(sk)->qos, iso_pi(sk)->base_len, in iso_connect_bis() 445 if (iso_pi(sk)->qos_user_set && !check_ucast_qos(&iso_pi(sk)->qos)) { in iso_connect_cis() 446 iso_pi(sk)->qos = default_qos; in iso_connect_cis() [all …]
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_port.c | 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 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() [all …]
|
H A D | lan966x_dcb.c | 52 struct lan966x_port_qos qos = {0}; in lan966x_dcb_app_update() local 58 for (int i = 0; i < ARRAY_SIZE(qos.pcp.map); i++) { in lan966x_dcb_app_update() 61 qos.pcp.map[i] = dcb_getapp(dev, &app_itr); in lan966x_dcb_app_update() 65 for (int i = 0; i < ARRAY_SIZE(qos.dscp.map); i++) { in lan966x_dcb_app_update() 68 qos.dscp.map[i] = dcb_getapp(dev, &app_itr); in lan966x_dcb_app_update() 72 qos.default_prio = dcb_ieee_getapp_default_prio_mask(dev); in lan966x_dcb_app_update() 73 if (qos.default_prio) in lan966x_dcb_app_update() 74 qos.default_prio = fls(qos.default_prio) - 1; in lan966x_dcb_app_update() 83 qos.pcp_rewr.map[i] = fls(pcp_rewr_map.map[i]) - 1; in lan966x_dcb_app_update() 93 qos.dscp_rewr.map[i] = fls64(dscp_rewr_map.map[i]) - 1; in lan966x_dcb_app_update() [all …]
|
/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-qos.c | 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() [all …]
|
/linux/drivers/interconnect/qcom/ |
H A D | icc-rpm.c | 58 struct qcom_icc_qos *qos = &qn->qos; in qcom_icc_set_qnoc_qos() local 62 qp->qos_offset + QNOC_QOS_MCTL_LOWn_ADDR(qos->qos_port), in qcom_icc_set_qnoc_qos() 64 qos->areq_prio << QNOC_QOS_MCTL_DFLT_PRIO_SHIFT); in qcom_icc_set_qnoc_qos() 69 qp->qos_offset + QNOC_QOS_MCTL_LOWn_ADDR(qos->qos_port), in qcom_icc_set_qnoc_qos() 71 !!qos->urg_fwd_en << QNOC_QOS_MCTL_URGFWD_EN_SHIFT); in qcom_icc_set_qnoc_qos() 75 struct qcom_icc_qos *qos, in qcom_icc_bimc_set_qos_health() argument 81 val = qos->prio_level; in qcom_icc_bimc_set_qos_health() 84 val |= qos->areq_prio << M_BKE_HEALTH_CFG_AREQPRIO_SHIFT; in qcom_icc_bimc_set_qos_health() 89 val |= qos->limit_commands << M_BKE_HEALTH_CFG_LIMITCMDS_SHIFT; in qcom_icc_bimc_set_qos_health() 94 qp->qos_offset + M_BKE_HEALTH_CFG_ADDR(regnum, qos->qos_port), in qcom_icc_bimc_set_qos_health() [all …]
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-wqe.h | 483 uint64_t qos:3; member 499 uint64_t qos:3; 519 uint64_t qos:3; member 538 uint64_t qos:3; 640 int qos; in cvmx_wqe_get_qos() local 643 qos = work->word1.cn68xx.qos; in cvmx_wqe_get_qos() 645 qos = work->word1.cn38xx.qos; in cvmx_wqe_get_qos() 647 return qos; in cvmx_wqe_get_qos() 650 static inline void cvmx_wqe_set_qos(struct cvmx_wqe *work, int qos) in cvmx_wqe_set_qos() argument 653 work->word1.cn68xx.qos = qos; in cvmx_wqe_set_qos() [all …]
|
H A D | cvmx-pip.h | 267 uint64_t qos:3; member 318 uint64_t match_value, uint64_t qos) 325 watcher_config.s.qos = qos; 338 uint64_t qos) in cvmx_pip_config_vlan_qos() argument 342 pip_qos_vlanx.s.qos = qos; in cvmx_pip_config_vlan_qos() 352 static inline void cvmx_pip_config_diffserv_qos(uint64_t diffserv, uint64_t qos) in cvmx_pip_config_diffserv_qos() argument 356 pip_qos_diffx.s.qos = qos; in cvmx_pip_config_diffserv_qos()
|
/linux/drivers/pmdomain/imx/ |
H A D | imx93-blk-ctrl.c | 77 struct imx93_blk_ctrl_qos qos[DOMAIN_MAX_QOS]; member 105 const struct imx93_blk_ctrl_qos *qos; in imx93_blk_ctrl_set_qos() local 110 qos = &data->qos[i]; in imx93_blk_ctrl_set_qos() 112 mask = PRIO_MASK << qos->cfg_off; in imx93_blk_ctrl_set_qos() 113 mask |= PRIO_MASK << (qos->cfg_off + 4); in imx93_blk_ctrl_set_qos() 114 val = qos->cfg_prio << qos->cfg_off; in imx93_blk_ctrl_set_qos() 115 val |= qos->default_prio << (qos->cfg_off + 4); in imx93_blk_ctrl_set_qos() 117 regmap_write_bits(bc->regmap, qos->reg, mask, val); in imx93_blk_ctrl_set_qos() 119 dev_dbg(bc->dev, "data->qos[i].reg 0x%x 0x%x\n", qos->reg, val); in imx93_blk_ctrl_set_qos() 347 .qos = { [all …]
|
/linux/include/linux/ |
H A D | pm_qos.h | 63 struct pm_qos_constraints *qos; member 95 struct freq_constraints *qos; member 197 return dev->power.qos->resume_latency_req->data.pnode.prio; in dev_pm_qos_requested_resume_latency() 202 return dev->power.qos->flags_req->data.flr.flags; in dev_pm_qos_requested_flags() 207 return IS_ERR_OR_NULL(dev->power.qos) ? in dev_pm_qos_raw_resume_latency() 209 pm_qos_read_value(&dev->power.qos->resume_latency); in dev_pm_qos_raw_resume_latency() 296 return !IS_ERR_OR_NULL(req->qos); in freq_qos_request_active() 299 void freq_constraints_init(struct freq_constraints *qos); 301 s32 freq_qos_read_value(struct freq_constraints *qos, 304 int freq_qos_add_request(struct freq_constraints *qos, [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3588-base.dtsi | 1414 qos_gpu_m0: qos@fdf35000 { 1415 compatible = "rockchip,rk3588-qos", "syscon"; 1419 qos_gpu_m1: qos@fdf35200 { 1420 compatible = "rockchip,rk3588-qos", "syscon"; 1424 qos_gpu_m2: qos@fdf35400 { 1425 compatible = "rockchip,rk3588-qos", "syscon"; 1429 qos_gpu_m3: qos@fdf35600 { 1430 compatible = "rockchip,rk3588-qos", "syscon"; 1434 qos_rga3_1: qos@fdf36000 { 1435 compatible = "rockchip,rk3588-qos", "syscon"; [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_port.c | 1208 struct sparx5_port_qos *qos) in sparx5_port_qos_set() argument 1210 sparx5_port_qos_dscp_set(port, &qos->dscp); in sparx5_port_qos_set() 1211 sparx5_port_qos_pcp_set(port, &qos->pcp); in sparx5_port_qos_set() 1212 sparx5_port_qos_pcp_rewr_set(port, &qos->pcp_rewr); in sparx5_port_qos_set() 1213 sparx5_port_qos_dscp_rewr_set(port, &qos->dscp_rewr); in sparx5_port_qos_set() 1214 sparx5_port_qos_default_set(port, qos); in sparx5_port_qos_set() 1220 struct sparx5_port_qos_pcp_rewr *qos) in sparx5_port_qos_pcp_rewr_set() argument 1230 if (qos->enable) in sparx5_port_qos_pcp_rewr_set() 1238 for (i = 0; i < ARRAY_SIZE(qos->map.map); i++) { in sparx5_port_qos_pcp_rewr_set() 1240 pcp = qos->map.map[i]; in sparx5_port_qos_pcp_rewr_set() [all …]
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3xxx.dtsi | 129 qos_gpu: qos@1012d000 { 130 compatible = "rockchip,rk3066-qos", "syscon"; 134 qos_vpu: qos@1012e000 { 135 compatible = "rockchip,rk3066-qos", "syscon"; 139 qos_lcdc0: qos@1012f000 { 140 compatible = "rockchip,rk3066-qos", "syscon"; 144 qos_cif0: qos@1012f080 { 145 compatible = "rockchip,rk3066-qos", "syscon"; 149 qos_ipp: qos@1012f100 { 150 compatible = "rockchip,rk3066-qos", "syscon"; [all …]
|
/linux/drivers/atm/ |
H A D | iphase.c | 245 if (vcc->qos.txtp.traffic_class == ATM_ABR) { in clear_lockup() 475 if (vcc->qos.txtp.max_pcr <= 0) { in ia_cbr_setup() 479 rate = vcc->qos.txtp.max_pcr; in ia_cbr_setup() 1383 if (vcc->qos.rxtp.traffic_class == ATM_NONE) return 0; 1385 if (vcc->qos.rxtp.traffic_class == ATM_ABR) { 1400 if ((vcc->qos.rxtp.traffic_class == ATM_ABR) || 1401 (vcc->qos.txtp.traffic_class == ATM_ABR)) 1727 if (vcc->qos.txtp.pcr >= iadev->rate_limit) { 1756 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0; 1760 if (vcc->qos.txtp.traffic_class == ATM_ABR) { [all …]
|
H A D | fore200e.c | 973 if ((vcc->qos.aal == ATM_AAL0) && (vcc->qos.rxtp.max_sdu == ATM_AAL0_SDU)) { in fore200e_push_rpd() 1228 enum fore200e_aal aal = fore200e_atm2fore_aal(vcc->qos.aal); in fore200e_activate_vcin() 1285 fore200e_rate_ctrl(struct atm_qos* qos, struct tpd_rate* rate) in fore200e_rate_ctrl() argument 1287 if (qos->txtp.max_pcr < ATM_OC3_PCR) { in fore200e_rate_ctrl() 1290 rate->data_cells = qos->txtp.max_pcr * FORE200E_MAX_BACK2BACK_CELLS / ATM_OC3_PCR; in fore200e_rate_ctrl() 1338 vcc->itf, vcc->vpi, vcc->vci, fore200e_atm2fore_aal(vcc->qos.aal), in fore200e_open() 1339 fore200e_traffic_class[ vcc->qos.txtp.traffic_class ], in fore200e_open() 1340 vcc->qos.txtp.min_pcr, vcc->qos.txtp.max_pcr, vcc->qos.txtp.max_cdv, vcc->qos.txtp.max_sdu, in fore200e_open() 1341 fore200e_traffic_class[ vcc->qos.rxtp.traffic_class ], in fore200e_open() 1342 vcc->qos.rxtp.min_pcr, vcc->qos.rxtp.max_pcr, vcc->qos.rxtp.max_cdv, vcc->qos.rxtp.max_sdu); in fore200e_open() [all …]
|
/linux/net/mac80211/ |
H A D | wme.c | 152 bool qos; in ieee80211_select_queue() local 161 qos = true; in ieee80211_select_queue() 163 qos = sta->sta.wme; in ieee80211_select_queue() 165 qos = false; in ieee80211_select_queue() 167 if (!qos) { in ieee80211_select_queue()
|