Lines Matching defs:scale
151 static int imc_parse_event(struct device_node *np, const char *scale,
170 if (of_property_read_string(np, "scale", &s))
171 s = scale;
174 event->scale = kstrdup(s, GFP_KERNEL);
175 if (!event->scale)
191 kfree(event->scale);
209 kfree(events[i].scale);
246 /* Get a global unit and scale data if available */
247 if (of_property_read_string(node, "scale", &g_scale))
279 * memory for the scale and unit attribute for now.
302 if (pmu->events[i].scale) {
303 ev_scale_str = kasprintf(GFP_KERNEL, "%s.scale", pmu->events[i].name);
306 dev_str = device_str_attr_create(ev_scale_str, pmu->events[i].scale);