Searched refs:ch (Results 251 - 275 of 1408) sorted by relevance

<<11121314151617181920>>

/freebsd-10-stable/contrib/ntp/libparse/
H A Dclk_schmid.c7 * based on information and testing from Adam W. Feigin et. al (Swisstime iis.ethz.ch)
59 * Description courtesy of Adam W. Feigin et. al (Swisstime iis.ethz.ch)
202 char ch,
208 parseprintf(DD_PARSE, ("inp_schmid(0x%p, 0x%x, ...)\n", (void*)parseio, ch));
210 switch ((uint8_t)ch)
214 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP)
220 return parse_addchar(parseio, ch);
200 inp_schmid( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
H A Dclk_rcc8000.c138 char ch,
144 parseprintf(DD_PARSE, ("inp_rcc8000(0x%p, 0x%x, ...)\n", (void*)parseio, ch));
146 switch (ch)
150 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP)
161 return parse_addchar(parseio, ch);
136 inp_rcc8000( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
H A Dclk_trimtaip.c152 char ch,
158 parseprintf(DD_PARSE, ("inp_trimtaip(0x%p, 0x%x, ...)\n", (void*)parseio, ch));
160 switch (ch)
166 parseio->parse_data[0] = ch;
172 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP)
179 return parse_addchar(parseio, ch);
150 inp_trimtaip( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
/freebsd-10-stable/usr.sbin/bhyve/
H A Ddbgport.c61 char ch; local
92 nread = read(conn_fd, &ch, 1);
96 *eax = ch;
103 ch = *eax;
104 nwritten = write(conn_fd, &ch, 1);
/freebsd-10-stable/sys/dev/sound/pcm/
H A Dsound.c156 struct pcm_channel *c, *ch, *nch; local
185 ch = NULL;
197 ch = c;
214 ch = c;
220 if (ch == NULL)
222 ch->flags |= CHN_F_BUSY;
225 err = vchan_create(ch, num);
234 ch->flags &= ~CHN_F_BUSY;
235 CHN_UNLOCK(ch);
251 CHN_FOREACH_SAFE(ch,
278 pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction, pid_t pid, char *comm, int devunit) argument
486 struct pcm_channel *ch; local
598 pcm_chn_destroy(struct pcm_channel *ch) argument
620 pcm_chn_add(struct snddev_info *d, struct pcm_channel *ch) argument
652 pcm_chn_remove(struct snddev_info *d, struct pcm_channel *ch) argument
697 struct pcm_channel *ch; local
726 struct pcm_channel *ch; local
1138 struct pcm_channel *ch; local
[all...]
/freebsd-10-stable/libexec/comsat/
H A Dcomsat.c221 unsigned char *cp, ch; local
260 for (cp = line; (ch = *cp) && ch != '\n'; ++cp, --charcnt) {
264 if (((ch & 0x80) && ch < 0xA0) ||
265 (!(ch & 0x80) && !isprint(ch) &&
266 !isspace(ch) && ch != '\a' && ch !
[all...]
/freebsd-10-stable/sys/dev/ata/chipsets/
H A Data-acard.c113 struct ata_channel *ch = device_get_softc(dev); local
119 ch->hw.status = ata_acard_status;
120 ch->flags |= ATA_NO_ATAPI_DMA;
127 struct ata_channel *ch = device_get_softc(dev); local
129 if (ch->dma.flags & ATA_DMA_ACTIVE) {
130 int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK;
135 ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR);
137 ATA_IDX_OUTB(ch, ATA_BMCMD_PORT,
138 ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_START_STOP);
141 if (ATA_IDX_INB(ch, ATA_ALTSTA
154 struct ata_channel *ch = device_get_softc(dev); local
178 struct ata_channel *ch = device_get_softc(dev); local
[all...]
/freebsd-10-stable/contrib/gdb/gdb/
H A Docd.c748 int ch;
750 ch = serial_readchar (ocd_desc, timeout);
752 switch (ch)
760 return ch;
809 int ch;
815 ch = readchar (timeout);
817 if (ch < 0)
818 error ("ocd_get_packet (readchar): %d", ch);
820 if (ch != 0x55)
821 error ("ocd_get_packet (readchar): %d", ch);
739 int ch; local
800 int ch; local
[all...]
/freebsd-10-stable/usr.sbin/config/
H A Dmain.c110 int ch, len; local
119 while ((ch = getopt(argc, argv, "CI:d:gmpVx:")) != -1)
120 switch (ch) {
293 int ch; local
298 while ((ch = getc(fp)) != EOF)
299 if (ch != ' ' && ch != '\t')
301 if (ch == EOF)
303 if (ch == '\\'){
307 if (ch
343 int ch; local
[all...]
/freebsd-10-stable/lib/libedit/
H A Dkey.c72 char ch; /* single character of key */ member in struct:key_node_t
164 * Looks up *ch in map and then reads characters until a
168 * The last character read is returned in *ch.
171 key_get(EditLine *el, char *ch, key_value_t *val) argument
174 return (node_trav(el, el->el_key.map, ch, val));
272 node_trav(EditLine *el, key_node_t *ptr, char *ch, key_value_t *val) argument
275 if (ptr->ch == *ch) {
279 if (el_getc(el, ch) != 1) { /* if EOF or error */
284 return (node_trav(el, ptr->next, ch, va
451 node__get(int ch) argument
620 key__decode_char(char *buf, size_t cnt, size_t off, int ch) argument
[all...]
/freebsd-10-stable/usr.sbin/lpr/chkprintcap/
H A Dskimprintcap.c78 char *ch, *curline, *endfield, *lastchar; local
149 ch = curline;
150 while ((ch <= lastchar) && (*ch != ':') && (*ch != '|'))
151 ch++;
152 ch--; /* last char of queue name */
154 if ((ch - curline) > QENTRY_MAXLEN) {
159 strncat(skim_entryname, curline, (ch - curline
/freebsd-10-stable/crypto/openssh/openbsd-compat/
H A Dbsd-snprintf.c182 char ch; local
199 ch = *format++;
202 if (ch == '\0')
207 if (ch == '%')
210 DOPR_OUTCH(buffer, currlen, maxlen, ch);
211 ch = *format++;
214 switch (ch) {
217 ch = *format++;
221 ch = *format++;
225 ch
[all...]
/freebsd-10-stable/tools/regression/sockets/kqueue/
H A Dkqueue.c109 char ch; local
134 ch = 'a';
135 len = write(fd[1], &ch, sizeof(ch));
139 if (len != sizeof(ch))
160 len = read(fd[0], &ch, sizeof(ch));
164 if (len != sizeof(ch))
194 char ch; local
219 ch
[all...]
/freebsd-10-stable/contrib/dialog/
H A Dtailbox.c49 int j, tmpint, ch; local
52 if (((ch = getc(fp)) == EOF) && !feof(fp))
54 else if (!feof(fp) && (ch != '\n')) {
55 if ((ch == TAB) && (dialog_vars.tab_correct)) {
65 obj->line[col] = (char) ch;
71 } while (!feof(fp) && (ch != '\n'));
223 handle_my_getc(DIALOG_CALLBACK * cb, int ch, int fkey, int *result) argument
228 if (!fkey && dlg_char_to_button(ch, obj->buttons) == 0) {
229 ch = DLGK_ENTER;
234 switch (ch) {
379 int ch; local
[all...]
H A Dui_getc.c224 dlg_getc_callbacks(int ch, int fkey, int *result) argument
234 if (!(p->handle_getc(p, ch, fkey, result))) {
337 int ch; local
351 ch = ERR;
357 ch = *fkey = my_wchar;
367 ch = (int) CharOf(last_getc_bytes[used_last_getc++]);
371 ch = ERR;
378 ch = (int) CharOf(last_getc_bytes[used_last_getc++]);
381 ch = wgetch(win);
382 last_getc = ch;
430 int ch = ERR; local
[all...]
/freebsd-10-stable/crypto/openssl/crypto/bio/
H A Db_print.c174 char ch; local
188 ch = *format++;
191 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen))
196 if (ch == '%')
199 if(!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch))
201 ch = *format++;
204 switch (ch) {
207 ch = *format++;
211 ch = *format++;
215 ch
[all...]
/freebsd-10-stable/tests/sys/file/
H A Dftruncate_test.c67 char ch; local
105 size = pread(fd, &ch, sizeof(ch), len - 1);
108 if (size != sizeof(ch))
111 if (ch != 0)
113 "pread length %jd size %jd ch %d up",
114 (intmax_t)len, (intmax_t)size, ch);
/freebsd-10-stable/sys/powerpc/mambo/
H A Dmambo_console.c164 int ch; local
166 ch = mambocall(MAMBO_CONSOLE_READ);
168 if (ch > 0 && ch < 0xff) {
170 kdb_alt_break(ch, &alt_break_state);
172 return (ch);
/freebsd-10-stable/contrib/nvi/vi/
H A Dvs_line.c53 ARG_CHAR_T ch = '\0'; local
176 ch = '$';
180 ch = '~';
185 ch = '$';
187 KEY_NAME(sp, ch), KEY_LEN(sp, ch));
266 chlen = (ch = *p++) == '\t' && !list_tab ?
267 TAB_OFF(scno) : KEY_COL(sp, ch);
293 chlen = (ch = *p++) == '\t' && !list_tab ?
294 TAB_OFF(scno) : KEY_COL(sp, ch);
[all...]
/freebsd-10-stable/sys/dev/sound/isa/
H A Dess.c125 static int ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len);
126 static int ess_start(struct ess_chinfo *ch);
127 static int ess_stop(struct ess_chinfo *ch);
461 ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len) argument
473 if (ch == 1) {
502 } else if (ch == 2) {
524 ess_start(struct ess_chinfo *ch) argument
526 struct ess_info *sc = ch->parent;
527 int play = (ch->dir == PCMDIR_PLAY)? 1 : 0;
530 ess_setupch(sc, ch
543 ess_stop(struct ess_chinfo *ch) argument
566 struct ess_chinfo *ch = (dir == PCMDIR_PLAY)? &sc->pch : &sc->rch; local
584 struct ess_chinfo *ch = data; local
593 struct ess_chinfo *ch = data; local
607 struct ess_chinfo *ch = data; local
616 struct ess_chinfo *ch = data; local
640 struct ess_chinfo *ch = data; local
648 struct ess_chinfo *ch = data; local
[all...]
H A Dsb16.c572 struct sb_chinfo *ch; local
622 ch = &sb->pch;
623 if (ch->run) {
624 l = ch->blksz;
625 if (ch->fmt & AFMT_16BIT)
630 RANGE(ch->spd, 5000, 45000);
632 sb_cmd(sb, ch->spd >> 8);
633 sb_cmd(sb, ch->spd & 0xff);
637 v |= (ch->fmt & AFMT_16BIT)? DSP_DMA16 : DSP_DMA8;
640 v = (AFMT_CHANNEL(ch
681 struct sb_chinfo *ch = (dir == PCMDIR_PLAY)? &sb->pch : &sb->rch; local
697 struct sb_chinfo *ch = data; local
710 struct sb_chinfo *ch = data; local
719 struct sb_chinfo *ch = data; local
728 struct sb_chinfo *ch = data; local
747 struct sb_chinfo *ch = data; local
755 struct sb_chinfo *ch = data; local
767 struct sb_chinfo *ch = data; local
[all...]
/freebsd-10-stable/usr.bin/wall/
H A Dwall.c100 int ch; local
110 while ((ch = getopt(argc, argv, "g:n")) != -1)
111 switch (ch) {
190 wchar_t ch; local
248 for (p = lbuf; (ch = *p) != L'\0'; ++p, ++cnt) {
249 if (ch == L'\r') {
253 } else if (ch == L'\n') {
265 if (iswprint(ch) || iswspace(ch) || ch
[all...]
/freebsd-10-stable/contrib/ncurses/ncurses/base/
H A DMKlib_gen.sh264 ch = $i;
265 if ( ch == "*" )
267 else if ( ch == "va_list" )
269 else if ( ch == "..." )
271 else if ( ch == "char" )
273 else if ( ch == "int" )
275 else if ( ch == "short" )
277 else if ( ch == "chtype" )
279 else if ( ch == "attr_t" || ch
[all...]
/freebsd-10-stable/contrib/top/
H A Dutils.c197 register int ch; local
210 while ((ch = *from++) != '\0')
213 if (ch == ' ' && lastch != ' ')
217 lastch = ch;
243 while ((ch = *from++) != '\0')
245 if (ch != ' ')
253 *to++ = ch;
255 lastch = ch;
/freebsd-10-stable/sys/boot/ofw/libofw/
H A Dofw_net.c153 char *ch = pkt; local
157 printf("%02x%02x%02x%02x ", ch[i], ch[i+1],
158 ch[i+2], ch[i+3]);
184 char *ch; local
188 if ((ch = strchr(path, ':')) != NULL)
189 *ch = '\0';

Completed in 310 milliseconds

<<11121314151617181920>>