Lines Matching refs:wldev

3720 	struct b43legacy_wldev *wldev;  in b43legacy_one_core_detach()  local
3726 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3727 wl = wldev->wl; in b43legacy_one_core_detach()
3728 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3729 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3730 list_del(&wldev->list); in b43legacy_one_core_detach()
3733 kfree(wldev); in b43legacy_one_core_detach()
3739 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3742 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3743 if (!wldev) in b43legacy_one_core_attach()
3746 wldev->dev = dev; in b43legacy_one_core_attach()
3747 wldev->wl = wl; in b43legacy_one_core_attach()
3748 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3749 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3750 tasklet_setup(&wldev->isr_tasklet, b43legacy_interrupt_tasklet); in b43legacy_one_core_attach()
3752 wldev->__using_pio = true; in b43legacy_one_core_attach()
3753 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3755 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3759 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3761 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3762 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3767 kfree(wldev); in b43legacy_one_core_attach()
3886 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3890 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3892 complete(&wldev->fw_load_complete); in b43legacy_remove()
3895 if (!wldev->fw.ucode) in b43legacy_remove()
3897 if (wl->current_dev == wldev) in b43legacy_remove()
3924 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3925 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3930 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3931 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3932 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3933 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3934 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3944 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3945 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3951 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3952 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3958 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3959 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3961 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()