Lines Matching refs:flow

2256 			      struct mt7915_twt_flow *flow)  in mt7915_mac_twt_sched_list_add()  argument
2259 u32 duration = flow->duration << 8; in mt7915_mac_twt_sched_list_add()
2266 list_add(&flow->list, &dev->twt_list); in mt7915_mac_twt_sched_list_add()
2278 list_add(&flow->list, &iter->list); in mt7915_mac_twt_sched_list_add()
2284 list_add_tail(&flow->list, &dev->twt_list); in mt7915_mac_twt_sched_list_add()
2337 f = &msta->twt.flow[i]; in mt7915_mac_twt_param_equal()
2360 struct mt7915_twt_flow *flow; in mt7915_mac_add_twt_setup() local
2372 if (hweight8(msta->twt.flowid_mask) == ARRAY_SIZE(msta->twt.flow)) in mt7915_mac_add_twt_setup()
2393 flow = &msta->twt.flow[flowid]; in mt7915_mac_add_twt_setup()
2394 memset(flow, 0, sizeof(*flow)); in mt7915_mac_add_twt_setup()
2395 INIT_LIST_HEAD(&flow->list); in mt7915_mac_add_twt_setup()
2396 flow->wcid = msta->wcid.idx; in mt7915_mac_add_twt_setup()
2397 flow->table_id = table_id; in mt7915_mac_add_twt_setup()
2398 flow->id = flowid; in mt7915_mac_add_twt_setup()
2399 flow->duration = twt_agrt->min_twt_dur; in mt7915_mac_add_twt_setup()
2400 flow->mantissa = twt_agrt->mantissa; in mt7915_mac_add_twt_setup()
2401 flow->exp = exp; in mt7915_mac_add_twt_setup()
2402 flow->protection = !!(req_type & IEEE80211_TWT_REQTYPE_PROTECTION); in mt7915_mac_add_twt_setup()
2403 flow->flowtype = !!(req_type & IEEE80211_TWT_REQTYPE_FLOWTYPE); in mt7915_mac_add_twt_setup()
2404 flow->trigger = !!(req_type & IEEE80211_TWT_REQTYPE_TRIGGER); in mt7915_mac_add_twt_setup()
2412 flow->sched = true; in mt7915_mac_add_twt_setup()
2413 flow->start_tsf = mt7915_mac_twt_sched_list_add(dev, flow); in mt7915_mac_add_twt_setup()
2415 div_u64_rem(curr_tsf - flow->start_tsf, interval, &rem); in mt7915_mac_add_twt_setup()
2419 list_add_tail(&flow->list, &dev->twt_list); in mt7915_mac_add_twt_setup()
2421 flow->tsf = le64_to_cpu(twt_agrt->twt); in mt7915_mac_add_twt_setup()
2423 if (mt7915_mcu_twt_agrt_update(dev, msta->vif, flow, MCU_TWT_AGRT_ADD)) in mt7915_mac_add_twt_setup()
2445 struct mt7915_twt_flow *flow; in mt7915_mac_twt_teardown_flow() local
2449 if (flowid >= ARRAY_SIZE(msta->twt.flow)) in mt7915_mac_twt_teardown_flow()
2455 flow = &msta->twt.flow[flowid]; in mt7915_mac_twt_teardown_flow()
2456 if (mt7915_mcu_twt_agrt_update(dev, msta->vif, flow, in mt7915_mac_twt_teardown_flow()
2460 list_del_init(&flow->list); in mt7915_mac_twt_teardown_flow()
2462 dev->twt.table_mask &= ~BIT(flow->table_id); in mt7915_mac_twt_teardown_flow()