Home
last modified time | relevance | path

Searched refs:ETHER_ALIGN (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/sys/dev/firewire/
H A Dif_fwe.c478 #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 Dofw_net.c147 buf = malloc(len + ETHER_ALIGN); in ofwn_get()
150 ptr = buf + ETHER_ALIGN; in ofwn_get()
/freebsd/stand/uboot/
H A Dnet.c302 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 Dether.c103 eh = (struct ether_header *)((uintptr_t)ptr + ETHER_ALIGN); in readether()
H A Darp.c127 eh = (struct ether_header *)((uintptr_t)pkt + ETHER_ALIGN); in arpwhohas()
/freebsd/sys/dev/usb/net/
H A Dif_urndis.c891 } 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 Dusb_ethernet.c581 m_adj(m_new, ETHER_ALIGN); in uether_newbuf()
612 if (len < ETHER_HDR_LEN || len > MCLBYTES - ETHER_ALIGN) in uether_rxbuf()
H A Dif_axge.c1043 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 Dif_cdce.c1683 (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 Dif_ipheth.c510 m_adj(m, ETHER_ALIGN); in ipheth_bulk_read_callback()
/freebsd/stand/efi/libefi/
H A Definet.c178 buf = malloc(bufsz + ETHER_ALIGN); in efinet_get()
181 ptr = buf + ETHER_ALIGN; in efinet_get()
/freebsd/stand/i386/libi386/
H A Dpxe.c501 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 Dif_etvar.h65 #define ET_JLEN (ET_JUMBO_FRAMELEN + ETHER_ALIGN)
/freebsd/sys/dev/ti/
H A Dif_ti.c1400 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 Dethernet.h25 * 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 Dif_em.h239 #define ETHER_ALIGN 2 macro
/freebsd/sys/dev/sis/
H A Dif_sisreg.h495 #define ETHER_ALIGN 2 macro
/freebsd/sys/dev/lge/
H A Dif_lgereg.h485 #define LGE_JRAWLEN (LGE_JUMBO_FRAMELEN + ETHER_ALIGN)
H A Dif_lge.c696 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 Dqcom_ess_edma_rx.c165 m_adj(m, ETHER_ALIGN); in qcom_ess_edma_rx_buf_alloc()
H A Dqcom_ess_edma_hw.c644 len -= ETHER_ALIGN; in qcom_ess_edma_hw_setup_txrx_desc_rings()
/freebsd/sys/arm64/broadcom/genet/
H A Dif_genet.c1406 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 Dng_device.c259 priv->ether_align = ETHER_ALIGN; in ng_device_rcvmsg()
/freebsd/sys/dev/ffec/
H A Dif_ffec.c774 * 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 Dif_xlreg.h454 #define ETHER_ALIGN 2 macro

123