Lines Matching refs:handler

159 	const struct vga_switcheroo_handler *handler;  member
183 vgasr_priv.registered_clients == 2 && vgasr_priv.handler; in vga_switcheroo_ready()
192 if (vgasr_priv.handler->init) in vga_switcheroo_enable()
193 vgasr_priv.handler->init(); in vga_switcheroo_enable()
200 ret = vgasr_priv.handler->get_client_id(client->pdev); in vga_switcheroo_enable()
212 ret = vgasr_priv.handler->get_client_id(client->vga_dev); in vga_switcheroo_enable()
236 const struct vga_switcheroo_handler *handler, in vga_switcheroo_register_handler() argument
240 if (vgasr_priv.handler) { in vga_switcheroo_register_handler()
245 vgasr_priv.handler = handler; in vga_switcheroo_register_handler()
266 vgasr_priv.handler = NULL; in vga_switcheroo_unregister_handler()
377 id = vgasr_priv.handler->get_client_id(vga_dev); in vga_switcheroo_register_audio_client()
564 if (!vgasr_priv.handler || !vgasr_priv.handler->switch_ddc) { in vga_switcheroo_lock_ddc()
569 id = vgasr_priv.handler->get_client_id(pdev); in vga_switcheroo_lock_ddc()
570 vgasr_priv.old_ddc_owner = vgasr_priv.handler->switch_ddc(id); in vga_switcheroo_lock_ddc()
600 id = vgasr_priv.handler->get_client_id(pdev); in vga_switcheroo_unlock_ddc()
602 ret = vgasr_priv.handler->switch_ddc( in vga_switcheroo_unlock_ddc()
676 if (vgasr_priv.handler->power_state) in vga_switchon()
677 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_ON); in vga_switchon()
690 if (vgasr_priv.handler->power_state) in vga_switchoff()
691 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_OFF); in vga_switchoff()
742 ret = vgasr_priv.handler->switchto(new_client->id); in vga_switchto_stage2()
861 ret = vgasr_priv.handler->switchto(client_id); in vga_switcheroo_debugfs_write()
1000 if (!vgasr_priv.handler->power_state) in vga_switcheroo_power_switch()
1010 vgasr_priv.handler->power_state(client->id, state); in vga_switcheroo_power_switch()
1023 if (vgasr_priv.handler->switchto) { in vga_switcheroo_runtime_suspend()
1025 vgasr_priv.handler->switchto(VGA_SWITCHEROO_IGD); in vga_switcheroo_runtime_suspend()