Searched refs:m_new (Results 1 - 23 of 23) sorted by relevance

/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_dn_private.h449 struct mbuf *m_new; local
455 MGETHDR(m_new, M_NOWAIT, MT_DATA);
456 ND("*** WARNING, volatile buf %p ext %p %d dofs %d m_new %p",
457 m, m->__m_extbuf, m->__m_extlen, ofs, m_new);
458 p = m_new->__m_extbuf; /* new pointer */
459 l = m_new->__m_extlen; /* new len */
464 *m_new = *m; // copy
465 m_new->m_flags &= ~M_STACK;
466 m_new->__m_extbuf = p; // point to new buffer
468 m_new
[all...]
H A Dip_dn_io.c271 struct mbuf *m_new; local
277 MGETHDR(m_new, M_NOWAIT, MT_DATA);
278 ND("*** WARNING, volatile buf %p ext %p %d dofs %d m_new %p",
279 m, m->__m_extbuf, m->__m_extlen, ofs, m_new);
280 p = m_new->__m_extbuf; /* new pointer */
281 l = m_new->__m_extlen; /* new len */
286 *m_new = *m; // copy
287 m_new->m_flags &= ~M_STACK;
288 m_new->__m_extbuf = p; // point to new buffer
290 m_new
[all...]
/freebsd-11-stable/sys/dev/wb/
H A Dif_wb.c842 struct mbuf *m_new = NULL; local
845 MGETHDR(m_new, M_NOWAIT, MT_DATA);
846 if (m_new == NULL)
848 m_new->m_data = c->wb_buf;
849 m_new->m_pkthdr.len = m_new->m_len = WB_BUFBYTES;
850 MEXTADD(m_new, c->wb_buf, WB_BUFBYTES, wb_bfree, c->wb_buf,
853 m_new = m;
854 m_new->m_len = m_new
1193 struct mbuf *m_new = NULL; local
[all...]
/freebsd-11-stable/sys/dev/lge/
H A Dif_lge.c691 struct mbuf *m_new = NULL; local
695 MGETHDR(m_new, M_NOWAIT, MT_DATA);
696 if (m_new == NULL) {
709 m_freem(m_new);
713 m_new->m_data = (void *)buf;
714 m_new->m_len = m_new->m_pkthdr.len = LGE_JUMBO_FRAMELEN;
715 MEXTADD(m_new, buf, LGE_JUMBO_FRAMELEN, lge_jfree,
718 m_new = m;
719 m_new
[all...]
/freebsd-11-stable/sys/dev/pcn/
H A Dif_pcn.c798 struct mbuf *m_new = NULL; local
804 MGETHDR(m_new, M_NOWAIT, MT_DATA);
805 if (m_new == NULL)
808 if (!(MCLGET(m_new, M_NOWAIT))) {
809 m_freem(m_new);
812 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
814 m_new = m;
815 m_new->m_len = m_new
[all...]
/freebsd-11-stable/sys/dev/usb/net/
H A Dusb_ethernet.c574 struct mbuf *m_new; local
576 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
577 if (m_new == NULL)
579 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
581 m_adj(m_new, ETHER_ALIGN);
582 return (m_new);
/freebsd-11-stable/sys/dev/my/
H A Dif_my.c1079 struct mbuf *m_new = NULL; local
1082 MGETHDR(m_new, M_NOWAIT, MT_DATA);
1083 if (m_new == NULL) {
1088 if (!(MCLGET(m_new, M_NOWAIT))) {
1091 m_freem(m_new);
1094 c->my_mbuf = m_new;
1095 c->my_ptr->my_data = vtophys(mtod(m_new, caddr_t));
1335 struct mbuf *m, *m_new = NULL; local
1348 MGETHDR(m_new, M_NOWAIT, MT_DATA);
1349 if (m_new
[all...]
/freebsd-11-stable/sys/dev/tl/
H A Dif_tl.c1369 struct mbuf *m_new = NULL; local
1371 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
1372 if (m_new == NULL)
1375 c->tl_mbuf = m_new;
1379 c->tl_ptr->tl_frag.tlist_dadr = vtophys(mtod(m_new, caddr_t));
1810 struct mbuf *m_new = NULL; local
1812 MGETHDR(m_new, M_NOWAIT, MT_DATA);
1813 if (m_new == NULL) {
1818 if (!(MCLGET(m_new, M_NOWAIT))) {
1819 m_freem(m_new);
[all...]
/freebsd-11-stable/sys/kern/
H A Duipc_mbuf.c1272 struct mbuf *m_new = NULL, *m_final = NULL; local
1300 m_new = m_final;
1307 if (m_new == NULL) {
1309 m_new = m_getcl(how, MT_DATA, 0);
1311 m_new = m_get(how, MT_DATA);
1312 if (m_new == NULL)
1316 m_copydata(m0, progress, length, mtod(m_new, caddr_t));
1318 m_new->m_len = length;
1319 if (m_new != m_final)
1320 m_cat(m_final, m_new);
1484 struct mbuf *m_new = m_getcl(how, MT_DATA, 0); local
[all...]
/freebsd-11-stable/sys/vm/
H A Dvm_page.c2283 vm_page_t m, m_end, m_new; local
2357 m_new = vm_page_alloc_contig(
2364 m_new = NULL;
2365 if (m_new == NULL) {
2367 m_new = vm_page_alloc_contig(
2372 if (m_new == NULL) {
2374 m_new = vm_page_alloc_contig(
2379 if (m_new == NULL) {
2383 KASSERT(m_new->wire_count == 0,
2384 ("page %p is wired", m_new));
[all...]
/freebsd-11-stable/lib/ncurses/menu/
H A DMakefile27 m_new.c \
/freebsd-11-stable/sys/mips/nlm/dev/net/
H A Dxlpge.c1090 struct mbuf *m_new; local
1096 if ((m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR)) == NULL)
1098 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
1099 KASSERT(((uintptr_t)m_new->m_data & (NAE_CACHELINE_SIZE - 1)) == 0,
1100 ("m_new->m_data is not cacheline aligned"));
1101 md = (uint64_t *)m_new->m_data;
1102 md[0] = (intptr_t)m_new; /* Back Ptr */
1104 m_adj(m_new, NAE_CACHELINE_SIZE);
1107 temp1 = vtophys((vm_offset_t) m_new
[all...]
/freebsd-11-stable/sys/dev/hyperv/netvsc/
H A Dif_hn.c2655 struct mbuf *m_new; local
2657 m_new = m_collapse(m, M_NOWAIT, HN_TX_DATA_SEGCNT_MAX);
2658 if (m_new == NULL)
2661 *m_head = m = m_new;
3399 struct mbuf *m_new; local
3435 m_new = m_gethdr(M_NOWAIT, MT_DATA);
3436 if (m_new == NULL) {
3440 memcpy(mtod(m_new, void *), data, dlen);
3441 m_new->m_pkthdr.len = m_new
4870 hn_rxpkt_proto(const struct mbuf *m_new, int *l3proto, int *l4proto) argument
[all...]
/freebsd-11-stable/sys/dev/xl/
H A Dif_xl.c1760 struct mbuf *m_new = NULL; local
1767 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
1768 if (m_new == NULL)
1771 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
1774 m_adj(m_new, ETHER_ALIGN);
1776 error = bus_dmamap_load_mbuf_sg(sc->xl_mtag, sc->xl_tmpmap, m_new,
1779 m_freem(m_new);
1791 c->xl_mbuf = m_new;
1792 c->xl_ptr->xl_frag.xl_len = htole32(m_new
2341 struct mbuf *m_new; local
[all...]
/freebsd-11-stable/sys/mips/rmi/dev/nlge/
H A Dif_nlge.c2157 struct mbuf *m_new; local
2163 if ((m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR)) == NULL)
2165 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
2166 m_adj(m_new, XLR_CACHELINE_SIZE - ((uintptr_t)m_new->m_data & 0x1f));
2167 md = (uint64_t *)m_new->m_data;
2168 md[0] = (intptr_t)m_new; /* Back Ptr */
2170 m_adj(m_new, XLR_CACHELINE_SIZE);
2173 temp1 = vtophys((vm_offset_t) m_new
[all...]
/freebsd-11-stable/sys/dev/re/
H A Dif_re.c2720 struct mbuf *m_new; local
2747 m_new = m_dup(*m_head, M_NOWAIT);
2749 if (m_new == NULL) {
2753 *m_head = m_new;
2757 m_new = m_defrag(*m_head, M_NOWAIT);
2758 if (m_new == NULL) {
2764 m_new = *m_head;
2770 bzero(mtod(m_new, char *) + m_new->m_pkthdr.len, padlen);
2771 m_new
[all...]
/freebsd-11-stable/sys/dev/ti/
H A Dif_ti.c1568 struct mbuf *cur, *m_new = NULL; local
1579 m_new = m_old;
1587 MGETHDR(m_new, M_NOWAIT, MT_DATA);
1588 if (m_new == NULL) {
1642 m_new->m_next = m[0];
1643 m_new->m_data += ETHER_ALIGN;
1645 m_new->m_len = MHLEN - ETHER_ALIGN;
1647 m_new->m_len = HDR_LEN;
1648 m_new->m_pkthdr.len = NPAYLOAD * PAGE_SIZE + m_new
[all...]
/freebsd-11-stable/sys/arm/at91/
H A Dif_macb.c965 struct mbuf *m_new;
984 m_new = m_defrag(m0, M_NOWAIT);
985 if (m_new != NULL) {
987 m0 = m_new;
/freebsd-11-stable/sys/dev/virtio/network/
H A Dif_vtnet.c1292 struct mbuf *m_new, *m_tail; local
1338 m_new = vtnet_rx_alloc_buf(sc, nreplace, &m_tail);
1339 if (m_new == NULL) {
1353 error = vtnet_rxq_enqueue_buf(rxq, m_new);
1371 m_freem(m_new);
1381 struct mbuf *m_new; local
1394 m_new = vtnet_rx_alloc_buf(sc, 1, NULL);
1395 if (m_new == NULL)
1398 error = vtnet_rxq_enqueue_buf(rxq, m_new);
1405 m_freem(m_new);
[all...]
/freebsd-11-stable/sys/dev/bwi/
H A Dif_bwi.c3048 struct mbuf *m_new; local
3050 m_new = m_defrag(m, M_NOWAIT);
3051 if (m_new == NULL) {
3057 m = m_new;
3219 struct mbuf *m_new; local
3227 m_new = m_defrag(m, M_NOWAIT);
3228 if (m_new == NULL) {
3234 m = m_new;
/freebsd-11-stable/sys/dev/oce/
H A Doce_if.c978 struct mbuf **m_new)
1040 *m_new = m_dup(m, M_NOWAIT);
1041 if (!*m_new) {
1045 *m_new = oce_insert_vlan_tag(sc, *m_new, NULL);
1060 struct mbuf *m, *m_temp, *m_new = NULL; local
1222 oce_is_pkt_dest_bmc(sc, m, &os2bmc, &m_new);
1243 m = m_new;
976 oce_is_pkt_dest_bmc(POCE_SOFTC sc, struct mbuf *m, boolean_t *os2bmc, struct mbuf **m_new) argument
/freebsd-11-stable/sys/dev/bce/
H A Dif_bce.c5374 struct mbuf *m_new = NULL; local
5408 MGETHDR(m_new, M_NOWAIT, MT_DATA);
5410 m_new = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR,
5413 if (m_new == NULL) {
5422 M_ASSERTPKTHDR(m_new);
5425 m_new->m_pkthdr.len = m_new->m_len = sc->rx_bd_mbuf_alloc_size;
5426 m_adj(m_new, sc->rx_bd_mbuf_align_pad);
5432 sc->rx_mbuf_map[chain_prod], m_new, segs, &nsegs, BUS_DMA_NOWAIT);
5440 m_freem(m_new);
5489 struct mbuf *m_new = NULL; local
[all...]
/freebsd-11-stable/sys/dev/bwn/
H A Dif_bwn.c956 struct mbuf *m, *m_new; local
986 m_new = m_defrag(*mp, M_NOWAIT);
987 if (m_new == NULL) {
993 *mp = m_new;
994 if (m_new->m_next != NULL)
997 tp->tp_m = m_new;
1006 mtod(m_new, const void *), m_new->m_pkthdr.len);
1103 struct mbuf *m_new; local
1105 m_new
[all...]

Completed in 243 milliseconds