/freebsd/sys/netinet/ |
H A D | accf_http.c | 48 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp); 50 static int mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, 91 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument 96 n = npkt; in mbufstrcmp() 97 if (npkt) in mbufstrcmp() 98 npkt = npkt->m_nextpkt; in mbufstrcmp() 120 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument 125 n = npkt; in mbufstrncmp() 126 if (npkt) in mbufstrncmp() 127 npkt = npkt->m_nextpkt; in mbufstrncmp()
|
/freebsd/tests/sys/netpfil/common/ |
H A D | divapp.c | 115 int npkt; in main() local 133 npkt = 0; in main() 137 npkt++; in main() 138 if (npkt >= 10) in main() 142 if (npkt != 1) in main() 143 errx(EXIT_FAILURE, "%d: npkt=%d.", c.divert_port, npkt); in main()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_netmap.c | 967 struct netmap_kring *kring, int npkt, int npkt_remaining) in cxgbe_nm_tx() argument 979 while (npkt) { in cxgbe_nm_tx() 980 n = min(npkt, MAX_NPKT_IN_TYPE1_WR); in cxgbe_nm_tx() 986 wr->npkt = n; in cxgbe_nm_tx() 1016 npkt -= n; in cxgbe_nm_tx() 1024 MPASS(npkt == 0); in cxgbe_nm_tx() 1028 if (npkt + npkt_remaining == 0) { in cxgbe_nm_tx() 1085 MPASS(wr->npkt > 0 && wr->npkt <= MAX_NPKT_IN_TYPE1_WR); in reclaim_nm_tx_desc() 1087 n += wr->npkt; in reclaim_nm_tx_desc() 1088 nm_txq->cidx += npkt_to_ndesc(wr->npkt); in reclaim_nm_tx_desc()
|
H A D | t4_sge.c | 3098 if ((txp->npkt > 0 || avail < eq->sidx / 2) && in set_txupdate_flags() 3153 for (i = 0; i < txp->npkt; i++) in eth_tx() 3155 txp->npkt = 0; in eth_tx() 3190 if (t4_tx_coalesce == 0 && txp->npkt == 0) in eth_tx() 3199 if (txp->npkt > 0 || remaining > 1 || in eth_tx() 3211 MPASS(txp->npkt > 0); in eth_tx() 3212 for (i = 0; i < txp->npkt; i++) in eth_tx() 3214 if (txp->npkt > 1) { in eth_tx() 3235 txp->npkt = 0; /* emptied */ in eth_tx() 3248 MPASS(txp->npkt == 0); in eth_tx() [all …]
|
H A D | adapter.h | 587 uint8_t npkt; /* # of packets in this work request */ member
|
H A D | t4_main.c | 7151 MPASS(txq->txp.npkt == 0); in quiesce_txq() 8449 uint8_t npkt = sc->params.max_pkts_per_eth_tx_pkts_wr; in sysctl_tx_vm_wr() local 8457 npkt--; in sysctl_tx_vm_wr() 8467 txq->txp.max_npkt = npkt; in sysctl_tx_vm_wr()
|
/freebsd/sys/dev/neta/ |
H A D | if_mvneta.c | 2950 uint32_t prxs, npkt; in mvneta_rx() local 2956 npkt = MVNETA_PRXS_GET_ODC(prxs); in mvneta_rx() 2957 if (__predict_false(npkt == 0)) in mvneta_rx() 2960 if (count > 0 && npkt > count) { in mvneta_rx() 2962 npkt = count; in mvneta_rx() 2964 mvneta_rx_queue(sc, q, npkt); in mvneta_rx() 2996 mvneta_rx_queue(struct mvneta_softc *sc, int q, int npkt) in mvneta_rx_queue() argument 3018 for (i = 0; i < npkt; i++) { in mvneta_rx_queue() 3105 CTR3(KTR_SPARE2, "%s:%u %u packets received", if_name(ifp), q, npkt); in mvneta_rx_queue() 3137 int npkt, refill, nsegs, error; in mvneta_rx_queue_refill() local [all …]
|
/freebsd/sys/dev/usb/controller/ |
H A D | dwc_otg.c | 1801 channel = td->channel[td->npkt]; in dwc_otg_host_data_tx() 2062 td->npkt = x; in dwc_otg_host_data_tx() 2173 if (cpkt >= td->npkt) { in dwc_otg_data_tx() 2177 fifo_left = (td->npkt - cpkt) * in dwc_otg_data_tx() 2199 td->npkt = cpkt; in dwc_otg_data_tx() 2220 DPRINTFN(5, "busy ep=%d npkt=%d DIEPTSIZ=0x%08x " in dwc_otg_data_tx() 2242 td->npkt = count / td->max_packet_size; in dwc_otg_data_tx() 2252 if (td->npkt > mpkt) { in dwc_otg_data_tx() 2253 td->npkt = mpkt; in dwc_otg_data_tx() 2257 td->npkt in dwc_otg_data_tx() [all...] |
H A D | dwc_otg.h | 66 uint16_t npkt; member
|
/freebsd/contrib/libpcap/ |
H A D | rpcap-protocol.h | 321 …uint32 npkt; /* Ordinal number of the packet (i.e. the first one captured has '1', the second one… member
|
H A D | pcap-rpcap.c | 605 unsigned int npkt; in pcap_read_nocb_remote() local 608 npkt = ntohl(net_pkt_header->npkt); in pcap_read_nocb_remote() 610 if (pr->TotCapt != npkt) in pcap_read_nocb_remote() 612 pr->TotNetDrops += (npkt - pr->TotCapt); in pcap_read_nocb_remote() 613 pr->TotCapt = npkt; in pcap_read_nocb_remote()
|
/freebsd/sys/arm64/broadcom/genet/ |
H A D | if_genet.c | 1342 int error, index, len, cnt, npkt, n; in gen_rxintr() local 1348 npkt = 0; in gen_rxintr() 1423 ++npkt; in gen_rxintr() 1445 return (npkt); in gen_rxintr()
|
/freebsd/sys/arm/allwinner/ |
H A D | if_awg.c | 1193 int error, index, len, cnt, npkt; in awg_rxintr() local 1199 npkt = 0; in awg_rxintr() 1251 ++npkt; in awg_rxintr() 1275 return (npkt); in awg_rxintr()
|
/freebsd/contrib/libpcap/rpcapd/ |
H A D | daemon.c | 2744 net_pkt_header->npkt = htonl(++(session->TotCapt)); in daemon_thrdatamain()
|
/freebsd/sys/dev/cxgbe/firmware/ |
H A D | t4fw_interface.h | 774 __u8 npkt; member 1183 __u8 npkt; member
|