Lines Matching defs:iwm
25 * This is the netdev related hooks for iwm.
51 #include "iwm.h"
58 struct iwm_priv *iwm = ndev_to_iwm(ndev);
60 return iwm_up(iwm);
65 struct iwm_priv *iwm = ndev_to_iwm(ndev);
67 return iwm_down(iwm);
71 * iwm AC to queue mapping
107 struct iwm_priv *iwm;
114 iwm = wdev_to_iwm(wdev);
115 iwm->bus_ops = if_ops;
116 iwm->wdev = wdev;
118 ret = iwm_priv_init(iwm);
124 wdev->iftype = iwm_mode_to_nl80211_iftype(iwm->conf.mode);
137 iwm->umac_profile = kmalloc(sizeof(struct iwm_umac_profile),
139 if (!iwm->umac_profile) {
144 iwm_init_default_profile(iwm, iwm->umac_profile);
146 return iwm;
152 iwm_priv_deinit(iwm);
155 iwm_wdev_free(iwm);
159 void iwm_if_free(struct iwm_priv *iwm)
161 if (!iwm_to_ndev(iwm))
164 cancel_delayed_work_sync(&iwm->ct_kill_delay);
165 free_netdev(iwm_to_ndev(iwm));
166 iwm_priv_deinit(iwm);
167 kfree(iwm->umac_profile);
168 iwm->umac_profile = NULL;
169 iwm_wdev_free(iwm);
172 int iwm_if_add(struct iwm_priv *iwm)
174 struct net_device *ndev = iwm_to_ndev(iwm);
186 void iwm_if_remove(struct iwm_priv *iwm)
188 unregister_netdev(iwm_to_ndev(iwm));