control_type 1032 drivers/powercap/intel_rapl_common.c rp->priv->control_type, rp->name, control_type 1057 drivers/powercap/intel_rapl_common.c rp->priv->control_type, control_type 1078 drivers/powercap/intel_rapl_common.c powercap_unregister_zone(rp->priv->control_type, control_type 1120 drivers/powercap/intel_rapl_common.c power_zone = powercap_register_zone(&rd->power_zone, priv->control_type, control_type 1139 drivers/powercap/intel_rapl_common.c powercap_unregister_zone(priv->control_type, control_type 1261 drivers/powercap/intel_rapl_common.c powercap_unregister_zone(rp->priv->control_type, control_type 1265 drivers/powercap/intel_rapl_common.c powercap_unregister_zone(rp->priv->control_type, control_type 1280 drivers/powercap/intel_rapl_common.c && rp->priv->control_type == priv->control_type) control_type 133 drivers/powercap/intel_rapl_msr.c rapl_msr_priv.control_type = powercap_register_control_type(NULL, "intel-rapl", NULL); control_type 134 drivers/powercap/intel_rapl_msr.c if (IS_ERR(rapl_msr_priv.control_type)) { control_type 136 drivers/powercap/intel_rapl_msr.c return PTR_ERR(rapl_msr_priv.control_type); control_type 152 drivers/powercap/intel_rapl_msr.c powercap_unregister_control_type(rapl_msr_priv.control_type); control_type 160 drivers/powercap/intel_rapl_msr.c powercap_unregister_control_type(rapl_msr_priv.control_type); control_type 329 drivers/powercap/powercap_sys.c static bool control_type_valid(void *control_type) control_type 337 drivers/powercap/powercap_sys.c if (pos == control_type) { control_type 407 drivers/powercap/powercap_sys.c struct powercap_control_type *control_type = control_type 411 drivers/powercap/powercap_sys.c allocated = control_type->allocated; control_type 412 drivers/powercap/powercap_sys.c idr_destroy(&control_type->idr); control_type 413 drivers/powercap/powercap_sys.c mutex_destroy(&control_type->lock); control_type 414 drivers/powercap/powercap_sys.c if (control_type->ops && control_type->ops->release) control_type 415 drivers/powercap/powercap_sys.c control_type->ops->release(control_type); control_type 417 drivers/powercap/powercap_sys.c kfree(control_type); control_type 434 drivers/powercap/powercap_sys.c struct powercap_control_type *control_type = control_type 436 drivers/powercap/powercap_sys.c if (control_type->ops && control_type->ops->get_enable) control_type 437 drivers/powercap/powercap_sys.c if (control_type->ops->get_enable(control_type, &mode)) control_type 458 drivers/powercap/powercap_sys.c struct powercap_control_type *control_type = control_type 460 drivers/powercap/powercap_sys.c if (control_type->ops && control_type->ops->set_enable) control_type 461 drivers/powercap/powercap_sys.c if (!control_type->ops->set_enable(control_type, mode)) control_type 484 drivers/powercap/powercap_sys.c struct powercap_control_type *control_type, control_type 494 drivers/powercap/powercap_sys.c if (!name || !control_type || !ops || control_type 497 drivers/powercap/powercap_sys.c !control_type_valid(control_type)) control_type 511 drivers/powercap/powercap_sys.c power_zone->control_type_inst = control_type; control_type 513 drivers/powercap/powercap_sys.c power_zone->dev.parent = &control_type->dev; control_type 514 drivers/powercap/powercap_sys.c power_zone->parent_idr = &control_type->idr; control_type 521 drivers/powercap/powercap_sys.c mutex_lock(&control_type->lock); control_type 562 drivers/powercap/powercap_sys.c control_type->nr_zones++; control_type 563 drivers/powercap/powercap_sys.c mutex_unlock(&control_type->lock); control_type 578 drivers/powercap/powercap_sys.c mutex_unlock(&control_type->lock); control_type 584 drivers/powercap/powercap_sys.c int powercap_unregister_zone(struct powercap_control_type *control_type, control_type 587 drivers/powercap/powercap_sys.c if (!power_zone || !control_type) control_type 590 drivers/powercap/powercap_sys.c mutex_lock(&control_type->lock); control_type 591 drivers/powercap/powercap_sys.c control_type->nr_zones--; control_type 592 drivers/powercap/powercap_sys.c mutex_unlock(&control_type->lock); control_type 601 drivers/powercap/powercap_sys.c struct powercap_control_type *control_type, control_type 609 drivers/powercap/powercap_sys.c if (control_type) { control_type 612 drivers/powercap/powercap_sys.c memset(control_type, 0, sizeof(*control_type)); control_type 614 drivers/powercap/powercap_sys.c control_type = kzalloc(sizeof(*control_type), GFP_KERNEL); control_type 615 drivers/powercap/powercap_sys.c if (!control_type) control_type 617 drivers/powercap/powercap_sys.c control_type->allocated = true; control_type 619 drivers/powercap/powercap_sys.c mutex_init(&control_type->lock); control_type 620 drivers/powercap/powercap_sys.c control_type->ops = ops; control_type 621 drivers/powercap/powercap_sys.c INIT_LIST_HEAD(&control_type->node); control_type 622 drivers/powercap/powercap_sys.c control_type->dev.class = &powercap_class; control_type 623 drivers/powercap/powercap_sys.c dev_set_name(&control_type->dev, "%s", name); control_type 624 drivers/powercap/powercap_sys.c result = device_register(&control_type->dev); control_type 626 drivers/powercap/powercap_sys.c if (control_type->allocated) control_type 627 drivers/powercap/powercap_sys.c kfree(control_type); control_type 630 drivers/powercap/powercap_sys.c idr_init(&control_type->idr); control_type 633 drivers/powercap/powercap_sys.c list_add_tail(&control_type->node, &powercap_cntrl_list); control_type 636 drivers/powercap/powercap_sys.c return control_type; control_type 640 drivers/powercap/powercap_sys.c int powercap_unregister_control_type(struct powercap_control_type *control_type) control_type 644 drivers/powercap/powercap_sys.c if (control_type->nr_zones) { control_type 645 drivers/powercap/powercap_sys.c dev_err(&control_type->dev, "Zones of this type still not freed\n"); control_type 650 drivers/powercap/powercap_sys.c if (pos == control_type) { control_type 651 drivers/powercap/powercap_sys.c list_del(&control_type->node); control_type 653 drivers/powercap/powercap_sys.c device_unregister(&control_type->dev); control_type 557 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c rapl_mmio_priv.control_type = powercap_register_control_type(NULL, "intel-rapl-mmio", NULL); control_type 558 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c if (IS_ERR(rapl_mmio_priv.control_type)) { control_type 560 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c return PTR_ERR(rapl_mmio_priv.control_type); control_type 566 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c powercap_unregister_control_type(rapl_mmio_priv.control_type); control_type 567 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c rapl_mmio_priv.control_type = NULL; control_type 577 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c if (IS_ERR_OR_NULL(rapl_mmio_priv.control_type)) control_type 581 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c powercap_unregister_control_type(rapl_mmio_priv.control_type); control_type 115 include/linux/intel_rapl.h struct powercap_control_type *control_type; control_type 254 include/linux/powercap.h struct powercap_control_type *control_type, control_type 295 include/linux/powercap.h struct powercap_control_type *control_type, control_type 310 include/linux/powercap.h int powercap_unregister_zone(struct powercap_control_type *control_type, control_type 1337 sound/pci/asihpi/asihpi.c u16 control_type; control_type 2614 sound/pci/asihpi/asihpi.c prev_ctl.control_type = -1; control_type 2624 sound/pci/asihpi/asihpi.c &hpi_ctl.control_type, control_type 2645 sound/pci/asihpi/asihpi.c if ((hpi_ctl.control_type == prev_ctl.control_type) && control_type 2656 sound/pci/asihpi/asihpi.c switch (hpi_ctl.control_type) { control_type 2697 sound/pci/asihpi/asihpi.c hpi_ctl.control_type, control_type 1329 sound/pci/asihpi/hpi.h u16 control_type, u32 *ph_control); control_type 773 sound/pci/asihpi/hpi_internal.h u16 control_type; /* = HPI_CONTROL_METER _VOLUME etc */ control_type 1255 sound/pci/asihpi/hpi_internal.h u8 control_type; control_type 224 sound/pci/asihpi/hpicmn.c if (info->control_type) { control_type 236 sound/pci/asihpi/hpicmn.c info->control_index, info->control_type, control_type 284 sound/pci/asihpi/hpicmn.c (*pI)->control_type); control_type 320 sound/pci/asihpi/hpicmn.c switch (pC->u.i.control_type) { control_type 514 sound/pci/asihpi/hpicmn.c pC->u.i.control_index, pC->u.i.control_type, control_type 556 sound/pci/asihpi/hpicmn.c switch (pC->u.i.control_type) { control_type 1234 sound/pci/asihpi/hpifunc.c u16 control_type, u32 *ph_control) control_type 1246 sound/pci/asihpi/hpifunc.c hm.u.m.control_type = control_type;