| /kernel/linux/linux-6.6/drivers/interconnect/qcom/ |
| D | msm8996.c | 3 * Qualcomm MSM8996 Network-on-Chip (NoC) QoS driver 46 .qos.ap_owned = true, 47 .qos.qos_mode = NOC_QOS_MODE_FIXED, 48 .qos.areq_prio = 1, 49 .qos.prio_level = 1, 50 .qos.qos_port = 0, 61 .qos.ap_owned = true, 62 .qos.qos_mode = NOC_QOS_MODE_FIXED, 63 .qos.areq_prio = 1, 64 .qos.prio_level = 1, [all …]
|
| D | qcm2290.c | 3 * Qualcomm QCM2290 Network-on-Chip (NoC) QoS driver 110 .qos.ap_owned = true, 111 .qos.qos_port = 0, 112 .qos.qos_mode = NOC_QOS_MODE_FIXED, 113 .qos.prio_level = 0, 114 .qos.areq_prio = 0, 129 .qos.ap_owned = true, 130 .qos.qos_port = 2, 131 .qos.qos_mode = NOC_QOS_MODE_BYPASS, 146 .qos.ap_owned = true, [all …]
|
| D | sdm660.c | 3 * Qualcomm SDM630/SDM636/SDM660 Network-on-Chip (NoC) QoS driver 149 .qos.ap_owned = true, 150 .qos.qos_mode = NOC_QOS_MODE_FIXED, 151 .qos.areq_prio = 1, 152 .qos.prio_level = 1, 153 .qos.qos_port = 3, 168 .qos.ap_owned = true, 169 .qos.qos_mode = NOC_QOS_MODE_INVALID, 240 .qos.ap_owned = true, 241 .qos.qos_mode = NOC_QOS_MODE_FIXED, [all …]
|
| D | msm8916.c | 117 .qos.ap_owned = true, 118 .qos.qos_mode = NOC_QOS_MODE_INVALID, 134 .qos.ap_owned = true, 135 .qos.qos_mode = NOC_QOS_MODE_INVALID, 152 .qos.ap_owned = true, 153 .qos.qos_mode = NOC_QOS_MODE_FIXED, 154 .qos.areq_prio = 0, 155 .qos.prio_level = 0, 156 .qos.qos_port = 0, 215 .qos.ap_owned = true, [all …]
|
| D | msm8939.c | 122 .qos.ap_owned = true, 123 .qos.qos_mode = NOC_QOS_MODE_INVALID, 155 .qos.ap_owned = true, 156 .qos.qos_mode = NOC_QOS_MODE_FIXED, 157 .qos.areq_prio = 0, 158 .qos.prio_level = 0, 159 .qos.qos_port = 0, 218 .qos.ap_owned = true, 219 .qos.qos_mode = NOC_QOS_MODE_FIXED, 220 .qos.areq_prio = 0, [all …]
|
| D | icc-rpm.c | 19 /* QNOC QoS */ 26 /* BIMC QoS */ 39 /* NoC QoS */ 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/base/power/ |
| D | qos.c | 3 * Devices PM QoS constraints management 8 * per-device PM QoS dependencies. It provides infrastructure for registration 11 * Dependents on a QoS value : register requests 12 * Watchers of QoS value : get notified when target QoS value changes 14 * This QoS design is best effort based. Dependents register their QoS needs. 15 * Watchers register to keep track of the current QoS needs of the system. 46 * __dev_pm_qos_flags - Check PM QoS flags for a given device. 47 * @dev: Device to check the PM QoS flags for. 54 struct dev_pm_qos *qos = dev->power.qos; in __dev_pm_qos_flags() local 60 if (IS_ERR_OR_NULL(qos)) in __dev_pm_qos_flags() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/base/power/ |
| D | qos.c | 3 * Devices PM QoS constraints management 8 * per-device PM QoS dependencies. It provides infrastructure for registration 11 * Dependents on a QoS value : register requests 12 * Watchers of QoS value : get notified when target QoS value changes 14 * This QoS design is best effort based. Dependents register their QoS needs. 15 * Watchers register to keep track of the current QoS needs of the system. 46 * __dev_pm_qos_flags - Check PM QoS flags for a given device. 47 * @dev: Device to check the PM QoS flags for. 54 struct dev_pm_qos *qos = dev->power.qos; in __dev_pm_qos_flags() local 60 if (IS_ERR_OR_NULL(qos)) in __dev_pm_qos_flags() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/kernel/power/ |
| D | qos.c | 3 * Power Management Quality of Service (PM QoS) support base. 11 * Provided here is an interface for specifying PM QoS dependencies. It allows 12 * entities depending on QoS constraints to register their requests which are 18 * global CPU latency QoS requests and frequency QoS requests are provided. 51 * @c: List of PM QoS constraint requests. 71 WARN(1, "Unknown PM QoS type in %s\n", __func__); in pm_qos_get_value() 82 * pm_qos_update_target - Update a list of PM QoS constraint requests. 83 * @c: List of PM QoS requests. 88 * Update the given list of PM QoS constraint requests, @c, by carrying an 149 * pm_qos_flags_remove_req - Remove device PM QoS flags request. [all …]
|
| /kernel/linux/linux-5.10/kernel/power/ |
| D | qos.c | 3 * Power Management Quality of Service (PM QoS) support base. 11 * Provided here is an interface for specifying PM QoS dependencies. It allows 12 * entities depending on QoS constraints to register their requests which are 18 * global CPU latency QoS requests and frequency QoS requests are provided. 51 * @c: List of PM QoS constraint requests. 71 WARN(1, "Unknown PM QoS type in %s\n", __func__); in pm_qos_get_value() 82 * pm_qos_update_target - Update a list of PM QoS constraint requests. 83 * @c: List of PM QoS requests. 88 * Update the given list of PM QoS constraint requests, @c, by carrying an 149 * pm_qos_flags_remove_req - Remove device PM QoS flags request. [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| D | qos.c | 5 #include "esw/qos.h" 29 if (!MLX5_CAP_GEN(dev, qos) || !MLX5_CAP_QOS(dev, esw_scheduling)) in esw_qos_tsar_config() 71 if (!vport->qos.enabled) in esw_qos_vport_config() 74 err = esw_qos_tsar_config(dev, sched_ctx, vport->qos.esw_tsar_ix, in esw_qos_vport_config() 101 list_for_each_entry(group, &esw->qos.groups, list) { in esw_qos_calculate_min_rate_divider() 108 if (!evport->enabled || !evport->qos.enabled || in esw_qos_calculate_min_rate_divider() 109 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider() 111 max_guarantee = evport->qos.min_rate; in esw_qos_calculate_min_rate_divider() 146 if (!evport->enabled || !evport->qos.enabled || evport->qos.group != group) in esw_qos_normalize_vports_min_rate() 148 bw_share = esw_qos_calc_bw_share(evport->qos.min_rate, divider, fw_max_bw_share); in esw_qos_normalize_vports_min_rate() [all …]
|
| /kernel/linux/linux-5.10/Documentation/power/ |
| D | pm_qos_interface.rst | 9 Two different PM QoS frameworks are available: 10 * CPU latency QoS. 11 * The per-device PM QoS framework provides the API to manage the 12 per-device latency constraints and PM QoS flags. 14 The latency unit used in the PM QoS framework is the microsecond (usec). 17 1. PM QoS framework 20 A global list of CPU latency QoS requests is maintained along with an aggregated 22 to the request list or elements of the list. For CPU latency QoS, the 32 Will insert an element into the CPU latency QoS list with the target value. 35 Clients of PM QoS need to save the returned handle for future use in other [all …]
|
| /kernel/linux/linux-6.6/Documentation/power/ |
| D | pm_qos_interface.rst | 9 Two different PM QoS frameworks are available: 10 * CPU latency QoS. 11 * The per-device PM QoS framework provides the API to manage the 12 per-device latency constraints and PM QoS flags. 14 The latency unit used in the PM QoS framework is the microsecond (usec). 17 1. PM QoS framework 20 A global list of CPU latency QoS requests is maintained along with an aggregated 22 to the request list or elements of the list. For CPU latency QoS, the 32 Will insert an element into the CPU latency QoS list with the target value. 35 Clients of PM QoS need to save the returned handle for future use in other [all …]
|
| /kernel/linux/linux-5.10/net/atm/ |
| 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 …]
|
| /kernel/linux/linux-6.6/net/atm/ |
| 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 …]
|
| /kernel/linux/common_modules/qos_auth/auth_ctl/ |
| D | qos_ctrl.c | 75 pr_err("[QOS_CTRL] dirty qos policy, pid=%d, uid=%d, status=%d\n", in sched_set_task_qos_attr() 105 pr_info("[QOS_CTRL] dying task, no need to set qos\n"); in sched_set_task_qos_attr() 113 * Switch qos mode when status changed. 124 pr_err("[QOS_CTRL] auth no exist, qos switch failed\n"); in qos_switch() 131 pr_info("[QOS_CTRL] same status, no need to switch qos\n"); in qos_switch() 140 pr_err("[QOS_CTRL] set qos attr failed, qos switch failed\n"); in qos_switch() 150 pr_err("[QOS_CTRL] qos apply still active, no duplicate add\n"); in qos_insert_task() 168 pr_err("[QOS_CTRL] task not in qos, no need to remove\n"); in qos_remove_task() 187 * judge permission for changing tasks' qos 193 /* just system & root user can set(be setted) high qos level */ in can_change_qos() [all …]
|
| D | Kconfig | 3 tristate "Authority Control for RTG & QOS" 7 or QOS. Use uid as the authentication granularity. Status switching 12 bool "Multiple Level Qos Control for thread" 16 If set, thread can apply qos for less execution latency and get more 45 If set, debug node will show auth and qos info 48 int "Number of supported qos policy" 53 Qos policy number limit. Truly initialized qos policy could small then
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
| D | sparx5_dcb.c | 141 struct sparx5_port_qos qos = {0}; in sparx5_dcb_app_update() local 149 dscp_map = &qos.dscp.map; in sparx5_dcb_app_update() 150 pcp_map = &qos.pcp.map; in sparx5_dcb_app_update() 153 qos.default_prio = dcb_ieee_getapp_default_prio_mask(dev); in sparx5_dcb_app_update() 154 if (qos.default_prio) in sparx5_dcb_app_update() 155 qos.default_prio = fls(qos.default_prio) - 1; in sparx5_dcb_app_update() 177 qos.pcp_rewr.map.map[i] = fls(pcp_rewr_map.map[i]) - 1; in sparx5_dcb_app_update() 188 * not indicate DP level, so we map classified QoS class to in sparx5_dcb_app_update() 194 qos.dscp_rewr.map.map[i] = dscp; /* DP 0 */ in sparx5_dcb_app_update() 195 qos.dscp_rewr.map.map[i + 8] = dscp; /* DP 1 */ in sparx5_dcb_app_update() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
| D | am65-cpsw-qos.c | 2 /* Texas Instruments K3 AM65 Ethernet QoS submodule 13 #include "am65-cpsw-qos.h" 58 return port->qos.est_oper || port->qos.est_admin; in am65_cpsw_port_est_enabled() 167 if (port->qos.est_oper) in am65_cpsw_admin_to_oper() 168 devm_kfree(&ndev->dev, port->qos.est_oper); in am65_cpsw_admin_to_oper() 170 port->qos.est_oper = port->qos.est_admin; in am65_cpsw_admin_to_oper() 171 port->qos.est_admin = NULL; in am65_cpsw_admin_to_oper() 187 if (port->qos.est_oper && port->qos.est_admin && in am65_cpsw_port_est_get_buf_num() 188 est_new->buf == port->qos.est_oper->buf) in am65_cpsw_port_est_get_buf_num() 217 if (!port->qos.est_admin) in am65_cpsw_est_update_state() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/octeon/ |
| D | ethernet-tx.c | 75 int qos, queues_per_port; in cvm_oct_free_tx_skbs() local 82 for (qos = 0; qos < queues_per_port; qos++) { in cvm_oct_free_tx_skbs() 83 if (skb_queue_len(&priv->tx_free_list[qos]) == 0) in cvm_oct_free_tx_skbs() 85 skb_to_free = cvmx_fau_fetch_and_add32(priv->fau + qos * 4, in cvm_oct_free_tx_skbs() 88 priv->fau + qos * 4); in cvm_oct_free_tx_skbs() 92 spin_lock_irqsave(&priv->tx_free_list[qos].lock, flags); in cvm_oct_free_tx_skbs() 96 t = __skb_dequeue(&priv->tx_free_list[qos]); in cvm_oct_free_tx_skbs() 101 spin_unlock_irqrestore(&priv->tx_free_list[qos].lock, in cvm_oct_free_tx_skbs() 111 total_remaining += skb_queue_len(&priv->tx_free_list[qos]); in cvm_oct_free_tx_skbs() 132 int qos; in cvm_oct_xmit() local [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/octeon/ |
| D | ethernet-tx.c | 75 int qos, queues_per_port; in cvm_oct_free_tx_skbs() local 83 for (qos = 0; qos < queues_per_port; qos++) { in cvm_oct_free_tx_skbs() 84 if (skb_queue_len(&priv->tx_free_list[qos]) == 0) in cvm_oct_free_tx_skbs() 86 skb_to_free = cvmx_fau_fetch_and_add32(priv->fau + qos * 4, in cvm_oct_free_tx_skbs() 89 priv->fau + qos * 4); in cvm_oct_free_tx_skbs() 94 spin_lock_irqsave(&priv->tx_free_list[qos].lock, flags); in cvm_oct_free_tx_skbs() 98 t = __skb_dequeue(&priv->tx_free_list[qos]); in cvm_oct_free_tx_skbs() 103 spin_unlock_irqrestore(&priv->tx_free_list[qos].lock, in cvm_oct_free_tx_skbs() 113 total_remaining += skb_queue_len(&priv->tx_free_list[qos]); in cvm_oct_free_tx_skbs() 134 int qos; in cvm_oct_xmit() local [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
| D | am65-cpsw-qos.c | 2 /* Texas Instruments K3 AM65 Ethernet QoS submodule 14 #include "am65-cpsw-qos.h" 61 return port->qos.est_oper || port->qos.est_admin; in am65_cpsw_port_est_enabled() 170 devm_kfree(&ndev->dev, port->qos.est_oper); in am65_cpsw_admin_to_oper() 172 port->qos.est_oper = port->qos.est_admin; in am65_cpsw_admin_to_oper() 173 port->qos.est_admin = NULL; in am65_cpsw_admin_to_oper() 189 if (port->qos.est_oper && port->qos.est_admin && in am65_cpsw_port_est_get_buf_num() 190 est_new->buf == port->qos.est_oper->buf) in am65_cpsw_port_est_get_buf_num() 219 if (!port->qos.est_admin) in am65_cpsw_est_update_state() 308 port->qos.link_speed); in am65_cpsw_est_check_scheds() [all …]
|
| /kernel/linux/linux-6.6/net/bluetooth/ |
| D | hci_conn.c | 1411 static int qos_set_big(struct hci_dev *hdev, struct bt_iso_qos *qos) in qos_set_big() argument 1417 if (qos->bcast.big == BT_ISO_QOS_BIG_UNSET) { in qos_set_big() 1429 qos->bcast.big = big; in qos_set_big() 1435 static int qos_set_bis(struct hci_dev *hdev, struct bt_iso_qos *qos) in qos_set_bis() argument 1441 if (qos->bcast.bis == BT_ISO_QOS_BIS_UNSET) { in qos_set_bis() 1457 qos->bcast.bis = bis; in qos_set_bis() 1465 struct bt_iso_qos *qos, __u8 base_len, in hci_add_bis() argument 1478 err = qos_set_big(hdev, qos); in hci_add_bis() 1482 err = qos_set_bis(hdev, qos); in hci_add_bis() 1487 conn = hci_conn_hash_lookup_per_adv_bis(hdev, dst, qos->bcast.big, in hci_add_bis() [all …]
|