Home
last modified time | relevance | path

Searched refs:control_type (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/powercap/
H A Dpowercap_sys.c329 static bool control_type_valid(void *control_type) in control_type_valid() argument
337 if (pos == control_type) { in control_type_valid()
407 struct powercap_control_type *control_type = in powercap_release() local
411 allocated = control_type->allocated; in powercap_release()
412 idr_destroy(&control_type->idr); in powercap_release()
413 mutex_destroy(&control_type->lock); in powercap_release()
414 if (control_type->ops && control_type->ops->release) in powercap_release()
415 control_type->ops->release(control_type); in powercap_release()
434 struct powercap_control_type *control_type = enabled_show() local
458 struct powercap_control_type *control_type = enabled_store() local
482 powercap_register_zone( struct powercap_zone *power_zone, struct powercap_control_type *control_type, const char *name, struct powercap_zone *parent, const struct powercap_zone_ops *ops, int nr_constraints, const struct powercap_zone_constraint_ops *const_ops) powercap_register_zone() argument
588 powercap_unregister_zone(struct powercap_control_type *control_type, struct powercap_zone *power_zone) powercap_unregister_zone() argument
604 powercap_register_control_type( struct powercap_control_type *control_type, const char *name, const struct powercap_control_type_ops *ops) powercap_register_control_type() argument
644 powercap_unregister_control_type(struct powercap_control_type *control_type) powercap_unregister_control_type() argument
[all...]
H A Dintel_rapl_msr.c148 rapl_msr_priv.control_type = powercap_register_control_type(NULL, "intel-rapl", NULL); in rapl_msr_probe()
149 if (IS_ERR(rapl_msr_priv.control_type)) { in rapl_msr_probe()
150 pr_debug("failed to register powercap control_type.\n"); in rapl_msr_probe()
151 return PTR_ERR(rapl_msr_priv.control_type); in rapl_msr_probe()
164 powercap_unregister_control_type(rapl_msr_priv.control_type); in rapl_msr_probe()
171 powercap_unregister_control_type(rapl_msr_priv.control_type); in rapl_msr_remove()
H A Dintel_rapl_common.c1104 rp->priv->control_type, rp->name, in rapl_package_register_powercap()
1133 rp->priv->control_type, in rapl_package_register_powercap()
1154 powercap_unregister_zone(rp->priv->control_type, in rapl_package_register_powercap()
1275 powercap_unregister_zone(rp->priv->control_type, in rapl_remove_package()
1279 powercap_unregister_zone(rp->priv->control_type, in rapl_remove_package()
1294 && rp->priv->control_type == priv->control_type) in rapl_find_package_domain()
/kernel/linux/linux-6.6/drivers/powercap/
H A Dpowercap_sys.c329 static bool control_type_valid(void *control_type) in control_type_valid() argument
337 if (pos == control_type) { in control_type_valid()
407 struct powercap_control_type *control_type = in powercap_release() local
411 allocated = control_type->allocated; in powercap_release()
412 idr_destroy(&control_type->idr); in powercap_release()
413 mutex_destroy(&control_type->lock); in powercap_release()
414 if (control_type->ops && control_type->ops->release) in powercap_release()
415 control_type->ops->release(control_type); in powercap_release()
434 struct powercap_control_type *control_type = enabled_show() local
458 struct powercap_control_type *control_type = enabled_store() local
482 powercap_register_zone( struct powercap_zone *power_zone, struct powercap_control_type *control_type, const char *name, struct powercap_zone *parent, const struct powercap_zone_ops *ops, int nr_constraints, const struct powercap_zone_constraint_ops *const_ops) powercap_register_zone() argument
588 powercap_unregister_zone(struct powercap_control_type *control_type, struct powercap_zone *power_zone) powercap_unregister_zone() argument
604 powercap_register_control_type( struct powercap_control_type *control_type, const char *name, const struct powercap_control_type_ops *ops) powercap_register_control_type() argument
644 powercap_unregister_control_type(struct powercap_control_type *control_type) powercap_unregister_control_type() argument
[all...]
H A Dintel_rapl_msr.c180 rapl_msr_priv->control_type = powercap_register_control_type(NULL, "intel-rapl", NULL); in rapl_msr_probe()
181 if (IS_ERR(rapl_msr_priv->control_type)) { in rapl_msr_probe()
182 pr_debug("failed to register powercap control_type.\n"); in rapl_msr_probe()
183 return PTR_ERR(rapl_msr_priv->control_type); in rapl_msr_probe()
196 powercap_unregister_control_type(rapl_msr_priv->control_type); in rapl_msr_probe()
203 powercap_unregister_control_type(rapl_msr_priv->control_type); in rapl_msr_remove()
H A Dintel_rapl_common.c1324 rp->priv->control_type, rp->name, in rapl_package_register_powercap()
1353 rp->priv->control_type, in rapl_package_register_powercap()
1374 powercap_unregister_zone(rp->priv->control_type, in rapl_package_register_powercap()
1528 powercap_unregister_zone(rp->priv->control_type, in rapl_remove_package_cpuslocked()
1532 powercap_unregister_zone(rp->priv->control_type, in rapl_remove_package_cpuslocked()
1560 && rp->priv->control_type == priv->control_type) in rapl_find_package_domain_cpuslocked()
H A Dintel_rapl_tpmi.c287 trp->priv.control_type = tpmi_control_type; in intel_rapl_tpmi_probe()
/kernel/linux/linux-6.6/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_rapl.c106 rapl_mmio_priv.control_type = powercap_register_control_type(NULL, "intel-rapl-mmio", NULL); in proc_thermal_rapl_add()
107 if (IS_ERR(rapl_mmio_priv.control_type)) { in proc_thermal_rapl_add()
108 pr_debug("failed to register powercap control_type.\n"); in proc_thermal_rapl_add()
109 return PTR_ERR(rapl_mmio_priv.control_type); in proc_thermal_rapl_add()
115 powercap_unregister_control_type(rapl_mmio_priv.control_type); in proc_thermal_rapl_add()
116 rapl_mmio_priv.control_type = NULL; in proc_thermal_rapl_add()
127 if (IS_ERR_OR_NULL(rapl_mmio_priv.control_type)) in proc_thermal_rapl_remove()
131 powercap_unregister_control_type(rapl_mmio_priv.control_type); in proc_thermal_rapl_remove()
/kernel/linux/linux-5.10/include/linux/
H A Dpowercap.h15 * Each control_type can have multiple power zones, which can be independently
47 * struct powercap_control_type - Defines a powercap control_type
48 * @dev: device for this control_type
60 * Defines powercap control_type. This acts as a container for power
234 * powercap_register_control_type() - Register a control_type with framework
235 * @control_type: Pointer to client allocated memory for the control type
241 * @control_type_name: The Name of this control_type, which will be shown
245 * Used to create a control_type with the power capping class. Here control_type
247 * For example a control_type ca
[all...]
H A Dintel_rapl.h21 RAPL_DOMAIN_DRAM, /* DRAM control_type */
22 RAPL_DOMAIN_PLATFORM, /* PSys control_type */
106 * @control_type: Each RAPL interface must have its own powercap
120 struct powercap_control_type *control_type; member
/kernel/linux/linux-6.6/include/linux/
H A Dpowercap.h15 * Each control_type can have multiple power zones, which can be independently
47 * struct powercap_control_type - Defines a powercap control_type
48 * @dev: device for this control_type
60 * Defines powercap control_type. This acts as a container for power
234 * powercap_register_control_type() - Register a control_type with framework
235 * @control_type: Pointer to client allocated memory for the control type
241 * @control_type_name: The Name of this control_type, which will be shown
245 * Used to create a control_type with the power capping class. Here control_type
247 * For example a control_type ca
[all...]
H A Dintel_rapl.h27 RAPL_DOMAIN_DRAM, /* DRAM control_type */
28 RAPL_DOMAIN_PLATFORM, /* PSys control_type */
133 * @control_type: Each RAPL interface must have its own powercap
150 struct powercap_control_type *control_type; member
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_device.c567 rapl_mmio_priv.control_type = powercap_register_control_type(NULL, "intel-rapl-mmio", NULL); in proc_thermal_rapl_add()
568 if (IS_ERR(rapl_mmio_priv.control_type)) { in proc_thermal_rapl_add()
569 pr_debug("failed to register powercap control_type.\n"); in proc_thermal_rapl_add()
570 return PTR_ERR(rapl_mmio_priv.control_type); in proc_thermal_rapl_add()
576 powercap_unregister_control_type(rapl_mmio_priv.control_type); in proc_thermal_rapl_add()
577 rapl_mmio_priv.control_type = NULL; in proc_thermal_rapl_add()
587 if (IS_ERR_OR_NULL(rapl_mmio_priv.control_type)) in proc_thermal_rapl_remove()
591 powercap_unregister_control_type(rapl_mmio_priv.control_type); in proc_thermal_rapl_remove()
/kernel/linux/linux-5.10/sound/pci/asihpi/
H A Dhpicmn.c226 if (info->control_type) { in control_cache_alloc_check()
238 info->control_index, info->control_type, in control_cache_alloc_check()
286 (*pI)->control_type); in find_control()
322 switch (pC->u.i.control_type) { in hpi_check_control_cache_single()
516 pC->u.i.control_index, pC->u.i.control_type, in hpi_check_control_cache_single()
558 switch (pC->u.i.control_type) { in hpi_cmn_control_cache_sync_to_msg_single()
H A Dasihpi.c1288 u16 control_type; member
2563 prev_ctl.control_type = -1; in snd_card_asihpi_mixer_new()
2573 &hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
2594 if ((hpi_ctl.control_type == prev_ctl.control_type) && in snd_card_asihpi_mixer_new()
2605 switch (hpi_ctl.control_type) { in snd_card_asihpi_mixer_new()
2646 hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
H A Dhpi_internal.h773 u16 control_type; /* = HPI_CONTROL_METER _VOLUME etc */ member
1255 u8 control_type; member
H A Dhpi.h1329 u16 control_type, u32 *ph_control);
H A Dhpifunc.c1234 u16 control_type, u32 *ph_control) in hpi_mixer_get_control()
1246 hm.u.m.control_type = control_type; in hpi_mixer_get_control()
1232 hpi_mixer_get_control(u32 h_mixer, u16 src_node_type, u16 src_node_type_index, u16 dst_node_type, u16 dst_node_type_index, u16 control_type, u32 *ph_control) hpi_mixer_get_control() argument
/kernel/linux/linux-6.6/sound/pci/asihpi/
H A Dhpicmn.c226 if (info->control_type) { in control_cache_alloc_check()
238 info->control_index, info->control_type, in control_cache_alloc_check()
286 (*pI)->control_type); in find_control()
322 switch (pC->u.i.control_type) { in hpi_check_control_cache_single()
516 pC->u.i.control_index, pC->u.i.control_type, in hpi_check_control_cache_single()
558 switch (pC->u.i.control_type) { in hpi_cmn_control_cache_sync_to_msg_single()
H A Dasihpi.c1286 u16 control_type; member
2561 prev_ctl.control_type = -1; in snd_card_asihpi_mixer_new()
2571 &hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
2592 if ((hpi_ctl.control_type == prev_ctl.control_type) && in snd_card_asihpi_mixer_new()
2603 switch (hpi_ctl.control_type) { in snd_card_asihpi_mixer_new()
2644 hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
H A Dhpi_internal.h773 u16 control_type; /* = HPI_CONTROL_METER _VOLUME etc */ member
1255 u8 control_type; member
H A Dhpi.h1316 u16 control_type, u32 *ph_control);
H A Dhpifunc.c1234 u16 control_type, u32 *ph_control) in hpi_mixer_get_control()
1246 hm.u.m.control_type = control_type; in hpi_mixer_get_control()
1232 hpi_mixer_get_control(u32 h_mixer, u16 src_node_type, u16 src_node_type_index, u16 dst_node_type, u16 dst_node_type_index, u16 control_type, u32 *ph_control) hpi_mixer_get_control() argument

Completed in 40 milliseconds