Lines Matching defs:wdev
64 struct wfx_dev *wdev;
99 static inline struct wfx_vif *wdev_to_wvif(struct wfx_dev *wdev, int vif_id)
101 if (vif_id >= ARRAY_SIZE(wdev->vif)) {
102 dev_dbg(wdev->dev, "requesting non-existent vif: %d\n", vif_id);
105 vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif));
106 if (!wdev->vif[vif_id])
108 return (struct wfx_vif *)wdev->vif[vif_id]->drv_priv;
111 static inline struct wfx_vif *wvif_iterate(struct wfx_dev *wdev, struct wfx_vif *cur)
119 for (i = 0; i < ARRAY_SIZE(wdev->vif); i++) {
120 tmp = wdev_to_wvif(wdev, i);
129 static inline int wvif_count(struct wfx_dev *wdev)
135 for (i = 0; i < ARRAY_SIZE(wdev->vif); i++) {
136 wvif = wdev_to_wvif(wdev, i);