Lines Matching refs:hda

611 	struct hda_intel *hda = container_of(chip, struct hda_intel, chip);  in azx_position_check()  local
621 schedule_work(&hda->irq_pending_work); in azx_position_check()
710 struct hda_intel *hda = container_of(work, struct hda_intel, irq_pending_work); in azx_irq_pending_work() local
711 struct azx *chip = &hda->chip; in azx_irq_pending_work()
716 if (!hda->irq_pending_warned) { in azx_irq_pending_work()
720 hda->irq_pending_warned = 1; in azx_irq_pending_work()
900 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_add_card_list() local
902 list_add(&hda->list, &card_list); in azx_add_card_list()
908 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_del_card_list() local
910 list_del_init(&hda->list); in azx_del_card_list()
917 struct hda_intel *hda; in param_set_xint() local
926 list_for_each_entry(hda, &card_list, list) { in param_set_xint()
927 chip = &hda->chip; in param_set_xint()
928 if (!hda->probe_continued || chip->disabled) in param_set_xint()
942 struct hda_intel *hda; in azx_is_pm_ready() local
947 hda = container_of(chip, struct hda_intel, chip); in azx_is_pm_ready()
948 if (chip->disabled || hda->init_failed || !chip->running) in azx_is_pm_ready()
955 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in __azx_runtime_resume() local
961 if (hda->need_i915_power) in __azx_runtime_resume()
982 if (!hda->need_i915_power) in __azx_runtime_resume()
1136 struct hda_intel *hda; in azx_runtime_idle() local
1142 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_idle()
1143 if (chip->disabled || hda->init_failed) in azx_runtime_idle()
1186 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_set_state() local
1190 wait_for_completion(&hda->probe_wait); in azx_vs_set_state()
1191 if (hda->init_failed) in azx_vs_set_state()
1198 if (!hda->probe_continued) { in azx_vs_set_state()
1240 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_can_switch() local
1242 wait_for_completion(&hda->probe_wait); in azx_vs_can_switch()
1243 if (hda->init_failed) in azx_vs_can_switch()
1245 if (chip->disabled || !hda->probe_continued) in azx_vs_can_switch()
1259 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in setup_vga_switcheroo_runtime_pm() local
1262 if (hda->use_vga_switcheroo && !needs_eld_notify_link(chip)) { in setup_vga_switcheroo_runtime_pm()
1284 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in init_vga_switcheroo() local
1290 hda->use_vga_switcheroo = 1; in init_vga_switcheroo()
1310 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in register_vga_switcheroo() local
1314 if (!hda->use_vga_switcheroo) in register_vga_switcheroo()
1323 hda->vga_switcheroo_registered = 1; in register_vga_switcheroo()
1340 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_free() local
1343 if (hda->freed) in azx_free()
1356 hda->init_failed = 1; /* to be sure */ in azx_free()
1357 complete_all(&hda->probe_wait); in azx_free()
1359 if (use_vga_switcheroo(hda)) { in azx_free()
1360 if (chip->disabled && hda->probe_continued) in azx_free()
1362 if (hda->vga_switcheroo_registered) in azx_free()
1387 hda->freed = 1; in azx_free()
1725 struct hda_intel *hda = container_of(work, struct hda_intel, probe_work.work); in azx_probe_work() local
1726 azx_probe_continue(&hda->chip); in azx_probe_work()
1762 struct hda_intel *hda; in azx_create() local
1772 hda = devm_kzalloc(&pci->dev, sizeof(*hda), GFP_KERNEL); in azx_create()
1773 if (!hda) in azx_create()
1776 chip = &hda->chip; in azx_create()
1788 INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); in azx_create()
1789 INIT_LIST_HEAD(&hda->list); in azx_create()
1791 init_completion(&hda->probe_wait); in azx_create()
1830 INIT_DELAYED_WORK(&hda->probe_work, azx_probe_work); in azx_create()
2068 struct hda_intel *hda; in azx_probe() local
2111 hda = container_of(chip, struct hda_intel, chip); in azx_probe()
2148 schedule_delayed_work(&hda->probe_work, 0); in azx_probe()
2152 complete_all(&hda->probe_wait); in azx_probe()
2228 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_probe_continue() local
2234 if (chip->disabled || hda->init_failed) in azx_probe_continue()
2236 if (hda->probe_retry) in azx_probe_continue()
2240 hda->probe_continued = 1; in azx_probe_continue()
2263 hda->need_i915_power = true; in azx_probe_continue()
2306 ++hda->probe_retry < 60) { in azx_probe_continue()
2307 schedule_delayed_work(&hda->probe_work, in azx_probe_continue()
2340 if (!hda->need_i915_power) in azx_probe_continue()
2342 complete_all(&hda->probe_wait); in azx_probe_continue()
2344 hda->probe_retry = 0; in azx_probe_continue()
2352 struct hda_intel *hda; in azx_remove() local
2357 hda = container_of(chip, struct hda_intel, chip); in azx_remove()
2370 cancel_delayed_work_sync(&hda->probe_work); in azx_remove()