Lines Matching +full:quality +full:- +full:of +full:- +full:service

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2022-23 IBM Corp.
44 * on the credits available) instead of depending on VAS in update_total_credits_store()
48 err = vas_reconfig_capabilties(caps->win_type, creds); in update_total_credits_store()
51 return -EINVAL; in update_total_credits_store()
61 return sprintf(buf, "%d\n", atomic_read(&caps->_name)); \
81 * Total number of default credits assigned to the LPAR which
84 * Number of credits used by the user space. One credit will
89 * for the Quality of Service (QoS) credit type.
91 * Total number of QoS credits assigned to the LPAR. The user
95 * Number of credits used by the user space.
129 caps = centry->caps; in vas_type_show()
132 if (!entry->show) in vas_type_show()
133 return -EIO; in vas_type_show()
135 return entry->show(caps, buf); in vas_type_show()
146 caps = centry->caps; in vas_type_store()
148 if (!entry->store) in vas_type_store()
149 return -EIO; in vas_type_store()
151 return entry->store(caps, buf, count); in vas_type_store()
180 struct vas_cop_feat_caps *caps = centry->caps; in vas_caps_kobj_name()
182 if (caps->descriptor == VAS_GZIP_QOS_CAPABILITIES) { in vas_caps_kobj_name()
183 kobject_init(&centry->kobj, &vas_qos_attr_type); in vas_caps_kobj_name()
186 } else if (caps->descriptor == VAS_GZIP_DEFAULT_CAPABILITIES) { in vas_caps_kobj_name()
187 kobject_init(&centry->kobj, &vas_def_attr_type); in vas_caps_kobj_name()
207 return -ENOMEM; in sysfs_add_vas_caps()
209 centry->caps = caps; in sysfs_add_vas_caps()
213 ret = kobject_add(&centry->kobj, kobj, "%s", name); in sysfs_add_vas_caps()
218 kobject_put(&centry->kobj); in sysfs_add_vas_caps()
249 &vas_miscdev.this_device->kobj); in sysfs_pseries_vas_init()
253 return -ENOMEM; in sysfs_pseries_vas_init()
256 if ((vas_caps->feat_type & VAS_GZIP_QOS_FEAT_BIT) || in sysfs_pseries_vas_init()
257 (vas_caps->feat_type & VAS_GZIP_DEF_FEAT_BIT)) { in sysfs_pseries_vas_init()
264 return -ENOMEM; in sysfs_pseries_vas_init()