Lines Matching refs:wldev

3715 	struct b43legacy_wldev *wldev;  in b43legacy_one_core_detach()  local
3721 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3722 wl = wldev->wl; in b43legacy_one_core_detach()
3723 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3724 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3725 list_del(&wldev->list); in b43legacy_one_core_detach()
3728 kfree(wldev); in b43legacy_one_core_detach()
3734 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3737 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3738 if (!wldev) in b43legacy_one_core_attach()
3741 wldev->dev = dev; in b43legacy_one_core_attach()
3742 wldev->wl = wl; in b43legacy_one_core_attach()
3743 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3744 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3745 tasklet_setup(&wldev->isr_tasklet, b43legacy_interrupt_tasklet); in b43legacy_one_core_attach()
3747 wldev->__using_pio = true; in b43legacy_one_core_attach()
3748 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3750 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3754 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3756 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3757 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3762 kfree(wldev); in b43legacy_one_core_attach()
3884 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3888 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3890 complete(&wldev->fw_load_complete); in b43legacy_remove()
3893 if (!wldev->fw.ucode) in b43legacy_remove()
3895 if (wl->current_dev == wldev) in b43legacy_remove()
3922 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3923 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3928 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3929 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3930 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3931 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3932 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3942 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3943 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3949 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3950 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3956 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3957 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3959 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()