Lines Matching refs:wldev
66 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_interfmode_show() local
72 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
74 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()
162 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_show()
171 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_preamble_store() local
181 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
182 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_preamble_store()
184 wldev->short_preamble = !!value; in b43legacy_attr_preamble_store()
186 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_preamble_store()
187 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_preamble_store()
196 int b43legacy_sysfs_register(struct b43legacy_wldev *wldev) in b43legacy_sysfs_register() argument
198 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_register()
201 B43legacy_WARN_ON(b43legacy_status(wldev) != in b43legacy_sysfs_register()
218 void b43legacy_sysfs_unregister(struct b43legacy_wldev *wldev) in b43legacy_sysfs_unregister() argument
220 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_unregister()