Home
last modified time | relevance | path

Searched refs:nfrags (Results 1 – 11 of 11) sorted by relevance

/freebsd/sbin/fsck_ffs/
H A Dpass1b.c95 int nfrags, res = KEEPON; in pass1bcheck() local
98 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { in pass1bcheck()
H A Dpass1.c519 int anyout, nfrags; in pass1check() local
554 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { in pass1check()
H A Dinode.c667 long size, nfrags; in freeblock() local
678 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { in freeblock()
700 if (nfrags == 0) { in freeblock()
/freebsd/sys/netinet/
H A Dip_reass.c147 static u_int __exclusive_cache_line nfrags; variable
152 &nfrags, 0,
223 (tmpmax >= 0 && atomic_load_int(&nfrags) >= (u_int)tmpmax)) { in ip_reass()
328 atomic_add_int(&nfrags, 1); in ip_reass()
364 atomic_add_int(&nfrags, 1); in ip_reass()
441 atomic_subtract_int(&nfrags, 1); in ip_reass()
507 atomic_subtract_int(&nfrags, fp->ipq_nfrags); in ip_reass()
574 atomic_subtract_int(&nfrags, 1); in ip_reass()
595 MPASS(atomic_load_int(&nfrags) > 0); in ipreass_callout()
902 atomic_subtract_int(&nfrags, fp->ipq_nfrags); in ipq_reuse()
[all …]
H A Dip_output.c868 int nfrags; in ip_fragment() local
942 for (nfrags = 1; off < ip_len; off += len, nfrags++) { in ip_fragment()
1007 IPSTAT_ADD(ips_ofragments, nfrags); in ip_fragment()
/freebsd/usr.sbin/ppp/
H A Dnat_cmd.c519 int ret, len, nfrags; in nat_LayerPull() local
562 nfrags = 0; in nat_LayerPull()
564 nfrags++; in nat_LayerPull()
572 gfrags -= nfrags; in nat_LayerPull()
575 nfrags, gfrags); in nat_LayerPull()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dtestmode.c111 int nfrags, i; in mt76_testmode_alloc_skb() local
119 nfrags = len / MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
120 head_len = nfrags ? MT_TXP_MAX_LEN : len; in mt76_testmode_alloc_skb()
146 for (i = 0; i < nfrags; i++) { in mt76_testmode_alloc_skb()
150 if (i == nfrags - 1) in mt76_testmode_alloc_skb()
/freebsd/sys/dev/xen/netfront/
H A Dnetfront.c1617 int otherend_id, error, nfrags; in xn_assemble_tx_request() local
1629 &nfrags, 0); in xn_assemble_tx_request()
1630 if (error == EFBIG || nfrags > np->maxfrags) { in xn_assemble_tx_request()
1646 &nfrags, 0); in xn_assemble_tx_request()
1647 if (error != 0 || nfrags > np->maxfrags) { in xn_assemble_tx_request()
1666 if (nfrags > MAX_TX_REQ_FRAGS) { in xn_assemble_tx_request()
1670 __func__, nfrags, MAX_TX_REQ_FRAGS); in xn_assemble_tx_request()
1685 KASSERT((txq->mbufs_cnt + nfrags) <= NET_TX_RING_SIZE, in xn_assemble_tx_request()
1688 (int) nfrags, (int) NET_TX_RING_SIZE)); in xn_assemble_tx_request()
1697 for (i = 0; i < nfrags; i++) { in xn_assemble_tx_request()
[all …]
/freebsd/sys/dev/gve/
H A Dgve_tx.c551 int nfrags = 0; in gve_tx_alloc_fifo() local
566 nfrags++; in gve_tx_alloc_fifo()
577 nfrags++; in gve_tx_alloc_fifo()
589 iov[nfrags - 1].iov_padding = padding; in gve_tx_alloc_fifo()
596 return (nfrags); in gve_tx_alloc_fifo()
/freebsd/sys/dev/vmware/vmxnet3/
H A Dif_vmx.c1504 uint8_t nfrags; in vmxnet3_isc_rxd_pkt_get() local
1594 nfrags = 0; in vmxnet3_isc_rxd_pkt_get()
1600 KASSERT(nfrags < IFLIB_MAX_RX_SEGS, in vmxnet3_isc_rxd_pkt_get()
1603 frag = &ri->iri_frags[nfrags]; in vmxnet3_isc_rxd_pkt_get()
1609 nfrags++; in vmxnet3_isc_rxd_pkt_get()
1620 ri->iri_nfrags = nfrags; in vmxnet3_isc_rxd_pkt_get()
1632 for (i = 0; i < nfrags; i++) { in vmxnet3_isc_rxd_pkt_get()
/freebsd/tools/tools/netmap/
H A Dpkt-gen.c2232 unsigned int nfrags, char *strbuf, size_t strbuflen) in multi_slot_to_string() argument
2237 for (f = 0; f < nfrags; f++) { in multi_slot_to_string()