Lines Matching defs:unit
153 const char *unit, const char *prefix,
180 if (of_property_read_string(np, "unit", &s))
181 s = unit;
184 event->unit = kstrdup(s, GFP_KERNEL);
185 if (!event->unit)
191 kfree(event->unit);
209 kfree(events[i].unit);
249 /* Get a global unit and scale data if available */
253 if (of_property_read_string(node, "unit", &g_unit))
286 * memory for the scale and unit attribute for now.
320 if (pmu->events[i].unit) {
321 ev_unit_str = kasprintf(GFP_KERNEL, "%s.unit", pmu->events[i].name);
324 dev_str = device_str_attr_create(ev_unit_str, pmu->events[i].unit);
1782 * @parent: Device tree unit node