/linux-master/drivers/powercap/ |
H A D | powercap_sys.c | 329 static bool control_type_valid(void *control_type) argument 337 if (pos == control_type) { 407 struct powercap_control_type *control_type = local 411 allocated = control_type->allocated; 412 idr_destroy(&control_type->idr); 413 mutex_destroy(&control_type->lock); 414 if (control_type->ops && control_type->ops->release) 415 control_type->ops->release(control_type); 434 struct powercap_control_type *control_type = local 458 struct powercap_control_type *control_type = 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) argument 588 powercap_unregister_zone(struct powercap_control_type *control_type, struct powercap_zone *power_zone) argument 604 powercap_register_control_type( struct powercap_control_type *control_type, const char *name, const struct powercap_control_type_ops *ops) argument 644 powercap_unregister_control_type(struct powercap_control_type *control_type) argument [all...] |
H A D | intel_rapl_msr.c | 180 rapl_msr_priv->control_type = powercap_register_control_type(NULL, "intel-rapl", NULL); 181 if (IS_ERR(rapl_msr_priv->control_type)) { 182 pr_debug("failed to register powercap control_type.\n"); 183 return PTR_ERR(rapl_msr_priv->control_type); 196 powercap_unregister_control_type(rapl_msr_priv->control_type); 203 powercap_unregister_control_type(rapl_msr_priv->control_type);
|
H A D | intel_rapl_tpmi.c | 287 trp->priv.control_type = tpmi_control_type;
|
H A D | intel_rapl_common.c | 1326 rp->priv->control_type, rp->name, 1355 rp->priv->control_type, 1376 powercap_unregister_zone(rp->priv->control_type, 1530 powercap_unregister_zone(rp->priv->control_type, 1534 powercap_unregister_zone(rp->priv->control_type, 1562 && rp->priv->control_type == priv->control_type)
|
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_rapl.c | 106 rapl_mmio_priv.control_type = powercap_register_control_type(NULL, "intel-rapl-mmio", NULL); 107 if (IS_ERR(rapl_mmio_priv.control_type)) { 108 pr_debug("failed to register powercap control_type.\n"); 109 return PTR_ERR(rapl_mmio_priv.control_type); 115 powercap_unregister_control_type(rapl_mmio_priv.control_type); 116 rapl_mmio_priv.control_type = NULL; 127 if (IS_ERR_OR_NULL(rapl_mmio_priv.control_type)) 131 powercap_unregister_control_type(rapl_mmio_priv.control_type);
|
/linux-master/include/linux/ |
H A D | powercap.h | 15 * 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 D | intel_rapl.h | 27 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 in struct:rapl_if_priv
|
/linux-master/sound/pci/asihpi/ |
H A D | hpicmn.c | 226 if (info->control_type) { 238 info->control_index, info->control_type, 286 (*pI)->control_type); 322 switch (pC->u.i.control_type) { 516 pC->u.i.control_index, pC->u.i.control_type, 558 switch (pC->u.i.control_type) {
|
H A D | asihpi.c | 1286 u16 control_type; member in struct:hpi_control 2561 prev_ctl.control_type = -1; 2571 &hpi_ctl.control_type, 2592 if ((hpi_ctl.control_type == prev_ctl.control_type) && 2603 switch (hpi_ctl.control_type) { 2644 hpi_ctl.control_type,
|
H A D | hpi_internal.h | 773 u16 control_type; /* = HPI_CONTROL_METER _VOLUME etc */ member in struct:hpi_mixer_msg 1255 u8 control_type; member in struct:hpi_control_cache_info
|
H A D | hpi.h | 1316 u16 control_type, u32 *ph_control);
|
H A D | hpifunc.c | 1234 u16 control_type, u32 *ph_control) 1246 hm.u.m.control_type = control_type; 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) argument
|