Home
last modified time | relevance | path

Searched refs:m_new (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/sys/netpfil/ipfw/
H A Dip_dn_private.h467 struct mbuf *m_new; in mq_append() local
473 MGETHDR(m_new, M_NOWAIT, MT_DATA); in mq_append()
475 m, m->__m_extbuf, m->__m_extlen, ofs, m_new); in mq_append()
476 p = m_new->__m_extbuf; /* new pointer */ in mq_append()
477 l = m_new->__m_extlen; /* new len */ in mq_append()
482 *m_new = *m; // copy in mq_append()
483 m_new->m_flags &= ~M_STACK; in mq_append()
484 m_new->__m_extbuf = p; // point to new buffer in mq_append()
486 m_new->m_data = p + ofs; in mq_append()
487 m = m_new; in mq_append()
H A Dip_dn_io.c260 struct mbuf *m_new; in mq_append() local
266 MGETHDR(m_new, M_NOWAIT, MT_DATA); in mq_append()
268 m, m->__m_extbuf, m->__m_extlen, ofs, m_new); in mq_append()
269 p = m_new->__m_extbuf; /* new pointer */ in mq_append()
270 l = m_new->__m_extlen; /* new len */ in mq_append()
275 *m_new = *m; // copy in mq_append()
276 m_new->m_flags &= ~M_STACK; in mq_append()
277 m_new->__m_extbuf = p; // point to new buffer in mq_append()
279 m_new->m_data = p + ofs; in mq_append()
280 m = m_new; in mq_append()
/freebsd/sys/kern/
H A Dkern_mbuf.c942 struct mbuf *m_new, *top, *prev, *mref; in _mb_unmapped_to_ext() local
978 m_new = m_get(M_NOWAIT, MT_DATA); in _mb_unmapped_to_ext()
979 if (m_new == NULL) in _mb_unmapped_to_ext()
981 m_new->m_len = seglen; in _mb_unmapped_to_ext()
982 prev = top = m_new; in _mb_unmapped_to_ext()
983 memcpy(mtod(m_new, void *), &m->m_epg_hdr[segoff], in _mb_unmapped_to_ext()
1002 m_new = m_get(M_NOWAIT, MT_DATA); in _mb_unmapped_to_ext()
1003 if (m_new == NULL) in _mb_unmapped_to_ext()
1006 top = prev = m_new; in _mb_unmapped_to_ext()
1008 prev->m_next = m_new; in _mb_unmapped_to_ext()
[all …]
H A Duipc_mbuf.c1568 struct mbuf *m_new = NULL, *m_final = NULL; in m_defrag() local
1596 m_new = m_final; in m_defrag()
1603 if (m_new == NULL) { in m_defrag()
1605 m_new = m_getcl(how, MT_DATA, 0); in m_defrag()
1607 m_new = m_get(how, MT_DATA); in m_defrag()
1608 if (m_new == NULL) in m_defrag()
1612 m_copydata(m0, progress, length, mtod(m_new, caddr_t)); in m_defrag()
1614 m_new->m_len = length; in m_defrag()
1615 if (m_new != m_final) in m_defrag()
1616 m_cat(m_final, m_new); in m_defrag()
[all …]
/freebsd/sys/dev/lge/
H A Dif_lge.c661 struct mbuf *m_new = NULL; in lge_newbuf()
665 MGETHDR(m_new, M_NOWAIT, MT_DATA); in lge_newbuf()
666 if (m_new == NULL) { in lge_newbuf()
679 m_freem(m_new); in lge_newbuf()
683 m_new->m_len = m_new->m_pkthdr.len = LGE_JUMBO_FRAMELEN; in lge_newbuf()
684 m_extadd(m_new, buf, LGE_JUMBO_FRAMELEN, lge_jfree, sc, NULL, in lge_newbuf()
687 m_new = m; in lge_newbuf()
688 m_new->m_len = m_new in lge_newbuf()
662 struct mbuf *m_new = NULL; lge_newbuf() local
[all...]
/freebsd/sys/net/
H A Difq.c63 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) in drbr_putback() argument
74 IFQ_DRV_PREPEND(&ifp->if_snd, m_new); in drbr_putback()
77 buf_ring_putback_sc(br, m_new); in drbr_putback()
H A Difq.h317 void drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new);
342 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) in drbr_putback() argument
348 buf_ring_putback_sc(br, m_new); in drbr_putback()
/freebsd/sys/dev/my/
H A Dif_my.c1062 struct mbuf *m_new = NULL; in my_newbuf() local
1065 MGETHDR(m_new, M_NOWAIT, MT_DATA); in my_newbuf()
1066 if (m_new == NULL) { in my_newbuf()
1071 if (!(MCLGET(m_new, M_NOWAIT))) { in my_newbuf()
1074 m_freem(m_new); in my_newbuf()
1077 c->my_mbuf = m_new; in my_newbuf()
1078 c->my_ptr->my_data = vtophys(mtod(m_new, caddr_t)); in my_newbuf()
1316 struct mbuf *m, *m_new = NULL; in my_encap() local
1329 MGETHDR(m_new, M_NOWAIT, MT_DATA); in my_encap()
1330 if (m_new == NULL) { in my_encap()
[all …]
/freebsd/sys/dev/usb/net/
H A Dusb_ethernet.c576 struct mbuf *m_new; in uether_newbuf() local
578 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); in uether_newbuf()
579 if (m_new == NULL) in uether_newbuf()
581 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES; in uether_newbuf()
583 m_adj(m_new, ETHER_ALIGN); in uether_newbuf()
584 return (m_new); in uether_newbuf()
/freebsd/sys/dev/hyperv/netvsc/
H A Dif_hn.c2663 struct mbuf *m_new; in hn_txdesc_dmamap_load() local
2665 m_new = m_collapse(m, M_NOWAIT, HN_TX_DATA_SEGCNT_MAX); in hn_txdesc_dmamap_load()
2666 if (m_new == NULL) in hn_txdesc_dmamap_load()
2669 *m_head = m = m_new; in hn_txdesc_dmamap_load()
3419 struct mbuf *m_new, *n; in hn_rxpkt() local
3456 m_new = m_gethdr(M_NOWAIT, MT_DATA); in hn_rxpkt()
3457 if (m_new == NULL) { in hn_rxpkt()
3461 memcpy(mtod(m_new, void *), rxr->rsc.frag_data[0], in hn_rxpkt()
3463 m_new->m_pkthdr.len = m_new in hn_rxpkt()
4901 hn_rxpkt_proto(const struct mbuf * m_new,int * l3proto,int * l4proto) hn_rxpkt_proto() argument
[all...]
/freebsd/sys/dev/gve/
H A Dgve_tx_dqo.c413 struct mbuf *m_new = NULL; in gve_map_mbuf_dqo() local
432 m_new = m_collapse(*mbuf, M_NOWAIT, in gve_map_mbuf_dqo()
434 if (m_new == NULL) { in gve_map_mbuf_dqo()
439 m_new = m_defrag(*mbuf, M_NOWAIT); in gve_map_mbuf_dqo()
442 if (__predict_false(m_new == NULL)) { in gve_map_mbuf_dqo()
453 *mbuf = m_new; in gve_map_mbuf_dqo()
/freebsd/sys/dev/xl/
H A Dif_xl.c1748 struct mbuf *m_new = NULL; in xl_newbuf() local
1755 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); in xl_newbuf()
1756 if (m_new == NULL) in xl_newbuf()
1759 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES; in xl_newbuf()
1762 m_adj(m_new, ETHER_ALIGN); in xl_newbuf()
1764 error = bus_dmamap_load_mbuf_sg(sc->xl_mtag, sc->xl_tmpmap, m_new, in xl_newbuf()
1767 m_freem(m_new); in xl_newbuf()
1779 c->xl_mbuf = m_new; in xl_newbuf()
1780 c->xl_ptr->xl_frag.xl_len = htole32(m_new->m_len | XL_LAST_FRAG); in xl_newbuf()
2329 struct mbuf *m_new; in xl_encap() local
[all …]
/freebsd/sys/dev/re/
H A Dif_re.c2734 struct mbuf *m_new; in re_encap() local
2761 m_new = m_dup(*m_head, M_NOWAIT); in re_encap()
2763 if (m_new == NULL) { in re_encap()
2767 *m_head = m_new; in re_encap()
2771 m_new = m_defrag(*m_head, M_NOWAIT); in re_encap()
2772 if (m_new == NULL) { in re_encap()
2778 m_new = *m_head; in re_encap()
2784 bzero(mtod(m_new, char *) + m_new->m_pkthdr.len, padlen); in re_encap()
2785 m_new->m_pkthdr.len += padlen; in re_encap()
2786 m_new->m_len = m_new->m_pkthdr.len; in re_encap()
[all …]
/freebsd/sys/vm/
H A Dvm_page.c3094 vm_page_t m, m_end, m_new; in vm_page_reclaim_run() local
3154 m_new = in vm_page_reclaim_run()
3160 m_new = NULL; in vm_page_reclaim_run()
3161 if (m_new == NULL) { in vm_page_reclaim_run()
3163 m_new = in vm_page_reclaim_run()
3169 if (m_new == NULL) { in vm_page_reclaim_run()
3171 m_new = in vm_page_reclaim_run()
3176 if (m_new == NULL) { in vm_page_reclaim_run()
3190 vm_page_free(m_new); in vm_page_reclaim_run()
3201 m_new->a.flags = m->a.flags & in vm_page_reclaim_run()
[all …]
/freebsd/sys/dev/ti/
H A Dif_ti.c1573 struct mbuf *cur, *m_new = NULL; in ti_newbuf_jumbo() local
1584 m_new = m_old; in ti_newbuf_jumbo()
1592 MGETHDR(m_new, M_NOWAIT, MT_DATA); in ti_newbuf_jumbo()
1593 if (m_new == NULL) { in ti_newbuf_jumbo()
1646 m_new->m_next = m[0]; 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()
1651 m_new->m_len = HDR_LEN; in ti_newbuf_jumbo()
1652 m_new->m_pkthdr.len = NPAYLOAD * PAGE_SIZE + m_new->m_len; in ti_newbuf_jumbo()
1657 sc->ti_cdata.ti_rx_jumbo_chain[idx] = m_new; in ti_newbuf_jumbo()
[all …]
/freebsd/lib/ncurses/menu/
H A DMakefile27 m_new.c \
/freebsd/contrib/ncurses/menu/
H A Dmodules51 m_new lib $(srcdir) $(HEADER_DEPS)
H A Dllib-lmenut352 /* ./m_new.c */
H A Dllib-lmenutw352 /* ./m_new.c */
/freebsd/sys/dev/oce/
H A Doce_if.c952 struct mbuf **m_new) in oce_is_pkt_dest_bmc() argument
1014 *m_new = m_dup(m, M_NOWAIT); in oce_is_pkt_dest_bmc()
1015 if (!*m_new) { in oce_is_pkt_dest_bmc()
1019 *m_new = oce_insert_vlan_tag(sc, *m_new, NULL); in oce_is_pkt_dest_bmc()
1032 struct mbuf *m, *m_temp, *m_new = NULL; in oce_tx() local
1192 oce_is_pkt_dest_bmc(sc, m, &os2bmc, &m_new); in oce_tx()
1218 m = m_new; in oce_tx()
/freebsd/sys/dev/virtio/network/
H A Dif_vtnet.c1568 struct mbuf *m, *m_prev, *m_new, *m_tail; in vtnet_rxq_replace_lro_nomrg_buf() local
1618 m_new = vtnet_rx_alloc_buf(sc, nreplace, &m_tail); in vtnet_rxq_replace_lro_nomrg_buf()
1619 if (m_new == NULL) { in vtnet_rxq_replace_lro_nomrg_buf()
1633 error = vtnet_rxq_enqueue_buf(rxq, m_new); in vtnet_rxq_replace_lro_nomrg_buf()
1648 m_freem(m_new); in vtnet_rxq_replace_lro_nomrg_buf()
1658 struct mbuf *m_new; in vtnet_rxq_replace_buf() local
1670 m_new = vtnet_rx_alloc_buf(sc, 1, NULL); in vtnet_rxq_replace_buf()
1671 if (m_new == NULL) in vtnet_rxq_replace_buf()
1674 error = vtnet_rxq_enqueue_buf(rxq, m_new); in vtnet_rxq_replace_buf()
1677 m_freem(m_new); in vtnet_rxq_replace_buf()
/freebsd/sys/dev/bwi/
H A Dif_bwi.c3038 struct mbuf *m_new; in bwi_encap() local
3040 m_new = m_defrag(m, M_NOWAIT); in bwi_encap()
3041 if (m_new == NULL) { in bwi_encap()
3047 m = m_new; in bwi_encap()
3209 struct mbuf *m_new; in bwi_encap_raw() local
3217 m_new = m_defrag(m, M_NOWAIT); in bwi_encap_raw()
3218 if (m_new == NULL) { in bwi_encap_raw()
3224 m = m_new; in bwi_encap_raw()
/freebsd/sys/dev/bce/
H A Dif_bce.c5255 struct mbuf *m_new = NULL; in bce_get_rx_buf() local
5289 MGETHDR(m_new, M_NOWAIT, MT_DATA); in bce_get_rx_buf()
5291 m_new = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, in bce_get_rx_buf()
5294 if (m_new == NULL) { in bce_get_rx_buf()
5303 M_ASSERTPKTHDR(m_new); in bce_get_rx_buf()
5306 m_new->m_pkthdr.len = m_new->m_len = sc->rx_bd_mbuf_alloc_size; in bce_get_rx_buf()
5307 m_adj(m_new, sc->rx_bd_mbuf_align_pad); in bce_get_rx_buf()
5313 sc->rx_mbuf_map[chain_prod], m_new, segs, &nsegs, BUS_DMA_NOWAIT); in bce_get_rx_buf()
5321 m_freem(m_new); in bce_get_rx_buf()
5343 sc->rx_mbuf_ptr[chain_prod] = m_new; in bce_get_rx_buf()
[all …]
/freebsd/sys/dev/bwn/
H A Dif_bwn.c1084 struct mbuf *m, *m_new; in bwn_pio_tx_start() local
1114 m_new = m_defrag(*mp, M_NOWAIT); in bwn_pio_tx_start()
1115 if (m_new == NULL) { in bwn_pio_tx_start()
1121 *mp = m_new; in bwn_pio_tx_start()
1122 if (m_new->m_next != NULL) in bwn_pio_tx_start()
1125 tp->tp_m = m_new; in bwn_pio_tx_start()
1134 mtod(m_new, const void *), m_new->m_pkthdr.len); in bwn_pio_tx_start()
1231 struct mbuf *m_new; in bwn_dma_tx_start() local
1233 m_new in bwn_dma_tx_start()
[all...]
/freebsd/sys/dev/mana/
H A Dmana_en.c362 struct mbuf *m_new; in mana_tx_map_mbuf() local
365 m_new = m_collapse(m, M_NOWAIT, MAX_MBUF_FRAGS); in mana_tx_map_mbuf()
366 if (unlikely(m_new == NULL)) { in mana_tx_map_mbuf()
370 *m_head = m = m_new; in mana_tx_map_mbuf()

12