Lines Matching refs:rsvd_pkt

857 	struct rtw_rsvd_page *rsvd_pkt;  in rtw_get_rsvd_page_location()  local
860 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_get_rsvd_page_location()
861 if (type == rsvd_pkt->type) in rtw_get_rsvd_page_location()
862 location = rsvd_pkt->page; in rtw_get_rsvd_page_location()
920 struct rtw_rsvd_page *rsvd_pkt; in rtw_get_rsvd_page_probe_req_location() local
923 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_get_rsvd_page_probe_req_location()
924 if (rsvd_pkt->type != RSVD_PROBE_REQ) in rtw_get_rsvd_page_probe_req_location()
926 if ((!ssid && !rsvd_pkt->ssid) || in rtw_get_rsvd_page_probe_req_location()
927 rtw_ssid_equal(rsvd_pkt->ssid, ssid)) in rtw_get_rsvd_page_probe_req_location()
928 location = rsvd_pkt->page; in rtw_get_rsvd_page_probe_req_location()
937 struct rtw_rsvd_page *rsvd_pkt; in rtw_get_rsvd_page_probe_req_size() local
940 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_get_rsvd_page_probe_req_size()
941 if (rsvd_pkt->type != RSVD_PROBE_REQ) in rtw_get_rsvd_page_probe_req_size()
943 if ((!ssid && !rsvd_pkt->ssid) || in rtw_get_rsvd_page_probe_req_size()
944 rtw_ssid_equal(rsvd_pkt->ssid, ssid)) in rtw_get_rsvd_page_probe_req_size()
945 size = rsvd_pkt->probe_req_size; in rtw_get_rsvd_page_probe_req_size()
1121 struct rtw_rsvd_page *rsvd_pkt) in rtw_get_rsvd_page_skb() argument
1129 if (rsvd_pkt->type == RSVD_DUMMY) { in rtw_get_rsvd_page_skb()
1138 rtwvif = rsvd_pkt->rtwvif; in rtw_get_rsvd_page_skb()
1144 switch (rsvd_pkt->type) { in rtw_get_rsvd_page_skb()
1147 rsvd_pkt->tim_offset = tim_offset; in rtw_get_rsvd_page_skb()
1168 ssid = (struct cfg80211_ssid *)rsvd_pkt->ssid; in rtw_get_rsvd_page_skb()
1176 rsvd_pkt->probe_req_size = (u16)skb_new->len; in rtw_get_rsvd_page_skb()
1214 struct rtw_rsvd_page *rsvd_pkt) in rtw_rsvd_page_list_to_buf() argument
1216 struct sk_buff *skb = rsvd_pkt->skb; in rtw_rsvd_page_list_to_buf()
1229 struct rtw_rsvd_page *rsvd_pkt = NULL; in rtw_alloc_rsvd_page() local
1231 rsvd_pkt = kzalloc(sizeof(*rsvd_pkt), GFP_KERNEL); in rtw_alloc_rsvd_page()
1233 if (!rsvd_pkt) in rtw_alloc_rsvd_page()
1236 INIT_LIST_HEAD(&rsvd_pkt->vif_list); in rtw_alloc_rsvd_page()
1237 INIT_LIST_HEAD(&rsvd_pkt->build_list); in rtw_alloc_rsvd_page()
1238 rsvd_pkt->type = type; in rtw_alloc_rsvd_page()
1239 rsvd_pkt->add_txdesc = txdesc; in rtw_alloc_rsvd_page()
1241 return rsvd_pkt; in rtw_alloc_rsvd_page()
1246 struct rtw_rsvd_page *rsvd_pkt) in rtw_insert_rsvd_page() argument
1250 list_add_tail(&rsvd_pkt->vif_list, &rtwvif->rsvd_page_list); in rtw_insert_rsvd_page()
1258 struct rtw_rsvd_page *rsvd_pkt; in rtw_add_rsvd_page() local
1260 rsvd_pkt = rtw_alloc_rsvd_page(rtwdev, type, txdesc); in rtw_add_rsvd_page()
1261 if (!rsvd_pkt) { in rtw_add_rsvd_page()
1266 rsvd_pkt->rtwvif = rtwvif; in rtw_add_rsvd_page()
1267 rtw_insert_rsvd_page(rtwdev, rtwvif, rsvd_pkt); in rtw_add_rsvd_page()
1274 struct rtw_rsvd_page *rsvd_pkt; in rtw_add_rsvd_page_probe_req() local
1276 rsvd_pkt = rtw_alloc_rsvd_page(rtwdev, RSVD_PROBE_REQ, true); in rtw_add_rsvd_page_probe_req()
1277 if (!rsvd_pkt) { in rtw_add_rsvd_page_probe_req()
1282 rsvd_pkt->rtwvif = rtwvif; in rtw_add_rsvd_page_probe_req()
1283 rsvd_pkt->ssid = ssid; in rtw_add_rsvd_page_probe_req()
1284 rtw_insert_rsvd_page(rtwdev, rtwvif, rsvd_pkt); in rtw_add_rsvd_page_probe_req()
1290 struct rtw_rsvd_page *rsvd_pkt, *tmp; in rtw_remove_rsvd_page() local
1295 list_for_each_entry_safe(rsvd_pkt, tmp, &rtwvif->rsvd_page_list, in rtw_remove_rsvd_page()
1297 list_del(&rsvd_pkt->vif_list); in rtw_remove_rsvd_page()
1298 if (!list_empty(&rsvd_pkt->build_list)) in rtw_remove_rsvd_page()
1299 list_del(&rsvd_pkt->build_list); in rtw_remove_rsvd_page()
1300 kfree(rsvd_pkt); in rtw_remove_rsvd_page()
1443 struct rtw_rsvd_page *rsvd_pkt, *tmp; in __rtw_build_rsvd_page_reset() local
1445 list_for_each_entry_safe(rsvd_pkt, tmp, &rtwdev->rsvd_page_list, in __rtw_build_rsvd_page_reset()
1447 list_del_init(&rsvd_pkt->build_list); in __rtw_build_rsvd_page_reset()
1452 if (rsvd_pkt->type == RSVD_DUMMY) in __rtw_build_rsvd_page_reset()
1453 kfree(rsvd_pkt); in __rtw_build_rsvd_page_reset()
1462 struct rtw_rsvd_page *rsvd_pkt; in rtw_build_rsvd_page_iter() local
1468 list_for_each_entry(rsvd_pkt, &rtwvif->rsvd_page_list, vif_list) { in rtw_build_rsvd_page_iter()
1469 if (rsvd_pkt->type == RSVD_BEACON) in rtw_build_rsvd_page_iter()
1470 list_add(&rsvd_pkt->build_list, in rtw_build_rsvd_page_iter()
1473 list_add_tail(&rsvd_pkt->build_list, in rtw_build_rsvd_page_iter()
1480 struct rtw_rsvd_page *rsvd_pkt; in __rtw_build_rsvd_page_from_vifs() local
1487 rsvd_pkt = list_first_entry_or_null(&rtwdev->rsvd_page_list, in __rtw_build_rsvd_page_from_vifs()
1489 if (!rsvd_pkt) { in __rtw_build_rsvd_page_from_vifs()
1495 if (rsvd_pkt->type != RSVD_BEACON) { in __rtw_build_rsvd_page_from_vifs()
1515 struct rtw_rsvd_page *rsvd_pkt; in rtw_build_rsvd_page() local
1533 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_build_rsvd_page()
1534 iter = rtw_get_rsvd_page_skb(hw, rsvd_pkt); in rtw_build_rsvd_page()
1543 if (rsvd_pkt->add_txdesc) in rtw_build_rsvd_page()
1544 rtw_fill_rsvd_page_desc(rtwdev, iter, rsvd_pkt->type); in rtw_build_rsvd_page()
1546 rsvd_pkt->skb = iter; in rtw_build_rsvd_page()
1547 rsvd_pkt->page = total_page; in rtw_build_rsvd_page()
1558 if (rsvd_pkt->type != RSVD_BEACON && in rtw_build_rsvd_page()
1559 rsvd_pkt->type != RSVD_DUMMY) { in rtw_build_rsvd_page()
1587 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_build_rsvd_page()
1589 page, buf, rsvd_pkt); in rtw_build_rsvd_page()
1591 page += rtw_len_to_page(rsvd_pkt->skb->len + in rtw_build_rsvd_page()
1594 page += rtw_len_to_page(rsvd_pkt->skb->len, page_size); in rtw_build_rsvd_page()
1596 kfree_skb(rsvd_pkt->skb); in rtw_build_rsvd_page()
1597 rsvd_pkt->skb = NULL; in rtw_build_rsvd_page()
1603 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_build_rsvd_page()
1604 kfree_skb(rsvd_pkt->skb); in rtw_build_rsvd_page()
1605 rsvd_pkt->skb = NULL; in rtw_build_rsvd_page()
1614 struct rtw_rsvd_page *rsvd_pkt; in rtw_download_beacon() local
1618 rsvd_pkt = list_first_entry_or_null(&rtwdev->rsvd_page_list, in rtw_download_beacon()
1620 if (!rsvd_pkt) { in rtw_download_beacon()
1625 if (rsvd_pkt->type != RSVD_BEACON && in rtw_download_beacon()
1626 rsvd_pkt->type != RSVD_DUMMY) { in rtw_download_beacon()
1628 rsvd_pkt->type); in rtw_download_beacon()
1632 skb = rtw_get_rsvd_page_skb(hw, rsvd_pkt); in rtw_download_beacon()