Lines Matching refs:hda
652 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_position_check() local
662 schedule_work(&hda->irq_pending_work); in azx_position_check()
751 struct hda_intel *hda = container_of(work, struct hda_intel, irq_pending_work); in azx_irq_pending_work() local
752 struct azx *chip = &hda->chip; in azx_irq_pending_work()
757 if (!hda->irq_pending_warned) { in azx_irq_pending_work()
761 hda->irq_pending_warned = 1; in azx_irq_pending_work()
941 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_add_card_list() local
943 list_add(&hda->list, &card_list); in azx_add_card_list()
949 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_del_card_list() local
951 list_del_init(&hda->list); in azx_del_card_list()
958 struct hda_intel *hda; in param_set_xint() local
967 list_for_each_entry(hda, &card_list, list) { in param_set_xint()
968 chip = &hda->chip; in param_set_xint()
969 if (!hda->probe_continued || chip->disabled) in param_set_xint()
983 struct hda_intel *hda; in azx_is_pm_ready() local
988 hda = container_of(chip, struct hda_intel, chip); in azx_is_pm_ready()
989 if (chip->disabled || hda->init_failed || !chip->running) in azx_is_pm_ready()
996 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in __azx_runtime_resume() local
1002 if (hda->need_i915_power) in __azx_runtime_resume()
1023 if (!hda->need_i915_power) in __azx_runtime_resume()
1177 struct hda_intel *hda; in azx_runtime_idle() local
1183 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_idle()
1184 if (chip->disabled || hda->init_failed) in azx_runtime_idle()
1227 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_set_state() local
1231 wait_for_completion(&hda->probe_wait); in azx_vs_set_state()
1232 if (hda->init_failed) in azx_vs_set_state()
1239 if (!hda->probe_continued) { in azx_vs_set_state()
1281 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_can_switch() local
1283 wait_for_completion(&hda->probe_wait); in azx_vs_can_switch()
1284 if (hda->init_failed) in azx_vs_can_switch()
1286 if (chip->disabled || !hda->probe_continued) in azx_vs_can_switch()
1300 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in setup_vga_switcheroo_runtime_pm() local
1303 if (hda->use_vga_switcheroo && !needs_eld_notify_link(chip)) { in setup_vga_switcheroo_runtime_pm()
1325 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in init_vga_switcheroo() local
1331 hda->use_vga_switcheroo = 1; in init_vga_switcheroo()
1351 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in register_vga_switcheroo() local
1355 if (!hda->use_vga_switcheroo) in register_vga_switcheroo()
1364 hda->vga_switcheroo_registered = 1; in register_vga_switcheroo()
1381 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_free() local
1384 if (hda->freed) in azx_free()
1393 hda->init_failed = 1; /* to be sure */ in azx_free()
1394 complete_all(&hda->probe_wait); in azx_free()
1396 if (use_vga_switcheroo(hda)) { in azx_free()
1397 if (chip->disabled && hda->probe_continued) in azx_free()
1399 if (hda->vga_switcheroo_registered) in azx_free()
1431 hda->freed = 1; in azx_free()
1769 struct hda_intel *hda = container_of(work, struct hda_intel, probe_work.work); in azx_probe_work() local
1770 azx_probe_continue(&hda->chip); in azx_probe_work()
1806 struct hda_intel *hda; in azx_create() local
1816 hda = devm_kzalloc(&pci->dev, sizeof(*hda), GFP_KERNEL); in azx_create()
1817 if (!hda) { in azx_create()
1822 chip = &hda->chip; in azx_create()
1834 INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); in azx_create()
1835 INIT_LIST_HEAD(&hda->list); in azx_create()
1837 init_completion(&hda->probe_wait); in azx_create()
1878 INIT_DELAYED_WORK(&hda->probe_work, azx_probe_work); in azx_create()
2135 struct hda_intel *hda; in azx_probe() local
2176 hda = container_of(chip, struct hda_intel, chip); in azx_probe()
2213 schedule_delayed_work(&hda->probe_work, 0); in azx_probe()
2217 complete_all(&hda->probe_wait); in azx_probe()
2295 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_probe_continue() local
2301 if (chip->disabled || hda->init_failed) in azx_probe_continue()
2303 if (hda->probe_retry) in azx_probe_continue()
2307 hda->probe_continued = 1; in azx_probe_continue()
2330 hda->need_i915_power = 1; in azx_probe_continue()
2373 ++hda->probe_retry < 60) { in azx_probe_continue()
2374 schedule_delayed_work(&hda->probe_work, in azx_probe_continue()
2407 if (!hda->need_i915_power) in azx_probe_continue()
2409 complete_all(&hda->probe_wait); in azx_probe_continue()
2411 hda->probe_retry = 0; in azx_probe_continue()
2419 struct hda_intel *hda; in azx_remove() local
2424 hda = container_of(chip, struct hda_intel, chip); in azx_remove()
2437 cancel_delayed_work_sync(&hda->probe_work); in azx_remove()