/Linux-v4.19/net/netrom/ |
D | nr_out.c | 37 struct sk_buff *skbn; in nr_output() local 49 if ((skbn = sock_alloc_send_skb(sk, frontlen + NR_MAX_PACKET_SIZE, 0, &err)) == NULL) in nr_output() 52 skb_reserve(skbn, frontlen); in nr_output() 57 skb_copy_from_linear_data(skb, skb_put(skbn, len), len); in nr_output() 61 skb_push(skbn, NR_TRANSPORT_LEN); in nr_output() 62 skb_copy_to_linear_data(skbn, transport, in nr_output() 65 skbn->data[4] |= NR_MORE_FLAG; in nr_output() 67 skb_queue_tail(&sk->sk_write_queue, skbn); /* Throw it on the queue */ in nr_output() 102 struct sk_buff *skb, *skbn; in nr_send_nak_frame() local 108 if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) in nr_send_nak_frame() [all …]
|
D | nr_in.c | 34 struct sk_buff *skbo, *skbn = skb; in nr_queue_rx_frame() local 51 if ((skbn = alloc_skb(nr->fraglen, GFP_ATOMIC)) == NULL) in nr_queue_rx_frame() 54 skb_reset_transport_header(skbn); in nr_queue_rx_frame() 58 skb_put(skbn, skbo->len), in nr_queue_rx_frame() 66 return sock_queue_rcv_skb(sk, skbn); in nr_queue_rx_frame() 153 struct sk_buff *skbn; in nr_state3_machine() local 236 while ((skbn = skb_dequeue(&nrom->reseq_queue)) != NULL) { in nr_state3_machine() 237 ns = skbn->data[17]; in nr_state3_machine() 239 if (nr_queue_rx_frame(sk, skbn, frametype & NR_MORE_FLAG) == 0) { in nr_state3_machine() 243 skb_queue_tail(&temp_queue, skbn); in nr_state3_machine() [all …]
|
D | nr_loopback.c | 35 struct sk_buff *skbn; in nr_loopback_queue() local 37 if ((skbn = alloc_skb(skb->len, GFP_ATOMIC)) != NULL) { in nr_loopback_queue() 38 skb_copy_from_linear_data(skb, skb_put(skbn, skb->len), skb->len); in nr_loopback_queue() 39 skb_reset_transport_header(skbn); in nr_loopback_queue() 41 skb_queue_tail(&loopback_queue, skbn); in nr_loopback_queue()
|
D | nr_subr.c | 216 struct sk_buff *skbn; in __nr_transmit_reply() local 222 if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL) in __nr_transmit_reply() 225 skb_reserve(skbn, 0); in __nr_transmit_reply() 227 dptr = skb_put(skbn, NR_NETWORK_LEN + NR_TRANSPORT_LEN); in __nr_transmit_reply() 258 if (!nr_route_frame(skbn, NULL)) in __nr_transmit_reply() 259 kfree_skb(skbn); in __nr_transmit_reply()
|
D | nr_route.c | 759 struct sk_buff *skbn; in nr_route_frame() local 812 if ((skbn=skb_copy_expand(skb, dev->hard_header_len, 0, GFP_ATOMIC)) == NULL) { in nr_route_frame() 819 skb=skbn; in nr_route_frame()
|
/Linux-v4.19/net/ax25/ |
D | ax25_out.c | 121 struct sk_buff *skbn; in ax25_output() local 147 if ((skbn = alloc_skb(paclen + 2 + frontlen, GFP_ATOMIC)) == NULL) { in ax25_output() 154 skb_set_owner_w(skbn, skb->sk); in ax25_output() 161 skb_reserve(skbn, frontlen + 2); in ax25_output() 162 skb_set_network_header(skbn, in ax25_output() 164 skb_copy_from_linear_data(skb, skb_put(skbn, len), len); in ax25_output() 165 p = skb_push(skbn, 2); in ax25_output() 175 skb_reserve(skbn, frontlen + 1); in ax25_output() 176 skb_set_network_header(skbn, in ax25_output() 178 skb_copy_from_linear_data(skb, skb_put(skbn, len), len); in ax25_output() [all …]
|
D | ax25_in.c | 39 struct sk_buff *skbn, *skbo; in ax25_rx_fragment() local 52 skbn = alloc_skb(AX25_MAX_HEADER_LEN + in ax25_rx_fragment() 55 if (!skbn) { in ax25_rx_fragment() 60 skb_reserve(skbn, AX25_MAX_HEADER_LEN); in ax25_rx_fragment() 62 skbn->dev = ax25->ax25_dev->dev; in ax25_rx_fragment() 63 skb_reset_network_header(skbn); in ax25_rx_fragment() 64 skb_reset_transport_header(skbn); in ax25_rx_fragment() 69 skb_put(skbn, skbo->len), in ax25_rx_fragment() 76 if (ax25_rx_iframe(ax25, skbn) == 0) in ax25_rx_fragment() 77 kfree_skb(skbn); in ax25_rx_fragment() [all …]
|
D | ax25_route.c | 448 struct sk_buff *skbn; in ax25_rt_build_path() local 455 if ((skbn = skb_realloc_headroom(skb, len)) == NULL) { in ax25_rt_build_path() 461 skb_set_owner_w(skbn, skb->sk); in ax25_rt_build_path() 465 skb = skbn; in ax25_rt_build_path()
|
/Linux-v4.19/net/x25/ |
D | x25_out.c | 54 struct sk_buff *skbn; in x25_output() local 72 skbn = sock_alloc_send_skb(sk, frontlen + max_len, in x25_output() 75 if (!skbn) { in x25_output() 86 skb_reserve(skbn, frontlen); in x25_output() 91 skb_copy_from_linear_data(skb, skb_put(skbn, len), len); in x25_output() 95 skb_push(skbn, header_len); in x25_output() 96 skb_copy_to_linear_data(skbn, header, header_len); in x25_output() 100 skbn->data[3] |= X25_EXT_M_BIT; in x25_output() 102 skbn->data[2] |= X25_STD_M_BIT; in x25_output() 105 skb_queue_tail(&sk->sk_write_queue, skbn); in x25_output() [all …]
|
D | x25_forward.c | 29 struct sk_buff *skbn; in x25_forward_call() local 79 if ( (skbn = skb_clone(skb, GFP_ATOMIC)) == NULL){ in x25_forward_call() 82 x25_transmit_link(skbn, neigh_new); in x25_forward_call() 103 struct sk_buff *skbn; in x25_forward_data() local 124 if ( (skbn = pskb_copy(skb, GFP_ATOMIC)) == NULL){ in x25_forward_data() 128 x25_transmit_link(skbn, nb); in x25_forward_data()
|
D | x25_in.c | 39 struct sk_buff *skbo, *skbn = skb; in x25_queue_rx_frame() local 52 if ((skbn = alloc_skb(len, GFP_ATOMIC)) == NULL){ in x25_queue_rx_frame() 59 skb_reset_transport_header(skbn); in x25_queue_rx_frame() 62 skb_copy_from_linear_data(skbo, skb_put(skbn, skbo->len), in x25_queue_rx_frame() 71 skb_put(skbn, skbo->len), in x25_queue_rx_frame() 79 skb_set_owner_r(skbn, sk); in x25_queue_rx_frame() 80 skb_queue_tail(&sk->sk_receive_queue, skbn); in x25_queue_rx_frame()
|
D | x25_link.c | 77 struct sk_buff *skbn; in x25_link_control() local 110 while ((skbn = skb_dequeue(&nb->queue)) != NULL) in x25_link_control() 111 x25_send_frame(skbn, nb); in x25_link_control()
|
/Linux-v4.19/net/rose/ |
D | rose_out.c | 51 struct sk_buff *skb, *skbn; in rose_kick() local 79 if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) { in rose_kick() 84 skb_set_owner_w(skbn, sk); in rose_kick() 89 rose_send_iframe(sk, skbn); in rose_kick()
|
D | rose_loopback.c | 38 struct sk_buff *skbn; in rose_loopback_queue() local 40 skbn = skb_clone(skb, GFP_ATOMIC); in rose_loopback_queue() 44 if (skbn != NULL) { in rose_loopback_queue() 45 skb_queue_tail(&loopback_queue, skbn); in rose_loopback_queue()
|
D | rose_link.c | 144 struct sk_buff *skbn; in rose_link_rx_restart() local 170 while ((skbn = skb_dequeue(&neigh->queue)) != NULL) in rose_link_rx_restart() 171 if (!rose_send_frame(skbn, neigh)) in rose_link_rx_restart() 172 kfree_skb(skbn); in rose_link_rx_restart()
|
D | af_rose.c | 1162 struct sk_buff *skbn; in rose_sendmsg() local 1173 if ((skbn = sock_alloc_send_skb(sk, frontlen + ROSE_PACLEN, 0, &err)) == NULL) { in rose_sendmsg() 1178 skbn->sk = sk; in rose_sendmsg() 1179 skbn->free = 1; in rose_sendmsg() 1180 skbn->arp = 1; in rose_sendmsg() 1182 skb_reserve(skbn, frontlen); in rose_sendmsg() 1187 skb_copy_from_linear_data(skb, skb_put(skbn, lg), lg); in rose_sendmsg() 1191 skb_push(skbn, ROSE_MIN_LEN); in rose_sendmsg() 1192 skb_copy_to_linear_data(skbn, header, ROSE_MIN_LEN); in rose_sendmsg() 1195 skbn->data[2] |= M_BIT; in rose_sendmsg() [all …]
|
/Linux-v4.19/net/lapb/ |
D | lapb_out.c | 73 struct sk_buff *skb, *skbn; in lapb_kick() local 90 if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) { in lapb_kick() 96 skb_set_owner_w(skbn, skb->sk); in lapb_kick() 101 lapb_send_iframe(lapb, skbn, LAPB_POLLOFF); in lapb_kick()
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 319 struct sk_buff *skbn; in rmnet_map_deaggregate() local 338 skbn = alloc_skb(packet_len + RMNET_MAP_DEAGGR_SPACING, GFP_ATOMIC); in rmnet_map_deaggregate() 339 if (!skbn) in rmnet_map_deaggregate() 342 skb_reserve(skbn, RMNET_MAP_DEAGGR_HEADROOM); in rmnet_map_deaggregate() 343 skb_put(skbn, packet_len); in rmnet_map_deaggregate() 344 memcpy(skbn->data, skb->data, packet_len); in rmnet_map_deaggregate() 347 return skbn; in rmnet_map_deaggregate()
|
D | rmnet_handlers.c | 113 struct sk_buff *skbn; in rmnet_map_ingress_handler() local 125 while ((skbn = rmnet_map_deaggregate(skb, port)) != NULL) in rmnet_map_ingress_handler() 126 __rmnet_map_ingress_handler(skbn, port); in rmnet_map_ingress_handler()
|
/Linux-v4.19/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet-main.c | 92 struct sk_buff *skb, *skbn; in fs_enet_napi() local 229 skbn = fep->rx_skbuff[curidx]; in fs_enet_napi() 242 skbn = netdev_alloc_skb(dev, pkt_len + 2); in fs_enet_napi() 243 if (skbn != NULL) { in fs_enet_napi() 244 skb_reserve(skbn, 2); /* align IP header */ in fs_enet_napi() 246 skbn->data, pkt_len); in fs_enet_napi() 247 swap(skb, skbn); in fs_enet_napi() 254 skbn = netdev_alloc_skb(dev, ENET_RX_FRSIZE); in fs_enet_napi() 256 if (skbn) { in fs_enet_napi() 259 skb_align(skbn, ENET_RX_ALIGN); in fs_enet_napi() [all …]
|
/Linux-v4.19/drivers/net/usb/ |
D | qmi_wwan.c | 157 struct sk_buff *skbn; in qmimux_rx_fixup() local 174 skbn = netdev_alloc_skb(net, len); in qmimux_rx_fixup() 175 if (!skbn) in qmimux_rx_fixup() 177 skbn->dev = net; in qmimux_rx_fixup() 181 skbn->protocol = htons(ETH_P_IP); in qmimux_rx_fixup() 184 skbn->protocol = htons(ETH_P_IPV6); in qmimux_rx_fixup() 191 skb_put_data(skbn, skb->data + offset, len); in qmimux_rx_fixup() 192 if (netif_rx(skbn) != NET_RX_SUCCESS) in qmimux_rx_fixup()
|
/Linux-v4.19/net/qrtr/ |
D | qrtr.c | 708 struct sk_buff *skbn; in qrtr_bcast_enqueue() local 712 skbn = skb_clone(skb, GFP_KERNEL); in qrtr_bcast_enqueue() 713 if (!skbn) in qrtr_bcast_enqueue() 715 skb_set_owner_w(skbn, skb->sk); in qrtr_bcast_enqueue() 716 qrtr_node_enqueue(node, skbn, type, from, to); in qrtr_bcast_enqueue()
|