/freebsd-10-stable/sys/dev/ata/ |
H A D | ata-cbus.c | 210 struct ata_channel *ch = device_get_softc(child); local 214 retval += printf(" at bank %d", ch->unit); 223 struct ata_channel *ch; local 227 if (!(ch = ctlr->interrupt[unit].argument)) 229 ctlr->interrupt[unit].function(ch); 272 struct ata_channel *ch = device_get_softc(dev); local 275 if (ch->attached) 277 ch->attached = 1; 279 ch->unit = (intptr_t)device_get_ivars(dev); 282 ch 300 struct ata_channel *ch = device_get_softc(dev); local 312 struct ata_channel *ch = device_get_softc(dev); local 323 struct ata_channel *ch = device_get_softc(dev); local [all...] |
H A D | ata-pci.c | 396 struct ata_channel *ch = device_get_softc(dev); local 413 ch->r_io[i].res = io; 414 ch->r_io[i].offset = i; 416 ch->r_io[ATA_CONTROL].res = ctlio; 417 ch->r_io[ATA_CONTROL].offset = ctlr->legacy ? 0 : 2; 418 ch->r_io[ATA_IDX_ADDR].res = io; 422 ch->r_io[i].res = ctlr->r_res1; 423 ch->r_io[i].offset = (i - ATA_BMCMD_PORT) + (ch->unit*ATA_BMIOSIZE); 434 struct ata_channel *ch local 451 struct ata_channel *ch = device_get_softc(dev); local 474 struct ata_channel *ch = device_get_softc(dev); local 483 struct ata_channel *ch = device_get_softc(request->parent); local 501 struct ata_channel *ch = device_get_softc(request->parent); local 517 struct ata_channel *ch = device_get_softc(dev); local 533 struct ata_channel *ch = device_get_softc(dev); local 632 struct ata_channel *ch = device_get_softc(dev); local 655 struct ata_channel *ch = device_get_softc(dev); local 674 struct ata_channel *ch = device_get_softc(dev); local 693 struct ata_channel *ch = device_get_softc(dev); local 709 struct ata_channel *ch = device_get_softc(dev); local 737 struct ata_channel *ch = device_get_softc(dev); local 795 struct ata_channel *ch; local [all...] |
/freebsd-10-stable/usr.sbin/bootparamd/bootparamd/ |
H A D | bootparamd.c | 200 int ch, pch, fid_len, res = 0; local 247 pch = ch = getc(bpf); 248 while ( ! ( ch == '\n' && pch != '\\') && ch != EOF) { 249 pch = ch; ch = getc(bpf); 261 ch = getc(bpf); /* and a character */ 270 while (isspace(ch) && ch != '\n') ch 299 int ch, pch; local [all...] |
/freebsd-10-stable/sys/dev/sound/isa/ |
H A D | sb8.c | 102 static int sb_speed(struct sb_chinfo *ch); 103 static int sb_start(struct sb_chinfo *ch); 104 static int sb_stop(struct sb_chinfo *ch); 499 sb_speed(struct sb_chinfo *ch) argument 501 struct sb_info *sb = ch->parent; 502 int play = (ch->dir == PCMDIR_PLAY)? 1 : 0; 503 int stereo = (AFMT_CHANNEL(ch->fmt) > 1)? 1 : 0; 518 speed = ch->spd; 534 ch->spd = speed; 540 sb_start(struct sb_chinfo *ch) argument 569 sb_stop(struct sb_chinfo *ch) argument 600 struct sb_chinfo *ch = (dir == PCMDIR_PLAY)? &sb->pch : &sb->rch; local 615 struct sb_chinfo *ch = data; local 624 struct sb_chinfo *ch = data; local 633 struct sb_chinfo *ch = data; local 642 struct sb_chinfo *ch = data; local 658 struct sb_chinfo *ch = data; local 666 struct sb_chinfo *ch = data; local [all...] |
/freebsd-10-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_table.c | 139 ipfw_add_table_entry(struct ip_fw_chain *ch, uint16_t tbl, void *paddr, argument 173 rnh_ptr = &ch->tables[tbl]; 194 rnh_ptr = &ch->xtables[tbl]; 230 rnh_ptr = &ch->xtables[tbl]; 240 IPFW_WLOCK(ch); 243 if ((ch->tabletype[tbl] != 0) && (ch->tabletype[tbl] != type)) { 244 IPFW_WUNLOCK(ch); 251 IPFW_WUNLOCK(ch); 258 IPFW_WLOCK(ch); 291 ipfw_del_table_entry(struct ip_fw_chain *ch, uint16_t tbl, void *paddr, uint8_t plen, uint8_t mlen, uint8_t type) argument 409 ipfw_flush_table(struct ip_fw_chain *ch, uint16_t tbl) argument 447 ipfw_destroy_tables(struct ip_fw_chain *ch) argument 462 ipfw_init_tables(struct ip_fw_chain *ch) argument 472 ipfw_resize_tables(struct ip_fw_chain *ch, unsigned int ntables) argument 534 ipfw_lookup_table(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr, uint32_t *val) argument 556 ipfw_lookup_table_extended(struct ip_fw_chain *ch, uint16_t tbl, void *paddr, uint32_t *val, int type) argument 605 ipfw_count_table(struct ip_fw_chain *ch, uint32_t tbl, uint32_t *cnt) argument 640 ipfw_dump_table(struct ip_fw_chain *ch, ipfw_table *tbl) argument 663 ipfw_count_xtable(struct ip_fw_chain *ch, uint32_t tbl, uint32_t *cnt) argument 750 ipfw_dump_xtable(struct ip_fw_chain *ch, ipfw_xtable *tbl) argument [all...] |
/freebsd-10-stable/contrib/less/ |
H A D | line.c | 52 static int do_append LESSPARAMS ((LWCHAR ch, char *rep, POSITION pos)); 149 is_ascii_char(ch) 150 LWCHAR ch; 152 return (ch <= 0x7F); 180 set_linebuf(n, ch, a) 182 LWCHAR ch; 185 linebuf[n] = ch; 193 add_linebuf(ch, a, w) 194 LWCHAR ch; 198 set_linebuf(curr++, ch, 326 LWCHAR ch; local 526 LWCHAR ch = step_char(&p, -1, linebuf + lmargin); local 560 LWCHAR ch = step_char(&p, -1, linebuf); local [all...] |
/freebsd-10-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | config_file.c | 173 int ch = 0; 176 SVN_ERR(parser_getc(ctx, &ch)); 177 while (svn_ctype_isspace(ch) && ch != '\n' && ch != EOF) 180 SVN_ERR(parser_getc_plain(ctx, &ch)); 183 *c = ch; 193 int ch; 195 SVN_ERR(parser_getc(ctx, &ch)); 196 while (ch ! 171 int ch = 0; local 191 int ch; local 223 int ch; local 253 int ch; local 338 int ch; local 381 int ch; local 578 int ch, count; local [all...] |
/freebsd-10-stable/sys/dev/ata/chipsets/ |
H A D | ata-acerlabs.c | 196 struct ata_channel *ch = device_get_softc(dev); local 203 ch->flags |= ATA_CHECKS_CABLE; 206 ch->flags |= ATA_NO_48BIT_DMA; 207 if (ch->dma.max_iosize > 256 * 512) 208 ch->dma.max_iosize = 256 * 512; 211 ch->flags |= ATA_NO_ATAPI_DMA; 221 struct ata_channel *ch = device_get_softc(dev); local 224 int unit01 = (ch->unit & 1), unit10 = (ch->unit & 2); 237 ch 262 struct ata_channel *ch = device_get_softc(dev); local 296 struct ata_channel *ch = device_get_softc(dev); local [all...] |
/freebsd-10-stable/contrib/unbound/sldns/ |
H A D | parseutil.c | 187 sldns_hexdigit_to_int(char ch) argument 189 switch (ch) { 458 char ch = '\0'; local 467 ch = *src++; 470 } while (isspace((unsigned char)ch) && src_sz > 0); 472 if (ch == '=' || ch == '\0') 477 if (ch >= '0' && ch <= '9') 478 buf[i] = (uint8_t)ch [all...] |
/freebsd-10-stable/contrib/ntp/sntp/libopts/ |
H A D | putshell.c | 75 char ch = *(scan++); local 76 if ((ch >= ' ') && (ch <= '~')) { 81 res_ln += ((ch == '"') || (ch == '\\')) ? 2 : 1; 88 else switch (ch) { 137 unsigned char ch = (unsigned char)*text; local 138 if ((ch >= ' ') && (ch <= '~')) { 139 if ((ch 308 int ch = *(pz++); local [all...] |
/freebsd-10-stable/contrib/groff/src/preproc/html/ |
H A D | pushback.h | 45 char putPB (char ch);
|
/freebsd-10-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | add_tries.c | 44 #define SET_TRY(dst,src) if ((dst->ch = *src++) == 128) dst->ch = '\0' 63 while (!CMP_TRY(ptr->ch, cmp) 67 if (CMP_TRY(ptr->ch, cmp)) {
|
/freebsd-10-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_readlinev.c | 57 int ch, serrno, wordvlen; local 93 ch = fgetc(f); 94 /* assert(ch == EOF || ch == '\n') */ 95 if (ch == EOF && wordvlen == 0) { 99 if (ch == '\n' && lineno != NULL)
|
/freebsd-10-stable/tools/regression/netinet/tcpdrop/ |
H A D | tcpdrop.c | 75 char ch; local 90 ch = 'A'; 91 len = send(accept_fd, &ch, sizeof(ch), MSG_NOSIGNAL); 98 if (len != sizeof(ch)) { 105 ch = 'A'; 106 len = send(accept_fd, &ch, sizeof(ch), MSG_NOSIGNAL); 128 char ch; local 166 ch [all...] |
/freebsd-10-stable/usr.bin/c99/ |
H A D | c99.c | 56 int ch, i; local 61 while ((ch = getopt(argc, argv, "cD:EgI:L:o:O:sU:l:")) != -1) { 62 if (ch == 'l') { 69 } else if (ch == '?')
|
/freebsd-10-stable/usr.bin/cmp/ |
H A D | link.c | 46 u_char ch; local 73 if ((ch = *p1) != *p2) { 77 (long long)byte - 1, ch, *p2); 81 (long long)byte, ch, *p2);
|
/freebsd-10-stable/usr.sbin/pkg_install/add/ |
H A D | main.c | 134 int ch, error; local 146 while ((ch = getopt_long(argc, argv, opts, longopts, NULL)) != -1) { 147 switch(ch) { 222 for (ch = 0; ch <= argc; pkgs[ch++] = NULL) ; 225 for (ch = 0; *argv; ch++, argv++) { 252 pkgs[ch] = (char *)"-"; 256 pkgs[ch] [all...] |
/freebsd-10-stable/contrib/ntp/libparse/ |
H A D | clk_varitext.c | 191 char ch, 198 parseprintf(DD_PARSE, ("inp_varitext(0x%p, 0x%x, ...)\n", (void*)parseio, ch)); 203 if (ch == 'T') 206 if ((t->previous_ch == 'T') && (ch == ':')) 220 if ((rtc = parse_addchar(parseio, ch)) != PARSE_INP_SKIP) 242 if ((t->previous_ch == '\r') && (ch == '\n')) 249 t->previous_ch = ch; 189 inp_varitext( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
|
H A D | clk_hopf6021.c | 218 char ch, 224 parseprintf(DD_PARSE, ("inp_hopf6021(0x%p, 0x%x, ...)\n", (void*)parseio, ch)); 226 switch (ch) 231 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) 237 return parse_addchar(parseio, ch); 246 unsigned char ch 251 if ((dv = ch - '0') >= 10u) 216 inp_hopf6021( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
|
/freebsd-10-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_box.c | 49 _my_render(WINDOW *win, chtype ch) argument 52 SetChar2(wch, ch); 56 #define RENDER_WITH_DEFAULT(ch,def) w ## ch = _my_render(win, (ch == 0) ? def : ch) 58 #define RENDER_WITH_DEFAULT(ch,def) w ## ch = _nc_render(win, (ch == 0) ? def : ch) [all...] |
/freebsd-10-stable/contrib/nvi/common/ |
H A D | key.c | 105 int ch; local 124 gp->special_key[kp->ch] = kp->value; 127 for (ch = 1; ch <= UCHAR_MAX; ++ch) 128 if (!isprint(ch)) { 129 gp->noprint = ch; 132 if (ch != gp->noprint) { 154 CHAR_T ch; local 158 if (sp->gp->scr_keyval(sp, name, &ch, 187 UCHAR_T ch; local 209 v_key_len( SCR *sp, ARG_CHAR_T ch) argument 231 int ch; local 333 v_key_val( SCR *sp, ARG_CHAR_T ch) argument [all...] |
/freebsd-10-stable/lib/libc/inet/ |
H A D | inet_pton.c | 83 int saw_digit, octets, ch; local 89 while ((ch = *src++) != '\0') { 92 if ((pch = strchr(digits, ch)) != NULL) { 105 } else if (ch == '.' && saw_digit) { 139 int ch, seen_xdigits; local 152 while ((ch = *src++) != '\0') { 155 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 156 pch = strchr((xdigits = xdigits_u), ch); 164 if (ch == ':') { 182 if (ch [all...] |
/freebsd-10-stable/sys/arm/freescale/imx/ |
H A D | imx6_ssi.c | 293 struct sc_chinfo *ch; local 300 ch = &scp->chan[0]; 301 ch->dir = dir; 302 ch->run = 0; 303 ch->buffer = b; 304 ch->channel = c; 305 ch->parent = scp; 308 if (sndbuf_setup(ch->buffer, sc->buf_base, sc->dma_size) != 0) { 313 return ch; 319 struct sc_chinfo *ch local 337 struct sc_chinfo *ch = data; local 348 struct sc_chinfo *ch; local 399 struct sc_chinfo *ch = data; local 415 struct sc_chinfo *ch; local 478 struct sc_chinfo *ch; local 562 struct sc_chinfo *ch; local 603 struct sc_chinfo *ch; local 658 struct sc_chinfo *ch; local [all...] |
/freebsd-10-stable/crypto/openssl/crypto/bio/ |
H A D | b_dump.c | 83 unsigned char ch; local 114 ch = ((unsigned char)*(s + i * dump_width + j)) & 0xff; 115 BIO_snprintf(tmp, sizeof tmp, "%02x%c", ch, 124 ch = ((unsigned char)*(s + i * dump_width + j)) & 0xff; 127 ((ch >= ' ') && (ch <= '~')) ? ch : '.'); 130 ((ch >= os_toascii[' ']) && (ch <= os_toascii['~'])) 131 ? os_toebcdic[ch] [all...] |
/freebsd-10-stable/sys/boot/arm/at91/bootiic/ |
H A D | env_vars.c | 54 int ch; local 57 ch = boot_commands[currentIndex][currentOffset++]; 58 if (ch == '\0' || (currentOffset >= MAX_INPUT_SIZE)) { 61 ch = '\r'; 63 return (ch);
|