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()
93 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
102 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_interfmode_store() local
128 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
129 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
131 err = b43legacy_radio_set_interference_mitigation(wldev, mode); in b43legacy_attr_interfmode_store()
133 b43legacyerr(wldev->wl, "Interference Mitigation not " in b43legacy_attr_interfmode_store()
135 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
136 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
149 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_preamble_show() local
155 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
157 if (wldev->short_preamble) in b43legacy_attr_preamble_show()
164 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
173 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_preamble_store() local
183 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
184 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_preamble_store()
186 wldev->short_preamble = !!value; in b43legacy_attr_preamble_store()
188 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_preamble_store()
189 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
198 int b43legacy_sysfs_register(struct b43legacy_wldev *wldev) in b43legacy_sysfs_register() argument
200 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_register()
203 B43legacy_WARN_ON(b43legacy_status(wldev) != in b43legacy_sysfs_register()
220 void b43legacy_sysfs_unregister(struct b43legacy_wldev *wldev) in b43legacy_sysfs_unregister() argument
222 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_unregister()