Lines Matching refs:hda
618 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_position_check() local
628 schedule_work(&hda->irq_pending_work); in azx_position_check()
717 struct hda_intel *hda = container_of(work, struct hda_intel, irq_pending_work); in azx_irq_pending_work() local
718 struct azx *chip = &hda->chip; in azx_irq_pending_work()
723 if (!hda->irq_pending_warned) { in azx_irq_pending_work()
727 hda->irq_pending_warned = 1; in azx_irq_pending_work()
907 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_add_card_list() local
909 list_add(&hda->list, &card_list); in azx_add_card_list()
915 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_del_card_list() local
917 list_del_init(&hda->list); in azx_del_card_list()
924 struct hda_intel *hda; in param_set_xint() local
933 list_for_each_entry(hda, &card_list, list) { in param_set_xint()
934 chip = &hda->chip; in param_set_xint()
935 if (!hda->probe_continued || chip->disabled) in param_set_xint()
949 struct hda_intel *hda; in azx_is_pm_ready() local
954 hda = container_of(chip, struct hda_intel, chip); in azx_is_pm_ready()
955 if (chip->disabled || hda->init_failed || !chip->running) in azx_is_pm_ready()
962 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in __azx_runtime_resume() local
968 if (hda->need_i915_power) in __azx_runtime_resume()
989 if (!hda->need_i915_power) in __azx_runtime_resume()
1143 struct hda_intel *hda; in azx_runtime_idle() local
1149 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_idle()
1150 if (chip->disabled || hda->init_failed) in azx_runtime_idle()
1193 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_set_state() local
1197 wait_for_completion(&hda->probe_wait); in azx_vs_set_state()
1198 if (hda->init_failed) in azx_vs_set_state()
1205 if (!hda->probe_continued) { in azx_vs_set_state()
1247 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_can_switch() local
1249 wait_for_completion(&hda->probe_wait); in azx_vs_can_switch()
1250 if (hda->init_failed) in azx_vs_can_switch()
1252 if (chip->disabled || !hda->probe_continued) in azx_vs_can_switch()
1266 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in setup_vga_switcheroo_runtime_pm() local
1269 if (hda->use_vga_switcheroo && !needs_eld_notify_link(chip)) { in setup_vga_switcheroo_runtime_pm()
1291 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in init_vga_switcheroo() local
1297 hda->use_vga_switcheroo = 1; in init_vga_switcheroo()
1317 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in register_vga_switcheroo() local
1321 if (!hda->use_vga_switcheroo) in register_vga_switcheroo()
1330 hda->vga_switcheroo_registered = 1; in register_vga_switcheroo()
1347 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_free() local
1350 if (hda->freed) in azx_free()
1359 hda->init_failed = 1; /* to be sure */ in azx_free()
1360 complete_all(&hda->probe_wait); in azx_free()
1362 if (use_vga_switcheroo(hda)) { in azx_free()
1363 if (chip->disabled && hda->probe_continued) in azx_free()
1365 if (hda->vga_switcheroo_registered) in azx_free()
1390 hda->freed = 1; in azx_free()
1727 struct hda_intel *hda = container_of(work, struct hda_intel, probe_work.work); in azx_probe_work() local
1728 azx_probe_continue(&hda->chip); in azx_probe_work()
1764 struct hda_intel *hda; in azx_create() local
1774 hda = devm_kzalloc(&pci->dev, sizeof(*hda), GFP_KERNEL); in azx_create()
1775 if (!hda) in azx_create()
1778 chip = &hda->chip; in azx_create()
1790 INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); in azx_create()
1791 INIT_LIST_HEAD(&hda->list); in azx_create()
1793 init_completion(&hda->probe_wait); in azx_create()
1832 INIT_DELAYED_WORK(&hda->probe_work, azx_probe_work); in azx_create()
2068 struct hda_intel *hda; in azx_probe() local
2109 hda = container_of(chip, struct hda_intel, chip); in azx_probe()
2146 schedule_delayed_work(&hda->probe_work, 0); in azx_probe()
2150 complete_all(&hda->probe_wait); in azx_probe()
2226 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_probe_continue() local
2232 if (chip->disabled || hda->init_failed) in azx_probe_continue()
2234 if (hda->probe_retry) in azx_probe_continue()
2238 hda->probe_continued = 1; in azx_probe_continue()
2261 hda->need_i915_power = true; in azx_probe_continue()
2304 ++hda->probe_retry < 60) { in azx_probe_continue()
2305 schedule_delayed_work(&hda->probe_work, in azx_probe_continue()
2338 if (!hda->need_i915_power) in azx_probe_continue()
2340 complete_all(&hda->probe_wait); in azx_probe_continue()
2342 hda->probe_retry = 0; in azx_probe_continue()
2350 struct hda_intel *hda; in azx_remove() local
2355 hda = container_of(chip, struct hda_intel, chip); in azx_remove()
2368 cancel_delayed_work_sync(&hda->probe_work); in azx_remove()