/linux-4.19.296/include/linux/can/ |
D | skb.h | 68 struct sk_buff *nskb; in can_create_echo_skb() local 70 nskb = skb_clone(skb, GFP_ATOMIC); in can_create_echo_skb() 71 if (unlikely(!nskb)) { in can_create_echo_skb() 76 can_skb_set_owner(nskb, skb->sk); in can_create_echo_skb() 78 return nskb; in can_create_echo_skb()
|
/linux-4.19.296/drivers/bluetooth/ |
D | hci_bcsp.c | 181 struct sk_buff *nskb; in bcsp_prepare_pkt() local 233 nskb = alloc_skb((len + 6) * 2 + 2, GFP_ATOMIC); in bcsp_prepare_pkt() 234 if (!nskb) in bcsp_prepare_pkt() 237 hci_skb_pkt_type(nskb) = pkt_type; in bcsp_prepare_pkt() 239 bcsp_slip_msgdelim(nskb); in bcsp_prepare_pkt() 260 bcsp_slip_one_byte(nskb, hdr[i]); in bcsp_prepare_pkt() 268 bcsp_slip_one_byte(nskb, data[i]); in bcsp_prepare_pkt() 277 bcsp_slip_one_byte(nskb, (u8)((bcsp_txmsg_crc >> 8) & 0x00ff)); in bcsp_prepare_pkt() 278 bcsp_slip_one_byte(nskb, (u8)(bcsp_txmsg_crc & 0x00ff)); in bcsp_prepare_pkt() 281 bcsp_slip_msgdelim(nskb); in bcsp_prepare_pkt() [all …]
|
D | hci_h5.c | 126 struct sk_buff *nskb; in h5_link_control() local 128 nskb = alloc_skb(3, GFP_ATOMIC); in h5_link_control() 129 if (!nskb) in h5_link_control() 132 hci_skb_pkt_type(nskb) = HCI_3WIRE_LINK_PKT; in h5_link_control() 134 skb_put_data(nskb, data, len); in h5_link_control() 136 skb_queue_tail(&h5->unrel, nskb); in h5_link_control() 667 struct sk_buff *nskb; in h5_prepare_pkt() local 682 nskb = alloc_skb((len + 6) * 2 + 2, GFP_ATOMIC); in h5_prepare_pkt() 683 if (!nskb) in h5_prepare_pkt() 686 hci_skb_pkt_type(nskb) = pkt_type; in h5_prepare_pkt() [all …]
|
D | bfusb.c | 468 struct sk_buff *nskb; in bfusb_send_frame() local 493 nskb = bt_skb_alloc(count + 32, GFP_KERNEL); in bfusb_send_frame() 494 if (!nskb) { in bfusb_send_frame() 499 nskb->dev = (void *) data; in bfusb_send_frame() 508 skb_put_data(nskb, buf, 3); in bfusb_send_frame() 509 skb_copy_from_linear_data_offset(skb, sent, skb_put(nskb, size), size); in bfusb_send_frame() 516 if ((nskb->len % data->bulk_pkt_size) == 0) { in bfusb_send_frame() 519 skb_put_data(nskb, buf, 2); in bfusb_send_frame() 524 skb_queue_tail(&data->transmit_q, nskb); in bfusb_send_frame()
|
/linux-4.19.296/drivers/isdn/i4l/ |
D | isdn_v110.c | 472 struct sk_buff *nskb; in isdn_v110_encode() local 492 if (!(nskb = dev_alloc_skb(size + v->skbres + sizeof(int)))) { in isdn_v110_encode() 496 skb_reserve(nskb, v->skbres + sizeof(int)); in isdn_v110_encode() 498 skb_put_data(nskb, v->OnlineFrame, v->framelen); in isdn_v110_encode() 499 *((int *)skb_push(nskb, sizeof(int))) = 0; in isdn_v110_encode() 500 return nskb; in isdn_v110_encode() 504 rbuf = skb_put(nskb, size); in isdn_v110_encode() 521 skb_trim(nskb, olen); in isdn_v110_encode() 522 *((int *)skb_push(nskb, sizeof(int))) = rlen; in isdn_v110_encode() 523 return nskb; in isdn_v110_encode()
|
D | isdn_common.c | 1982 struct sk_buff *nskb = NULL; in isdn_writebuf_skb_stub() local 1988 nskb = isdn_v110_encode(dev->v110[idx], skb); in isdn_writebuf_skb_stub() 1990 if (!nskb) in isdn_writebuf_skb_stub() 1992 v110_ret = *((int *)nskb->data); in isdn_writebuf_skb_stub() 1993 skb_pull(nskb, sizeof(int)); in isdn_writebuf_skb_stub() 1994 if (!nskb->len) { in isdn_writebuf_skb_stub() 1995 dev_kfree_skb(nskb); in isdn_writebuf_skb_stub() 2000 ret = dev->drv[drvidx]->interface->writebuf_skb(drvidx, chan, ack, nskb); in isdn_writebuf_skb_stub() 2043 dev_kfree_skb(nskb); in isdn_writebuf_skb_stub()
|
D | isdn_ppp.c | 1230 struct sk_buff *nskb = skb_realloc_headroom(skb, len); in isdn_ppp_skb_push() local 1232 if (!nskb) { in isdn_ppp_skb_push() 1239 *skb_p = nskb; in isdn_ppp_skb_push() 1240 return skb_push(nskb, len); in isdn_ppp_skb_push()
|
/linux-4.19.296/drivers/isdn/mISDN/ |
D | dsp_core.c | 285 struct sk_buff *nskb; in dsp_control_req() local 591 nskb = _alloc_mISDN_skb(PH_CONTROL_IND, MISDN_ID_ANY, in dsp_control_req() 593 if (nskb) { in dsp_control_req() 595 if (dsp->up->send(dsp->up, nskb)) in dsp_control_req() 596 dev_kfree_skb(nskb); in dsp_control_req() 598 dev_kfree_skb(nskb); in dsp_control_req() 743 struct sk_buff *nskb; in dsp_function() local 749 nskb = _alloc_mISDN_skb(PH_CONTROL_IND, in dsp_function() 752 if (nskb) { in dsp_function() 755 dsp->up, nskb)) in dsp_function() [all …]
|
D | dsp_cmx.c | 1315 struct sk_buff *nskb, *txskb; local 1354 nskb = mI_alloc_skb(len + preload, GFP_ATOMIC); 1355 if (!nskb) { 1361 hh = mISDN_HEAD_P(nskb); 1370 d = skb_put(nskb, preload + len); /* result */ 1584 skb_queue_tail(&dsp->sendq, nskb); 1598 skb_put_data(txskb, nskb->data + preload, len); 1608 dsp_change_volume(nskb, dsp->tx_volume); 1611 dsp_pipeline_process_tx(&dsp->pipeline, nskb->data, 1612 nskb->len); [all …]
|
D | dsp_tones.c | 440 struct sk_buff *nskb; in dsp_tone_hw_message() local 443 nskb = _alloc_mISDN_skb(PH_CONTROL_REQ, in dsp_tone_hw_message() 446 if (nskb) { in dsp_tone_hw_message() 448 if (dsp->ch.recv(dsp->ch.peer, nskb)) in dsp_tone_hw_message() 449 dev_kfree_skb(nskb); in dsp_tone_hw_message() 451 dev_kfree_skb(nskb); in dsp_tone_hw_message()
|
D | layer2.c | 247 struct sk_buff *nskb = skb; in ph_data_confirm() local 252 nskb = skb_dequeue(&l2->down_queue); in ph_data_confirm() 253 if (nskb) { in ph_data_confirm() 254 l2->down_id = mISDN_HEAD_ID(nskb); in ph_data_confirm() 255 if (l2down_skb(l2, nskb)) { in ph_data_confirm() 256 dev_kfree_skb(nskb); in ph_data_confirm() 272 nskb = skb_dequeue(&l2->down_queue); in ph_data_confirm() 273 if (nskb) { in ph_data_confirm() 274 l2->down_id = mISDN_HEAD_ID(nskb); in ph_data_confirm() 275 if (l2down_skb(l2, nskb)) { in ph_data_confirm() [all …]
|
D | l1oip_core.c | 367 struct sk_buff *nskb; in l1oip_socket_recv() local 398 nskb = mI_alloc_skb((remotecodec == 3) ? (len << 1) : len, GFP_ATOMIC); in l1oip_socket_recv() 399 if (!nskb) { in l1oip_socket_recv() 403 p = skb_put(nskb, (remotecodec == 3) ? (len << 1) : len); in l1oip_socket_recv() 416 dch->rx_skb = nskb; in l1oip_socket_recv() 443 swap(hc->chan[channel].disorder_skb, nskb); in l1oip_socket_recv() 447 if (nskb) in l1oip_socket_recv() 449 queue_ch_frame(&bch->ch, PH_DATA_IND, rx_counter, nskb); in l1oip_socket_recv()
|
/linux-4.19.296/include/net/netfilter/ipv4/ |
D | nf_reject.h | 14 struct iphdr *nf_reject_iphdr_put(struct sk_buff *nskb, 17 void nf_reject_ip_tcphdr_put(struct sk_buff *nskb, const struct sk_buff *oldskb,
|
/linux-4.19.296/include/net/netfilter/ipv6/ |
D | nf_reject.h | 15 struct ipv6hdr *nf_reject_ip6hdr_put(struct sk_buff *nskb, 18 void nf_reject_ip6_tcphdr_put(struct sk_buff *nskb,
|
/linux-4.19.296/include/linux/ |
D | netlink.h | 142 struct sk_buff *nskb; in netlink_skb_clone() local 144 nskb = skb_clone(skb, gfp_mask); in netlink_skb_clone() 145 if (!nskb) in netlink_skb_clone() 150 nskb->destructor = skb->destructor; in netlink_skb_clone() 152 return nskb; in netlink_skb_clone()
|
D | skbuff.h | 1573 struct sk_buff *nskb = skb_clone(skb, pri); in skb_share_check() local 1575 if (likely(nskb)) in skb_share_check() 1579 skb = nskb; in skb_share_check() 1609 struct sk_buff *nskb = skb_copy(skb, pri); in skb_unshare() local 1612 if (likely(nskb)) in skb_unshare() 1616 skb = nskb; in skb_unshare()
|
/linux-4.19.296/include/net/ |
D | dst.h | 281 static inline void __skb_dst_copy(struct sk_buff *nskb, unsigned long refdst) in __skb_dst_copy() argument 283 nskb->_skb_refdst = refdst; in __skb_dst_copy() 284 if (!(nskb->_skb_refdst & SKB_DST_NOREF)) in __skb_dst_copy() 285 dst_clone(skb_dst(nskb)); in __skb_dst_copy() 288 static inline void skb_dst_copy(struct sk_buff *nskb, const struct sk_buff *oskb) in skb_dst_copy() argument 290 __skb_dst_copy(nskb, oskb->_skb_refdst); in skb_dst_copy()
|
/linux-4.19.296/drivers/isdn/capi/ |
D | capi.c | 386 struct sk_buff *nskb; in gen_data_b3_resp_for() local 387 nskb = alloc_skb(CAPI_DATA_B3_RESP_LEN, GFP_KERNEL); in gen_data_b3_resp_for() 388 if (nskb) { in gen_data_b3_resp_for() 390 unsigned char *s = skb_put(nskb, CAPI_DATA_B3_RESP_LEN); in gen_data_b3_resp_for() 399 return nskb; in gen_data_b3_resp_for() 406 struct sk_buff *nskb; in handle_recv_skb() local 440 nskb = gen_data_b3_resp_for(mp, skb); in handle_recv_skb() 441 if (!nskb) { in handle_recv_skb() 448 errcode = capi20_put_message(mp->ap, nskb); in handle_recv_skb() 458 kfree_skb(nskb); in handle_recv_skb()
|
D | capidrv.c | 2113 struct sk_buff *nskb = skb_realloc_headroom(skb, msglen); in if_sendbuf() local 2114 if (!nskb) { in if_sendbuf() 2122 memcpy(skb_push(nskb, msglen), sendcmsg.buf, msglen); in if_sendbuf() 2123 errcode = capi20_put_message(&global.ap, nskb); in if_sendbuf() 2133 dev_kfree_skb(nskb); in if_sendbuf()
|
/linux-4.19.296/drivers/s390/net/ |
D | ctcm_main.c | 472 struct sk_buff *nskb; in ctcm_transmit_skb() local 519 nskb = alloc_skb(skb->len, GFP_ATOMIC | GFP_DMA); in ctcm_transmit_skb() 520 if (!nskb) { in ctcm_transmit_skb() 526 skb_put_data(nskb, skb->data, skb->len); in ctcm_transmit_skb() 527 refcount_inc(&nskb->users); in ctcm_transmit_skb() 530 skb = nskb; in ctcm_transmit_skb() 671 struct sk_buff *nskb; in ctcmpc_transmit_skb() local 728 nskb = __dev_alloc_skb(skb->len, GFP_ATOMIC | GFP_DMA); in ctcmpc_transmit_skb() 729 if (!nskb) { in ctcmpc_transmit_skb() 732 skb_put_data(nskb, skb->data, skb->len); in ctcmpc_transmit_skb() [all …]
|
D | netiucv.c | 1172 struct sk_buff *nskb = skb; in netiucv_transmit_skb() local 1181 nskb = alloc_skb(skb->len + NETIUCV_HDRLEN + in netiucv_transmit_skb() 1183 if (!nskb) { in netiucv_transmit_skb() 1188 skb_reserve(nskb, NETIUCV_HDRLEN); in netiucv_transmit_skb() 1189 skb_put_data(nskb, skb->data, skb->len); in netiucv_transmit_skb() 1196 header.next = nskb->len + NETIUCV_HDRLEN; in netiucv_transmit_skb() 1197 memcpy(skb_push(nskb, NETIUCV_HDRLEN), &header, NETIUCV_HDRLEN); in netiucv_transmit_skb() 1199 skb_put_data(nskb, &header, NETIUCV_HDRLEN); in netiucv_transmit_skb() 1207 nskb->data, nskb->len); in netiucv_transmit_skb() 1221 dev_kfree_skb(nskb); in netiucv_transmit_skb() [all …]
|
/linux-4.19.296/drivers/isdn/hisax/ |
D | isdnl1.c | 206 struct sk_buff *skb, *nskb; in DChannel_proc_rcv() local 238 if ((nskb = skb_clone(skb, GFP_ATOMIC))) in DChannel_proc_rcv() 239 stptr->l1.l1l2(stptr, PH_DATA | INDICATION, nskb); in DChannel_proc_rcv() 246 if ((nskb = skb_clone(skb, GFP_ATOMIC))) in DChannel_proc_rcv() 247 stptr->l1.l1tei(stptr, PH_DATA | INDICATION, nskb); in DChannel_proc_rcv()
|
D | callc.c | 1747 struct sk_buff *nskb; in HiSax_writebuf_skb() local 1776 nskb = skb_clone(skb, GFP_ATOMIC); in HiSax_writebuf_skb() 1777 if (nskb) { in HiSax_writebuf_skb() 1778 nskb->truesize = nskb->len; in HiSax_writebuf_skb() 1780 nskb->pkt_type = PACKET_NOACK; in HiSax_writebuf_skb() 1782 st->l3.l3l2(st, DL_DATA | REQUEST, nskb); in HiSax_writebuf_skb() 1785 st->l2.l2l1(st, PH_DATA | REQUEST, nskb); in HiSax_writebuf_skb()
|
D | isdnl2.c | 1250 struct sk_buff *skb, *nskb; in l2_pull_iqueue() local 1265 nskb = skb_realloc_headroom(skb, hdr_space_needed); in l2_pull_iqueue() 1266 if (!nskb) { in l2_pull_iqueue() 1294 memcpy(skb_push(nskb, i), header, i); in l2_pull_iqueue() 1295 st->l2.l2l1(st, PH_PULL | INDICATION, nskb); in l2_pull_iqueue()
|
/linux-4.19.296/drivers/isdn/isdnloop/ |
D | isdnloop.c | 402 struct sk_buff *nskb; in isdnloop_sendbuf() local 415 nskb = dev_alloc_skb(skb->len); in isdnloop_sendbuf() 416 if (nskb) { in isdnloop_sendbuf() 418 skb_put(nskb, len), len); in isdnloop_sendbuf() 419 skb_queue_tail(&card->bqueue[channel], nskb); in isdnloop_sendbuf()
|