Lines Matching defs:fdi
136 process_event(int fdi)
140 int slot = INDEX2SLOT(fdi);
141 int cntr = INDEX2CONTROLLER(fdi);
143 rv = ioctl(fds[fdi].fd, HPC3130_GET_EVENT, &e);
161 fault_led_event(e.id, fdi);
165 fault_led_event(e.id, fdi);
169 removable_led_event(e.id, fdi);
173 removable_led_event(e.id, fdi);
233 fault_led_event(hpc3130_event_type_t event, int fdi)
238 if (INDEX2CONTROLLER(fdi) != GPTWO_CONTROLLER) {
245 assert(fdi <= sizeof (fault_leds[side]) * BITSPERBYTE);
249 fault_leds[side] |= (1<<fdi);
253 fault_leds[side] &= ~(1<<fdi);
274 removable_led_event(hpc3130_event_type_t event, int fdi)
279 if (INDEX2CONTROLLER(fdi) != GPTWO_CONTROLLER) {
286 assert(fdi <= sizeof (ok2rem_leds[side]) * BITSPERBYTE);
290 ok2rem_leds[side] |= (1<<fdi);
294 ok2rem_leds[side] &= ~(1<<fdi);