Lines Matching refs:wldev
54 struct b43_wldev *wldev = dev_to_b43_wldev(dev); in b43_attr_interfmode_show() local
60 mutex_lock(&wldev->wl->mutex); in b43_attr_interfmode_show()
62 if (wldev->phy.type != B43_PHYTYPE_G) { in b43_attr_interfmode_show()
63 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_show()
67 switch (wldev->phy.g->interfmode) { in b43_attr_interfmode_show()
87 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_show()
96 struct b43_wldev *wldev = dev_to_b43_wldev(dev); in b43_attr_interfmode_store() local
122 mutex_lock(&wldev->wl->mutex); in b43_attr_interfmode_store()
123 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43_attr_interfmode_store()
125 if (wldev->phy.ops->interf_mitigation) { in b43_attr_interfmode_store()
126 err = wldev->phy.ops->interf_mitigation(wldev, mode); in b43_attr_interfmode_store()
128 b43err(wldev->wl, "Interference Mitigation not " in b43_attr_interfmode_store()
135 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43_attr_interfmode_store()
136 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_store()
144 int b43_sysfs_register(struct b43_wldev *wldev) in b43_sysfs_register() argument
146 struct device *dev = wldev->dev->dev; in b43_sysfs_register()
148 B43_WARN_ON(b43_status(wldev) != B43_STAT_INITIALIZED); in b43_sysfs_register()
153 void b43_sysfs_unregister(struct b43_wldev *wldev) in b43_sysfs_unregister() argument
155 struct device *dev = wldev->dev->dev; in b43_sysfs_unregister()