• Home
  • Raw
  • Download

Lines Matching refs:rsvd_pkt

744 	struct rtw_rsvd_page *rsvd_pkt;  in rtw_get_rsvd_page_location()  local
747 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_get_rsvd_page_location()
748 if (type == rsvd_pkt->type) in rtw_get_rsvd_page_location()
749 location = rsvd_pkt->page; in rtw_get_rsvd_page_location()
797 struct rtw_rsvd_page *rsvd_pkt; in rtw_get_rsvd_page_probe_req_location() local
800 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_get_rsvd_page_probe_req_location()
801 if (rsvd_pkt->type != RSVD_PROBE_REQ) in rtw_get_rsvd_page_probe_req_location()
803 if ((!ssid && !rsvd_pkt->ssid) || in rtw_get_rsvd_page_probe_req_location()
804 rtw_ssid_equal(rsvd_pkt->ssid, ssid)) in rtw_get_rsvd_page_probe_req_location()
805 location = rsvd_pkt->page; in rtw_get_rsvd_page_probe_req_location()
814 struct rtw_rsvd_page *rsvd_pkt; in rtw_get_rsvd_page_probe_req_size() local
817 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_get_rsvd_page_probe_req_size()
818 if (rsvd_pkt->type != RSVD_PROBE_REQ) in rtw_get_rsvd_page_probe_req_size()
820 if ((!ssid && !rsvd_pkt->ssid) || in rtw_get_rsvd_page_probe_req_size()
821 rtw_ssid_equal(rsvd_pkt->ssid, ssid)) in rtw_get_rsvd_page_probe_req_size()
822 size = rsvd_pkt->probe_req_size; in rtw_get_rsvd_page_probe_req_size()
998 struct rtw_rsvd_page *rsvd_pkt) in rtw_get_rsvd_page_skb() argument
1005 if (rsvd_pkt->type == RSVD_DUMMY) { in rtw_get_rsvd_page_skb()
1014 rtwvif = rsvd_pkt->rtwvif; in rtw_get_rsvd_page_skb()
1020 switch (rsvd_pkt->type) { in rtw_get_rsvd_page_skb()
1043 ssid = (struct cfg80211_ssid *)rsvd_pkt->ssid; in rtw_get_rsvd_page_skb()
1051 rsvd_pkt->probe_req_size = (u16)skb_new->len; in rtw_get_rsvd_page_skb()
1089 struct rtw_rsvd_page *rsvd_pkt) in rtw_rsvd_page_list_to_buf() argument
1091 struct sk_buff *skb = rsvd_pkt->skb; in rtw_rsvd_page_list_to_buf()
1104 struct rtw_rsvd_page *rsvd_pkt = NULL; in rtw_alloc_rsvd_page() local
1106 rsvd_pkt = kzalloc(sizeof(*rsvd_pkt), GFP_KERNEL); in rtw_alloc_rsvd_page()
1108 if (!rsvd_pkt) in rtw_alloc_rsvd_page()
1111 INIT_LIST_HEAD(&rsvd_pkt->vif_list); in rtw_alloc_rsvd_page()
1112 INIT_LIST_HEAD(&rsvd_pkt->build_list); in rtw_alloc_rsvd_page()
1113 rsvd_pkt->type = type; in rtw_alloc_rsvd_page()
1114 rsvd_pkt->add_txdesc = txdesc; in rtw_alloc_rsvd_page()
1116 return rsvd_pkt; in rtw_alloc_rsvd_page()
1121 struct rtw_rsvd_page *rsvd_pkt) in rtw_insert_rsvd_page() argument
1125 list_add_tail(&rsvd_pkt->vif_list, &rtwvif->rsvd_page_list); in rtw_insert_rsvd_page()
1133 struct rtw_rsvd_page *rsvd_pkt; in rtw_add_rsvd_page() local
1135 rsvd_pkt = rtw_alloc_rsvd_page(rtwdev, type, txdesc); in rtw_add_rsvd_page()
1136 if (!rsvd_pkt) { in rtw_add_rsvd_page()
1141 rsvd_pkt->rtwvif = rtwvif; in rtw_add_rsvd_page()
1142 rtw_insert_rsvd_page(rtwdev, rtwvif, rsvd_pkt); in rtw_add_rsvd_page()
1149 struct rtw_rsvd_page *rsvd_pkt; in rtw_add_rsvd_page_probe_req() local
1151 rsvd_pkt = rtw_alloc_rsvd_page(rtwdev, RSVD_PROBE_REQ, true); in rtw_add_rsvd_page_probe_req()
1152 if (!rsvd_pkt) { in rtw_add_rsvd_page_probe_req()
1157 rsvd_pkt->rtwvif = rtwvif; in rtw_add_rsvd_page_probe_req()
1158 rsvd_pkt->ssid = ssid; in rtw_add_rsvd_page_probe_req()
1159 rtw_insert_rsvd_page(rtwdev, rtwvif, rsvd_pkt); in rtw_add_rsvd_page_probe_req()
1165 struct rtw_rsvd_page *rsvd_pkt, *tmp; in rtw_remove_rsvd_page() local
1170 list_for_each_entry_safe(rsvd_pkt, tmp, &rtwvif->rsvd_page_list, in rtw_remove_rsvd_page()
1172 list_del(&rsvd_pkt->vif_list); in rtw_remove_rsvd_page()
1173 if (!list_empty(&rsvd_pkt->build_list)) in rtw_remove_rsvd_page()
1174 list_del(&rsvd_pkt->build_list); in rtw_remove_rsvd_page()
1175 kfree(rsvd_pkt); in rtw_remove_rsvd_page()
1318 struct rtw_rsvd_page *rsvd_pkt, *tmp; in __rtw_build_rsvd_page_reset() local
1320 list_for_each_entry_safe(rsvd_pkt, tmp, &rtwdev->rsvd_page_list, in __rtw_build_rsvd_page_reset()
1322 list_del_init(&rsvd_pkt->build_list); in __rtw_build_rsvd_page_reset()
1327 if (rsvd_pkt->type == RSVD_DUMMY) in __rtw_build_rsvd_page_reset()
1328 kfree(rsvd_pkt); in __rtw_build_rsvd_page_reset()
1337 struct rtw_rsvd_page *rsvd_pkt; in rtw_build_rsvd_page_iter() local
1339 list_for_each_entry(rsvd_pkt, &rtwvif->rsvd_page_list, vif_list) { in rtw_build_rsvd_page_iter()
1340 if (rsvd_pkt->type == RSVD_BEACON) in rtw_build_rsvd_page_iter()
1341 list_add(&rsvd_pkt->build_list, in rtw_build_rsvd_page_iter()
1344 list_add_tail(&rsvd_pkt->build_list, in rtw_build_rsvd_page_iter()
1351 struct rtw_rsvd_page *rsvd_pkt; in __rtw_build_rsvd_page_from_vifs() local
1358 rsvd_pkt = list_first_entry_or_null(&rtwdev->rsvd_page_list, in __rtw_build_rsvd_page_from_vifs()
1360 if (!rsvd_pkt) { in __rtw_build_rsvd_page_from_vifs()
1366 if (rsvd_pkt->type != RSVD_BEACON) { in __rtw_build_rsvd_page_from_vifs()
1386 struct rtw_rsvd_page *rsvd_pkt; in rtw_build_rsvd_page() local
1404 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_build_rsvd_page()
1405 iter = rtw_get_rsvd_page_skb(hw, rsvd_pkt); in rtw_build_rsvd_page()
1414 if (rsvd_pkt->add_txdesc) in rtw_build_rsvd_page()
1415 rtw_fill_rsvd_page_desc(rtwdev, iter, rsvd_pkt->type); in rtw_build_rsvd_page()
1417 rsvd_pkt->skb = iter; in rtw_build_rsvd_page()
1418 rsvd_pkt->page = total_page; in rtw_build_rsvd_page()
1429 if (rsvd_pkt->type != RSVD_BEACON && in rtw_build_rsvd_page()
1430 rsvd_pkt->type != RSVD_DUMMY) { in rtw_build_rsvd_page()
1458 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_build_rsvd_page()
1460 page, buf, rsvd_pkt); in rtw_build_rsvd_page()
1462 page += rtw_len_to_page(rsvd_pkt->skb->len + in rtw_build_rsvd_page()
1465 page += rtw_len_to_page(rsvd_pkt->skb->len, page_size); in rtw_build_rsvd_page()
1467 kfree_skb(rsvd_pkt->skb); in rtw_build_rsvd_page()
1468 rsvd_pkt->skb = NULL; in rtw_build_rsvd_page()
1474 list_for_each_entry(rsvd_pkt, &rtwdev->rsvd_page_list, build_list) { in rtw_build_rsvd_page()
1475 kfree_skb(rsvd_pkt->skb); in rtw_build_rsvd_page()
1476 rsvd_pkt->skb = NULL; in rtw_build_rsvd_page()
1485 struct rtw_rsvd_page *rsvd_pkt; in rtw_download_beacon() local
1489 rsvd_pkt = list_first_entry_or_null(&rtwdev->rsvd_page_list, in rtw_download_beacon()
1491 if (!rsvd_pkt) { in rtw_download_beacon()
1496 if (rsvd_pkt->type != RSVD_BEACON && in rtw_download_beacon()
1497 rsvd_pkt->type != RSVD_DUMMY) { in rtw_download_beacon()
1499 rsvd_pkt->type); in rtw_download_beacon()
1503 skb = rtw_get_rsvd_page_skb(hw, rsvd_pkt); in rtw_download_beacon()