Home
last modified time | relevance | path

Searched refs:nframes (Results 1 – 17 of 17) sorted by relevance

/openbsd-src/games/gomoku/
H A Dpickmove.c787 int nframes; in makeempty() local
796 if ((nframes = ocbp->c_nframes) >= MAXDEPTH) in makeempty()
810 ep = &einfo[nframes]; in makeempty()
811 cbpp = &ecombo[nframes]; in makeempty()
834 for (i = 2, ep += 2; i < nframes; i++, ep++) { in makeempty()
860 ep = &einfo[nframes]; in makeempty()
886 for (i = 0, ep = einfo, cbpp = ecombo; i < nframes; i++, ep++, cbpp++) { in makeempty()
944 int nframes, s, flg = 0; in updatecombo() local
949 nframes = cbp->c_nframes; in updatecombo()
964 sp->s_level[color] = nframes; in updatecombo()
[all …]
/openbsd-src/sys/dev/usb/
H A Duaudio.c322 unsigned int nframes; /* frames requested */
3284 xfer->nframes = 0; in uaudio_pdata_xfer()
3290 if ((xfer->nframes & s->nframes_mask) == 0 && in uaudio_pdata_xfer()
3297 if (xfer->nframes == s->nframes_max) { in uaudio_pdata_xfer()
3311 xfer->sizes[xfer->nframes] = fsize; in uaudio_pdata_intr()
3312 xfer->nframes++; in uaudio_pdata_intr()
3349 xfer->size, xfer->nframes, in uaudio_pdata_intr()
3355 if (xfer->nframes == 0) { in uaudio_pdata_intr()
3365 xfer->sizes, xfer->nframes, in uaudio_pdata_intr()
3405 sc->diff_nframes += xfer->nframes; in uaudio_psync_xfer()
310 unsigned int nframes; /* frames requested */ global() member
3581 unsigned int count, fsize, fsize_min, nframes, bpf; uaudio_rdata_intr() local
[all...]
H A Dusb.c955 uint32_t nframes, psize; in usb_tap()
973 nframes = xfer->nframes; in usb_tap()
979 psize = xfer->length / nframes; in usb_tap()
981 if (nframes > _USBPCAP_MAX_ISOFRAMES) { in usb_tap()
983 xfer->nframes, _USBPCAP_MAX_ISOFRAMES); in usb_tap()
984 nframes = _USBPCAP_MAX_ISOFRAMES; in usb_tap()
988 flen = (nframes - 1) * sizeof(struct usbpcap_iso_pkt); in usb_tap()
992 h.uih.uih_nframes = nframes; in usb_tap()
994 for (i = 0; i < nframes; in usb_tap()
960 uint32_t nframes, offset; usb_tap() local
[all...]
H A Dehci.c785 int i, len, uframes, nframes = 0, actlen = 0; in ehci_isoc_idone() local
822 if (nframes >= xfer->nframes) in ehci_isoc_idone()
830 xfer->frlengths[nframes++] = len; in ehci_isoc_idone()
843 if (xfer->frlengths[nframes] >= len) in ehci_isoc_idone()
844 len = xfer->frlengths[nframes] - len; in ehci_isoc_idone()
848 xfer->frlengths[nframes++] = len; in ehci_isoc_idone()
3291 if ((1 << (ival - 1)) * xfer->nframes >= (sc->sc_flsize - 4) * 8) in ehci_device_isoc_start()
3380 int i, j, nframes, uframes, ufrperframe; in ehci_alloc_itd_chain() local
3401 nframes in ehci_alloc_itd_chain()
3508 int i, nframes, offs = 0; ehci_alloc_sitd_chain() local
[all...]
H A Duhci.c1213 if (xfer->nframes != 0) { in uhci_idone()
1216 int i, n, nframes, len; in uhci_idone() local
1220 nframes = xfer->nframes; in uhci_idone()
1223 for (i = 0; i < nframes; i++) { in uhci_idone()
1238 upipe->u.iso.inuse -= nframes; in uhci_idone()
2121 int s, i, next, nframes; in uhci_device_isoc_enter() local
2125 iso->inuse, iso->next, xfer, xfer->nframes)); in uhci_device_isoc_enter()
2159 nframes = xfer->nframes; in uhci_device_isoc_enter()
2161 for (i = 0; i < nframes; i++) { in uhci_device_isoc_enter()
2167 if (i == nframes - 1) in uhci_device_isoc_enter()
[all …]
H A Dusbdi.c452 xfer->nframes = 0; in usbd_setup_xfer()
471 xfer->nframes = 0; in usbd_setup_default_xfer()
476 void *priv, u_int16_t *frlengths, u_int32_t nframes, in usbd_setup_isoc_xfer() argument
485 for (i = 0; i < nframes; i++) in usbd_setup_isoc_xfer()
494 xfer->nframes = nframes; in usbd_setup_isoc_xfer()
H A Dusbdivar.h225 int nframes;
224 int nframes; global() member
H A Dusbdi.h102 void *priv, u_int16_t *frlengths, u_int32_t nframes,
H A Dohci.c1368 opipe->u.iso.inuse -= xfer->nframes; in ohci_softintr()
3079 int i, ncur, nframes; in ohci_device_isoc_enter() local
3084 iso->inuse, iso->next, xfer, xfer->nframes)); in ohci_device_isoc_enter()
3104 nframes = xfer->nframes; in ohci_device_isoc_enter()
3106 for (i = ncur = 0; i < nframes; i++, ncur++) { in ohci_device_isoc_enter()
3162 iso->inuse += nframes; in ohci_device_isoc_enter()
H A Dxhci.c3187 int s, i, j, ntrb = xfer->nframes; in xhci_device_isoc_start()
3211 for (i = 0, ntrb = 0; i < xfer->nframes; i++) { in xhci_device_isoc_start()
3232 for (i = 0, trb0 = NULL; i < xfer->nframes; i++) { in xhci_device_isoc_start()
/openbsd-src/sys/dev/ic/
H A Di82596.c639 if (++sc->rftail == sc->nframes)
641 if (++sc->rfhead == sc->nframes)
936 for (n = 0; n < sc->nframes; n++) {
1499 sc->nframes = n / r;
1501 if (sc->nframes <= 8)
1504 sc->nrxbuf = sc->nframes * B_PER_F;
1509 ptr += sc->nframes * 64;
1521 printf("%s: %d frames %d bufs\n", sc->sc_dev.dv_xname, sc->nframes,
1528 for (n = 0; n < sc->nframes; n++) {
1529 int m = (n == sc->nframes - 1) ? 0 : n + 1;
[all …]
H A Di82596var.h248 int nframes; /* number of frames in use */ member
/openbsd-src/sys/dev/usb/dwc2/
H A Ddwc2.c1082 " mps=%d dir %s\n", xfer, xfer->nframes, xfer->flags, addr, in dwc2_device_start()
1087 for (size_t i = 0; i < xfer->nframes; i++) in dwc2_device_start()
1102 dxfer->urb = dwc2_hcd_urb_alloc(sc->sc_hsotg, xfer->nframes, M_NOWAIT); in dwc2_device_start()
1108 sizeof(dwc2_urb->iso_descs[0]) * xfer->nframes); in dwc2_device_start()
1111 dwc2_urb->packet_count = xfer->nframes; in dwc2_device_start()
1180 KASSERTMSG(xfer->nframes == 0 || xfertype == UE_ISOCHRONOUS, in dwc2_device_start()
1181 "nframes %d xfertype %d\n", xfer->nframes, xfertype); in dwc2_device_start()
1184 for (size_t i = 0; i < xfer->nframes; ++i) { in dwc2_device_start()
H A Ddwc2_hcd.c4243 for (size_t i = 0; i < xfer->nframes; ++i) { in dwc2_host_complete()
4258 for (size_t i = 0; i < xfer->nframes; i++) in dwc2_host_complete()
4315 dwc2_hcd_urb_free(sc->sc_hsotg, dxfer->urb, xfer->nframes); in dwc2_host_complete()
/openbsd-src/sys/dev/pci/
H A Dif_iwn.c2556 uint8_t rate, uint8_t rflags, int nframes, uint32_t ssn, in iwn_ampdu_tx_done() argument
2573 if (nframes > 1) { in iwn_ampdu_tx_done()
2579 for (i = 0; i < nframes; i++) { in iwn_ampdu_tx_done()
2597 txdata->ampdu_nframes = nframes; in iwn_ampdu_tx_done()
2674 if (stat->nframes < 1 || stat->nframes > IWN_AMPDU_MAX) in iwn4965_tx_done()
2676 if (desc->qid < sc->first_agg_txq && stat->nframes > 1) in iwn4965_tx_done()
2679 stat->nframes * sizeof(stat->stat) > len) in iwn4965_tx_done()
2692 memcpy(&ssn, &stat->stat.status + stat->nframes, sizeof(ssn)); in iwn4965_tx_done()
2695 stat->rate, stat->rflags, stat->nframes, ssn, in iwn4965_tx_done()
2721 if (stat->nframes < 1 || stat->nframes > IWN_AMPDU_MAX) in iwn5000_tx_done()
[all …]
H A Dif_iwnreg.h1265 uint8_t nframes; member
1283 uint8_t nframes; member
H A Dif_iwm.c5716 uint8_t nframes, uint8_t failure_frame, uint16_t ssn, int status, in iwm_ampdu_tx_done() argument
5731 if (nframes > 1) { in iwm_ampdu_tx_done()
5737 for (i = 0; i < nframes; i++) { in iwm_ampdu_tx_done()
5761 txdata->ampdu_nframes = nframes; in iwm_ampdu_tx_done()
5766 txdata->ampdu_nframes = nframes; in iwm_ampdu_tx_done()