Lines Matching defs:handler
55 struct vga_switcheroo_handler *handler;
64 int vga_switcheroo_register_handler(struct vga_switcheroo_handler *handler)
67 if (vgasr_priv.handler) {
72 vgasr_priv.handler = handler;
81 vgasr_priv.handler = NULL;
90 /* call the handler to init */
91 vgasr_priv.handler->init();
94 ret = vgasr_priv.handler->get_client_id(vgasr_priv.clients[i].pdev);
127 /* if we get two clients + handler */
128 if (vgasr_priv.registered_clients == 0x3 && vgasr_priv.handler) {
195 ret = vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_ON);
206 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_OFF);
249 ret = vgasr_priv.handler->switchto(new_client->id);