Lines Matching refs:adb_handler
93 static struct adb_handler { struct
98 } adb_handler[16]; variable
138 adb_handler[i].original_address = i; in adb_scan_bus()
146 if (adb_handler[i].original_address == 0) in adb_scan_bus()
184 adb_handler[highFree].original_address = in adb_scan_bus()
185 adb_handler[i].original_address; in adb_scan_bus()
187 adb_handler[highFree].original_address) in adb_scan_bus()
207 if (adb_handler[i].original_address == 0) in adb_scan_bus()
211 adb_handler[i].handler_id = req.reply[2]; in adb_scan_bus()
213 adb_handler[i].original_address, in adb_scan_bus()
214 adb_handler[i].handler_id); in adb_scan_bus()
376 memset(adb_handler, 0, sizeof(adb_handler)); in do_adb_reset_bus()
478 if ((adb_handler[i].original_address == default_id) && in adb_register()
479 (!handler_id || (handler_id == adb_handler[i].handler_id) || in adb_register()
481 if (adb_handler[i].handler != 0) { in adb_register()
487 adb_handler[i].handler = handler; in adb_register()
504 if (adb_handler[index].handler) { in adb_unregister()
505 while(adb_handler[index].busy) { in adb_unregister()
511 adb_handler[index].handler = NULL; in adb_unregister()
542 handler = adb_handler[id].handler; in adb_input()
544 adb_handler[id].busy = 1; in adb_input()
549 adb_handler[id].busy = 0; in adb_input()
559 if (adb_handler[address].handler_id == new_id) in try_handler_change()
569 adb_handler[address].handler_id = req.reply[2]; in try_handler_change()
592 *original_address = adb_handler[address].original_address; in adb_get_infos()
593 *handler_id = adb_handler[address].handler_id; in adb_get_infos()
653 req->reply[0] = adb_handler[req->data[2]].original_address; in do_adb_query()
654 req->reply[1] = adb_handler[req->data[2]].handler_id; in do_adb_query()