Home
last modified time | relevance | path

Searched refs:headroom (Results 1 – 44 of 44) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/ibm/emac/
DKconfig31 int "Additional RX skb headroom (bytes)"
35 Additional receive skb headroom. Note, that driver
38 headroom.
/linux-4.1.27/net/decnet/
Ddn_neigh.c213 int headroom = dev->hard_header_len + sizeof(struct dn_long_packet) + 3; in dn_long_output() local
219 if (skb_headroom(skb) < headroom) { in dn_long_output()
220 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_long_output()
260 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_short_output() local
266 if (skb_headroom(skb) < headroom) { in dn_short_output()
267 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_short_output()
302 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_phase3_output() local
307 if (skb_headroom(skb) < headroom) { in dn_phase3_output()
308 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_phase3_output()
/linux-4.1.27/net/ax25/
Dax25_out.c334 int headroom; in ax25_transmit_buffer() local
341 headroom = ax25_addr_size(ax25->digipeat); in ax25_transmit_buffer()
343 if (skb_headroom(skb) < headroom) { in ax25_transmit_buffer()
344 if ((skbn = skb_realloc_headroom(skb, headroom)) == NULL) { in ax25_transmit_buffer()
357 ptr = skb_push(skb, headroom); in ax25_transmit_buffer()
/linux-4.1.27/drivers/net/usb/
Dgl620a.c153 int headroom = skb_headroom(skb); in genelink_tx_fixup() local
162 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup()
163 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
Dint51x1.c70 int headroom = skb_headroom(skb); in int51x1_tx_fixup() local
87 (headroom + tailroom >= need_tail + INT51X1_HEADER_SIZE)) { in int51x1_tx_fixup()
88 if (headroom < INT51X1_HEADER_SIZE || tailroom < need_tail) { in int51x1_tx_fixup()
Dcdc_eem.c122 int headroom = skb_headroom(skb); in eem_tx_fixup() local
126 (headroom >= EEM_HEAD)) in eem_tx_fixup()
129 if ((headroom + tailroom) in eem_tx_fixup()
Dkalmia.c175 int headroom = skb_headroom(skb); in kalmia_tx_fixup() local
178 if ((tailroom >= KALMIA_ALIGN_SIZE) && (headroom in kalmia_tx_fixup()
182 if ((headroom + tailroom) > (KALMIA_HEADER_LENGTH in kalmia_tx_fixup()
Dlg-vl600.c267 int headroom = skb_headroom(skb); in vl600_tx_fixup() local
271 headroom >= sizeof(*frame)) in vl600_tx_fixup()
275 if (headroom + tailroom + skb->len >= full_len) { in vl600_tx_fixup()
Dnet1080.c447 int headroom = skb_headroom(skb); in net1080_tx_fixup() local
451 sizeof(struct nc_header) <= headroom) in net1080_tx_fixup()
456 (headroom + tailroom)) { in net1080_tx_fixup()
Dasix_common.c143 int headroom = skb_headroom(skb); in asix_tx_fixup() local
164 headroom + tailroom >= 4 + padlen) { in asix_tx_fixup()
166 if (headroom < 4 || in asix_tx_fixup()
Dsr9800.c113 int headroom = skb_headroom(skb); in sr_tx_fixup() local
121 if ((!skb_cloned(skb)) && ((headroom + tailroom) >= (4 + padlen))) { in sr_tx_fixup()
122 if ((headroom < 4) || (tailroom < padlen)) { in sr_tx_fixup()
Dax88179_178a.c1429 int headroom; in ax88179_tx_fixup() local
1436 headroom = skb_headroom(skb) - 8; in ax88179_tx_fixup()
1438 if ((skb_header_cloned(skb) || headroom < 0) && in ax88179_tx_fixup()
1439 pskb_expand_head(skb, headroom < 0 ? 8 : 0, 0, GFP_ATOMIC)) { in ax88179_tx_fixup()
/linux-4.1.27/drivers/net/wireless/mwifiex/
D11n_aggr.c105 int headroom = (priv->adapter->iface_type == in mwifiex_11n_form_amsdu_txpd() local
109 headroom - NULL) & (MWIFIEX_DMA_ALIGN_SZ - 1); in mwifiex_11n_form_amsdu_txpd()
177 int headroom = adapter->iface_type == MWIFIEX_USB ? 0 : INTF_HEADER_LEN; in mwifiex_11n_aggregate_pkt() local
253 skb_push(skb_aggr, headroom); in mwifiex_11n_aggregate_pkt()
/linux-4.1.27/net/caif/
Dcaif_socket.c53 int headroom, tailroom, maxframe; member
566 buffer_size = len + cf_sk->headroom + cf_sk->tailroom; in caif_seqpkt_sendmsg()
574 skb_reserve(skb, cf_sk->headroom); in caif_seqpkt_sendmsg()
634 size + cf_sk->headroom + in caif_stream_sendmsg()
641 skb_reserve(skb, cf_sk->headroom); in caif_stream_sendmsg()
754 int ifindex, headroom, tailroom; in caif_connect() local
832 &cf_sk->layer, &ifindex, &headroom, &tailroom); in caif_connect()
847 cf_sk->headroom = LL_RESERVED_SPACE_EXTRA(dev, headroom); in caif_connect()
852 cf_sk->maxframe = mtu - (headroom + tailroom); in caif_connect()
Dchnl_net.c266 int llifindex, headroom, tailroom, mtu; in chnl_net_open() local
279 &headroom, &tailroom); in chnl_net_open()
297 dev->hard_header_len = headroom + lldev->hard_header_len + in chnl_net_open()
307 mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); in chnl_net_open()
/linux-4.1.27/include/linux/
Dvirtio_caif.h14 u16 headroom; member
Dskbuff.h837 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom,
839 static inline struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, in __pskb_copy() argument
842 return __pskb_copy_fclone(skb, headroom, gfp_mask, false); in __pskb_copy()
847 unsigned int headroom);
2415 static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, in __skb_cow() argument
2420 if (headroom > skb_headroom(skb)) in __skb_cow()
2421 delta = headroom - skb_headroom(skb); in __skb_cow()
2441 static inline int skb_cow(struct sk_buff *skb, unsigned int headroom) in skb_cow() argument
2443 return __skb_cow(skb, headroom, skb_cloned(skb)); in skb_cow()
2456 static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) in skb_cow_head() argument
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dwmi.c298 u16 headroom = sizeof(struct htc_frame_hdr) + in ath9k_wmi_cmd() local
307 skb = alloc_skb(headroom + cmd_len, GFP_ATOMIC); in ath9k_wmi_cmd()
311 skb_reserve(skb, headroom); in ath9k_wmi_cmd()
/linux-4.1.27/arch/tile/gxio/
Dmpipe.c300 rule->headroom = 2; in gxio_mpipe_rules_begin()
361 int gxio_mpipe_rules_set_headroom(gxio_mpipe_rules_t *rules, uint8_t headroom) in gxio_mpipe_rules_set_headroom() argument
372 rule->headroom = headroom; in gxio_mpipe_rules_set_headroom()
/linux-4.1.27/include/net/caif/
Dcaif_dev.h70 int *headroom, int *tailroom);
/linux-4.1.27/drivers/net/wireless/p54/
Dp54.h55 u8 headroom; member
182 u8 headroom; member
Dfwio.c88 priv->headroom = desc->headroom; in p54_parse_firmware()
Dtxrx.c91 u16 len = priv->headroom + skb->len + priv->tailroom + 3; in p54_assign_address()
140 data->req_id = cpu_to_le32(target_addr + priv->headroom); in p54_assign_address()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c192 int headroom, gfp_t gfp_mask) in libipw_alloc_txb() argument
206 txb->fragments[i] = __dev_alloc_skb(txb_size + headroom, in libipw_alloc_txb()
212 skb_reserve(txb->fragments[i], headroom); in libipw_alloc_txb()
/linux-4.1.27/arch/arm/crypto/
Daesbs-glue.c218 u32 headroom = UINT_MAX - be32_to_cpu(ctr[3]); in aesbs_ctr_encrypt() local
221 if (unlikely(headroom < blocks)) { in aesbs_ctr_encrypt()
222 blocks = headroom + 1; in aesbs_ctr_encrypt()
/linux-4.1.27/arch/tile/include/hv/
Ddrv_mpipe_intf.h531 uint8_t headroom; member
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dtxrx.c218 u32 i, int headroom) in wil_vring_alloc_skb() argument
225 struct sk_buff *skb = dev_alloc_skb(sz + headroom); in wil_vring_alloc_skb()
230 skb_reserve(skb, headroom); in wil_vring_alloc_skb()
497 int headroom = ndev->type == ARPHRD_IEEE80211_RADIOTAP ? in wil_rx_refill() local
503 rc = wil_vring_alloc_skb(wil, v, v->swtail, headroom); in wil_rx_refill()
/linux-4.1.27/drivers/usb/gadget/function/
Df_eem.c357 int headroom = skb_headroom(skb); in eem_wrap() local
367 (headroom >= EEM_HLEN) && !skb_cloned(skb)) in eem_wrap()
/linux-4.1.27/net/core/
Dskbuff.c1104 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom, in __pskb_copy_fclone() argument
1107 unsigned int size = skb_headlen(skb) + headroom; in __pskb_copy_fclone()
1115 skb_reserve(n, headroom); in __pskb_copy_fclone()
1246 struct sk_buff *skb_realloc_headroom(struct sk_buff *skb, unsigned int headroom) in skb_realloc_headroom() argument
1249 int delta = headroom - skb_headroom(skb); in skb_realloc_headroom()
3011 unsigned int headroom; in skb_segment() local
3030 headroom = skb_headroom(head_skb); in skb_segment()
3083 if (skb_cow_head(nskb, doffset + headroom)) { in skb_segment()
3092 nskb = __alloc_skb(hsize + doffset + headroom, in skb_segment()
3099 skb_reserve(nskb, headroom); in skb_segment()
[all …]
/linux-4.1.27/Documentation/networking/
Dppp_generic.txt131 If the channel needs some headroom in the skbuffs presented to it for
134 ppp_channel struct to the amount of headroom required. The generic
135 PPP layer will attempt to provide that much headroom but the channel
136 should still check if there is sufficient headroom and copy the skbuff
140 headroom in the skbuffs presented to ppp_input(). The generic PPP
/linux-4.1.27/drivers/net/caif/
Dcaif_virtio.c688 virtio_cread(vdev, struct virtio_caif_transf_config, headroom, in cfv_probe()
690 virtio_cread(vdev, struct virtio_caif_transf_config, headroom, in cfv_probe()
/linux-4.1.27/net/mac80211/
Dtx.c1622 int headroom; in ieee80211_xmit() local
1627 headroom = local->tx_headroom; in ieee80211_xmit()
1629 headroom += sdata->encrypt_headroom; in ieee80211_xmit()
1630 headroom -= skb_headroom(skb); in ieee80211_xmit()
1631 headroom = max_t(int, 0, headroom); in ieee80211_xmit()
1633 if (ieee80211_skb_resize(sdata, skb, headroom, may_encrypt)) { in ieee80211_xmit()
Dutil.c2960 int headroom = IEEE80211_ENCRYPT_HEADROOM; in ieee80211_cs_headroom() local
2967 if (cs && headroom < cs->hdr_len) in ieee80211_cs_headroom()
2968 headroom = cs->hdr_len; in ieee80211_cs_headroom()
2972 if (cs && headroom < cs->hdr_len) in ieee80211_cs_headroom()
2973 headroom = cs->hdr_len; in ieee80211_cs_headroom()
2975 return headroom; in ieee80211_cs_headroom()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.h119 u32 headroom, int strategy);
Dixgbe_82598.c1130 u32 headroom, int strategy) in ixgbe_set_rxpba_82598() argument
Dixgbe_common.c3393 u32 headroom, in ixgbe_set_rxpba_generic() argument
3401 pbsize -= headroom; in ixgbe_set_rxpba_generic()
/linux-4.1.27/arch/tile/include/gxio/
Dmpipe.h989 uint8_t headroom);
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c2097 int headroom = SKB_TX_ISCSI_PDU_HEADER_MAX; in cxgbi_conn_alloc_pdu() local
2107 headroom += min_t(unsigned int, in cxgbi_conn_alloc_pdu()
2111 tdata->skb = alloc_skb(cdev->skb_tx_rsvd + headroom, GFP_ATOMIC); in cxgbi_conn_alloc_pdu()
2129 task, opcode, tdata->skb, cdev->skb_tx_rsvd, headroom, in cxgbi_conn_alloc_pdu()
2354 unsigned int headroom = SKB_MAX_HEAD(cdev->skb_tx_rsvd); in cxgbi_conn_max_xmit_dlength() local
2356 unsigned int max = max(max_def, headroom); in cxgbi_conn_max_xmit_dlength()
/linux-4.1.27/net/l2tp/
Dl2tp_ppp.c393 int uhlen, headroom; in pppol2tp_xmit() local
412 headroom = NET_SKB_PAD + in pppol2tp_xmit()
417 if (skb_cow_head(skb, headroom)) in pppol2tp_xmit()
Dl2tp_core.c1110 int headroom; in l2tp_xmit_skb() local
1119 headroom = NET_SKB_PAD + sizeof(struct iphdr) + in l2tp_xmit_skb()
1121 if (skb_cow_head(skb, headroom)) { in l2tp_xmit_skb()
/linux-4.1.27/drivers/s390/net/
Dqeth_core_main.c5226 int headroom = 0; in qeth_core_get_next_skb() local
5248 headroom = ETH_HLEN; in qeth_core_get_next_skb()
5252 headroom = sizeof(struct qeth_hdr); in qeth_core_get_next_skb()
5267 skb = dev_alloc_skb(skb_len + headroom); in qeth_core_get_next_skb()
5270 if (headroom) in qeth_core_get_next_skb()
5271 skb_reserve(skb, headroom); in qeth_core_get_next_skb()
/linux-4.1.27/fs/befs/
DChangeLog220 headroom before the big 1.0.
/linux-4.1.27/drivers/isdn/icn/
Dicn.c721 #warning TODO test headroom or use skb->nb to flag ACK in icn_sendbuf()
/linux-4.1.27/drivers/net/ethernet/sun/
Dniu.c6633 unsigned long align, headroom; in niu_start_xmit() local
6671 headroom = align + sizeof(struct tx_pkt_hdr); in niu_start_xmit()
6674 tp = (struct tx_pkt_hdr *) skb_push(skb, headroom); in niu_start_xmit()