Lines Matching defs:pwr

365 	struct power_event *pwr = zalloc(sizeof(*pwr));
367 if (!pwr)
370 pwr->state = cpus_cstate_state[cpu];
371 pwr->start_time = cpus_cstate_start_times[cpu];
372 pwr->end_time = timestamp;
373 pwr->cpu = cpu;
374 pwr->type = CSTATE;
375 pwr->next = tchart->power_events;
377 tchart->power_events = pwr;
383 struct power_event *pwr = zalloc(sizeof(*pwr));
385 if (!pwr)
388 pwr->state = cpus_pstate_state[cpu];
389 pwr->start_time = cpus_pstate_start_times[cpu];
390 pwr->end_time = timestamp;
391 pwr->cpu = cpu;
392 pwr->type = PSTATE;
393 pwr->next = tchart->power_events;
394 if (!pwr->start_time)
395 pwr->start_time = tchart->first_time;
397 tchart->power_events = pwr;
398 return pwr;
403 struct power_event *pwr;
408 pwr = p_state_end(tchart, cpu, timestamp);
409 if (!pwr)
701 struct power_event *pwr;
706 pwr = zalloc(sizeof(*pwr));
707 if (!pwr)
710 pwr->state = cpus_cstate_state[cpu];
711 pwr->start_time = cpus_cstate_start_times[cpu];
712 pwr->end_time = tchart->last_time;
713 pwr->cpu = cpu;
714 pwr->type = CSTATE;
715 pwr->next = tchart->power_events;
717 tchart->power_events = pwr;
721 pwr = p_state_end(tchart, cpu, tchart->last_time);
722 if (!pwr)
725 if (!pwr->state)
726 pwr->state = tchart->min_freq;
1021 struct power_event *pwr;
1022 pwr = tchart->power_events;
1027 while (pwr) {
1028 if (pwr->type == CSTATE)
1029 svg_cstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state);
1030 pwr = pwr->next;
1033 pwr = tchart->power_events;
1034 while (pwr) {
1035 if (pwr->type == PSTATE) {
1036 if (!pwr->state)
1037 pwr->state = tchart->min_freq;
1038 svg_pstate(pwr->cpu, pwr->start_time, pwr->end_time, pwr->state);
1040 pwr = pwr->next;