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()
724 struct hda_intel *hda = container_of(work, struct hda_intel, irq_pending_work); in azx_irq_pending_work() local
725 struct azx *chip = &hda->chip; in azx_irq_pending_work()
730 if (!hda->irq_pending_warned) { in azx_irq_pending_work()
734 hda->irq_pending_warned = 1; in azx_irq_pending_work()
919 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_add_card_list() local
922 list_add(&hda->list, &card_list); in azx_add_card_list()
927 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_del_card_list() local
930 list_del_init(&hda->list); in azx_del_card_list()
936 struct hda_intel *hda; in param_set_xint() local
948 list_for_each_entry(hda, &card_list, list) { in param_set_xint()
949 chip = &hda->chip; in param_set_xint()
950 if (!hda->probe_continued || chip->disabled || in param_set_xint()
951 hda->runtime_pm_disabled) in param_set_xint()
964 struct hda_intel *hda; in azx_is_pm_ready() local
969 hda = container_of(chip, struct hda_intel, chip); in azx_is_pm_ready()
970 if (chip->disabled || hda->init_failed || !chip->running) in azx_is_pm_ready()
977 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in __azx_runtime_resume() local
983 if (hda->need_i915_power) in __azx_runtime_resume()
1004 if (!hda->need_i915_power) in __azx_runtime_resume()
1141 struct hda_intel *hda; in azx_runtime_idle() local
1147 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_idle()
1148 if (chip->disabled || hda->init_failed) in azx_runtime_idle()
1182 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_set_state() local
1186 wait_for_completion(&hda->probe_wait); in azx_vs_set_state()
1187 if (hda->init_failed) in azx_vs_set_state()
1194 if (!hda->probe_continued) { in azx_vs_set_state()
1236 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_can_switch() local
1238 wait_for_completion(&hda->probe_wait); in azx_vs_can_switch()
1239 if (hda->init_failed) in azx_vs_can_switch()
1241 if (chip->disabled || !hda->probe_continued) in azx_vs_can_switch()
1255 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in setup_vga_switcheroo_runtime_pm() local
1258 if (hda->use_vga_switcheroo && !needs_eld_notify_link(chip)) { in setup_vga_switcheroo_runtime_pm()
1280 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in init_vga_switcheroo() local
1286 hda->use_vga_switcheroo = 1; in init_vga_switcheroo()
1306 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in register_vga_switcheroo() local
1310 if (!hda->use_vga_switcheroo) in register_vga_switcheroo()
1319 hda->vga_switcheroo_registered = 1; in register_vga_switcheroo()
1336 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_free() local
1339 if (hda->freed) in azx_free()
1352 hda->init_failed = 1; /* to be sure */ in azx_free()
1353 complete_all(&hda->probe_wait); in azx_free()
1355 if (use_vga_switcheroo(hda)) { in azx_free()
1356 if (chip->disabled && hda->probe_continued) in azx_free()
1358 if (hda->vga_switcheroo_registered) { in azx_free()
1396 hda->freed = 1; in azx_free()
1728 struct hda_intel *hda = container_of(work, struct hda_intel, probe_work.work); in azx_probe_work() local
1729 azx_probe_continue(&hda->chip); in azx_probe_work()
1777 struct hda_intel *hda; in azx_create() local
1787 hda = devm_kzalloc(&pci->dev, sizeof(*hda), GFP_KERNEL); in azx_create()
1788 if (!hda) in azx_create()
1791 chip = &hda->chip; in azx_create()
1803 INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); in azx_create()
1804 INIT_LIST_HEAD(&hda->list); in azx_create()
1806 init_completion(&hda->probe_wait); in azx_create()
1845 INIT_DELAYED_WORK(&hda->probe_work, azx_probe_work); in azx_create()
2132 struct hda_intel *hda; in azx_probe() local
2181 hda = container_of(chip, struct hda_intel, chip); in azx_probe()
2211 hda->need_i915_power = true; in azx_probe()
2246 schedule_delayed_work(&hda->probe_work, 0); in azx_probe()
2250 complete_all(&hda->probe_wait); in azx_probe()
2307 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in set_default_power_save() local
2318 hda->runtime_pm_disabled = 1; in set_default_power_save()
2335 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_probe_continue() local
2341 if (chip->disabled || hda->init_failed) in azx_probe_continue()
2343 if (hda->probe_retry) in azx_probe_continue()
2347 hda->probe_continued = 1; in azx_probe_continue()
2387 ++hda->probe_retry < 60) { in azx_probe_continue()
2388 schedule_delayed_work(&hda->probe_work, in azx_probe_continue()
2421 if (!hda->need_i915_power) in azx_probe_continue()
2423 complete_all(&hda->probe_wait); in azx_probe_continue()
2425 hda->probe_retry = 0; in azx_probe_continue()
2433 struct hda_intel *hda; in azx_remove() local
2438 hda = container_of(chip, struct hda_intel, chip); in azx_remove()
2451 cancel_delayed_work_sync(&hda->probe_work); in azx_remove()