Lines Matching defs:dev
17 bool b43legacy_is_hw_radio_enabled(struct b43legacy_wldev *dev)
19 if (dev->dev->id.revision >= 3) {
20 if (!(b43legacy_read32(dev, B43legacy_MMIO_RADIO_HWENABLED_HI)
29 if (b43legacy_status(dev) < B43legacy_STAT_STARTED)
31 if (b43legacy_read16(dev, B43legacy_MMIO_RADIO_HWENABLED_LO)
42 struct b43legacy_wldev *dev = wl->current_dev;
43 struct ssb_bus *bus = dev->dev->bus;
48 if (unlikely(b43legacy_status(dev) < B43legacy_STAT_INITIALIZED)) {
53 ssb_device_enable(dev->dev, 0);
57 enabled = b43legacy_is_hw_radio_enabled(dev);
59 if (unlikely(enabled != dev->radio_hw_enable)) {
60 dev->radio_hw_enable = enabled;
64 if (enabled != dev->phy.radio_on) {
66 b43legacy_radio_turn_on(dev);
68 b43legacy_radio_turn_off(dev, 0);
73 ssb_device_disable(dev->dev, 0);