Lines Matching refs:pkt

1898 	struct sk_buff *pkt;		/* Packet for event or data frames */  in brcmf_sdio_readframes()  local
1975 pkt = brcmu_pkt_buf_get_skb(rd->len_left + head_read + in brcmf_sdio_readframes()
1977 if (!pkt) { in brcmf_sdio_readframes()
1985 skb_pull(pkt, head_read); in brcmf_sdio_readframes()
1986 pkt_align(pkt, rd->len_left, bus->head_align); in brcmf_sdio_readframes()
1988 ret = brcmf_sdiod_recv_pkt(bus->sdiodev, pkt); in brcmf_sdio_readframes()
1995 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2004 skb_push(pkt, head_read); in brcmf_sdio_readframes()
2005 memcpy(pkt->data, bus->rxhdr, head_read); in brcmf_sdio_readframes()
2008 memcpy(bus->rxhdr, pkt->data, SDPCM_HDRLEN); in brcmf_sdio_readframes()
2014 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2024 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2046 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2052 pkt->data, rd->len, "Rx Data:\n"); in brcmf_sdio_readframes()
2060 pkt->data, rd->len, in brcmf_sdio_readframes()
2062 __skb_trim(pkt, rd->len); in brcmf_sdio_readframes()
2063 skb_pull(pkt, SDPCM_HDRLEN); in brcmf_sdio_readframes()
2064 bus->glomd = pkt; in brcmf_sdio_readframes()
2081 __skb_trim(pkt, rd->len); in brcmf_sdio_readframes()
2082 skb_pull(pkt, rd->dat_offset); in brcmf_sdio_readframes()
2090 if (pkt->len == 0) { in brcmf_sdio_readframes()
2091 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2095 brcmf_rx_frame(bus->sdiodev->dev, pkt); in brcmf_sdio_readframes()
2120 static int brcmf_sdio_txpkt_hdalign(struct brcmf_sdio *bus, struct sk_buff *pkt) in brcmf_sdio_txpkt_hdalign() argument
2125 dat_buf = (u8 *)(pkt->data); in brcmf_sdio_txpkt_hdalign()
2130 if (skb_headroom(pkt) < head_pad) { in brcmf_sdio_txpkt_hdalign()
2133 if (skb_cow(pkt, head_pad)) in brcmf_sdio_txpkt_hdalign()
2136 skb_push(pkt, head_pad); in brcmf_sdio_txpkt_hdalign()
2137 dat_buf = (u8 *)(pkt->data); in brcmf_sdio_txpkt_hdalign()
2154 struct sk_buff *pkt, u16 total_len) in brcmf_sdio_txpkt_prep_sg() argument
2169 lastfrm = skb_queue_is_last(pktq, pkt); in brcmf_sdio_txpkt_prep_sg()
2171 tail_chop = pkt->len % bus->sgentry_align; in brcmf_sdio_txpkt_prep_sg()
2177 if (skb_tailroom(pkt) < tail_pad && pkt->len > blksize) { in brcmf_sdio_txpkt_prep_sg()
2188 pkt->data + pkt->len - tail_chop, in brcmf_sdio_txpkt_prep_sg()
2191 skb_trim(pkt, pkt->len - tail_chop); in brcmf_sdio_txpkt_prep_sg()
2193 __skb_queue_after(pktq, pkt, pkt_pad); in brcmf_sdio_txpkt_prep_sg()
2195 ntail = pkt->data_len + tail_pad - in brcmf_sdio_txpkt_prep_sg()
2196 (pkt->end - pkt->tail); in brcmf_sdio_txpkt_prep_sg()
2197 if (skb_cloned(pkt) || ntail > 0) in brcmf_sdio_txpkt_prep_sg()
2198 if (pskb_expand_head(pkt, 0, ntail, GFP_ATOMIC)) in brcmf_sdio_txpkt_prep_sg()
2200 if (skb_linearize(pkt)) in brcmf_sdio_txpkt_prep_sg()
2202 __skb_put(pkt, tail_pad); in brcmf_sdio_txpkt_prep_sg()
2365 struct sk_buff *pkt; in brcmf_sdio_sendfromq() local
2387 pkt = brcmu_pktq_mdeq(&bus->txq, tx_prec_map, in brcmf_sdio_sendfromq()
2389 if (pkt == NULL) in brcmf_sdio_sendfromq()
2391 __skb_queue_tail(&pktq, pkt); in brcmf_sdio_sendfromq()
2765 static bool brcmf_sdio_prec_enq(struct pktq *q, struct sk_buff *pkt, int prec) in brcmf_sdio_prec_enq() argument
2774 brcmu_pktq_penq(q, prec, pkt); in brcmf_sdio_prec_enq()
2800 p = brcmu_pktq_penq(q, prec, pkt); in brcmf_sdio_prec_enq()
2807 static int brcmf_sdio_bus_txdata(struct device *dev, struct sk_buff *pkt) in brcmf_sdio_bus_txdata() argument
2815 brcmf_dbg(TRACE, "Enter: pkt: data %p len %d\n", pkt->data, pkt->len); in brcmf_sdio_bus_txdata()
2820 skb_push(pkt, bus->tx_hdrlen); in brcmf_sdio_bus_txdata()
2823 prec = prio2prec((pkt->priority & PRIOMASK)); in brcmf_sdio_bus_txdata()
2833 *(u16 *)(pkt->cb) = 0; in brcmf_sdio_bus_txdata()
2834 if (!brcmf_sdio_prec_enq(&bus->txq, pkt, prec)) { in brcmf_sdio_bus_txdata()
2835 skb_pull(pkt, bus->tx_hdrlen); in brcmf_sdio_bus_txdata()