Home
last modified time | relevance | path

Searched refs:wldev (Results 1 – 6 of 6) sorted by relevance

/drivers/net/wireless/b43legacy/
Dsysfs.c79 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_interfmode_show() local
85 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
87 switch (wldev->phy.interfmode) { in b43legacy_attr_interfmode_show()
104 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show()
113 struct b43legacy_wldev *wldev = dev_to_b43legacy_wldev(dev); in b43legacy_attr_interfmode_store() local
139 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_store()
140 spin_lock_irqsave(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
142 err = b43legacy_radio_set_interference_mitigation(wldev, mode); in b43legacy_attr_interfmode_store()
144 b43legacyerr(wldev->wl, "Interference Mitigation not " in b43legacy_attr_interfmode_store()
147 spin_unlock_irqrestore(&wldev->wl->irq_lock, flags); in b43legacy_attr_interfmode_store()
[all …]
Dmain.c3634 struct b43legacy_wldev *wldev; in b43legacy_one_core_detach() local
3640 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3641 wl = wldev->wl; in b43legacy_one_core_detach()
3642 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3643 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3644 list_del(&wldev->list); in b43legacy_one_core_detach()
3647 kfree(wldev); in b43legacy_one_core_detach()
3653 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3674 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3675 if (!wldev) in b43legacy_one_core_attach()
[all …]
Db43legacy.h641 #define b43legacy_status(wldev) atomic_read(&(wldev)->__init_status) argument
642 #define b43legacy_set_status(wldev, stat) do { \ argument
643 atomic_set(&(wldev)->__init_status, (stat)); \
/drivers/net/wireless/b43/
Dsysfs.c54 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()
[all …]
Dmain.c4505 struct b43_wldev *wldev; in b43_one_core_detach() local
4511 wldev = ssb_get_drvdata(dev); in b43_one_core_detach()
4512 wl = wldev->wl; in b43_one_core_detach()
4513 b43_debugfs_remove_device(wldev); in b43_one_core_detach()
4514 b43_wireless_core_detach(wldev); in b43_one_core_detach()
4515 list_del(&wldev->list); in b43_one_core_detach()
4518 kfree(wldev); in b43_one_core_detach()
4523 struct b43_wldev *wldev; in b43_one_core_attach() local
4543 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43_one_core_attach()
4544 if (!wldev) in b43_one_core_attach()
[all …]
Db43.h694 #define b43_status(wldev) atomic_read(&(wldev)->__init_status) argument
695 #define b43_set_status(wldev, stat) do { \ argument
696 atomic_set(&(wldev)->__init_status, (stat)); \