Lines Matching refs:nskb
114 struct sk_buff *skb = session->reassembly[id], *nskb; in cmtp_add_msgpart() local
121 if (!(nskb = alloc_skb(size, GFP_ATOMIC))) { in cmtp_add_msgpart()
127 memcpy(skb_put(nskb, skb->len), skb->data, skb->len); in cmtp_add_msgpart()
129 memcpy(skb_put(nskb, count), buf, count); in cmtp_add_msgpart()
131 session->reassembly[id] = nskb; in cmtp_add_msgpart()
221 struct sk_buff *skb, *nskb; in cmtp_process_transmit() local
227 if (!(nskb = alloc_skb(session->mtu, GFP_ATOMIC))) { in cmtp_process_transmit()
235 if ((tail = (session->mtu - nskb->len)) < 5) { in cmtp_process_transmit()
236 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
237 skb_trim(nskb, 0); in cmtp_process_transmit()
249 hdr = skb_put(nskb, 2); in cmtp_process_transmit()
255 hdr = skb_put(nskb, 3); in cmtp_process_transmit()
263 memcpy(skb_put(nskb, size), skb->data, size); in cmtp_process_transmit()
271 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
272 skb_trim(nskb, 0); in cmtp_process_transmit()
278 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
280 kfree_skb(nskb); in cmtp_process_transmit()