Lines Matching refs:adb_handler
99 static struct adb_handler { struct
103 } adb_handler[16]; variable
142 adb_handler[i].original_address = i; in adb_scan_bus()
150 if (adb_handler[i].original_address == 0) in adb_scan_bus()
188 adb_handler[highFree].original_address = in adb_scan_bus()
189 adb_handler[i].original_address; in adb_scan_bus()
191 adb_handler[highFree].original_address) in adb_scan_bus()
213 if (adb_handler[i].original_address == 0) in adb_scan_bus()
217 adb_handler[i].handler_id = req.reply[2]; in adb_scan_bus()
218 printk(" [%d]: %d %x", i, adb_handler[i].original_address, in adb_scan_bus()
219 adb_handler[i].handler_id); in adb_scan_bus()
401 memset(adb_handler, 0, sizeof(adb_handler)); in do_adb_reset_bus()
520 if ((adb_handler[i].original_address == default_id) && in adb_register()
521 (!handler_id || (handler_id == adb_handler[i].handler_id) || in adb_register()
523 if (adb_handler[i].handler != 0) { in adb_register()
529 adb_handler[i].handler = handler; in adb_register()
539 if (!adb_handler[index].handler) in adb_unregister()
541 adb_handler[index].handler = 0; in adb_unregister()
564 if (adb_handler[id].handler != 0) { in adb_input()
565 (*adb_handler[id].handler)(buf, nb, regs, autopoll); in adb_input()
575 if (adb_handler[address].handler_id == new_id) in adb_try_handler_change()
585 adb_handler[address].handler_id = req.reply[2]; in adb_try_handler_change()
593 *original_address = adb_handler[address].original_address; in adb_get_infos()
594 *handler_id = adb_handler[address].handler_id; in adb_get_infos()
652 req->reply[0] = adb_handler[req->data[2]].original_address; in do_adb_query()
653 req->reply[1] = adb_handler[req->data[2]].handler_id; in do_adb_query()