| /freebsd/sys/netinet/ |
| H A D | accf_http.c | 47 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp); 49 static int mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, 90 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument 95 n = npkt; in mbufstrcmp() 96 if (npkt) in mbufstrcmp() 97 npkt = npkt->m_nextpkt; in mbufstrcmp() 119 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument 124 n = npkt; in mbufstrncmp() 125 if (npkt) in mbufstrncmp() 126 npkt = npkt->m_nextpkt; in mbufstrncmp()
|
| /freebsd/tests/sys/netpfil/common/ |
| H A D | divapp.c | 116 int npkt; in main() local 139 npkt = 0; in main() 143 npkt++; in main() 144 if (c.expect_single_pkt && npkt >= 20) { in main() 153 if (npkt == 0) in main() 155 if (c.expect_single_pkt && npkt != 1) in main() 157 c.divert_port, npkt); in main()
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | t4_netmap.c | 972 struct netmap_kring *kring, int npkt, int npkt_remaining) in cxgbe_nm_tx() argument 984 while (npkt) { in cxgbe_nm_tx() 985 n = min(npkt, MAX_NPKT_IN_TYPE1_WR); in cxgbe_nm_tx() 991 wr->npkt = n; in cxgbe_nm_tx() 1021 npkt -= n; in cxgbe_nm_tx() 1029 MPASS(npkt == 0); in cxgbe_nm_tx() 1033 if (npkt + npkt_remaining == 0) { in cxgbe_nm_tx() 1090 MPASS(wr->npkt > 0 && wr->npkt <= MAX_NPKT_IN_TYPE1_WR); in reclaim_nm_tx_desc() 1092 n += wr->npkt; in reclaim_nm_tx_desc() 1093 nm_txq->cidx += npkt_to_ndesc(wr->npkt); in reclaim_nm_tx_desc()
|
| H A D | t4_sge.c | 3149 if ((txp->npkt > 0 || avail < eq->sidx / 2) && in set_txupdate_flags() 3204 for (i = 0; i < txp->npkt; i++) in eth_tx() 3206 txp->npkt = 0; in eth_tx() 3241 if (t4_tx_coalesce == 0 && txp->npkt == 0) in eth_tx() 3250 if (txp->npkt > 0 || remaining > 1 || in eth_tx() 3262 MPASS(txp->npkt > 0); in eth_tx() 3263 for (i = 0; i < txp->npkt; i++) in eth_tx() 3265 if (txp->npkt > 1) { in eth_tx() 3286 txp->npkt = 0; /* emptied */ in eth_tx() 3299 MPASS(txp->npkt in eth_tx() [all...] |
| H A D | adapter.h | 629 uint8_t npkt; /* # of packets in this work request */ 619 uint8_t npkt; /* # of packets in this work request */ global() member
|
| H A D | t4_main.c | 7477 MPASS(txq->txp.npkt == 0); in quiesce_iq_fl() 8898 uint8_t npkt = sc->params.max_pkts_per_eth_tx_pkts_wr; in sysctl_holdoff_pktc_idx() 8906 npkt--; in sysctl_holdoff_pktc_idx() 8916 txq->txp.max_npkt = npkt; in sysctl_qsize_rxq() 8823 uint8_t npkt = sc->params.max_pkts_per_eth_tx_pkts_wr; sysctl_tx_vm_wr() local
|
| /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 | xhci.c | 1799 uint32_t cur_len, td_end, seg_len, npkt, dword; in xhci_setup_normal_trbs() local 1831 npkt = howmany(len - cur_len, mps); in xhci_setup_normal_trbs() 1832 if (npkt > 31) in xhci_setup_normal_trbs() 1833 npkt = 31; in xhci_setup_normal_trbs() 1837 XHCI_TRB_2_TDSZ_SET(npkt)); in xhci_setup_normal_trbs() 1912 uint32_t dword, len, cur_len, seg_len, npkt; in xhci_setup_ctrl() local 1980 npkt = howmany(len - cur_len, xfer->max_packet_size); in xhci_setup_ctrl() 1981 if (npkt > 31) in xhci_setup_ctrl() 1982 npkt = 31; in xhci_setup_ctrl() 1986 XHCI_TRB_2_TDSZ_SET(npkt)); in xhci_setup_ctrl() [all …]
|
| 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 | 1376 int error, index, len, cnt, npkt, n; in gen_rxintr() local 1382 npkt = 0; in gen_rxintr() 1457 ++npkt; in gen_rxintr() 1479 return (npkt); in gen_rxintr()
|
| /freebsd/sys/arm/allwinner/ |
| H A D | if_awg.c | 1198 int error, index, len, cnt, npkt; in awg_rxintr() local 1204 npkt = 0; in awg_rxintr() 1256 ++npkt; in awg_rxintr() 1280 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 | 801 __u8 npkt; member 1262 __u8 npkt; member
|