Lines Matching defs:vif
42 struct wilc_vif *vif = netdev_priv(dev);
43 struct wilc *wilc = vif->wilc;
61 struct wilc_vif *vif = netdev_priv(dev);
62 struct wilc *wilc = vif->wilc;
74 static void wilc_wlan_txq_add_to_head(struct wilc_vif *vif,
78 struct wilc *wilc = vif->wilc;
94 static inline void add_tcp_session(struct wilc_vif *vif, u32 src_prt,
97 struct tcp_ack_filter *f = &vif->ack_filter;
108 static inline void update_tcp_session(struct wilc_vif *vif, u32 index, u32 ack)
110 struct tcp_ack_filter *f = &vif->ack_filter;
117 static inline void add_tcp_pending_ack(struct wilc_vif *vif, u32 ack,
121 struct tcp_ack_filter *f = &vif->ack_filter;
139 struct wilc_vif *vif = netdev_priv(dev);
140 struct wilc *wilc = vif->wilc;
141 struct tcp_ack_filter *f = &vif->ack_filter;
171 update_tcp_session(vif, i, ack_no);
176 add_tcp_session(vif, 0, 0, seq_no);
178 add_tcp_pending_ack(vif, ack_no, i, tqe);
187 struct wilc_vif *vif = netdev_priv(dev);
188 struct wilc *wilc = vif->wilc;
189 struct tcp_ack_filter *f = &vif->ack_filter;
242 void wilc_enable_tcp_ack_filter(struct wilc_vif *vif, bool value)
244 vif->ack_filter.enabled = value;
247 static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
251 struct wilc *wilc = vif->wilc;
253 netdev_dbg(vif->ndev, "Adding config packet ...\n");
255 netdev_dbg(vif->ndev, "Return due to clear function\n");
270 tqe->vif = vif;
272 wilc_wlan_txq_add_to_head(vif, tqe);
282 struct wilc_vif *vif = netdev_priv(dev);
285 wilc = vif->wilc;
299 tqe->vif = vif;
302 if (vif->ack_filter.enabled)
313 struct wilc_vif *vif = netdev_priv(dev);
316 wilc = vif->wilc;
331 tqe->vif = vif;
494 struct wilc_vif *vif;
503 dev = tqe->vif->ndev;
621 vif = tqe->vif;
642 bssid = tqe->vif->bssid;
658 vif->ack_filter.pending_acks[tqe->ack_idx].txqe = NULL;
913 int wilc_wlan_stop(struct wilc *wilc, struct wilc_vif *vif)
922 netdev_err(vif->ndev, "Error while reading reg\n");
930 netdev_err(vif->ndev, "Error while writing reg\n");
937 netdev_err(vif->ndev, "Error while reading reg\n");
945 netdev_err(vif->ndev, "Error while writing reg\n");
959 struct wilc_vif *vif = netdev_priv(dev);
960 struct wilc *wilc = vif->wilc;
979 static int wilc_wlan_cfg_commit(struct wilc_vif *vif, int type,
982 struct wilc *wilc = vif->wilc;
996 if (!wilc_wlan_txq_add_cfg_pkt(vif, (u8 *)&cfg->hdr, t_len))
1002 int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u16 wid, u8 *buffer,
1007 struct wilc *wilc = vif->wilc;
1025 netdev_dbg(vif->ndev, "%s: seqno[%d]\n", __func__, wilc->cfg_seq_no);
1027 if (wilc_wlan_cfg_commit(vif, WILC_CFG_SET, drv_handler))
1032 netdev_dbg(vif->ndev, "%s: Timed Out\n", __func__);
1043 int wilc_wlan_cfg_get(struct wilc_vif *vif, int start, u16 wid, int commit,
1048 struct wilc *wilc = vif->wilc;
1065 if (wilc_wlan_cfg_commit(vif, WILC_CFG_QUERY, drv_handler))
1070 netdev_dbg(vif->ndev, "%s: Timed Out\n", __func__);
1080 int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids,
1085 u32 drv = wilc_get_vif_idx(vif);
1089 if (!wilc_wlan_cfg_get(vif, !i,
1098 wids[i].size = wilc_wlan_cfg_get_val(vif->wilc,
1105 if (!wilc_wlan_cfg_set(vif, !i,
1125 struct wilc_vif *vif = netdev_priv(dev);
1126 struct wilc *wilc = vif->wilc;
1195 struct wilc_vif *vif = netdev_priv(dev);
1198 wilc = vif->wilc;