Home
last modified time | relevance | path

Searched refs:nch (Results 1 – 25 of 35) sorted by relevance

12

/openbsd/src/usr.bin/mandoc/
Dmandoc.c165 mandoc_normdate(struct roff_node *nch, struct roff_node *nbl) in mandoc_normdate() argument
172 if (nch == NULL) { in mandoc_normdate()
180 if (*nch->string == '\0') { in mandoc_normdate()
181 mandoc_msg(MANDOCERR_DATE_MISSING, nch->line, in mandoc_normdate()
182 nch->pos, "%s", roff_name[nbl->tok]); in mandoc_normdate()
185 if (strcmp(nch->string, "$" "Mdocdate$") == 0) in mandoc_normdate()
190 if (a2time(&t, "$" "Mdocdate: %b %d %Y $", nch->string) || in mandoc_normdate()
191 a2time(&t, "%b %d, %Y", nch->string)) { in mandoc_normdate()
194 mandoc_msg(MANDOCERR_DATE_FUTURE, nch->line, in mandoc_normdate()
195 nch->pos, "%s %s", roff_name[nbl->tok], cp); in mandoc_normdate()
[all …]
Dmdoc_validate.c518 const struct roff_node *nch; in post_delim() local
524 nch = mdoc->last->last; in post_delim()
525 if (nch == NULL || nch->type != ROFFT_TEXT) in post_delim()
527 lc = strchr(nch->string, '\0') - 1; in post_delim()
528 if (lc < nch->string) in post_delim()
537 mandoc_msg(MANDOCERR_DELIM, nch->line, in post_delim()
538 nch->pos + (int)(lc - nch->string), "%s%s %s", roff_name[tok], in post_delim()
539 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim()
545 const struct roff_node *nch; in post_delim_nb() local
557 nch = mdoc->last->last; in post_delim_nb()
[all …]
Dman_validate.c553 struct roff_node *nch; in post_MR() local
555 if ((nch = n->child) == NULL) { in post_MR()
559 if (nch->next == NULL) { in post_MR()
561 n->line, n->pos, "MR %s", nch->string); in post_MR()
564 if (mandoc_xr_add(nch->next->string, nch->string, nch->line, nch->pos)) in post_MR()
565 mandoc_msg(MANDOCERR_XR_SELF, nch->line, nch->pos, in post_MR()
566 "MR %s %s", nch->string, nch->next->string); in post_MR()
567 if ((nch = nch->next->next) == NULL || nch->next == NULL) in post_MR()
570 mandoc_msg(MANDOCERR_ARG_EXCESS, nch->next->line, nch->next->pos, in post_MR()
571 "MR ... %s", nch->next->string); in post_MR()
[all …]
Dmdoc_state.c209 struct roff_node *nch; in setsec() local
212 for (nch = n->child; nch != NULL; nch = nch->next) in setsec()
213 setsec(nch, sec); in setsec()
Dhtml.c365 const struct roff_node *nch; in html_make_id() local
380 for (nch = n->child; nch != NULL; nch = nch->next) in html_make_id()
381 if (nch->type != ROFFT_TEXT) in html_make_id()
809 struct roff_node *nch; in print_otag_id() local
824 if (href != NULL && (nch = n->child) != NULL) { in print_otag_id()
828 nch = NULL; in print_otag_id()
830 while (nch != NULL && nch->type == ROFFT_TEXT) in print_otag_id()
831 nch = nch->next; in print_otag_id()
832 if (nch == NULL) in print_otag_id()
Dmdoc_markdown.c1400 const struct roff_node *nch; in md_pre_Mt() local
1404 for (nch = n->child; nch != NULL; nch = nch->next) in md_pre_Mt()
1405 md_word(nch->string); in md_pre_Mt()
1408 for (nch = n->child; nch != NULL; nch = nch->next) { in md_pre_Mt()
1409 md_uri(nch->string); in md_pre_Mt()
1410 if (nch->next != NULL) { in md_pre_Mt()
/openbsd/src/usr.bin/aucat/
Ddsp.c375 unsigned int nch; in resamp_do() local
401 nch = p->nch; in resamp_do()
417 for (c = nch; c > 0; c--) { in resamp_do()
427 for (c = 0; c < nch; c++) in resamp_do()
440 for (c = 0; c < nch; c++) { in resamp_do()
448 for (c = 0; c < nch; c++) { in resamp_do()
504 unsigned int oblksz, int nch) in resamp_init() argument
526 p->nch = nch; in resamp_init()
578 for (f = todo * p->nch; f > 0; f--) { in enc_do()
631 for (f = todo * p->nch; f > 0; f--) { in enc_sil_do()
[all …]
Daucat.c148 allocbuf(int nfr, int nch, int bps) in allocbuf() argument
153 if (nch < 0 || nch > NCHAN_MAX || bps < 0 || bps > 4) { in allocbuf()
157 fsize = nch * bps; in allocbuf()
210 s->afile.nch, s->imin, s->imax, s->omin, s->omax, in slot_fmt()
269 int imin, int imax, int omin, int omax, int nch, in slot_new() argument
278 par, rate, nch)) { in slot_new()
283 s->imax = (imax != -1) ? imax : s->imin + s->afile.nch - 1; in slot_new()
285 s->omax = (omax != -1) ? omax : s->omin + s->afile.nch - 1; in slot_new()
312 s->bpf = s->afile.par.bps * s->afile.nch; in slot_init()
344 0, s->afile.nch - 1, s->imin, s->imax, in slot_init()
[all …]
Dafile.c57 le16_t nch; member
91 be16_t nch; member
129 be32_t nch; member
251 if (f->nch == 0 || f->nch > NCHAN_MAX) { in afile_checkpar()
252 logx(1, "%s: %u: unsupported number of channels", f->path, f->nch); in afile_checkpar()
306 f->nch = le16_get(&fmt.nch); in afile_wav_readfmt()
408 le16_set(&hdr.fmt.nch, f->nch); in afile_wav_writehdr()
410 le32_set(&hdr.fmt.byterate, f->rate * f->par.bps * f->nch); in afile_wav_writehdr()
411 le16_set(&hdr.fmt.blkalign, f->par.bps * f->nch); in afile_wav_writehdr()
441 f->nch = be16_get(&comm.base.nch); in afile_aiff_readcomm()
[all …]
Ddsp.h89 int nch; member
99 int nch; member
107 int nch; member
Dafile.h31 int nch; /* file channel count */ member
/openbsd/src/usr.bin/sndiod/
Ddsp.c306 unsigned int nch; in resamp_do() local
332 nch = p->nch; in resamp_do()
348 for (c = nch; c > 0; c--) { in resamp_do()
358 for (c = 0; c < nch; c++) in resamp_do()
371 for (c = 0; c < nch; c++) { in resamp_do()
379 for (c = 0; c < nch; c++) { in resamp_do()
435 unsigned int oblksz, int nch) in resamp_init() argument
457 p->nch = nch; in resamp_init()
509 for (f = todo * p->nch; f > 0; f--) { in enc_do()
562 for (f = todo * p->nch; f > 0; f--) { in enc_sil_do()
[all …]
Ddev.c440 int icount, i, offs, vol, nch; in dev_mix_badd() local
481 nch = s->mix.cmap.nch; in dev_mix_badd()
487 offs += nch; in dev_mix_badd()
493 offs += nch; in dev_mix_badd()
513 icmax = i->opt->pmin + i->mix.nch - 1; in dev_mix_adjvol()
524 jcmax = j->opt->pmin + j->mix.nch - 1; in dev_mix_adjvol()
552 int i, vol, offs, nch; in dev_sub_bcopy() local
590 nch = s->sub.cmap.nch; in dev_sub_bcopy()
596 offs += nch; in dev_sub_bcopy()
602 offs += nch; in dev_sub_bcopy()
[all …]
Ddsp.h89 int nch; member
99 int nch; member
107 int nch; member
Ddev.h67 int nch; /* number of play chans */ member
79 int nch; /* number of rec chans */ member
/openbsd/src/gnu/lib/libreadline/examples/
Drl.c80 int opt, fd, nch; local
91 fd = nch = 0;
113 nch = atoi(optarg);
114 if (nch < 0)
140 if (nch > 0)
141 rl_num_chars_to_read = nch;
/openbsd/src/usr.bin/vi/common/
Dcut.h67 #define CBNAME(sp, cbp, nch) { \ argument
69 L__name = isupper(nch) ? tolower(nch) : (nch); \
/openbsd/src/lib/libsndio/
Dsioctl_sun.c45 int nch; /* channels in the level control */ member
123 vol->nch = dev.un.v.num_channels; in initvol()
127 vol->nch, vol->mute_idx >= 0 ? "mute" : "no mute"); in initvol()
187 if (vol->level_idx >= 0 && addr >= 0 && addr < vol->nch) { in setvol()
195 ctrl.un.value.num_channels = vol->nch; in setvol()
196 for (i = 0; i < vol->nch; i++) in setvol()
208 if (vol->mute_idx >= 0 && addr >= 0 && addr < vol->nch) { in setvol()
223 for (i = 0; i < vol->nch; i++) { in setvol()
243 ctrl.un.value.num_channels = vol->nch; in scanvol()
254 for (i = 0; i < vol->nch; i++) { in scanvol()
[all …]
/openbsd/src/sys/dev/usb/
Duaudio.c231 unsigned int nch; member
296 int bps, bits, nch; /* audio encoding */ member
1214 if (!uaudio_getnum(p, 1, &u->nch)) in uaudio_process_nch()
1300 u->nch = 0; in uaudio_process_unit()
1347 if (!uaudio_getnum(&p, 1, &u->nch)) in uaudio_process_unit()
1351 u->id, u->nch, u->term, assoc); in uaudio_process_unit()
1377 u->nch = s->nch; in uaudio_process_unit()
1380 u->id, id, u->nch, u->term, assoc); in uaudio_process_unit()
1387 DPRINTF("%02u: mixer, nch = %u:\n", u->id, u->nch); in uaudio_process_unit()
1401 for (i = 0; i < s->nch; i++) { in uaudio_process_unit()
[all …]
/openbsd/src/sys/dev/pv/
Dhyperv.c1033 struct hv_channel *ch, *nch; in hv_process_offer() local
1035 nch = malloc(sizeof(*nch), M_DEVBUF, M_ZERO | M_NOWAIT); in hv_process_offer()
1036 if (nch == NULL) { in hv_process_offer()
1041 nch->ch_sc = sc; in hv_process_offer()
1042 hv_guid_sprint(&co->co_chan.chm_chtype, nch->ch_ident, in hv_process_offer()
1043 sizeof(nch->ch_ident)); in hv_process_offer()
1050 nch->ch_flags |= CHF_BATCHED; in hv_process_offer()
1052 KASSERT((((vaddr_t)&nch->ch_monprm) & 0x7) == 0); in hv_process_offer()
1053 memset(&nch->ch_monprm, 0, sizeof(nch->ch_monprm)); in hv_process_offer()
1054 nch->ch_monprm.mp_connid = VMBUS_CONNID_EVENT; in hv_process_offer()
[all …]
/openbsd/src/usr.bin/less/
Ddecode.c712 int nch; in editchar() local
732 nch = 0; in editchar()
734 if (nch > 0) in editchar()
736 usercmd[nch] = (char)c; in editchar()
737 usercmd[nch+1] = '\0'; in editchar()
738 nch++; in editchar()
782 while (nch > 1) { in editchar()
783 ungetcc(usercmd[--nch]); in editchar()
/openbsd/src/gnu/llvm/clang/include/clang/Basic/
DBuiltinsX86_64.def27 TARGET_HEADER_BUILTIN(__mulh, "LLiLLiLLi", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
28 TARGET_HEADER_BUILTIN(__umulh, "ULLiULLiULLi", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
29 TARGET_HEADER_BUILTIN(_mul128, "LLiLLiLLiLLi*", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
30 TARGET_HEADER_BUILTIN(_umul128, "ULLiULLiULLiULLi*", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
33 TARGET_HEADER_BUILTIN(__shiftleft128, "ULLiULLiULLiUc", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
34 TARGET_HEADER_BUILTIN(__shiftright128, "ULLiULLiULLiUc", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
/openbsd/src/lib/libc/net/
Dres_comp.c352 int nch = *dn++; in __res_hnok() local
359 } else if (periodchar(nch) || nch == '\0') { in __res_hnok()
366 pch = ch, ch = nch; in __res_hnok()
/openbsd/src/usr.bin/vi/ex/
Dex_write.c268 u_long *nch, int silent) in ex_writefp() argument
283 *nch = 0; in ex_writefp()
357 *nch = ccnt; in ex_writefp()
/openbsd/src/sbin/sysctl/
Dsysctl.c1805 static struct nchstats nch; in sysctl_nchstats() local
1811 bzero(&nch, sizeof(struct nchstats)); in sysctl_nchstats()
1824 if (sysctl(mib, 2, &nch, &size, NULL, 0) == -1) in sysctl_nchstats()
1832 (void)printf("%llu\n", nch.ncs_goodhits); in sysctl_nchstats()
1835 (void)printf("%llu\n", nch.ncs_neghits); in sysctl_nchstats()
1838 (void)printf("%llu\n", nch.ncs_badhits); in sysctl_nchstats()
1841 (void)printf("%llu\n", nch.ncs_falsehits); in sysctl_nchstats()
1844 (void)printf("%llu\n", nch.ncs_miss); in sysctl_nchstats()
1847 (void)printf("%llu\n", nch.ncs_long); in sysctl_nchstats()
1850 (void)printf("%llu\n", nch.ncs_pass2); in sysctl_nchstats()
[all …]

12