Lines Matching refs:ebus
48 struct hdac_ext_bus *ebus = &skl->ebus; in skl_init_pci() local
57 dev_dbg(ebus_to_hbus(ebus)->dev, "Clearing TCSEL\n"); in skl_init_pci()
69 struct hdac_ext_bus *ebus = dev_id; in skl_interrupt() local
70 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_interrupt()
99 struct hdac_ext_bus *ebus = dev_id; in skl_threaded_handler() local
100 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_threaded_handler()
110 static int skl_acquire_irq(struct hdac_ext_bus *ebus, int do_disconnect) in skl_acquire_irq() argument
112 struct skl *skl = ebus_to_skl(ebus); in skl_acquire_irq()
113 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_acquire_irq()
119 KBUILD_MODNAME, ebus); in skl_acquire_irq()
140 struct hdac_ext_bus *ebus = pci_get_drvdata(pci); in skl_suspend() local
141 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_suspend()
152 struct hdac_ext_bus *ebus = pci_get_drvdata(pci); in skl_resume() local
153 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_resume()
154 struct skl *hda = ebus_to_skl(ebus); in skl_resume()
168 struct hdac_ext_bus *ebus = pci_get_drvdata(pci); in skl_runtime_suspend() local
169 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_runtime_suspend()
170 struct skl *skl = ebus_to_skl(ebus); in skl_runtime_suspend()
178 snd_hdac_ext_bus_link_power_down_all(ebus); in skl_runtime_suspend()
193 struct hdac_ext_bus *ebus = pci_get_drvdata(pci); in skl_runtime_resume() local
194 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_runtime_resume()
195 struct skl *skl = ebus_to_skl(ebus); in skl_runtime_resume()
220 static int skl_free(struct hdac_ext_bus *ebus) in skl_free() argument
222 struct skl *skl = ebus_to_skl(ebus); in skl_free()
223 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_free()
227 snd_hdac_ext_stop_streams(ebus); in skl_free()
235 snd_hdac_stream_free_all(ebus); in skl_free()
236 snd_hdac_link_free_all(ebus); in skl_free()
240 snd_hdac_ext_bus_exit(ebus); in skl_free()
247 struct hdac_bus *bus = ebus_to_hbus(&skl->ebus); in skl_dmic_device_register()
278 static int probe_codec(struct hdac_ext_bus *ebus, int addr) in probe_codec() argument
280 struct hdac_bus *bus = ebus_to_hbus(ebus); in probe_codec()
293 return snd_hdac_ext_bus_device_init(ebus, addr); in probe_codec()
297 static int skl_codec_create(struct hdac_ext_bus *ebus) in skl_codec_create() argument
299 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_codec_create()
307 if (probe_codec(ebus, c) < 0) { in skl_codec_create()
345 struct hdac_ext_bus *ebus; in skl_create() local
360 ebus = &skl->ebus; in skl_create()
361 snd_hdac_ext_bus_init(ebus, &pci->dev, &bus_core_ops, io_ops); in skl_create()
362 ebus->bus.use_posbuf = 1; in skl_create()
365 ebus->bus.bdl_pos_adj = 0; in skl_create()
372 static int skl_first_init(struct hdac_ext_bus *ebus) in skl_first_init() argument
374 struct skl *skl = ebus_to_skl(ebus); in skl_first_init()
375 struct hdac_bus *bus = ebus_to_hbus(ebus); in skl_first_init()
392 snd_hdac_ext_bus_parse_capabilities(ebus); in skl_first_init()
394 if (skl_acquire_irq(ebus, 0) < 0) in skl_first_init()
418 ebus->num_streams = cp_streams + pb_streams; in skl_first_init()
422 (ebus, 0, cp_streams, SNDRV_PCM_STREAM_CAPTURE); in skl_first_init()
425 (ebus, start_idx, pb_streams, SNDRV_PCM_STREAM_PLAYBACK); in skl_first_init()
449 struct hdac_ext_bus *ebus = NULL; in skl_probe() local
458 ebus = &skl->ebus; in skl_probe()
459 bus = ebus_to_hbus(ebus); in skl_probe()
461 err = skl_first_init(ebus); in skl_probe()
470 pci_set_drvdata(skl->pci, ebus); in skl_probe()
473 if (ebus->ppcap) { in skl_probe()
480 if (ebus->mlcap) in skl_probe()
481 snd_hdac_ext_bus_get_ml_capabilities(ebus); in skl_probe()
494 err = skl_codec_create(ebus); in skl_probe()
514 skl_free(ebus); in skl_probe()
521 struct hdac_ext_bus *ebus = pci_get_drvdata(pci); in skl_remove() local
522 struct skl *skl = ebus_to_skl(ebus); in skl_remove()
533 skl_free(ebus); in skl_remove()