Lines Matching defs:scale
152 static int imc_parse_event(struct device_node *np, const char *scale,
171 if (of_property_read_string(np, "scale", &s))
172 s = scale;
175 event->scale = kstrdup(s, GFP_KERNEL);
176 if (!event->scale)
192 kfree(event->scale);
210 kfree(events[i].scale);
249 /* Get a global unit and scale data if available */
250 if (of_property_read_string(node, "scale", &g_scale))
286 * memory for the scale and unit attribute for now.
309 if (pmu->events[i].scale) {
310 ev_scale_str = kasprintf(GFP_KERNEL, "%s.scale", pmu->events[i].name);
313 dev_str = device_str_attr_create(ev_scale_str, pmu->events[i].scale);