Home
last modified time | relevance | path

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

/linux-3.4.99/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.c3747 struct b43legacy_wldev *wldev; in b43legacy_one_core_detach() local
3753 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3754 wl = wldev->wl; in b43legacy_one_core_detach()
3755 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3756 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3757 list_del(&wldev->list); in b43legacy_one_core_detach()
3760 kfree(wldev); in b43legacy_one_core_detach()
3766 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3769 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3770 if (!wldev) in b43legacy_one_core_attach()
[all …]
Db43legacy.h662 #define b43legacy_status(wldev) atomic_read(&(wldev)->__init_status) argument
663 #define b43legacy_set_status(wldev, stat) do { \ argument
664 atomic_set(&(wldev)->__init_status, (stat)); \
/linux-3.4.99/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
121 mutex_lock(&wldev->wl->mutex); in b43_attr_interfmode_store()
123 if (wldev->phy.ops->interf_mitigation) { in b43_attr_interfmode_store()
124 err = wldev->phy.ops->interf_mitigation(wldev, mode); in b43_attr_interfmode_store()
[all …]
Db43.h788 #define b43_status(wldev) atomic_read(&(wldev)->__init_status) argument
789 #define b43_set_status(wldev, stat) do { \ argument
790 atomic_set(&(wldev)->__init_status, (stat)); \
977 static inline int b43_bus_may_powerdown(struct b43_wldev *wldev) in b43_bus_may_powerdown() argument
979 return wldev->dev->bus_may_powerdown(wldev->dev); in b43_bus_may_powerdown()
981 static inline int b43_bus_powerup(struct b43_wldev *wldev, bool dynamic_pctl) in b43_bus_powerup() argument
983 return wldev->dev->bus_powerup(wldev->dev, dynamic_pctl); in b43_bus_powerup()
985 static inline int b43_device_is_enabled(struct b43_wldev *wldev) in b43_device_is_enabled() argument
987 return wldev->dev->device_is_enabled(wldev->dev); in b43_device_is_enabled()
989 static inline void b43_device_enable(struct b43_wldev *wldev, in b43_device_enable() argument
[all …]
Dbus.c243 void b43_bus_set_wldev(struct b43_bus_dev *dev, void *wldev) in b43_bus_set_wldev() argument
248 bcma_set_drvdata(dev->bdev, wldev); in b43_bus_set_wldev()
253 ssb_set_drvdata(dev->sdev, wldev); in b43_bus_set_wldev()
Dmain.c5195 struct b43_wldev *wldev; in b43_one_core_detach() local
5201 wldev = b43_bus_get_wldev(dev); in b43_one_core_detach()
5202 wl = wldev->wl; in b43_one_core_detach()
5203 b43_debugfs_remove_device(wldev); in b43_one_core_detach()
5204 b43_wireless_core_detach(wldev); in b43_one_core_detach()
5205 list_del(&wldev->list); in b43_one_core_detach()
5208 kfree(wldev); in b43_one_core_detach()
5213 struct b43_wldev *wldev; in b43_one_core_attach() local
5216 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43_one_core_attach()
5217 if (!wldev) in b43_one_core_attach()
[all …]