Lines Matching refs:txdata

73 		struct wil_ring_tx_data *txdata =  in wil_is_tx_idle()  local
76 spin_lock(&txdata->lock); in wil_is_tx_idle()
78 if (!vring->va || !txdata->enabled) { in wil_is_tx_idle()
79 spin_unlock(&txdata->lock); in wil_is_tx_idle()
90 spin_unlock(&txdata->lock); in wil_is_tx_idle()
95 spin_unlock(&txdata->lock); in wil_is_tx_idle()
98 spin_lock(&txdata->lock); in wil_is_tx_idle()
99 if (!vring->va || !txdata->enabled) in wil_is_tx_idle()
104 spin_unlock(&txdata->lock); in wil_is_tx_idle()
1118 void wil_tx_data_init(struct wil_ring_tx_data *txdata) in wil_tx_data_init() argument
1120 spin_lock_bh(&txdata->lock); in wil_tx_data_init()
1121 txdata->dot1x_open = false; in wil_tx_data_init()
1122 txdata->enabled = 0; in wil_tx_data_init()
1123 txdata->idle = 0; in wil_tx_data_init()
1124 txdata->last_idle = 0; in wil_tx_data_init()
1125 txdata->begin = 0; in wil_tx_data_init()
1126 txdata->agg_wsize = 0; in wil_tx_data_init()
1127 txdata->agg_timeout = 0; in wil_tx_data_init()
1128 txdata->agg_amsdu = 0; in wil_tx_data_init()
1129 txdata->addba_in_progress = false; in wil_tx_data_init()
1130 txdata->mid = U8_MAX; in wil_tx_data_init()
1131 spin_unlock_bh(&txdata->lock); in wil_tx_data_init()
1165 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[id]; in wil_vring_init_tx() local
1185 wil_tx_data_init(txdata); in wil_vring_init_tx()
1198 txdata->dot1x_open = true; in wil_vring_init_tx()
1212 spin_lock_bh(&txdata->lock); in wil_vring_init_tx()
1214 txdata->mid = vif->mid; in wil_vring_init_tx()
1215 txdata->enabled = 1; in wil_vring_init_tx()
1216 spin_unlock_bh(&txdata->lock); in wil_vring_init_tx()
1218 if (txdata->dot1x_open && (agg_wsize >= 0)) in wil_vring_init_tx()
1223 spin_lock_bh(&txdata->lock); in wil_vring_init_tx()
1224 txdata->dot1x_open = false; in wil_vring_init_tx()
1225 txdata->enabled = 0; in wil_vring_init_tx()
1226 spin_unlock_bh(&txdata->lock); in wil_vring_init_tx()
1268 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_id]; in wil_tx_vring_modify() local
1304 txdata->agg_wsize = 0; in wil_tx_vring_modify()
1305 if (txdata->dot1x_open && agg_wsize >= 0) in wil_tx_vring_modify()
1310 spin_lock_bh(&txdata->lock); in wil_tx_vring_modify()
1311 txdata->dot1x_open = false; in wil_tx_vring_modify()
1312 txdata->enabled = 0; in wil_tx_vring_modify()
1313 spin_unlock_bh(&txdata->lock); in wil_tx_vring_modify()
1342 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[id]; in wil_vring_init_bcast() local
1354 wil_tx_data_init(txdata); in wil_vring_init_bcast()
1367 txdata->dot1x_open = true; in wil_vring_init_bcast()
1382 spin_lock_bh(&txdata->lock); in wil_vring_init_bcast()
1384 txdata->mid = vif->mid; in wil_vring_init_bcast()
1385 txdata->enabled = 1; in wil_vring_init_bcast()
1386 spin_unlock_bh(&txdata->lock); in wil_vring_init_bcast()
1390 spin_lock_bh(&txdata->lock); in wil_vring_init_bcast()
1391 txdata->enabled = 0; in wil_vring_init_bcast()
1392 txdata->dot1x_open = false; in wil_vring_init_bcast()
1393 spin_unlock_bh(&txdata->lock); in wil_vring_init_bcast()
1420 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[i]; in wil_find_tx_ucast() local
1424 if (v->va && txdata->enabled) { in wil_find_tx_ucast()
1448 struct wil_ring_tx_data *txdata; in wil_find_tx_ring_sta() local
1457 txdata = &wil->ring_tx_data[i]; in wil_find_tx_ring_sta()
1458 if (!ring->va || !txdata->enabled || txdata->mid != vif->mid) in wil_find_tx_ring_sta()
1495 struct wil_ring_tx_data *txdata; in wil_find_tx_bcast_1() local
1501 txdata = &wil->ring_tx_data[i]; in wil_find_tx_bcast_1()
1502 if (!v->va || !txdata->enabled) in wil_find_tx_bcast_1()
1558 struct wil_ring_tx_data *txdata, *txdata2; in wil_find_tx_bcast_2() local
1564 txdata = &wil->ring_tx_data[i]; in wil_find_tx_bcast_2()
1565 if (!v->va || !txdata->enabled || txdata->mid != vif->mid) in wil_find_tx_bcast_2()
1752 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[vring_index]; in __wil_tx_vring_tso() local
1769 if (unlikely(!txdata->enabled)) in __wil_tx_vring_tso()
1979 txdata->idle += get_cycles() - txdata->last_idle; in __wil_tx_vring_tso()
2037 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_index]; in __wil_tx_ring() local
2047 if (unlikely(!txdata->enabled)) in __wil_tx_ring()
2132 txdata->idle += get_cycles() - txdata->last_idle; in __wil_tx_ring()
2188 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_index]; in wil_tx_ring() local
2191 spin_lock(&txdata->lock); in wil_tx_ring()
2198 spin_unlock(&txdata->lock); in wil_tx_ring()
2205 spin_unlock(&txdata->lock); in wil_tx_ring()
2271 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[i]; in __wil_update_net_queues() local
2273 if (txdata->mid != vif->mid || !cur_ring->va || in __wil_update_net_queues()
2274 !txdata->enabled || cur_ring == ring) in __wil_update_net_queues()
2424 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ringid]; in wil_tx_complete() local
2437 if (unlikely(!txdata->enabled)) { in wil_tx_complete()
2534 txdata->last_idle = get_cycles(); in wil_tx_complete()