| /netbsd/src/sys/dev/usb/ |
| D | if_kue.c | 548 if (pktlen > total_len - ETHER_ALIGN) in kue_uno_rx_loop() 549 pktlen = total_len - ETHER_ALIGN; in kue_uno_rx_loop() 552 pktlen > MCLBYTES - ETHER_ALIGN) { in kue_uno_rx_loop()
|
| D | if_smsc.c | 669 reg_val |= ETHER_ALIGN << SMSC_HW_CFG_RXDOFF_SHIFT; in smsc_chip_init() 926 pktlen += ETHER_ALIGN; in smsc_uno_rx_loop() 942 uint8_t *pktbuf = buf + ETHER_ALIGN; in smsc_uno_rx_loop() 943 size_t buflen = pktlen - ETHER_ALIGN; in smsc_uno_rx_loop()
|
| D | if_axen.c | 825 if (pkt_len < sizeof(struct ether_header) + ETHER_ALIGN) in axen_uno_rx_loop() 840 usbnet_enqueue(un, buf + ETHER_ALIGN, pkt_len - 2, in axen_uno_rx_loop() 846 usbnet_enqueue(un, buf + ETHER_ALIGN, pkt_len - 6, in axen_uno_rx_loop()
|
| D | usbnet.c | 260 if (buflen > MCLBYTES - ETHER_ALIGN) in usbnet_newbuf() 267 if (buflen > MHLEN - ETHER_ALIGN) { in usbnet_newbuf() 275 m->m_len = m->m_pkthdr.len = ETHER_ALIGN + buflen; in usbnet_newbuf() 276 m_adj(m, ETHER_ALIGN); in usbnet_newbuf()
|
| D | if_mue.c | 1183 pktlen > MCLBYTES - ETHER_ALIGN || /* XXX */ in mue_uno_rx_loop()
|
| /netbsd/src/sys/dev/pci/ |
| D | if_nfereg.h | 31 #define NFE_JBYTES (NFE_JUMBO_FRAMELEN + ETHER_ALIGN)
|
| D | if_ti.c | 724 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_std() 738 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_std() 791 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_mini() 805 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_mini() 867 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_jumbo() 1483 rcb->ti_max_len = MHLEN - ETHER_ALIGN; in ti_gibinit()
|
| D | if_bgevar.h | 160 #define BGE_JRAWLEN (BGE_JUMBO_FRAMELEN + ETHER_ALIGN)
|
| D | if_rgereg.h | 342 #define RGE_JUMBO_FRAMELEN (MCLBYTES - ETHER_ALIGN)
|
| D | if_sk.c | 815 m_adj(m_new, ETHER_ALIGN); in sk_newbuf() 2099 m0 = m_devget(mtod(m, char *) - ETHER_ALIGN, in sk_rxeof() 2100 total_len + ETHER_ALIGN, 0, ifp); in sk_rxeof() 2108 m_adj(m0, ETHER_ALIGN); in sk_rxeof()
|
| D | if_age.c | 1565 if (nsegs != ((pktlen + (MCLBYTES - ETHER_ALIGN - 1)) / in age_rxintr() 1566 (MCLBYTES - ETHER_ALIGN))) in age_rxintr() 2241 m_adj(m, ETHER_ALIGN); in age_newbuf()
|
| D | if_tireg.h | 998 #define TI_JRAWLEN (ETHER_MAX_LEN_JUMBO + ETHER_ALIGN + sizeof(uint64_t))
|
| D | if_cas.c | 1403 cp = rxs->rxs_kva + off * 256 + ETHER_ALIGN; in cas_rint() 1434 cp = rxs->rxs_kva + off + ETHER_ALIGN; in cas_rint()
|
| D | if_bge.c | 1499 m_adj(m, ETHER_ALIGN); in bge_newbuf_std() 1571 m_adj(m_new, ETHER_ALIGN); in bge_newbuf_jumbo() 4585 memmove(mtod(m, char *) + ETHER_ALIGN, m->m_data, in bge_rxeof() 4587 m->m_data += ETHER_ALIGN; in bge_rxeof() 5713 if (v == (MCLBYTES - ETHER_ALIGN)) in bge_init()
|
| D | if_txp.c | 767 if (len > (MHLEN - ETHER_ALIGN)) { in txp_rx_reclaim() 775 m->m_data += ETHER_ALIGN; in txp_rx_reclaim()
|
| D | if_skreg.h | 1764 #define SK_JRAWLEN (SK_JUMBO_FRAMELEN + ETHER_ALIGN)
|
| D | if_vioif.c | 1269 .dma_size = MCLBYTES - ETHER_ALIGN, in vioif_alloc_mems() 1776 m_adj(m, ETHER_ALIGN); in vioif_populate_rx_mbufs_locked()
|
| /netbsd/src/sys/net/ |
| D | if_ether.h | 74 #define ETHER_ALIGN 2 /* driver adjust for IP hdr alignment */ macro
|
| /netbsd/src/sys/arch/mips/sibyte/dev/ |
| D | sbmac.c | 518 m_adj(m_new, ETHER_ALIGN); in sbdma_add_rcvbuffer() 523 m_adj(m_new, ETHER_ALIGN); in sbdma_add_rcvbuffer() 531 V_DMA_DSCRA_A_SIZE(NUMCACHEBLKS(ETHER_ALIGN + m_new->m_len)) | in sbdma_add_rcvbuffer()
|
| /netbsd/src/sys/dev/ic/ |
| D | bcmgenet.c | 737 if (len < ETHER_ALIGN) { in genet_rxintr() 773 n, index, status, len, len - ETHER_ALIGN); in genet_rxintr() 777 m_adj(m, ETHER_ALIGN); in genet_rxintr()
|
| D | dwc_gmac.c | 524 m_adj(data->rd_m, ETHER_ALIGN); in dwc_gmac_alloc_rx_ring() 1308 m_adj(mnew, ETHER_ALIGN); in dwc_gmac_rx_intr()
|
| D | dwc_eqos.c | 404 #if MCLBYTES >= (EQOS_RXDMA_SIZE + ETHER_ALIGN) in eqos_setup_rxbuf() 405 m_adj(m, ETHER_ALIGN); in eqos_setup_rxbuf()
|
| /netbsd/src/sys/dev/pci/ixgbe/ |
| D | ixgbe.h | 184 #define IXGBE_RX_COPY_LEN_MAX (MHLEN - ETHER_ALIGN)
|
| D | ix_txrx.c | 104 if (sc->max_frame_size <= (rxr->mbuf_sz - ETHER_ALIGN)) \ 105 m_adj(mp, ETHER_ALIGN) 2063 sendmp->m_data += ETHER_ALIGN; in ixgbe_rxeof()
|
| /netbsd/src/sys/arch/arm/xscale/ |
| D | ixp425_if_npe.c | 865 KASSERT(m->m_ext.ext_size >= (NPE_FRAME_SIZE_DEFAULT + ETHER_ALIGN)); in npe_rxbuf_init() 869 - (NPE_FRAME_SIZE_DEFAULT + ETHER_ALIGN)); in npe_rxbuf_init()
|