Lines Matching refs:mac_pkt

36 	struct cfg802154_mac_pkt *mac_pkt;  in mac802154_rx_beacon_worker()  local
38 mac_pkt = list_first_entry_or_null(&local->rx_beacon_list, in mac802154_rx_beacon_worker()
40 if (!mac_pkt) in mac802154_rx_beacon_worker()
43 mac802154_process_beacon(local, mac_pkt->skb, mac_pkt->page, mac_pkt->channel); in mac802154_rx_beacon_worker()
45 list_del(&mac_pkt->node); in mac802154_rx_beacon_worker()
46 kfree_skb(mac_pkt->skb); in mac802154_rx_beacon_worker()
47 kfree(mac_pkt); in mac802154_rx_beacon_worker()
75 struct cfg802154_mac_pkt *mac_pkt; in mac802154_rx_mac_cmd_worker() local
79 mac_pkt = list_first_entry_or_null(&local->rx_mac_cmd_list, in mac802154_rx_mac_cmd_worker()
81 if (!mac_pkt) in mac802154_rx_mac_cmd_worker()
84 rc = ieee802154_get_mac_cmd(mac_pkt->skb, &mac_cmd); in mac802154_rx_mac_cmd_worker()
90 dev_dbg(&mac_pkt->sdata->dev->dev, "processing BEACON REQ\n"); in mac802154_rx_mac_cmd_worker()
98 dev_dbg(&mac_pkt->sdata->dev->dev, "processing ASSOC RESP\n"); in mac802154_rx_mac_cmd_worker()
102 mac802154_process_association_resp(mac_pkt->sdata, mac_pkt->skb); in mac802154_rx_mac_cmd_worker()
106 dev_dbg(&mac_pkt->sdata->dev->dev, "processing ASSOC REQ\n"); in mac802154_rx_mac_cmd_worker()
107 if (mac_pkt->sdata->wpan_dev.iftype != NL802154_IFTYPE_COORD) in mac802154_rx_mac_cmd_worker()
110 mac802154_process_association_req(mac_pkt->sdata, mac_pkt->skb); in mac802154_rx_mac_cmd_worker()
114 dev_dbg(&mac_pkt->sdata->dev->dev, "processing DISASSOC NOTIF\n"); in mac802154_rx_mac_cmd_worker()
115 if (mac_pkt->sdata->wpan_dev.iftype != NL802154_IFTYPE_COORD) in mac802154_rx_mac_cmd_worker()
118 mac802154_process_disassociation_notif(mac_pkt->sdata, mac_pkt->skb); in mac802154_rx_mac_cmd_worker()
126 list_del(&mac_pkt->node); in mac802154_rx_mac_cmd_worker()
127 kfree_skb(mac_pkt->skb); in mac802154_rx_mac_cmd_worker()
128 kfree(mac_pkt); in mac802154_rx_mac_cmd_worker()
137 struct cfg802154_mac_pkt *mac_pkt; in ieee802154_subif_frame() local
216 mac_pkt = kzalloc(sizeof(*mac_pkt), GFP_ATOMIC); in ieee802154_subif_frame()
217 if (!mac_pkt) in ieee802154_subif_frame()
220 mac_pkt->skb = skb_get(skb); in ieee802154_subif_frame()
221 mac_pkt->sdata = sdata; in ieee802154_subif_frame()
222 mac_pkt->page = sdata->local->scan_page; in ieee802154_subif_frame()
223 mac_pkt->channel = sdata->local->scan_channel; in ieee802154_subif_frame()
224 list_add_tail(&mac_pkt->node, &sdata->local->rx_beacon_list); in ieee802154_subif_frame()
230 mac_pkt = kzalloc(sizeof(*mac_pkt), GFP_ATOMIC); in ieee802154_subif_frame()
231 if (!mac_pkt) in ieee802154_subif_frame()
234 mac_pkt->skb = skb_get(skb); in ieee802154_subif_frame()
235 mac_pkt->sdata = sdata; in ieee802154_subif_frame()
236 list_add_tail(&mac_pkt->node, &sdata->local->rx_mac_cmd_list); in ieee802154_subif_frame()