Lines Matching refs:hda

599 	struct hda_intel *hda = container_of(chip, struct hda_intel, chip);  in azx_position_check()  local
609 schedule_work(&hda->irq_pending_work); in azx_position_check()
681 struct hda_intel *hda = container_of(work, struct hda_intel, irq_pending_work); in azx_irq_pending_work() local
682 struct azx *chip = &hda->chip; in azx_irq_pending_work()
687 if (!hda->irq_pending_warned) { in azx_irq_pending_work()
691 hda->irq_pending_warned = 1; in azx_irq_pending_work()
817 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_add_card_list() local
819 list_add(&hda->list, &card_list); in azx_add_card_list()
825 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_del_card_list() local
827 list_del_init(&hda->list); in azx_del_card_list()
834 struct hda_intel *hda; in param_set_xint() local
843 list_for_each_entry(hda, &card_list, list) { in param_set_xint()
844 chip = &hda->chip; in param_set_xint()
845 if (!hda->probe_continued || chip->disabled) in param_set_xint()
864 static void haswell_set_bclk(struct hda_intel *hda) in haswell_set_bclk() argument
866 struct azx *chip = &hda->chip; in haswell_set_bclk()
870 if (!hda->need_i915_power) in haswell_set_bclk()
909 struct hda_intel *hda; in azx_suspend() local
916 hda = container_of(chip, struct hda_intel, chip); in azx_suspend()
917 if (chip->disabled || hda->init_failed || !chip->running) in azx_suspend()
933 && hda->need_i915_power) in azx_suspend()
945 struct hda_intel *hda; in azx_resume() local
951 hda = container_of(chip, struct hda_intel, chip); in azx_resume()
952 if (chip->disabled || hda->init_failed || !chip->running) in azx_resume()
956 && hda->need_i915_power) { in azx_resume()
958 haswell_set_bclk(hda); in azx_resume()
1006 struct hda_intel *hda; in azx_runtime_suspend() local
1012 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_suspend()
1013 if (chip->disabled || hda->init_failed) in azx_runtime_suspend()
1027 && hda->need_i915_power) in azx_runtime_suspend()
1038 struct hda_intel *hda; in azx_runtime_resume() local
1047 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_resume()
1048 if (chip->disabled || hda->init_failed) in azx_runtime_resume()
1056 if (hda->need_i915_power) { in azx_runtime_resume()
1058 haswell_set_bclk(hda); in azx_runtime_resume()
1091 struct hda_intel *hda; in azx_runtime_idle() local
1097 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_idle()
1098 if (chip->disabled || hda->init_failed) in azx_runtime_idle()
1133 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_set_state() local
1136 wait_for_completion(&hda->probe_wait); in azx_vs_set_state()
1137 if (hda->init_failed) in azx_vs_set_state()
1144 if (!hda->probe_continued) { in azx_vs_set_state()
1151 hda->init_failed = true; in azx_vs_set_state()
1181 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_can_switch() local
1183 wait_for_completion(&hda->probe_wait); in azx_vs_can_switch()
1184 if (hda->init_failed) in azx_vs_can_switch()
1186 if (chip->disabled || !hda->probe_continued) in azx_vs_can_switch()
1196 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in init_vga_switcheroo() local
1201 hda->use_vga_switcheroo = 1; in init_vga_switcheroo()
1213 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in register_vga_switcheroo() local
1216 if (!hda->use_vga_switcheroo) in register_vga_switcheroo()
1225 hda->vga_switcheroo_registered = 1; in register_vga_switcheroo()
1229 &hda->hdmi_pm_domain); in register_vga_switcheroo()
1244 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_free() local
1252 hda->init_failed = 1; /* to be sure */ in azx_free()
1253 complete_all(&hda->probe_wait); in azx_free()
1255 if (use_vga_switcheroo(hda)) { in azx_free()
1256 if (chip->disabled && hda->probe_continued) in azx_free()
1258 if (hda->vga_switcheroo_registered) in azx_free()
1287 if (hda->need_i915_power) in azx_free()
1291 kfree(hda); in azx_free()
1552 struct hda_intel *hda = container_of(work, struct hda_intel, probe_work); in azx_probe_work() local
1553 azx_probe_continue(&hda->chip); in azx_probe_work()
1570 struct hda_intel *hda; in azx_create() local
1580 hda = kzalloc(sizeof(*hda), GFP_KERNEL); in azx_create()
1581 if (!hda) { in azx_create()
1586 chip = &hda->chip; in azx_create()
1597 INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); in azx_create()
1598 INIT_LIST_HEAD(&hda->list); in azx_create()
1600 init_completion(&hda->probe_wait); in azx_create()
1624 kfree(hda); in azx_create()
1637 INIT_WORK(&hda->probe_work, azx_probe_work); in azx_create()
1780 struct hda_intel *hda; in azx_first_init() local
1782 hda = container_of(chip, struct hda_intel, chip); in azx_first_init()
1783 haswell_set_bclk(hda); in azx_first_init()
1967 struct hda_intel *hda; in azx_probe() local
1990 hda = container_of(chip, struct hda_intel, chip); in azx_probe()
2027 schedule_work(&hda->probe_work); in azx_probe()
2031 complete_all(&hda->probe_wait); in azx_probe()
2047 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_probe_continue() local
2053 hda->probe_continued = 1; in azx_probe_continue()
2063 hda->need_i915_power = 1; in azx_probe_continue()
2125 if (azx_has_pm_runtime(chip) || hda->use_vga_switcheroo) in azx_probe_continue()
2130 && !hda->need_i915_power) in azx_probe_continue()
2135 hda->init_failed = 1; in azx_probe_continue()
2136 complete_all(&hda->probe_wait); in azx_probe_continue()
2144 struct hda_intel *hda; in azx_remove() local
2149 hda = container_of(chip, struct hda_intel, chip); in azx_remove()
2150 cancel_work_sync(&hda->probe_work); in azx_remove()