Lines Matching refs:num_states
508 int num_states = 0; in ppc_rtas_process_sensor() local
517 num_states = sizeof(key_switch) / sizeof(char *); in ppc_rtas_process_sensor()
518 if (state < num_states) { in ppc_rtas_process_sensor()
525 num_states = sizeof(enclosure_switch) / sizeof(char *); in ppc_rtas_process_sensor()
526 if (state < num_states) { in ppc_rtas_process_sensor()
538 num_states = sizeof(lid_status) / sizeof(char *); in ppc_rtas_process_sensor()
539 if (state < num_states) { in ppc_rtas_process_sensor()
546 num_states = sizeof(power_source) / sizeof(char *); in ppc_rtas_process_sensor()
547 if (state < num_states) { in ppc_rtas_process_sensor()
558 num_states = sizeof(battery_remaining) / sizeof(char *); in ppc_rtas_process_sensor()
559 if (state < num_states) in ppc_rtas_process_sensor()
571 num_states = sizeof(epow_sensor) / sizeof(char *); in ppc_rtas_process_sensor()
572 if (state < num_states) { in ppc_rtas_process_sensor()
579 num_states = sizeof(battery_cyclestate) / in ppc_rtas_process_sensor()
581 if (state < num_states) { in ppc_rtas_process_sensor()
589 num_states = sizeof(battery_charging) / sizeof(char *); in ppc_rtas_process_sensor()
590 if (state < num_states) { in ppc_rtas_process_sensor()
607 num_states = sizeof(ibm_drconnector) / sizeof(char *); in ppc_rtas_process_sensor()
608 if (state < num_states) { in ppc_rtas_process_sensor()