Lines Matching refs:pkt

1891 	struct sk_buff *pkt;		/* Packet for event or data frames */  in brcmf_sdio_readframes()  local
1968 pkt = brcmu_pkt_buf_get_skb(rd->len_left + head_read + in brcmf_sdio_readframes()
1970 if (!pkt) { in brcmf_sdio_readframes()
1978 skb_pull(pkt, head_read); in brcmf_sdio_readframes()
1979 pkt_align(pkt, rd->len_left, bus->head_align); in brcmf_sdio_readframes()
1981 ret = brcmf_sdiod_recv_pkt(bus->sdiodev, pkt); in brcmf_sdio_readframes()
1988 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
1997 skb_push(pkt, head_read); in brcmf_sdio_readframes()
1998 memcpy(pkt->data, bus->rxhdr, head_read); in brcmf_sdio_readframes()
2001 memcpy(bus->rxhdr, pkt->data, SDPCM_HDRLEN); in brcmf_sdio_readframes()
2007 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2017 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2039 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2045 pkt->data, rd->len, "Rx Data:\n"); in brcmf_sdio_readframes()
2053 pkt->data, rd->len, in brcmf_sdio_readframes()
2055 __skb_trim(pkt, rd->len); in brcmf_sdio_readframes()
2056 skb_pull(pkt, SDPCM_HDRLEN); in brcmf_sdio_readframes()
2057 bus->glomd = pkt; in brcmf_sdio_readframes()
2074 __skb_trim(pkt, rd->len); in brcmf_sdio_readframes()
2075 skb_pull(pkt, rd->dat_offset); in brcmf_sdio_readframes()
2083 if (pkt->len == 0) { in brcmf_sdio_readframes()
2084 brcmu_pkt_buf_free_skb(pkt); in brcmf_sdio_readframes()
2088 brcmf_rx_frame(bus->sdiodev->dev, pkt); in brcmf_sdio_readframes()
2113 static int brcmf_sdio_txpkt_hdalign(struct brcmf_sdio *bus, struct sk_buff *pkt) in brcmf_sdio_txpkt_hdalign() argument
2118 dat_buf = (u8 *)(pkt->data); in brcmf_sdio_txpkt_hdalign()
2123 if (skb_headroom(pkt) < head_pad) { in brcmf_sdio_txpkt_hdalign()
2126 if (skb_cow(pkt, head_pad)) in brcmf_sdio_txpkt_hdalign()
2129 skb_push(pkt, head_pad); in brcmf_sdio_txpkt_hdalign()
2130 dat_buf = (u8 *)(pkt->data); in brcmf_sdio_txpkt_hdalign()
2147 struct sk_buff *pkt, u16 total_len) in brcmf_sdio_txpkt_prep_sg() argument
2162 lastfrm = skb_queue_is_last(pktq, pkt); in brcmf_sdio_txpkt_prep_sg()
2164 tail_chop = pkt->len % bus->sgentry_align; in brcmf_sdio_txpkt_prep_sg()
2170 if (skb_tailroom(pkt) < tail_pad && pkt->len > blksize) { in brcmf_sdio_txpkt_prep_sg()
2181 pkt->data + pkt->len - tail_chop, in brcmf_sdio_txpkt_prep_sg()
2184 skb_trim(pkt, pkt->len - tail_chop); in brcmf_sdio_txpkt_prep_sg()
2186 __skb_queue_after(pktq, pkt, pkt_pad); in brcmf_sdio_txpkt_prep_sg()
2188 ntail = pkt->data_len + tail_pad - in brcmf_sdio_txpkt_prep_sg()
2189 (pkt->end - pkt->tail); in brcmf_sdio_txpkt_prep_sg()
2190 if (skb_cloned(pkt) || ntail > 0) in brcmf_sdio_txpkt_prep_sg()
2191 if (pskb_expand_head(pkt, 0, ntail, GFP_ATOMIC)) in brcmf_sdio_txpkt_prep_sg()
2193 if (skb_linearize(pkt)) in brcmf_sdio_txpkt_prep_sg()
2195 __skb_put(pkt, tail_pad); in brcmf_sdio_txpkt_prep_sg()
2358 struct sk_buff *pkt; in brcmf_sdio_sendfromq() local
2380 pkt = brcmu_pktq_mdeq(&bus->txq, tx_prec_map, in brcmf_sdio_sendfromq()
2382 if (pkt == NULL) in brcmf_sdio_sendfromq()
2384 __skb_queue_tail(&pktq, pkt); in brcmf_sdio_sendfromq()
2767 static bool brcmf_sdio_prec_enq(struct pktq *q, struct sk_buff *pkt, int prec) in brcmf_sdio_prec_enq() argument
2776 brcmu_pktq_penq(q, prec, pkt); in brcmf_sdio_prec_enq()
2802 p = brcmu_pktq_penq(q, prec, pkt); in brcmf_sdio_prec_enq()
2809 static int brcmf_sdio_bus_txdata(struct device *dev, struct sk_buff *pkt) in brcmf_sdio_bus_txdata() argument
2817 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()