/freebsd/sys/dev/firewire/ |
H A D | if_fwe.c | 478 #ifndef ETHER_ALIGN 479 #define ETHER_ALIGN 2 macro 517 M_PREPEND(m, ETHER_ALIGN, M_NOWAIT); in fwe_as_output() 575 ETHER_ALIGN + sizeof(struct ether_header)) { in fwe_as_input() 581 m->m_data += HDR_LEN + ETHER_ALIGN; in fwe_as_input() 585 m->m_len = m->m_pkthdr.len = fp->mode.stream.len - ETHER_ALIGN; in fwe_as_input()
|
/freebsd/stand/libofw/ |
H A D | ofw_net.c | 147 buf = malloc(len + ETHER_ALIGN); in ofwn_get() 150 ptr = buf + ETHER_ALIGN; in ofwn_get()
|
/freebsd/stand/uboot/ |
H A D | net.c | 302 buf = malloc(rlen + ETHER_ALIGN); in net_get() 305 memcpy(buf + ETHER_ALIGN, sc->sc_rxbuf, rlen); in net_get()
|
/freebsd/stand/libsa/ |
H A D | ether.c | 103 eh = (struct ether_header *)((uintptr_t)ptr + ETHER_ALIGN); in readether()
|
H A D | arp.c | 127 eh = (struct ether_header *)((uintptr_t)pkt + ETHER_ALIGN); in arpwhohas()
|
/freebsd/sys/dev/usb/net/ |
H A D | if_urndis.c | 891 } else if (msg.rm_datalen > (uint32_t)(MCLBYTES - ETHER_ALIGN)) { in urndis_bulk_read_callback() 897 } else if (msg.rm_datalen > (uint32_t)(MHLEN - ETHER_ALIGN)) { in urndis_bulk_read_callback() 905 m->m_len = m->m_pkthdr.len = msg.rm_datalen + ETHER_ALIGN; in urndis_bulk_read_callback() 906 m_adj(m, ETHER_ALIGN); in urndis_bulk_read_callback()
|
H A D | usb_ethernet.c | 581 m_adj(m_new, ETHER_ALIGN); in uether_newbuf() 612 if (len < ETHER_HDR_LEN || len > MCLBYTES - ETHER_ALIGN) in uether_rxbuf()
|
H A D | if_axge.c | 1043 if (len < ETHER_HDR_LEN || len > MCLBYTES - ETHER_ALIGN) { in axge_rxeof() 1048 if (len > MHLEN - ETHER_ALIGN) in axge_rxeof() 1058 m->m_data += ETHER_ALIGN; in axge_rxeof()
|
H A D | if_cdce.c | 1683 (temp > (MCLBYTES - ETHER_ALIGN))) { in cdce_ncm_bulk_read_callback() 1694 } else if (temp > (int)(MHLEN - ETHER_ALIGN)) { in cdce_ncm_bulk_read_callback() 1705 m->m_len = m->m_pkthdr.len = temp + ETHER_ALIGN; in cdce_ncm_bulk_read_callback() 1706 m_adj(m, ETHER_ALIGN); in cdce_ncm_bulk_read_callback()
|
H A D | if_ipheth.c | 510 m_adj(m, ETHER_ALIGN); in ipheth_bulk_read_callback()
|
/freebsd/stand/efi/libefi/ |
H A D | efinet.c | 178 buf = malloc(bufsz + ETHER_ALIGN); in efinet_get() 181 ptr = buf + ETHER_ALIGN; in efinet_get()
|
/freebsd/stand/i386/libi386/ |
H A D | pxe.c | 501 buf = malloc(size + ETHER_ALIGN); in pxe_netif_receive_isr() 505 ptr = buf + ETHER_ALIGN; in pxe_netif_receive_isr()
|
/freebsd/sys/dev/et/ |
H A D | if_etvar.h | 65 #define ET_JLEN (ET_JUMBO_FRAMELEN + ETHER_ALIGN)
|
/freebsd/sys/dev/ti/ |
H A D | if_ti.c | 1400 m_adj(m, ETHER_ALIGN); in ti_newbuf_std() 1455 m_adj(m, ETHER_ALIGN); in ti_newbuf_mini() 1514 m_adj(m, ETHER_ALIGN); in ti_newbuf_jumbo() 1647 m_new->m_data += ETHER_ALIGN; in ti_newbuf_jumbo() 1649 m_new->m_len = MHLEN - ETHER_ALIGN; in ti_newbuf_jumbo() 2240 rcb->ti_max_len = MJUM9BYTES - ETHER_ALIGN; in ti_gibinit() 2259 rcb->ti_max_len = MHLEN - ETHER_ALIGN; in ti_gibinit() 2677 r->ti_len = MCLBYTES - ETHER_ALIGN; in ti_discard_std() 2694 r->ti_len = MHLEN - ETHER_ALIGN; in ti_discard_mini() 2712 r->ti_len = MJUM9BYTES - ETHER_ALIGN; in ti_discard_jumbo()
|
/freebsd/sys/net/ |
H A D | ethernet.h | 25 * Drivers should do m_adj(m, ETHER_ALIGN) when setting up a 29 #define ETHER_ALIGN 2 /* driver adjust for IP hdr alignment */ macro
|
/freebsd/sys/dev/e1000/ |
H A D | if_em.h | 239 #define ETHER_ALIGN 2 macro
|
/freebsd/sys/dev/sis/ |
H A D | if_sisreg.h | 495 #define ETHER_ALIGN 2 macro
|
/freebsd/sys/dev/lge/ |
H A D | if_lgereg.h | 485 #define LGE_JRAWLEN (LGE_JUMBO_FRAMELEN + ETHER_ALIGN)
|
H A D | if_lge.c | 696 m_adj(m_new, ETHER_ALIGN); in lge_newbuf() 888 m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN, in lge_rxeof()
|
/freebsd/sys/dev/qcom_ess_edma/ |
H A D | qcom_ess_edma_rx.c | 165 m_adj(m, ETHER_ALIGN); in qcom_ess_edma_rx_buf_alloc()
|
H A D | qcom_ess_edma_hw.c | 644 len -= ETHER_ALIGN; in qcom_ess_edma_hw_setup_txrx_desc_rings()
|
/freebsd/sys/arm64/broadcom/genet/ |
H A D | if_genet.c | 1406 if (len > ETHER_ALIGN) { in gen_rxintr() 1407 m_adj(m, ETHER_ALIGN); in gen_rxintr() 1408 len -= ETHER_ALIGN; in gen_rxintr() 1509 m_adj(m, ETHER_ALIGN); in gen_newbuf_rx()
|
/freebsd/sys/netgraph/ |
H A D | ng_device.c | 259 priv->ether_align = ETHER_ALIGN; in ng_device_rcvmsg()
|
/freebsd/sys/dev/ffec/ |
H A D | if_ffec.c | 774 * leave at least ETHER_ALIGN bytes free at the beginning of the in ffec_setup_rxbuf() 776 * (by copying it backwards ETHER_ALIGN bytes in the same in ffec_setup_rxbuf() 780 m_adj(m, roundup(ETHER_ALIGN, sc->rxbuf_align)); in ffec_setup_rxbuf() 856 dst = src - ETHER_ALIGN; in ffec_rxfinish_onebuf() 1115 * the buffer by ETHER_ALIGN to make room for post-receive re-alignment, in ffec_init_locked() 1125 maxbuf = MCLBYTES - roundup(ETHER_ALIGN, sc->rxbuf_align); in ffec_init_locked()
|
/freebsd/sys/dev/xl/ |
H A D | if_xlreg.h | 454 #define ETHER_ALIGN 2 macro
|