Lines Matching defs:vif
65 struct wilc_vif *vif = netdev_priv(dev);
66 struct wilc *wilc = vif->wilc;
79 static void wilc_wlan_txq_add_to_head(struct wilc_vif *vif, u8 q_num,
83 struct wilc *wilc = vif->wilc;
100 static inline void add_tcp_session(struct wilc_vif *vif, u32 src_prt,
103 struct tcp_ack_filter *f = &vif->ack_filter;
114 static inline void update_tcp_session(struct wilc_vif *vif, u32 index, u32 ack)
116 struct tcp_ack_filter *f = &vif->ack_filter;
123 static inline void add_tcp_pending_ack(struct wilc_vif *vif, u32 ack,
127 struct tcp_ack_filter *f = &vif->ack_filter;
145 struct wilc_vif *vif = netdev_priv(dev);
146 struct wilc *wilc = vif->wilc;
147 struct tcp_ack_filter *f = &vif->ack_filter;
177 update_tcp_session(vif, i, ack_no);
182 add_tcp_session(vif, 0, 0, seq_no);
184 add_tcp_pending_ack(vif, ack_no, i, tqe);
193 struct wilc_vif *vif = netdev_priv(dev);
194 struct wilc *wilc = vif->wilc;
195 struct tcp_ack_filter *f = &vif->ack_filter;
248 void wilc_enable_tcp_ack_filter(struct wilc_vif *vif, bool value)
250 vif->ack_filter.enabled = value;
253 static int wilc_wlan_txq_add_cfg_pkt(struct wilc_vif *vif, u8 *buffer,
257 struct wilc *wilc = vif->wilc;
259 netdev_dbg(vif->ndev, "Adding config packet ...\n");
261 netdev_dbg(vif->ndev, "Return due to clear function\n");
279 tqe->vif = vif;
281 wilc_wlan_txq_add_to_head(vif, AC_VO_Q, tqe);
419 struct wilc_vif *vif = netdev_priv(dev);
423 wilc = vif->wilc;
446 tqe->vif = vif;
458 if (vif->ack_filter.enabled)
474 struct wilc_vif *vif = netdev_priv(dev);
477 wilc = vif->wilc;
501 tqe->vif = vif;
722 struct wilc_vif *vif;
733 list_for_each_entry_rcu(vif, &wilc->vif_list, list)
734 wilc_wlan_txq_filter_dup_tcp_ack(vif->ndev);
886 vif = tqe->vif;
907 bssid = tqe->vif->bssid;
924 vif->ack_filter.pending_acks[tqe->ack_idx].txqe = NULL;
1194 int wilc_wlan_stop(struct wilc *wilc, struct wilc_vif *vif)
1203 netdev_err(vif->ndev, "Error while reading reg\n");
1210 netdev_err(vif->ndev, "Error while writing reg\n");
1216 netdev_err(vif->ndev, "Error while reading reg\n");
1223 netdev_err(vif->ndev, "Error while writing reg\n");
1240 struct wilc_vif *vif = netdev_priv(dev);
1241 struct wilc *wilc = vif->wilc;
1264 static int wilc_wlan_cfg_commit(struct wilc_vif *vif, int type,
1267 struct wilc *wilc = vif->wilc;
1281 if (!wilc_wlan_txq_add_cfg_pkt(vif, (u8 *)&cfg->hdr, t_len))
1287 int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u16 wid, u8 *buffer,
1292 struct wilc *wilc = vif->wilc;
1310 netdev_dbg(vif->ndev, "%s: seqno[%d]\n", __func__, wilc->cfg_seq_no);
1312 if (wilc_wlan_cfg_commit(vif, WILC_CFG_SET, drv_handler))
1317 netdev_dbg(vif->ndev, "%s: Timed Out\n", __func__);
1328 int wilc_wlan_cfg_get(struct wilc_vif *vif, int start, u16 wid, int commit,
1333 struct wilc *wilc = vif->wilc;
1350 if (wilc_wlan_cfg_commit(vif, WILC_CFG_QUERY, drv_handler))
1355 netdev_dbg(vif->ndev, "%s: Timed Out\n", __func__);
1365 int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids,
1370 u32 drv = wilc_get_vif_idx(vif);
1374 if (!wilc_wlan_cfg_get(vif, !i,
1383 wids[i].size = wilc_wlan_cfg_get_val(vif->wilc,
1390 if (!wilc_wlan_cfg_set(vif, !i,
1410 struct wilc_vif *vif = netdev_priv(dev);
1411 struct wilc *wilc = vif->wilc;
1479 struct wilc_vif *vif = netdev_priv(dev);
1482 wilc = vif->wilc;