Lines Matching refs:wldev
68 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_interfmode_show() local
74 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
76 switch (wldev->phy.interfmode) { in b43legacy_attr_interfmode_show()
91 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
100 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_interfmode_store() local
126 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
127 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
129 err = b43legacy_radio_set_interference_mitigation(wldev, mode); in b43legacy_attr_interfmode_store()
131 b43legacyerr(wldev->wl, "Interference Mitigation not " in b43legacy_attr_interfmode_store()
133 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
134 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
147 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_preamble_show() local
153 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
155 if (wldev->short_preamble) in b43legacy_attr_preamble_show()
160 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
169 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_preamble_store() local
179 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
180 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_preamble_store()
182 wldev->short_preamble = !!value; in b43legacy_attr_preamble_store()
184 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_preamble_store()
185 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
194 int b43legacy_sysfs_register(struct b43legacy_wldev *wldev) in b43legacy_sysfs_register() argument
196 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_register()
199 B43legacy_WARN_ON(b43legacy_status(wldev) != in b43legacy_sysfs_register()
216 void b43legacy_sysfs_unregister(struct b43legacy_wldev *wldev) in b43legacy_sysfs_unregister() argument
218 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_unregister()