Searched refs:pwr (Results 1 – 1 of 1) sorted by relevance
51 struct ia_pwr_mgr * pwr = NULL; in main() local74 pwr = (struct ia_pwr_mgr*) malloc(sizeof(struct ia_pwr_mgr)); in main()75 if (NULL == pwr) { in main()81 if((pwr->dev_node = fopen(DEV_NODE, "r")) == NULL) { in main()90 err = ioctl(fileno(pwr->dev_node), IAXXX_POWER_STATS_COUNT, &pwr_stats_count); in main()128 if (pwr) { in main()129 if (pwr->dev_node) { in main()130 fclose(pwr->dev_node); in main()132 free(pwr); in main()133 pwr = NULL; in main()