/freebsd-9.3-release/sys/dev/ata/chipsets/ |
H A D | ata-acard.c | 158 struct ata_channel *ch = device_get_softc(dev); local 164 ch->hw.status = ata_acard_status; 165 ch->flags |= ATA_NO_ATAPI_DMA; 173 struct ata_channel *ch = device_get_softc(dev); local 176 ATA_LOCKING(dev, ATA_LF_WHICH) != ch->unit) 178 if (ch->dma.flags & ATA_DMA_ACTIVE) { 179 int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK; 184 ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR); 186 ATA_IDX_OUTB(ch, ATA_BMCMD_PORT, 187 ATA_IDX_INB(ch, ATA_BMCMD_POR 203 struct ata_channel *ch = device_get_softc(dev); local 227 struct ata_channel *ch = device_get_softc(dev); local 260 struct ata_channel *ch = device_get_softc(dev); local [all...] |
H A D | ata-ahci.c | 291 struct ata_channel *ch = device_get_softc(dev); local 292 int offset = ch->unit << 7; 297 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; 298 ch->r_io[ATA_SSTATUS].offset = ATA_AHCI_P_SSTS + offset; 299 ch->r_io[ATA_SERROR].res = ctlr->r_res2; 300 ch->r_io[ATA_SERROR].offset = ATA_AHCI_P_SERR + offset; 301 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2; 302 ch->r_io[ATA_SCONTROL].offset = ATA_AHCI_P_SCTL + offset; 303 ch->r_io[ATA_SACTIVE].res = ctlr->r_res2; 304 ch 323 struct ata_channel *ch = device_get_softc(dev); local 337 struct ata_channel *ch = device_get_softc(dev); local 362 struct ata_channel *ch = device_get_softc(dev); local 393 struct ata_channel *ch = device_get_softc(dev); local 451 struct ata_channel *ch = device_get_softc(request->parent); local 539 struct ata_channel *ch = device_get_softc(request->parent); local 590 struct ata_channel *ch = device_get_softc(dev); local 639 struct ata_channel *ch = device_get_softc(dev); local 684 struct ata_channel *ch = device_get_softc(dev); local 732 struct ata_channel *ch = device_get_softc(dev); local 758 struct ata_channel *ch = device_get_softc(dev); local 784 struct ata_channel *ch = device_get_softc(dev); local 806 struct ata_channel *ch = device_get_softc(dev); local 830 struct ata_channel *ch = device_get_softc(dev); local 843 struct ata_channel *ch = device_get_softc(dev); local 865 struct ata_channel *ch = device_get_softc(dev); local 886 struct ata_channel *ch = device_get_softc(dev); local 936 struct ata_channel *ch = device_get_softc(dev); local 1024 struct ata_channel *ch = device_get_softc(dev); local [all...] |
H A D | ata-via.c | 219 struct ata_channel *ch = device_get_softc(dev); local 228 rid = PCIR_BAR(ch->unit); 235 ch->r_io[i].res = r_io; 236 ch->r_io[i].offset = i; 238 ch->r_io[ATA_CONTROL].res = r_io; 239 ch->r_io[ATA_CONTROL].offset = 2 + ATA_IOSIZE; 240 ch->r_io[ATA_IDX_ADDR].res = r_io; 243 ch->r_io[i].res = ctlr->r_res1; 244 ch->r_io[i].offset = (i - ATA_BMCMD_PORT)+(ch 276 struct ata_channel *ch = device_get_softc(dev); local 301 struct ata_channel *ch = device_get_softc(dev); local 326 struct ata_channel *ch = device_get_softc(dev); local 355 struct ata_channel *ch = device_get_softc(dev); local 413 struct ata_channel *ch = device_get_softc(dev); local 433 struct ata_channel *ch = device_get_softc(dev); local 447 struct ata_channel *ch = device_get_softc(dev); local 457 struct ata_channel *ch = device_get_softc(dev); local [all...] |
/freebsd-9.3-release/usr.bin/paste/ |
H A D | paste.c | 73 int ch, rval, seq; local 81 while ((ch = getopt(argc, argv, "d:s")) != -1) 82 switch(ch) { 134 wchar_t ch; local 161 (ch = delim[(lp->cnt - 1) % delimcnt])) 162 putwchar(ch); 170 (ch = delim[(lp->cnt - 1) % delimcnt])) 171 putwchar(ch); 181 if ((ch = delim[cnt % delimcnt])) 182 putwchar(ch); 203 wint_t ch; local 242 wchar_t ch, *p; local [all...] |
/freebsd-9.3-release/usr.bin/tr/ |
H A D | cset.c | 69 cset_add(struct cset *cs, wchar_t ch) argument 84 csn->csn_min = csn->csn_max = ch; 93 csn = cs->cs_root = cset_splay(cs->cs_root, ch); 98 if (cset_rangecmp(csn, ch) == 0) 107 ncsn->csn_min = ncsn->csn_max = ch; 108 if (cset_rangecmp(csn, ch) < 0) { 151 cset_in_hard(struct cset *cs, wchar_t ch) argument 156 if (csc->csc_invert ^ iswctype(ch, csc->csc_type) != 0) 159 cs->cs_root = cset_splay(cs->cs_root, ch); 160 return (cs->cs_invert ^ cset_rangecmp(cs->cs_root, ch) 214 cset_rangecmp(struct csnode *t, wchar_t ch) argument 225 cset_splay(struct csnode *t, wchar_t ch) argument 275 cset_delete(struct csnode *t, wchar_t ch) argument [all...] |
/freebsd-9.3-release/sys/dev/scc/ |
H A D | scc_dev_quicc.c | 88 quicc_bfe_enabled(struct scc_softc *sc, struct scc_chan *ch) argument 95 unit = ch->ch_nr - 1; 104 quicc_bfe_iclear(struct scc_softc *sc, struct scc_chan *ch) argument 111 if (ch->ch_ipend & SER_INT_RXREADY) { 112 rb = quicc_read2(bas, QUICC_PRAM_SCC_RBASE(ch->ch_nr - 1)); 125 struct scc_chan *ch; local 132 ch = &sc->sc_chan[c]; 133 if (!ch->ch_enabled) 135 ch->ch_ipend = 0; 141 ch [all...] |
/freebsd-9.3-release/contrib/bmake/ |
H A D | for.c | 154 unsigned char ch; 235 while ((ch = *ptr++)) { 236 switch(ch) { 333 char ch, var_start, var_end; 351 for (len = 1; (ch = var[len++]) != 0;) { 352 if (ch == var_start) 354 else if (ch == var_end && --depth == 0) 367 char ch; 378 while ((ch = *item++) != 0) { 379 if (ch 153 unsigned char ch; local 331 char ch, var_start, var_end; local 365 char ch; local 400 char ch; local [all...] |
/freebsd-9.3-release/contrib/ofed/management/infiniband-diags/src/ |
H A D | grouping.c | 287 ChassisRecord *ch = node->chrecord; local 289 ch->chassisslot = SPINE_CS; 291 ch->chassistype = ISR9096_CT; 292 ch->slotnum = spine4_slot_2_slb[lineport->portnum]; 293 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum]; 295 ch->chassistype = ISR9288_CT; 296 ch->slotnum = spine12_slot_2_slb[lineport->portnum]; 297 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum]; 299 ch->chassistype = ISR2012_CT; 300 ch 313 ChassisRecord *ch = node->chrecord; local 354 get_slb_slot(ChassisRecord *ch, Port *spineport) argument 387 ChassisRecord *ch = 0; local 652 ChassisRecord *ch = port->node->chrecord; local [all...] |
/freebsd-9.3-release/usr.bin/dc/ |
H A D | inout.c | 128 int i, ch; local 132 ch = src_getcharstring(src); 133 if (ch == EOF) 135 buf[i++] = ch; 136 if (ch == '\n') 159 putcharwrap(FILE *f, int ch) argument 170 lastchar = ch; 191 int ch; local 197 while ((ch = (*src->vtable->readchar)(src)) != EOF) { 199 if ('0' <= ch 240 int count, ch, i, new_sz, sz; local 400 int ch, i, numbits; local [all...] |
/freebsd-9.3-release/contrib/nvi/common/ |
H A D | gs.h | 118 #define KEY_LEN(sp, ch) \ 119 ((unsigned char)(ch) <= MAX_FAST_KEY ? \ 120 sp->gp->cname[(unsigned char)ch].len : v_key_len(sp, ch)) 121 #define KEY_NAME(sp, ch) \ 122 ((unsigned char)(ch) <= MAX_FAST_KEY ? \ 123 sp->gp->cname[(unsigned char)ch].name : v_key_name(sp, ch)) 129 #define KEY_VAL(sp, ch) \ 130 ((unsigned char)(ch) < [all...] |
/freebsd-9.3-release/usr.sbin/pkg_install/lib/ |
H A D | version.c | 62 char *ch; local 70 ch = strrchr(pkgname, '-'); 72 versionstr = ch ? ch + 1 : pkgname; 75 ch = strrchr(versionstr, '_'); 77 *revision = ch ? strtoul(ch + 1, NULL, 10) : 0; 79 endversionstr = ch; 82 ch = strrchr(endversionstr ? endversionstr + 1 : versionstr, ','); 84 *epoch = ch [all...] |
/freebsd-9.3-release/sys/dev/sound/pci/ |
H A D | ds1.c | 368 ds_initpbank(volatile struct pbank *pb, int ch, int b16, int stereo, u_int32_t rate, bus_addr_t base, u_int32_t len) argument 401 pb->Format |= (stereo && (ch == 2 || ch == 4))? 0x00000001 : 0; 417 pb->LchGain = pb->LchGainEnd = lv[ch] * 0x40000000; 418 pb->RchGain = pb->RchGainEnd = rv[ch] * 0x40000000; 419 pb->Effect1Gain = pb->Effect1GainEnd = e1[ch] * 0x40000000; 420 pb->Effect2Gain = pb->Effect2GainEnd = e2[ch] * 0x40000000; 421 pb->Effect3Gain = pb->Effect3GainEnd = e3[ch] * 0x40000000; 434 ds_setuppch(struct sc_pchinfo *ch) argument 439 stereo = (AFMT_CHANNEL(ch 452 ds_setuprch(struct sc_rchinfo *ch) argument 485 struct sc_pchinfo *ch; local 512 struct sc_pchinfo *ch = data; local 522 struct sc_pchinfo *ch = data; local 532 struct sc_pchinfo *ch = data; local 548 struct sc_pchinfo *ch = data; local 576 struct sc_pchinfo *ch = data; local 616 struct sc_rchinfo *ch; local 640 struct sc_rchinfo *ch = data; local 650 struct sc_rchinfo *ch = data; local 660 struct sc_rchinfo *ch = data; local 676 struct sc_rchinfo *ch = data; local 706 struct sc_rchinfo *ch = data; local [all...] |
H A D | solo.c | 133 static int ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len); 134 static int ess_start(struct ess_chinfo *ch); 135 static int ess_stop(struct ess_chinfo *ch); 137 static int ess_dmasetup(struct ess_info *sc, int ch, u_int32_t base, u_int16_t cnt, int dir); 138 static int ess_dmapos(struct ess_info *sc, int ch); 139 static int ess_dmatrigger(struct ess_info *sc, int ch, int go); 427 ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len) argument 440 if (ch == 1) { 474 } else if (ch == 2) { 498 ess_start(struct ess_chinfo *ch) argument 519 ess_stop(struct ess_chinfo *ch) argument 539 struct ess_chinfo *ch = (dir == PCMDIR_PLAY)? &sc->pch : &sc->rch; local 557 struct ess_chinfo *ch = data; local 566 struct ess_chinfo *ch = data; local 580 struct ess_chinfo *ch = data; local 589 struct ess_chinfo *ch = data; local 618 struct ess_chinfo *ch = data; local 631 struct ess_chinfo *ch = data; local 769 ess_dmasetup(struct ess_info *sc, int ch, u_int32_t base, u_int16_t cnt, int dir) argument 790 ess_dmapos(struct ess_info *sc, int ch) argument 822 ess_dmatrigger(struct ess_info *sc, int ch, int go) argument [all...] |
/freebsd-9.3-release/contrib/dialog/ |
H A D | dlg_keys.h | 31 #define dlg_toupper(ch) towupper((wint_t)ch) 32 #define dlg_isupper(ch) iswupper((wint_t)ch) 34 #define dlg_toupper(ch) toupper(ch) 35 #define dlg_isupper(ch) (isalpha(ch) && isupper(ch))
|
/freebsd-9.3-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-debug-uart.c | 146 char ch; local 148 ch = cvmx_uart_read_byte_with_timeout(cvmx_debug_uart, &timedout, __SHRT_MAX__); 154 if (ch != '$') 164 ch = cvmx_uart_read_byte(cvmx_debug_uart); 165 if (ch == '$') 167 if (ch == '#') 169 checksum = checksum + ch; 170 buffer[count] = ch; 175 if (ch == '#')
|
/freebsd-9.3-release/usr.sbin/lpr/filters/ |
H A D | lpf.c | 83 int ch; local 127 switch (ch = getc(p)) { 130 ch = '\n'; 160 if ((ch = getchar()) == '\1') { 165 ungetc(ch, stdin); 166 ch = '\031'; 170 if (col >= width || (!literal && ch < ' ')) { 179 *cp = ch; 200 putc(ch, o);
|
/freebsd-9.3-release/contrib/gdb/gdb/tui/ |
H A D | tui-command.c | 48 tui_dispatch_ctrl_char (unsigned int ch) argument 59 return ch; 62 unsigned int c = 0, ch_copy = ch; 73 if ((strcmp (term, "XTERM") == 0) && key_is_start_sequence (ch)) 84 return ch;
|
/freebsd-9.3-release/usr.bin/lex/ |
H A D | ccl.c | 37 void ccladd( cclp, ch ) 39 int ch; 43 check_char( ch ); 51 if ( ccltbl[ind + i] == ch ) 67 ccltbl[newpos] = ch;
|
/freebsd-9.3-release/contrib/less/ |
H A D | charset.c | 455 prutfchar(ch) 456 LWCHAR ch; 460 if (ch == ESC) 462 else if (ch < 128 && control_char(ch)) 464 if (!control_char(ch ^ 0100)) 465 SNPRINTF1(buf, sizeof(buf), "^%c", ((char) ch) ^ 0100); 467 SNPRINTF1(buf, sizeof(buf), binfmt, (char) ch); 468 } else if (is_ubin_char(ch)) 469 SNPRINTF1(buf, sizeof(buf), utfbinfmt, ch); 671 LWCHAR ch; local [all...] |
/freebsd-9.3-release/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_evnt.c | 300 ng_l2cap_l2ca_con_rsp(cmd->ch,cmd->token,cp->reason,0); 301 ng_l2cap_free_chan(cmd->ch); 305 ng_l2cap_l2ca_cfg_rsp(cmd->ch, cmd->token, cp->reason); 309 ng_l2cap_l2ca_discon_rsp(cmd->ch,cmd->token,cp->reason); 310 ng_l2cap_free_chan(cmd->ch); /* XXX free channel */ 352 ng_l2cap_chan_p ch = NULL; local 373 ch = ng_l2cap_new_chan(l2cap, con, psm); 374 if (ch == NULL) 379 ch->dcid = dcid; 382 ch 526 ng_l2cap_chan_p ch = NULL; local 813 ng_l2cap_chan_p ch = NULL; local [all...] |
/freebsd-9.3-release/sys/arm/at91/ |
H A D | at91_cfata.c | 182 struct ata_channel *ch = device_get_softc(dev); local 184 ch->unit = 0; 185 ch->flags |= ATA_USE_16BIT | ATA_NO_SLAVE; 195 struct ata_channel *ch = device_get_softc(dev); local 199 ch->r_io[i].res = sc->mem_res; 205 ch->r_io[ATA_DATA].offset = 0x00; 206 ch->r_io[ATA_FEATURE].offset = 0x01; 207 ch->r_io[ATA_COUNT].offset = 0x02; 208 ch->r_io[ATA_SECTOR].offset = 0x03; 209 ch [all...] |
/freebsd-9.3-release/crypto/openssl/fips/ |
H A D | fips_utl.h | 83 unsigned char ch; local 87 ch = in[n1++] - '0'; 89 ch = in[n1++] - 'A' + 10; 91 ch = in[n1++] - 'a' + 10; 95 out[n2++] = ch; 98 out[n2] = ch << 4; 101 ch = in[n1++] - '0'; 103 ch = in[n1++] - 'A' + 10; 105 ch = in[n1++] - 'a' + 10; 108 out[n2++] |= ch; 225 unsigned char ch; local [all...] |
/freebsd-9.3-release/bin/domainname/ |
H A D | domainname.c | 57 int ch; local 60 while ((ch = getopt(argc, argv, "")) != -1) 61 switch (ch) {
|
/freebsd-9.3-release/bin/hostname/ |
H A D | hostname.c | 57 int ch, sflag; local 61 while ((ch = getopt(argc, argv, "fs")) != -1) 62 switch (ch) {
|
/freebsd-9.3-release/bin/realpath/ |
H A D | realpath.c | 48 int ch, qflag, rval; local 51 while ((ch = getopt(argc, argv, "q")) != -1) { 52 switch (ch) {
|