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

/freebsd-11.0-release/sys/netpfil/ipfw/
H A Dip_dn_private.h430 struct mbuf *m_new; local
436 MGETHDR(m_new, M_NOWAIT, MT_DATA);
437 ND("*** WARNING, volatile buf %p ext %p %d dofs %d m_new %p",
438 m, m->__m_extbuf, m->__m_extlen, ofs, m_new);
439 p = m_new->__m_extbuf; /* new pointer */
440 l = m_new->__m_extlen; /* new len */
445 *m_new = *m; // copy
446 m_new->m_flags &= ~M_STACK;
447 m_new->__m_extbuf = p; // point to new buffer
449 m_new
[all...]
H A Dip_dn_io.c288 struct mbuf *m_new; local
294 MGETHDR(m_new, M_NOWAIT, MT_DATA);
295 ND("*** WARNING, volatile buf %p ext %p %d dofs %d m_new %p",
296 m, m->__m_extbuf, m->__m_extlen, ofs, m_new);
297 p = m_new->__m_extbuf; /* new pointer */
298 l = m_new->__m_extlen; /* new len */
303 *m_new = *m; // copy
304 m_new->m_flags &= ~M_STACK;
305 m_new->__m_extbuf = p; // point to new buffer
307 m_new
[all...]
/freebsd-11.0-release/sys/dev/wb/
H A Dif_wb.c840 struct mbuf *m_new = NULL; local
843 MGETHDR(m_new, M_NOWAIT, MT_DATA);
844 if (m_new == NULL)
846 m_new->m_data = c->wb_buf;
847 m_new->m_pkthdr.len = m_new->m_len = WB_BUFBYTES;
848 MEXTADD(m_new, c->wb_buf, WB_BUFBYTES, wb_bfree, c->wb_buf,
851 m_new = m;
852 m_new->m_len = m_new
1191 struct mbuf *m_new = NULL; local
[all...]
/freebsd-11.0-release/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.0-release/sys/dev/hyperv/netvsc/
H A Dhv_netvsc_drv_freebsd.c692 struct mbuf *m_new; local
694 m_new = m_collapse(m, M_NOWAIT, HN_TX_DATA_SEGCNT_MAX);
695 if (m_new == NULL)
698 *m_head = m = m_new;
1301 struct mbuf *m_new; local
1314 m_new = m_gethdr(M_NOWAIT, MT_DATA);
1315 if (m_new == NULL) {
1319 memcpy(mtod(m_new, void *), packet->data,
1321 m_new->m_pkthdr.len = m_new
[all...]
/freebsd-11.0-release/sys/kern/
H A Duipc_mbuf.c1265 struct mbuf *m_new = NULL, *m_final = NULL; local
1293 m_new = m_final;
1300 if (m_new == NULL) {
1302 m_new = m_getcl(how, MT_DATA, 0);
1304 m_new = m_get(how, MT_DATA);
1305 if (m_new == NULL)
1309 m_copydata(m0, progress, length, mtod(m_new, caddr_t));
1311 m_new->m_len = length;
1312 if (m_new != m_final)
1313 m_cat(m_final, m_new);
1442 struct mbuf *m_new = NULL, *m_final = NULL; local
[all...]
/freebsd-11.0-release/sys/dev/pcn/
H A Dif_pcn.c796 struct mbuf *m_new = NULL; local
802 MGETHDR(m_new, M_NOWAIT, MT_DATA);
803 if (m_new == NULL)
806 if (!(MCLGET(m_new, M_NOWAIT))) {
807 m_freem(m_new);
810 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
812 m_new = m;
813 m_new->m_len = m_new
[all...]
/freebsd-11.0-release/sys/dev/usb/net/
H A Dusb_ethernet.c563 struct mbuf *m_new; local
565 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
566 if (m_new == NULL)
568 m_new->m_len = m_new->m_pkthdr.len = MCLBYTES;
570 m_adj(m_new, ETHER_ALIGN);
571 return (m_new);
/freebsd-11.0-release/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.0-release/sys/dev/tl/
H A Dif_tl.c1367 struct mbuf *m_new = NULL; local
1369 m_new = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
1370 if (m_new == NULL)
1373 c->tl_mbuf = m_new;
1377 c->tl_ptr->tl_frag.tlist_dadr = vtophys(mtod(m_new, caddr_t));
1808 struct mbuf *m_new = NULL; local
1810 MGETHDR(m_new, M_NOWAIT, MT_DATA);
1811 if (m_new == NULL) {
1816 if (!(MCLGET(m_new, M_NOWAIT))) {
1817 m_freem(m_new);
[all...]
/freebsd-11.0-release/sys/vm/
H A Dvm_page.c2400 vm_page_t m, m_end, m_new; local
2488 m_new = vm_page_alloc_contig(
2495 m_new = NULL;
2496 if (m_new == NULL) {
2498 m_new = vm_page_alloc_contig(
2503 if (m_new == NULL) {
2505 m_new = vm_page_alloc_contig(
2510 if (m_new == NULL) {
2514 KASSERT(m_new->wire_count == 0,
2525 m_new
[all...]
/freebsd-11.0-release/lib/ncurses/menu/
H A DMakefile27 m_new.c \
/freebsd-11.0-release/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.0-release/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.0-release/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.0-release/sys/dev/re/
H A Dif_re.c2718 struct mbuf *m_new; local
2745 m_new = m_dup(*m_head, M_NOWAIT);
2747 if (m_new == NULL) {
2751 *m_head = m_new;
2755 m_new = m_defrag(*m_head, M_NOWAIT);
2756 if (m_new == NULL) {
2762 m_new = *m_head;
2768 bzero(mtod(m_new, char *) + m_new->m_pkthdr.len, padlen);
2769 m_new
[all...]
/freebsd-11.0-release/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.0-release/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.0-release/sys/dev/virtio/network/
H A Dif_vtnet.c1279 struct mbuf *m_new, *m_tail; local
1325 m_new = vtnet_rx_alloc_buf(sc, nreplace, &m_tail);
1326 if (m_new == NULL) {
1340 error = vtnet_rxq_enqueue_buf(rxq, m_new);
1358 m_freem(m_new);
1368 struct mbuf *m_new; local
1381 m_new = vtnet_rx_alloc_buf(sc, 1, NULL);
1382 if (m_new == NULL)
1385 error = vtnet_rxq_enqueue_buf(rxq, m_new);
1392 m_freem(m_new);
[all...]
/freebsd-11.0-release/sys/dev/bwi/
H A Dif_bwi.c3058 struct mbuf *m_new; local
3060 m_new = m_defrag(m, M_NOWAIT);
3061 if (m_new == NULL) {
3067 m = m_new;
3229 struct mbuf *m_new; local
3237 m_new = m_defrag(m, M_NOWAIT);
3238 if (m_new == NULL) {
3244 m = m_new;
/freebsd-11.0-release/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.0-release/sys/dev/bwn/
H A Dif_bwn.c955 struct mbuf *m_new; local
983 m_new = m_defrag(m, M_NOWAIT);
984 if (m_new == NULL) {
990 if (m_new->m_next != NULL)
993 tp->tp_m = m_new;
1002 mtod(m_new, const void *), m_new->m_pkthdr.len);
1096 struct mbuf *m_new; local
1098 m_new = m_defrag(m, M_NOWAIT);
1099 if (m_new
[all...]

Completed in 353 milliseconds