Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 8 of 8) sorted by relevance

/hardware/ti/wlan/wl1271/platforms/os/linux/src/
DRxBuf.c52 struct sk_buff *skb; in RxBufAlloc() local
56 skb = alloc_skb(alloc_len, flags); in RxBufAlloc()
57 if (!skb) in RxBufAlloc()
61 rx_head = (rx_head_t *)skb->head; in RxBufAlloc()
62 rx_head->skb = skb; in RxBufAlloc()
63 skb_reserve(skb, RX_HEAD_LEN_ALIGNED + WSPI_PAD_BYTES); in RxBufAlloc()
68 return skb->data; in RxBufAlloc()
78 struct sk_buff *skb = rx_head->skb; in RxBufFree() local
83 if ((TI_UINT32)pBuf - (TI_UINT32)skb->data != 2) in RxBufFree()
85 …printk("RxBufFree() address error skb=0x%x skb->data=0x%x pPacket=0x%x !!!\n",(int)skb, (int)skb->… in RxBufFree()
[all …]
Dipc_k.c68 struct sk_buff *skb; in IPC_EventSend() local
91 skb = dev_alloc_skb(realSize); in IPC_EventSend()
92 if (!skb) { in IPC_EventSend()
98 nlh = NLMSG_PUT(skb, 0, 0, NLMSG_DONE, realSize - sizeof(*nlh)); in IPC_EventSend()
106 NETLINK_CB(skb).pid = 0; /* from kernel */ in IPC_EventSend()
108 NETLINK_CB(skb).dst_group = RTMGRP_LINK; in IPC_EventSend()
111 …res = netlink_unicast(drv->wl_sock, skb, (( IPC_EVENT_PARAMS *) pEvData) ->uProcessID, MSG_DONTWAI… in IPC_EventSend()
Dosapi.c437 struct sk_buff *skb = rx_head->skb; in os_receivePacket() local
442 if ((TI_UINT32)pPacket - (TI_UINT32)skb->data != 2) in os_receivePacket()
444 …cket() address error skb=0x%x skb->data=0x%x pPacket=0x%x !!!\n",(int)skb, (int)skb->data, (int)pP… in os_receivePacket()
449 if ((TI_UINT32)skb->data != (TI_UINT32)pPacket) in os_receivePacket()
451 …cket() address error skb=0x%x skb->data=0x%x pPacket=0x%x !!!\n",(int)skb, (int)skb->data, (int)pP… in os_receivePacket()
465 skb->data = RX_ETH_PKT_DATA(pPacket); in os_receivePacket()
466 skb->tail = skb->data; in os_receivePacket()
467 skb_put(skb, RX_ETH_PKT_LEN(pPacket)); in os_receivePacket()
474 skb->dev = drv->netdev; in os_receivePacket()
475 skb->protocol = eth_type_trans(skb, drv->netdev); in os_receivePacket()
[all …]
DWlanDrvIf.c95 static int wlanDrvIf_Xmit(struct sk_buff *skb, struct net_device *dev);
96 static int wlanDrvIf_XmitDummy(struct sk_buff *skb, struct net_device *dev);
133 static int wlanDrvIf_Xmit (struct sk_buff *skb, struct net_device *dev) in wlanDrvIf_Xmit() argument
143 drv->stats.tx_bytes += skb->len; in wlanDrvIf_Xmit()
149 pPktCtrlBlk->tTxDescriptor.length = skb->len; in wlanDrvIf_Xmit()
150 pPktCtrlBlk->tTxPktParams.pInputPkt = skb; in wlanDrvIf_Xmit()
153 pPktCtrlBlk->tTxnStruct.aBuf[0] = skb->data; in wlanDrvIf_Xmit()
155 pPktCtrlBlk->tTxnStruct.aBuf[1] = skb->data + ETHERNET_HDR_LEN; in wlanDrvIf_Xmit()
156 pPktCtrlBlk->tTxnStruct.aLen[1] = (TI_UINT16)skb->len - ETHERNET_HDR_LEN; in wlanDrvIf_Xmit()
160 status = txDataQ_InsertPacket (drv->tCommon.hTxDataQ, pPktCtrlBlk,(TI_UINT8)skb->priority); in wlanDrvIf_Xmit()
[all …]
/hardware/broadcom/wlan/bcm4329/src/include/
Dlinux_osl.h235 #define PKTFREE(osh, skb, send) osl_pktfree((osh), (skb), (send)) argument
238 #define PKTFREE_STATIC(osh, skb, send) osl_pktfree_static((osh), (skb), (send)) argument
240 #define PKTDATA(osh, skb) (((struct sk_buff*)(skb))->data) argument
241 #define PKTLEN(osh, skb) (((struct sk_buff*)(skb))->len) argument
242 #define PKTHEADROOM(osh, skb) (PKTDATA(osh, skb)-(((struct sk_buff*)(skb))->head)) argument
243 #define PKTTAILROOM(osh, skb) ((((struct sk_buff*)(skb))->end)-(((struct sk_buff*)(skb))->tail)) argument
244 #define PKTNEXT(osh, skb) (((struct sk_buff*)(skb))->next) argument
245 #define PKTSETNEXT(osh, skb, x) (((struct sk_buff*)(skb))->next = (struct sk_buff*)(x)) argument
246 #define PKTSETLEN(osh, skb, len) __skb_trim((struct sk_buff*)(skb), (len)) argument
247 #define PKTPUSH(osh, skb, bytes) skb_push((struct sk_buff*)(skb), (bytes)) argument
[all …]
/hardware/broadcom/wlan/bcm4329/src/shared/
Dlinux_osl.c248 struct sk_buff *skb; in osl_pktget() local
250 if ((skb = dev_alloc_skb(len))) { in osl_pktget()
251 skb_put(skb, len); in osl_pktget()
252 skb->priority = 0; in osl_pktget()
258 return ((void*) skb); in osl_pktget()
265 struct sk_buff *skb, *nskb; in osl_pktfree() local
267 skb = (struct sk_buff*) p; in osl_pktfree()
273 while (skb) { in osl_pktfree()
274 nskb = skb->next; in osl_pktfree()
275 skb->next = NULL; in osl_pktfree()
[all …]
/hardware/broadcom/wlan/bcm4329/src/dhd/sys/
Ddhd_linux.c1112 dhd_start_xmit(struct sk_buff *skb, struct net_device *net) in dhd_start_xmit() argument
1146 if (skb_headroom(skb) < dhd->pub.hdrlen) { in dhd_start_xmit()
1152 skb2 = skb_realloc_headroom(skb, dhd->pub.hdrlen); in dhd_start_xmit()
1153 dev_kfree_skb(skb); in dhd_start_xmit()
1154 if ((skb = skb2) == NULL) { in dhd_start_xmit()
1163 if (!(pktbuf = PKTFRMNATIVE(dhd->pub.osh, skb))) { in dhd_start_xmit()
1166 dev_kfree_skb_any(skb); in dhd_start_xmit()
1206 struct sk_buff *skb; in dhd_rx_frame() local
1224 skb = PKTTONATIVE(dhdp->osh, pktbuf); in dhd_rx_frame()
1235 eth = skb->data; in dhd_rx_frame()
[all …]
/hardware/ti/wlan/wl1271/platforms/os/linux/inc/
DRxBuf_linux.h47 struct sk_buff *skb; member