Lines Matching refs:nskb
108 struct sk_buff *skb = session->reassembly[id], *nskb; in cmtp_add_msgpart() local
115 nskb = alloc_skb(size, GFP_ATOMIC); in cmtp_add_msgpart()
116 if (!nskb) { in cmtp_add_msgpart()
122 skb_copy_from_linear_data(skb, skb_put(nskb, skb->len), skb->len); in cmtp_add_msgpart()
124 memcpy(skb_put(nskb, count), buf, count); in cmtp_add_msgpart()
126 session->reassembly[id] = nskb; in cmtp_add_msgpart()
211 struct sk_buff *skb, *nskb; in cmtp_process_transmit() local
217 nskb = alloc_skb(session->mtu, GFP_ATOMIC); in cmtp_process_transmit()
218 if (!nskb) { in cmtp_process_transmit()
226 tail = session->mtu - nskb->len; in cmtp_process_transmit()
228 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
229 skb_trim(nskb, 0); in cmtp_process_transmit()
244 hdr = skb_put(nskb, 2); in cmtp_process_transmit()
250 hdr = skb_put(nskb, 3); in cmtp_process_transmit()
258 skb_copy_from_linear_data(skb, skb_put(nskb, size), size); in cmtp_process_transmit()
266 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
267 skb_trim(nskb, 0); in cmtp_process_transmit()
273 cmtp_send_frame(session, nskb->data, nskb->len); in cmtp_process_transmit()
275 kfree_skb(nskb); in cmtp_process_transmit()