Home
last modified time | relevance | path

Searched refs:npkt (Results 1 – 5 of 5) sorted by relevance

/openbsd/regress/lib/libc/sys/
H A Dt_sendmmsg.c143 int npkt = min(1024, mmsgcnt - n); in ATF_TC_BODY() local
147 int npkt = min(3, mmsgcnt - n), a; in ATF_TC_BODY() local
156 cnt = sendmmsg(fd[1], mmsghdr + n, npkt, 0); in ATF_TC_BODY()
/openbsd/sys/dev/pci/
H A Dif_bwfm_pci.c112 uint32_t npkt; member
737 sc->sc_rx_pkts.npkt = BWFM_NUM_RX_PKTIDS; in bwfm_pci_preinit()
746 sc->sc_tx_pkts.npkt = BWFM_NUM_TX_PKTIDS; in bwfm_pci_preinit()
756 sc->sc_ioctl_pkts.npkt = BWFM_NUM_IOCTL_PKTIDS; in bwfm_pci_preinit()
1237 for (i = 0; i < pkts->npkt; i++) { in bwfm_pci_pktid_avail()
1238 if (idx == pkts->npkt) in bwfm_pci_pktid_avail()
1254 for (i = 0; i < pkts->npkt; i++) { in bwfm_pci_pktid_new()
1255 if (idx == pkts->npkt) in bwfm_pci_pktid_new()
1286 if (pktid >= pkts->npkt || pkts->pkts[pktid].bb_m == NULL) in bwfm_pci_pktid_free()
/openbsd/sys/dev/ic/
H A Datw.c3465 int firstlen, hdrlen, lastlen, lastlen0, npkt, overlen, paylen; in atw_compute_duration() local
3479 npkt = paylen / fraglen; in atw_compute_duration()
3482 if (npkt == 0) /* no fragments */ in atw_compute_duration()
3486 npkt++; in atw_compute_duration()
3491 *npktp = npkt; in atw_compute_duration()
3493 if (npkt > 1) in atw_compute_duration()
3501 __func__, npkt, firstlen, lastlen0, lastlen, fraglen, in atw_compute_duration()
3512 if (npkt <= 1) { in atw_compute_duration()
3561 int do_encrypt, npkt, rate; in atw_start() local
3634 rate, &txs->txs_d0, &txs->txs_dn, &npkt, in atw_start()
H A Drtw.c2989 int firstlen, hdrlen, lastlen, lastlen0, npkt, overlen, paylen; in rtw_compute_duration() local
3003 npkt = paylen / fraglen; in rtw_compute_duration()
3006 if (npkt == 0) /* no fragments */ in rtw_compute_duration()
3010 npkt++; in rtw_compute_duration()
3015 *npktp = npkt; in rtw_compute_duration()
3017 if (npkt > 1) in rtw_compute_duration()
3025 __func__, npkt, firstlen, lastlen0, lastlen, fraglen, in rtw_compute_duration()
3036 if (npkt <= 1) { in rtw_compute_duration()
3062 int desc, i, lastdesc, npkt, rate; in rtw_start() local
3159 rate, &ts->ts_d0, &ts->ts_dn, &npkt, in rtw_start()
/openbsd/sys/dev/usb/
H A Dxhci.c2859 uint32_t npkt, mps = UGETW(xfer->pipe->endpoint->edesc->wMaxPacketSize); in xhci_xfer_tdsize() local
2864 npkt = howmany(remain - len, UE_GET_SIZE(mps)); in xhci_xfer_tdsize()
2865 if (npkt > 31) in xhci_xfer_tdsize()
2866 npkt = 31; in xhci_xfer_tdsize()
2868 return XHCI_TRB_TDREM(npkt); in xhci_xfer_tdsize()