• Home
  • Raw
  • Download

Lines Matching refs:wldev

3748 	struct b43legacy_wldev *wldev;  in b43legacy_one_core_detach()  local
3754 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3755 wl = wldev->wl; in b43legacy_one_core_detach()
3756 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3757 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3758 list_del(&wldev->list); in b43legacy_one_core_detach()
3761 kfree(wldev); in b43legacy_one_core_detach()
3767 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3770 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3771 if (!wldev) in b43legacy_one_core_attach()
3774 wldev->dev = dev; in b43legacy_one_core_attach()
3775 wldev->wl = wl; in b43legacy_one_core_attach()
3776 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3777 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3778 tasklet_init(&wldev->isr_tasklet, in b43legacy_one_core_attach()
3780 (unsigned long)wldev); in b43legacy_one_core_attach()
3782 wldev->__using_pio = true; in b43legacy_one_core_attach()
3783 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3785 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3789 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3791 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3792 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3797 kfree(wldev); in b43legacy_one_core_attach()
3915 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3919 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3921 complete(&wldev->fw_load_complete); in b43legacy_remove()
3924 if (!wldev->fw.ucode) in b43legacy_remove()
3926 if (wl->current_dev == wldev) in b43legacy_remove()
3953 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3954 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3959 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3960 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3961 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3962 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3963 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3973 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3974 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3980 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3981 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3987 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3988 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3990 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()