Home
last modified time | relevance | path

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

1234

/openbsd/sys/arch/arm64/stand/efiboot/
H A Defipxe.c451 buf = alloc(bufsz + ETHER_ALIGN); in efinet_get()
454 ptr = buf + ETHER_ALIGN; in efinet_get()
472 free(buf, bufsz + ETHER_ALIGN); in efinet_get()
/openbsd/sys/arch/armv7/stand/efiboot/
H A Defipxe.c451 buf = alloc(bufsz + ETHER_ALIGN); in efinet_get()
454 ptr = buf + ETHER_ALIGN; in efinet_get()
472 free(buf, bufsz + ETHER_ALIGN); in efinet_get()
/openbsd/sys/arch/riscv64/stand/efiboot/
H A Defipxe.c451 buf = alloc(bufsz + ETHER_ALIGN); in efinet_get()
454 ptr = buf + ETHER_ALIGN; in efinet_get()
472 free(buf, bufsz + ETHER_ALIGN); in efinet_get()
/openbsd/sys/dev/pci/
H A Dif_nfereg.h27 #define NFE_JBYTES (NFE_JUMBO_FRAMELEN + ETHER_ALIGN)
H A Dif_age.c648 ETHER_ALIGN, 0, &sc->age_rdata.age_tx_ring_seg, 1, in age_dma_alloc()
686 ETHER_ALIGN, 0, &sc->age_rdata.age_rx_ring_seg, 1, in age_dma_alloc()
724 ETHER_ALIGN, 0, &sc->age_rdata.age_rr_ring_seg, 1, in age_dma_alloc()
763 ETHER_ALIGN, 0, &sc->age_rdata.age_cmb_block_seg, 1, in age_dma_alloc()
803 ETHER_ALIGN, 0, &sc->age_rdata.age_smb_block_seg, 1, in age_dma_alloc()
1440 if (nsegs != ((pktlen + (MCLBYTES - ETHER_ALIGN - 1)) / in age_rxintr()
1441 (MCLBYTES - ETHER_ALIGN))) in age_rxintr()
2113 m_adj(m, ETHER_ALIGN); in age_newbuf()
H A Dif_em.h271 #define EM_MCLBYTES (EM_RXBUFFER_2048 + ETHER_ALIGN)
H A Dif_ale.c623 ETHER_ALIGN, 0, &sc->ale_cdata.ale_tx_ring_seg, 1, in ale_dma_alloc()
662 ETHER_ALIGN, 0, &sc->ale_cdata.ale_rx_page[i].page_seg, in ale_dma_alloc()
702 error = bus_dmamem_alloc(sc->sc_dmat, ALE_TX_CMB_SZ, ETHER_ALIGN, 0, in ale_dma_alloc()
744 ETHER_ALIGN, 0, &sc->ale_cdata.ale_rx_page[i].cmb_seg, 1, in ale_dma_alloc()
1508 ETHER_ALIGN); in ale_rxeof()
H A Dif_vge.c581 ETHER_ALIGN, 0, in vge_allocmem()
1070 total_len - ETHER_CRC_LEN, ETHER_ALIGN); in vge_rxeof()
1109 bcopy(m->m_data, m->m_data + ETHER_ALIGN, total_len); in vge_rxeof()
1110 m->m_data += ETHER_ALIGN; in vge_rxeof()
H A Dif_lgereg.h493 #define LGE_JRAWLEN (LGE_JUMBO_FRAMELEN + ETHER_ALIGN)
H A Dif_cas.c1197 cp = rxs->rxs_kva + off * 256 + ETHER_ALIGN; in cas_rint()
1198 m = m_devget(cp, len, ETHER_ALIGN); in cas_rint()
1222 cp = rxs->rxs_kva + off + ETHER_ALIGN; in cas_rint()
1223 m = m_devget(cp, len, ETHER_ALIGN); in cas_rint()
H A Dif_tht.c932 tht_write(sc, THT_REG_10G_FRM_LEN, MCLBYTES - ETHER_ALIGN); in tht_up()
948 tht_write(sc, THT_REG_RX_MAX_FRAME, MCLBYTES - ETHER_ALIGN); in tht_up()
1263 m->m_data += ETHER_ALIGN; in tht_rxf_fill()
1264 m->m_len = m->m_pkthdr.len = MCLBYTES - ETHER_ALIGN; in tht_rxf_fill()
H A Dif_ngereg.h620 #define NGE_JRAWLEN (NGE_JUMBO_FRAMELEN + ETHER_ALIGN + sizeof(u_int64_t))
H A Dif_xge.c1338 MCLGETL(m[0], M_DONTWAIT, XGE_MAX_FRAMELEN + ETHER_ALIGN); in xge_add_rxbuf()
1343 m[0]->m_len = m[0]->m_pkthdr.len = XGE_MAX_FRAMELEN + ETHER_ALIGN; in xge_add_rxbuf()
1375 m_adj(m[0], ETHER_ALIGN); in xge_add_rxbuf()
H A Dif_lge.c644 m_adj(m_new, ETHER_ALIGN); in lge_newbuf()
716 m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN); in lge_rxeof()
H A Dif_myx.c171 (ETHER_ALIGN + ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN))
1234 mc.mc_data0 = htobe32(MYX_RXSMALL_SIZE - ETHER_ALIGN); in myx_up()
1785 ring = (len <= (MYX_RXSMALL_SIZE - ETHER_ALIGN)) ? in myx_rxeof()
1799 m->m_data += ETHER_ALIGN; in myx_rxeof()
H A Dif_nxe.c1163 MCLBYTES - ETHER_ALIGN); in nxe_up()
1521 m->m_data += ETHER_ALIGN; in nxe_rx_start()
1522 m->m_len = m->m_pkthdr.len = MCLBYTES - ETHER_ALIGN; in nxe_rx_start()
/openbsd/sys/dev/ic/
H A Dbcmgenet.c715 n, index, status, len, len - ETHER_ALIGN); in genet_rxintr()
720 if (len > ETHER_ALIGN) { in genet_rxintr()
721 m_adj(m, ETHER_ALIGN); in genet_rxintr()
723 m->m_len = m->m_pkthdr.len = len - ETHER_ALIGN; in genet_rxintr()
H A Dti.c584 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_std()
600 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_std()
645 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_mini()
703 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_jumbo()
719 m_adj(m_new, ETHER_ALIGN); in ti_newbuf_jumbo()
1292 rcb->ti_max_len = MHLEN - ETHER_ALIGN; in ti_gibinit()
H A Drtl81x9.c645 m = m_devget(rxbufpos, wrap, ETHER_ALIGN); in rl_rxeof()
656 m = m_devget(rxbufpos, total_len, ETHER_ALIGN); in rl_rxeof()
/openbsd/sys/netinet/
H A Dif_ether.h60 #define ETHER_ALIGN 2 /* driver adjust for IP hdr alignment */ macro
/openbsd/sys/net/
H A Dif_bridge.c898 mc = m_dup_pkt(m, ETHER_ALIGN, M_NOWAIT); in bridge_enqueue()
1236 mc = m_dup_pkt(m, ETHER_ALIGN, M_NOWAIT); in bridge_process()
1353 mc = m_dup_pkt(m, ETHER_ALIGN, M_NOWAIT); in bridge_broadcast()
1403 m1 = m_dup_pkt(m, ETHER_ALIGN, M_NOWAIT); in bridge_localbroadcast()
H A Dif_ethersubr.c361 m = m_prepend(m, ETHER_ALIGN + sizeof(eh), M_DONTWAIT); in ether_encap()
367 m_adj(m, ETHER_ALIGN); in ether_encap()
1731 m = m_prepend(m, ETHER_ALIGN + sizeof(*eh), M_NOWAIT); in ether_frm_send()
1734 m_adj(m, ETHER_ALIGN); in ether_frm_send()
H A Dif_vlan.c364 M_PREPEND(m, sizeof(evh) + ETHER_ALIGN, M_DONTWAIT); in vlan_inject()
368 m_adj(m, ETHER_ALIGN); in vlan_inject()
/openbsd/sys/dev/pv/
H A Dif_hvn.c1475 if (len + ETHER_ALIGN <= MHLEN) in hvn_devget()
1478 m = MCLGETL(NULL, M_NOWAIT, len + ETHER_ALIGN); in hvn_devget()
1482 m_adj(m, ETHER_ALIGN); in hvn_devget()
/openbsd/sys/dev/fdt/
H A Dif_cad.c890 val |= ETHER_ALIGN << GEM_NETCFG_RXOFFS_SHIFT; in cad_up()
1328 bus_dmamap_sync(sc->sc_dmat, rxb->bf_map, ETHER_ALIGN, len, in cad_rxeof()
1346 m_adj(m, ETHER_ALIGN); in cad_rxeof()

1234