Home
last modified time | relevance | path

Searched refs:NET_IP_ALIGN (Results 1 – 25 of 68) sorted by relevance

123

/linux-3.4.99/net/dsa/
Dtag_trailer.c37 nskb = alloc_skb(NET_IP_ALIGN + skb->len + padlen + 4, GFP_ATOMIC); in trailer_xmit()
42 skb_reserve(nskb, NET_IP_ALIGN); in trailer_xmit()
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c60 skb = netdev_alloc_skb(priv->dev, MLX4_LOOPBACK_TEST_PAYLOAD + ETH_HLEN + NET_IP_ALIGN); in mlx4_en_test_loopback_xmit()
65 skb_reserve(skb, NET_IP_ALIGN); in mlx4_en_test_loopback_xmit()
Dmlx4_en.h95 FRAG_SZ0 = 512 - NET_IP_ALIGN,
145 #define SMALL_PACKET_SIZE (256 - NET_IP_ALIGN)
146 #define HEADER_COPY_SIZE (128 - NET_IP_ALIGN)
Den_rx.c466 skb = netdev_alloc_skb(priv->dev, SMALL_PACKET_SIZE + NET_IP_ALIGN); in mlx4_en_rx_skb()
471 skb_reserve(skb, NET_IP_ALIGN); in mlx4_en_rx_skb()
768 priv->frag_info[i].frag_align = NET_IP_ALIGN; in mlx4_en_calc_rx_buf()
770 ALIGN(frag_sizes[i] + NET_IP_ALIGN, SMP_CACHE_BYTES); in mlx4_en_calc_rx_buf()
/linux-3.4.99/drivers/net/ethernet/
Dmipsnet.c155 skb = netdev_alloc_skb(dev, len + NET_IP_ALIGN); in mipsnet_get_fromdev()
161 skb_reserve(skb, NET_IP_ALIGN); in mipsnet_get_fromdev()
Dlantiq_etop.c126 LTQ_DMA_OWN | LTQ_DMA_RX_OFFSET(NET_IP_ALIGN) | in ltq_etop_alloc_skb()
128 skb_reserve(ch->skb[ch->dma.desc], NET_IP_ALIGN); in ltq_etop_alloc_skb()
/linux-3.4.99/drivers/net/ethernet/aeroflex/
Dgreth.c177 MAX_FRAME_SIZE+NET_IP_ALIGN, in greth_clean_rings()
244 skb = netdev_alloc_skb(greth->netdev, MAX_FRAME_SIZE+NET_IP_ALIGN); in greth_init_rings()
250 skb_reserve(skb, NET_IP_ALIGN); in greth_init_rings()
253 MAX_FRAME_SIZE+NET_IP_ALIGN, in greth_init_rings()
777 skb = netdev_alloc_skb(dev, pkt_len + NET_IP_ALIGN); in greth_rx()
787 skb_reserve(skb, NET_IP_ALIGN); in greth_rx()
886 if (!bad && (newskb=netdev_alloc_skb(dev, MAX_FRAME_SIZE + NET_IP_ALIGN))) { in greth_rx_gbit()
887 skb_reserve(newskb, NET_IP_ALIGN); in greth_rx_gbit()
891 MAX_FRAME_SIZE + NET_IP_ALIGN, in greth_rx_gbit()
900 MAX_FRAME_SIZE + NET_IP_ALIGN, in greth_rx_gbit()
/linux-3.4.99/drivers/net/ethernet/xscale/
Dixp4xx_eth.c61 #define RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
723 ALIGN(NET_IP_ALIGN + desc->pkt_len, 4)); in eth_poll()
739 dma_unmap_single(&dev->dev, desc->data - NET_IP_ALIGN, in eth_poll()
742 dma_sync_single_for_cpu(&dev->dev, desc->data - NET_IP_ALIGN, in eth_poll()
745 ALIGN(NET_IP_ALIGN + desc->pkt_len, 4) / 4); in eth_poll()
747 skb_reserve(skb, NET_IP_ALIGN); in eth_poll()
761 desc->data = phys + NET_IP_ALIGN; in eth_poll()
1108 desc->data += NET_IP_ALIGN; in init_queues()
1125 desc->data - NET_IP_ALIGN, in destroy_queues()
/linux-3.4.99/drivers/net/wireless/ath/carl9170/
Drx.c473 reserved += NET_IP_ALIGN; in carl9170_rx_copy_data()
476 reserved += NET_IP_ALIGN; in carl9170_rx_copy_data()
480 reserved += NET_IP_ALIGN; in carl9170_rx_copy_data()
482 reserved = 32 + (reserved & NET_IP_ALIGN); in carl9170_rx_copy_data()
/linux-3.4.99/drivers/net/ethernet/tehuti/
Dtehuti.h101 #ifndef NET_IP_ALIGN
102 # define NET_IP_ALIGN 2 macro
/linux-3.4.99/drivers/net/ethernet/smsc/
Dsmsc9420.h49 #define PKT_BUF_SZ (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4)
/linux-3.4.99/drivers/net/ethernet/sfc/
Drx.c116 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) || NET_IP_ALIGN % 4 == 0 in efx_rx_buf_hash()
155 skb_reserve(skb, NET_IP_ALIGN); in efx_init_rx_buffers_skb()
156 rx_buf->len = skb_len - NET_IP_ALIGN; in efx_init_rx_buffers_skb()
/linux-3.4.99/drivers/net/ethernet/tile/
Dtilepro.c126 #if NET_IP_ALIGN != LIPP_PACKET_PADDING
430 unsigned int large_size = NET_IP_ALIGN + 1536; in tile_net_provide_needed_buffer()
433 unsigned int large_size = NET_IP_ALIGN + TILE_NET_MTU + 100; in tile_net_provide_needed_buffer()
484 skb_reserve(skb, NET_IP_ALIGN); in tile_net_provide_needed_buffer()
782 NET_IP_ALIGN - NETIO_PACKET_PADDING); in tile_net_poll_aux()
795 unsigned char *buf = va + NET_IP_ALIGN; in tile_net_poll_aux()
/linux-3.4.99/include/linux/
Dskbuff.h1590 #ifndef NET_IP_ALIGN
1591 #define NET_IP_ALIGN 2 macro
1756 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); in __netdev_alloc_skb_ip_align()
1758 if (NET_IP_ALIGN && skb) in __netdev_alloc_skb_ip_align()
1759 skb_reserve(skb, NET_IP_ALIGN); in __netdev_alloc_skb_ip_align()
/linux-3.4.99/drivers/net/wireless/wl12xx/
Drx.c109 u8 reserved = unaligned ? NET_IP_ALIGN : 0; in wl1271_rx_handle_data()
/linux-3.4.99/arch/powerpc/include/asm/
Dprocessor.h415 #define NET_IP_ALIGN 0 macro
/linux-3.4.99/drivers/net/ethernet/adi/
Dbfin_mac.c190 new_skb = netdev_alloc_skb(dev, PKT_BUF_SZ + NET_IP_ALIGN); in desc_list_init()
195 skb_reserve(new_skb, NET_IP_ALIGN); in desc_list_init()
1094 new_skb = netdev_alloc_skb(dev, PKT_BUF_SZ + NET_IP_ALIGN); in bfin_mac_rx()
1101 skb_reserve(new_skb, NET_IP_ALIGN); in bfin_mac_rx()
/linux-3.4.99/drivers/net/ethernet/amd/
Dpcnet32.c179 #define PKT_BUF_SIZE (PKT_BUF_SKB - NET_IP_ALIGN)
181 #define NEG_BUF_SIZE (NET_IP_ALIGN - PKT_BUF_SKB)
599 skb_reserve(rx_skbuff, NET_IP_ALIGN); in pcnet32_realloc_rx_ring()
1157 skb_reserve(newskb, NET_IP_ALIGN); in pcnet32_rx_entry()
1175 skb = netdev_alloc_skb(dev, pkt_len + NET_IP_ALIGN); in pcnet32_rx_entry()
1183 skb_reserve(skb, NET_IP_ALIGN); in pcnet32_rx_entry()
2282 skb_reserve(rx_skbuff, NET_IP_ALIGN); in pcnet32_init_ring()
/linux-3.4.99/drivers/net/usb/
Dsmsc95xx.c864 read_buf |= NET_IP_ALIGN << 9; in smsc95xx_reset()
1056 skb_pull(skb, 4 + NET_IP_ALIGN); in smsc95xx_rx_fixup()
1061 align_count = (4 - ((size + NET_IP_ALIGN) % 4)) % 4; in smsc95xx_rx_fixup()
/linux-3.4.99/drivers/net/ethernet/broadcom/
Dsb1250-mac.c833 NET_IP_ALIGN); in sbdma_add_rcvbuffer()
840 sbdma_align_skb(sb_new, SMP_CACHE_BYTES, NET_IP_ALIGN); in sbdma_add_rcvbuffer()
859 V_DMA_DSCRA_A_SIZE(NUMCACHEBLKS(pktsize + NET_IP_ALIGN)) | 0; in sbdma_add_rcvbuffer()
862 V_DMA_DSCRA_A_SIZE(NUMCACHEBLKS(pktsize + NET_IP_ALIGN)) | in sbdma_add_rcvbuffer()
/linux-3.4.99/drivers/usb/gadget/
Du_ether.c238 skb = alloc_skb(size + NET_IP_ALIGN, gfp_flags); in rx_submit()
248 skb_reserve(skb, NET_IP_ALIGN); in rx_submit()
/linux-3.4.99/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c458 skb = __netdev_alloc_skb(dev, bfsize + NET_IP_ALIGN, in init_dma_desc_rings()
464 skb_reserve(skb, NET_IP_ALIGN); in init_dma_desc_rings()
1303 prefetch(skb->data - NET_IP_ALIGN); in stmmac_rx()
1447 max_mtu = SKB_MAX_HEAD(NET_SKB_PAD + NET_IP_ALIGN); in stmmac_change_mtu()
/linux-3.4.99/Documentation/
Dunaligned-memory-access.txt227 regular ethernet hardware, the constant NET_IP_ALIGN is used. On most
231 here is powerpc which defines NET_IP_ALIGN to 0 because DMA to unaligned
/linux-3.4.99/drivers/net/wireless/libertas/
Dif_sdio.c262 skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE + NET_IP_ALIGN); in if_sdio_handle_data()
268 skb_reserve(skb, NET_IP_ALIGN); in if_sdio_handle_data()
/linux-3.4.99/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c1997 skb_copy_to_linear_data_offset(new_skb, -NET_IP_ALIGN, in ixgb_check_copybreak()
1998 (*skb)->data - NET_IP_ALIGN, in ixgb_check_copybreak()
1999 length + NET_IP_ALIGN); in ixgb_check_copybreak()
2040 prefetch(skb->data - NET_IP_ALIGN); in ixgb_clean_rx_irq()

123