Searched refs:skb (Results 1 - 25 of 1025) sorted by relevance

1234567891011>>

/drivers/net/wireless/mwifiex/
H A Dutil.h23 static inline struct mwifiex_rxinfo *MWIFIEX_SKB_RXCB(struct sk_buff *skb) argument
25 return (struct mwifiex_rxinfo *)(skb->cb + sizeof(phys_addr_t));
28 static inline struct mwifiex_txinfo *MWIFIEX_SKB_TXCB(struct sk_buff *skb) argument
30 return (struct mwifiex_txinfo *)(skb->cb + sizeof(phys_addr_t));
33 static inline phys_addr_t *MWIFIEX_SKB_PACB(struct sk_buff *skb) argument
35 return (phys_addr_t *)skb->cb;
H A Dsta_tx.c45 struct sk_buff *skb)
49 struct mwifiex_txinfo *tx_info = MWIFIEX_SKB_TXCB(skb);
52 if (!skb->len) {
53 dev_err(adapter->dev, "Tx: bad packet length: %d\n", skb->len);
55 return skb->data;
58 /* If skb->data is not aligned; add padding */
59 pad = (4 - (((void *)skb->data - NULL) & 0x3)) % 4;
61 BUG_ON(skb_headroom(skb) < (sizeof(*local_tx_pd) + INTF_HEADER_LEN
63 skb_push(skb, sizeof(*local_tx_pd) + pad);
65 local_tx_pd = (struct txpd *) skb
44 mwifiex_process_sta_txpd(struct mwifiex_private *priv, struct sk_buff *skb) argument
121 struct sk_buff *skb; local
[all...]
H A Dtxrx.c37 struct sk_buff *skb)
42 struct mwifiex_rxinfo *rx_info = MWIFIEX_SKB_RXCB(skb);
44 local_rx_pd = (struct rxpd *) (skb->data);
54 return mwifiex_process_sta_rx_packet(adapter, skb);
67 int mwifiex_process_tx(struct mwifiex_private *priv, struct sk_buff *skb, argument
75 head_ptr = mwifiex_process_sta_txpd(priv, skb);
82 skb, tx_param);
100 mwifiex_write_data_complete(adapter, skb, ret);
106 mwifiex_write_data_complete(adapter, skb, ret);
123 struct sk_buff *skb, in
36 mwifiex_handle_rx_packet(struct mwifiex_adapter *adapter, struct sk_buff *skb) argument
122 mwifiex_write_data_complete(struct mwifiex_adapter *adapter, struct sk_buff *skb, int status) argument
[all...]
/drivers/isdn/pcbit/
H A Dcapi.c54 int capi_conn_req(const char *calledPN, struct sk_buff **skb, int proto) argument
79 if ((*skb = dev_alloc_skb(len)) == NULL) {
86 *((ushort *)skb_put(*skb, 2)) = AppInfoMask;
91 *(skb_put(*skb, 1)) = 3; /* BC0.Length */
92 *(skb_put(*skb, 1)) = 0x80; /* Speech */
93 *(skb_put(*skb, 1)) = 0x10; /* Circuit Mode */
94 *(skb_put(*skb, 1)) = 0x23; /* A-law */
99 *(skb_put(*skb, 1)) = 2; /* BC0.Length */
100 *(skb_put(*skb, 1)) = 0x88; /* Digital Information */
101 *(skb_put(*skb,
134 capi_conn_resp(struct pcbit_chan *chan, struct sk_buff **skb) argument
151 capi_conn_active_req(struct pcbit_chan *chan, struct sk_buff **skb) argument
179 capi_conn_active_resp(struct pcbit_chan *chan, struct sk_buff **skb) argument
197 capi_select_proto_req(struct pcbit_chan *chan, struct sk_buff **skb, int outgoing) argument
263 capi_activate_transp_req(struct pcbit_chan *chan, struct sk_buff **skb) argument
285 capi_tdata_req(struct pcbit_chan *chan, struct sk_buff *skb) argument
321 capi_tdata_resp(struct pcbit_chan *chan, struct sk_buff **skb) argument
338 capi_disc_req(ushort callref, struct sk_buff **skb, u_char cause) argument
362 capi_disc_resp(struct pcbit_chan *chan, struct sk_buff **skb) argument
381 capi_decode_conn_ind(struct pcbit_chan *chan, struct sk_buff *skb, struct callb_data *info) argument
493 capi_decode_conn_conf(struct pcbit_chan *chan, struct sk_buff *skb, int *complete) argument
528 capi_decode_conn_actv_ind(struct pcbit_chan *chan, struct sk_buff *skb) argument
566 capi_decode_conn_actv_conf(struct pcbit_chan *chan, struct sk_buff *skb) argument
580 capi_decode_sel_proto_conf(struct pcbit_chan *chan, struct sk_buff *skb) argument
593 capi_decode_actv_trans_conf(struct pcbit_chan *chan, struct sk_buff *skb) argument
608 capi_decode_disc_ind(struct pcbit_chan *chan, struct sk_buff *skb) argument
[all...]
H A Dcapi.h25 extern int capi_decode_conn_conf(struct pcbit_chan *chan, struct sk_buff *skb,
28 extern int capi_decode_conn_ind(struct pcbit_chan *chan, struct sk_buff *skb,
30 extern int capi_conn_resp(struct pcbit_chan *chan, struct sk_buff **skb);
32 extern int capi_conn_active_req(struct pcbit_chan *chan, struct sk_buff **skb);
34 struct sk_buff *skb);
37 struct sk_buff *skb);
39 struct sk_buff **skb);
42 extern int capi_select_proto_req(struct pcbit_chan *chan, struct sk_buff **skb,
45 struct sk_buff *skb);
48 struct sk_buff **skb);
66 capi_channel(struct pcbit_dev *dev, struct sk_buff *skb) argument
[all...]
/drivers/net/wireless/prism54/
H A Dislpci_eth.c42 struct sk_buff *skb; local
56 * free the skb structure and unmap pci memory */
57 skb = priv->data_low_tx[index];
61 "cleanup skb %p skb->data %p skb->len %u truesize %u\n ",
62 skb, skb->data, skb->len, skb
77 islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) argument
246 islpci_monitor_rx(islpci_private *priv, struct sk_buff **skb) argument
314 struct sk_buff *skb; local
[all...]
/drivers/net/wireless/bcmdhd/include/
H A Dosl.h72 #define PKTCCNT(skb) (0)
73 #define PKTCLEN(skb) (0)
74 #define PKTCFLAGS(skb) (0)
75 #define PKTCSETCNT(skb, c)
76 #define PKTCSETLEN(skb, l)
77 #define PKTCSETFLAG(skb, fb)
78 #define PKTCCLRFLAG(skb, fb)
79 #define PKTCLINK(skb) PKTLINK(skb)
80 #define PKTSETCLINK(skb,
[all...]
H A Dlinux_osl.h255 #define PKTDUP(osh, skb) osl_pktdup((osh), (skb))
258 #define PKTFREE(osh, skb, send) osl_pktfree((osh), (skb), (send))
261 #define PKTFREE_STATIC(osh, skb, send) osl_pktfree_static((osh), (skb), (send))
263 #define PKTDATA(osh, skb) (((struct sk_buff*)(skb))->data)
264 #define PKTLEN(osh, skb) (((struct sk_buff*)(skb))
[all...]
/drivers/net/can/
H A Dvcan.c71 static void vcan_rx(struct sk_buff *skb, struct net_device *dev) argument
73 struct can_frame *cf = (struct can_frame *)skb->data;
79 skb->protocol = htons(ETH_P_CAN);
80 skb->pkt_type = PACKET_BROADCAST;
81 skb->dev = dev;
82 skb->ip_summed = CHECKSUM_UNNECESSARY;
84 netif_rx_ni(skb);
87 static netdev_tx_t vcan_tx(struct sk_buff *skb, struct net_device *dev) argument
89 struct can_frame *cf = (struct can_frame *)skb->data;
93 if (can_dropped_invalid_skb(dev, skb))
[all...]
/drivers/net/usb/
H A Dgl620a.c81 static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb) argument
89 header = (struct gl_header *) skb->data;
91 // get the packet count of the received skb
102 skb_pull(skb, 4);
114 // allocate the skb for the individual packet
118 // copy the packet data to the new skb
129 skb_pull(skb, size + 4);
133 skb_pull(skb, 4);
135 if (skb->len > GL_MAX_PACKET_LEN) {
136 dbg("genelink: invalid rx length %d", skb
143 genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) argument
[all...]
H A Dcdc_eem.c60 static void eem_linkcmd(struct usbnet *dev, struct sk_buff *skb) argument
70 skb->data, skb->len, eem_linkcmd_complete, skb);
76 dev_kfree_skb(skb);
105 static struct sk_buff *eem_tx_fixup(struct usbnet *dev, struct sk_buff *skb, argument
109 u16 len = skb->len;
122 if (!skb_cloned(skb)) {
123 int headroom = skb_headroom(skb);
124 int tailroom = skb_tailroom(skb);
170 eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) argument
[all...]
/drivers/net/wan/
H A Dhdlc_x25.c33 struct sk_buff *skb; local
36 if ((skb = dev_alloc_skb(1)) == NULL) {
41 ptr = skb_put(skb, 1);
44 skb->protocol = x25_type_trans(skb, dev);
45 netif_rx(skb);
64 static int x25_data_indication(struct net_device *dev, struct sk_buff *skb) argument
68 skb_push(skb, 1);
70 if (skb_cow(skb, 1))
73 ptr = skb
82 x25_data_transmit(struct net_device *dev, struct sk_buff *skb) argument
90 x25_xmit(struct sk_buff *skb, struct net_device *dev) argument
162 x25_rx(struct sk_buff *skb) argument
[all...]
H A Dlapbether.c90 static int lapbeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) argument
98 if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL)
101 if (!pskb_may_pull(skb, 2))
111 len = skb->data[0] + skb->data[1] * 256;
115 skb_pull(skb, 2); /* Remove the length bytes */
116 skb_trim(skb, len); /* Set the length of the data */
118 if ((err = lapb_data_received(lapbeth->axdev, skb)) != LAPB_OK) {
126 kfree_skb(skb);
133 lapbeth_data_indication(struct net_device *dev, struct sk_buff *skb) argument
152 lapbeth_xmit(struct sk_buff *skb, struct net_device *dev) argument
192 lapbeth_data_transmit(struct net_device *ndev, struct sk_buff *skb) argument
219 struct sk_buff *skb = dev_alloc_skb(1); local
236 struct sk_buff *skb = dev_alloc_skb(1); local
[all...]
/drivers/staging/wlags49_h2/
H A Dwl_version.h164 #define GET_PACKET(dev, skb, count)\
165 skb_reserve((skb), 2); \
166 BLOCK_INPUT(skb_put((skb), (count)), (count)); \
167 (skb)->protocol = eth_type_trans((skb), (dev))
168 #define GET_PACKET_DMA(dev, skb, count)\
169 skb_reserve((skb), 2); \
170 BLOCK_INPUT_DMA(skb_put((skb), (count)), (count)); \
171 (skb)->protocol = eth_type_trans((skb), (de
[all...]
/drivers/net/wimax/i2400m/
H A Dnetdev.c40 * just give the skb to the TX subsystem and by the time it is
159 struct sk_buff *skb = i2400m->wake_tx_skb; local
163 skb = i2400m->wake_tx_skb;
167 d_fnstart(3, dev, "(ws %p i2400m %p skb %p)\n", ws, i2400m, skb);
169 if (skb == NULL) {
170 dev_err(dev, "WAKE&TX: skb disappeared!\n");
199 result = i2400m_tx(i2400m, skb->data, skb->len, I2400M_PT_DATA);
203 kfree_skb(skb); /* refcoun
220 i2400m_tx_prep_header(struct sk_buff *skb) argument
272 i2400m_net_wake_tx(struct i2400m *i2400m, struct net_device *net_dev, struct sk_buff *skb) argument
325 i2400m_net_tx(struct i2400m *i2400m, struct net_device *net_dev, struct sk_buff *skb) argument
365 i2400m_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev) argument
490 struct sk_buff *skb; local
550 i2400m_net_erx(struct i2400m *i2400m, struct sk_buff *skb, enum i2400m_cs cs) argument
[all...]
/drivers/net/wireless/hostap/
H A Dhostap_80211_tx.c19 void hostap_dump_tx_80211(const char *name, struct sk_buff *skb) argument
24 hdr = (struct ieee80211_hdr *) skb->data;
27 name, skb->len, jiffies);
29 if (skb->len < 2)
39 if (skb->len < IEEE80211_DATA_HDR3_LEN) {
50 if (skb->len >= 30)
59 netdev_tx_t hostap_data_start_xmit(struct sk_buff *skb, argument
78 if (skb->len < ETH_HLEN) {
79 printk(KERN_DEBUG "%s: hostap_data_start_xmit: short skb "
80 "(len=%d)\n", dev->name, skb
268 hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev) argument
314 hostap_tx_encrypt(struct sk_buff *skb, struct lib80211_crypt_data *crypt) argument
381 hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev) argument
[all...]
H A Dhostap_80211_rx.c20 void hostap_dump_rx_80211(const char *name, struct sk_buff *skb, argument
26 hdr = (struct ieee80211_hdr *) skb->data;
31 skb->len, jiffies);
33 if (skb->len < 2)
43 if (skb->len < IEEE80211_DATA_HDR3_LEN) {
54 if (skb->len >= 30)
62 int prism2_rx_80211(struct net_device *dev, struct sk_buff *skb, argument
91 fhdr = (struct ieee80211_hdr *) skb->data;
97 dev_kfree_skb_any(skb);
103 /* check if there is enough room for extra data; if not, expand skb
209 monitor_rx(struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats) argument
254 struct sk_buff *skb = NULL; local
393 hostap_rx_sta_beacon(local_info_t *local, struct sk_buff *skb, int stype) argument
472 hostap_rx_frame_mgmt(local_info_t *local, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats, u16 type, u16 stype) argument
609 hostap_is_eapol_frame(local_info_t *local, struct sk_buff *skb) argument
650 hostap_rx_frame_decrypt(local_info_t *local, struct sk_buff *skb, struct lib80211_crypt_data *crypt) argument
688 hostap_rx_frame_decrypt_msdu(local_info_t *local, struct sk_buff *skb, int keyidx, struct lib80211_crypt_data *crypt) argument
717 hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, struct hostap_80211_rx_status *rx_stats) argument
[all...]
/drivers/net/wireless/libertas/
H A Drx.c46 struct sk_buff *skb);
53 * @skb: A pointer to skb which includes the received packet
56 int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *skb) argument
70 BUG_ON(!skb);
72 skb->ip_summed = CHECKSUM_NONE;
75 return process_rxed_802_11_packet(priv, skb);
77 p_rx_pd = (struct rxpd *) skb->data;
83 lbs_deb_hex(LBS_DEB_RX, "RX Data: Before chop rxpd", skb->data,
84 min_t(unsigned int, skb
212 process_rxed_802_11_packet(struct lbs_private *priv, struct sk_buff *skb) argument
[all...]
/drivers/staging/octeon/
H A Dethernet-tx.h28 int cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev);
29 int cvm_oct_xmit_pow(struct sk_buff *skb, struct net_device *dev);
/drivers/staging/wlan-ng/
H A Dp80211conv.c91 * Note -- 802.11 header is NOT part of the skb. Likewise, the 802.11
96 * skb skbuff containing the ether frame
106 struct sk_buff *skb, union p80211_hdr *p80211_hdr,
117 memcpy(&e_hdr, skb->data, sizeof(e_hdr));
119 if (skb->len <= 0) {
120 pr_debug("zero-length skb!\n");
125 pr_debug("ENCAP len: %d\n", skb->len);
128 /* which is to say, leave the skb alone. */
133 pr_debug("802.3 len: %d\n", skb->len);
138 skb_pull(skb, WLAN_ETHHDR_LE
105 skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv, struct sk_buff *skb, union p80211_hdr *p80211_hdr, struct p80211_metawep *p80211_wep) argument
276 skb_p80211_to_ether(wlandevice_t *wlandev, u32 ethconv, struct sk_buff *skb) argument
554 p80211skb_rxmeta_detach(struct sk_buff *skb) argument
600 p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb) argument
653 p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb) argument
[all...]
/drivers/net/ppp/
H A Dpppolac.c64 static inline struct meta *skb_meta(struct sk_buff *skb) argument
66 return (struct meta *)skb->cb;
71 static int pppolac_recv_core(struct sock *sk_udp, struct sk_buff *skb) argument
75 struct meta *meta = skb_meta(skb);
81 if (skb->len < sizeof(struct udphdr) + 6)
85 if (skb->data[sizeof(struct udphdr)] & L2TP_CONTROL_BIT)
86 return opt->backlog_rcv(sk_udp, skb);
89 skb_pull(skb, sizeof(struct udphdr));
92 if ((skb->data[1] & L2TP_VERSION_MASK) != L2TP_VERSION)
94 bits = skb
191 pppolac_recv(struct sock *sk_udp, struct sk_buff *skb) argument
203 struct sk_buff *skb; local
222 pppolac_xmit(struct ppp_channel *chan, struct sk_buff *skb) argument
[all...]
/drivers/net/wireless/rt2x00/
H A Drt2x00crypto.c49 struct sk_buff *skb,
52 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
77 struct sk_buff *skb)
79 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
104 void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, struct txentry_desc *txdesc) argument
106 struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb);
112 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len);
115 void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, struct txentry_desc *txdesc) argument
117 struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb);
123 memcpy(skbdesc->iv, skb
48 rt2x00crypto_create_tx_descriptor(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb, struct txentry_desc *txdesc) argument
76 rt2x00crypto_tx_overhead(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb) argument
136 rt2x00crypto_tx_insert_iv(struct sk_buff *skb, unsigned int header_length) argument
157 rt2x00crypto_rx_insert_iv(struct sk_buff *skb, unsigned int header_length, struct rxdone_entry_desc *rxdesc) argument
[all...]
/drivers/block/aoe/
H A Daoenet.c90 struct sk_buff *skb, *tmp; local
92 skb_queue_walk_safe(queue, skb, tmp) {
93 __skb_unlink(skb, queue);
94 dev_queue_xmit(skb);
102 aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct net_device *orig_dev) argument
110 skb = skb_share_check(skb, GFP_ATOMIC);
111 if (skb == NULL)
113 if (skb_linearize(skb))
117 skb_push(skb, ETH_HLE
[all...]
/drivers/net/wireless/ath/ath5k/
H A Dtrace.h21 TP_PROTO(struct ath5k_hw *priv, struct sk_buff *skb),
22 TP_ARGS(priv, skb),
26 __dynamic_array(u8, frame, skb->len)
30 __entry->skbaddr = (unsigned long) skb;
31 memcpy(__get_dynamic_array(frame), skb->data, skb->len);
34 "[%p] RX skb=%lx", __entry->priv, __entry->skbaddr
39 TP_PROTO(struct ath5k_hw *priv, struct sk_buff *skb,
42 TP_ARGS(priv, skb, q),
48 __dynamic_array(u8, frame, skb
[all...]
/drivers/isdn/gigaset/
H A Dasyncdata.c144 struct sk_buff *skb = bcs->rx_skb; local
204 if (!skb) {
207 } else if (skb->len < 2) {
211 skb->len);
213 dev_kfree_skb_any(skb);
218 skb->len);
220 dev_kfree_skb_any(skb);
223 __skb_trim(skb, skb->len - 2);
224 gigaset_skb_rcvd(bcs, skb);
290 struct sk_buff *skb = bcs->rx_skb; local
458 HDLC_Encode(struct sk_buff *skb) argument
536 iraw_encode(struct sk_buff *skb) argument
585 gigaset_m10x_send_skb(struct bc_state *bcs, struct sk_buff *skb) argument
[all...]

Completed in 519 milliseconds

1234567891011>>