Lines Matching defs: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);
75 snd_hdac_ext_bus_init(bus, dev, &bus_core_ops, sof_hda_ext_ops);
77 snd_hdac_ext_bus_init(bus, dev, NULL, NULL);
81 memset(bus, 0, sizeof(*bus));
82 bus->dev = dev;
84 INIT_LIST_HEAD(&bus->stream_list);
86 bus->irq = -1;
89 * There is only one HDA bus atm. keep the index as 0.
90 * Need to fix when there are more than one HDA bus.
92 bus->idx = 0;
94 spin_lock_init(&bus->reg_lock);
101 struct hdac_bus *bus = sof_to_bus(sdev);
103 snd_hdac_ext_bus_exit(bus);