Lines Matching refs:bus
22 static void update_codec_wake_enable(struct hdac_bus *bus, unsigned int addr, bool link_power)
24 unsigned int mask = snd_hdac_chip_readw(bus, WAKEEN);
31 snd_hdac_chip_updatew(bus, WAKEEN, STATESTS_INT_MASK, mask);
36 struct hdac_bus *bus = codec->bus;
37 bool oldstate = test_bit(codec->addr, &bus->codec_powered);
53 snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false);
56 update_codec_wake_enable(bus, codec->addr, enable);
71 struct hdac_bus *bus = sof_to_bus(sdev);
77 snd_hdac_ext_bus_init(bus, dev, &bus_core_ops, sof_hda_ext_ops);
80 bus->use_pio_for_commands = true;
82 snd_hdac_ext_bus_init(bus, dev, NULL, NULL);
86 memset(bus, 0, sizeof(*bus));
87 bus->dev = dev;
89 INIT_LIST_HEAD(&bus->stream_list);
91 bus->irq = -1;
94 * There is only one HDA bus atm. keep the index as 0.
95 * Need to fix when there are more than one HDA bus.
97 bus->idx = 0;
99 spin_lock_init(&bus->reg_lock);
107 struct hdac_bus *bus = sof_to_bus(sdev);
109 snd_hdac_ext_bus_exit(bus);