Home | History | Annotate | Download | only in tadpolectl

Lines Matching refs:table

84 #define TABLE(n) { __STRING(n), 0, n }
90 } table[NUM_MIBS] = {
91 TABLE(hw_microcontroller_version),
92 TABLE(hw_version),
93 TABLE(hw_poweroncycles),
94 TABLE(hw_poweronseconds),
95 TABLE(hw_power_mains),
96 TABLE(hw_power_battery_int),
97 TABLE(hw_power_battery_ext),
98 TABLE(hw_power_battery_chargedisabled),
99 TABLE(hw_power_battery_int_chargerate),
100 TABLE(hw_power_battery_ext_chargerate),
101 TABLE(hw_power_battery_int_chargelevel),
102 TABLE(hw_power_battery_ext_chargelevel),
103 TABLE(hw_video_external),
104 TABLE(hw_video_lid),
105 TABLE(hw_video_syncinva),
106 TABLE(hw_video_syncinvb),
107 TABLE(hw_video_compsync),
108 TABLE(hw_video_tft_brightness),
109 TABLE(hw_speaker_freq),
110 TABLE(hw_speaker_volume),
111 TABLE(hw_kbd_repeat_delay),
112 TABLE(hw_kbd_repeat_speed),
113 TABLE(hw_kbd_click),
114 TABLE(hw_mouse_recalibrate),
115 TABLE(hw_mouse_disable),
116 TABLE(hw_mouse_intclick),
117 TABLE(hw_mouse_extclick),
118 TABLE(hw_mouse_sensitivity),
119 TABLE(hw_serial_power),
152 table[num].value = req.rspbuf[0];
166 table[num].value = req.rspbuf[0];
177 table[num].value = req.rspbuf[0]&0x01 ? 1 : 0;
189 table[num].value = req.rspbuf[0]&0x01 ? 1 : 0;
200 table[num].value = req.rspbuf[0]&0x02 ? 1 : 0;
212 table[num].value = req.rspbuf[0]&0x02 ? 1 : 0;
223 table[num].value = req.rspbuf[0]&0x04 ? 1 : 0;
235 table[num].value = req.rspbuf[0]&0x04 ? 1 : 0;
246 table[num].value = req.rspbuf[0]&0x08 ? 1 : 0;
258 table[num].value = req.rspbuf[0]&0x08 ? 1 : 0;
269 table[num].value = req.rspbuf[0]&0x10 ? 1 : 0;
281 table[num].value = req.rspbuf[0]&0x10 ? 1 : 0;
290 table[num].value = 0;
304 table[num].value = req.rspbuf[0];
318 table[num].value = req.rspbuf[0];
329 table[num].value = req.rspbuf[0];
343 table[num].value = req.rspbuf[0];
351 table[num].value = 0;
367 table[num].value = req.rspbuf[0];
381 table[num].value = req.rspbuf[0];
392 table[num].value = req.rspbuf[0];
406 table[num].value = req.rspbuf[0];
417 table[num].value = req.rspbuf[0]&0x02 ? 1 : 0;
429 table[num].value = req.rspbuf[0]&0x02 ? 1 : 0;
440 table[num].value = req.rspbuf[0]&0x04 ? 1 : 0;
452 table[num].value = req.rspbuf[0]&0x04 ? 1 : 0;
463 table[num].value = req.rspbuf[0]&0x10 ? 1 : 0;
475 table[num].value = req.rspbuf[0]&0x10 ? 1 : 0;
488 table[num].value = i&0x0040 ? 0 : 1;
501 table[num].value = i&0x0008 ? 1 : 0;
512 table[num].value = req.rspbuf[0] == 0xfb ? 0 : req.rspbuf[0];
524 table[num].value = req.rspbuf[0] == 0xfb ? 0 : req.rspbuf[0];
533 table[num].value = req.rspbuf[0];
539 table[num].value = req.rspbuf[0];
548 table[num].value = req.rspbuf[0];
554 table[num].value = req.rspbuf[0];
567 table[num].value = i&0x0004 ? 1 : 0;
580 table[num].value = i&0x0002 ? 1 : 0;
593 table[num].value = i&0x0001 ? 1 : 0;
604 table[num].value = (req.rspbuf[0]<<24)+(req.rspbuf[1]<<16)+
616 table[num].value = (req.rspbuf[0]<<24)+(req.rspbuf[1]<<16)+
631 table[num].value = atoi(strdup(buf));
646 table[num].value = atoi(strdup(buf));
661 table[num].value = pwrreq.state;
695 if (strcmp(string, table[j].mib) == 0) {
704 ret = (*table[i].funcptr)(0, newval, i);
708 ret = (*table[i].funcptr)(1, 0, i);
710 printf("%d\n", table[i].value);
712 printf("%s = %d\n", dashdot(table[i].mib), table[i].value);
762 (void)(*table[j].funcptr)(1, 0, j);
764 printf("%d\n", table[j].value);
766 printf("%s = %d\n", dashdot(table[j].mib),
767 table[j].value);