/freebsd-10-stable/lib/libiconv_modules/DECHanyu/ |
H A D | citrus_dechanyu.c | 55 char ch[4]; member in struct:__anon10 173 int ch; local 187 ch = *s0++ & 0xFF; 188 if (is_singlebyte(ch)) { 190 *pwc = (wchar_t)ch; 191 *nresult = (size_t)((ch == 0) ? 0 : 1); 195 if (!is_leadbyte(ch)) 197 psenc->ch[psenc->chlen++] = ch; 200 ch 280 int ch; local [all...] |
/freebsd-10-stable/sys/dev/sound/pci/ |
H A D | hdspe-pcm.c | 83 hdspe_hw_mixer(struct sc_chinfo *ch, unsigned int dst, argument 86 struct sc_pcminfo *scp = ch->parent; 90 if (ch->dir == PCMDIR_PLAY) 101 hdspechan_setgain(struct sc_chinfo *ch) argument 104 hdspe_hw_mixer(ch, ch->lslot, ch->lslot, 105 ch->lvol * HDSPE_MAX_GAIN / 100); 106 hdspe_hw_mixer(ch, ch 143 struct sc_chinfo *ch; local 173 hdspechan_enable(struct sc_chinfo *ch, int value) argument 194 struct sc_chinfo *ch; local 243 buffer_copy(struct sc_chinfo *ch) argument 292 clean(struct sc_chinfo *ch) argument 315 struct sc_chinfo *ch; local 350 struct sc_chinfo *ch = data; local 390 struct sc_chinfo *ch = data; local 408 struct sc_chinfo *ch = data; local 428 struct sc_chinfo *ch = data; local 443 struct sc_chinfo *ch = data; local 508 struct sc_chinfo *ch = data; local 581 struct sc_chinfo *ch = data; local 619 struct sc_chinfo *ch; local [all...] |
H A D | maestro.c | 449 wp_rdapu(struct agg_info *ess, unsigned ch, u_int16_t reg) argument 451 wp_wrreg(ess, WPREG_CRAM_PTR, reg | (ch << 4)); 452 if (wp_wait_data(ess, reg | (ch << 4)) != 0) 458 wp_wrapu(struct agg_info *ess, unsigned ch, u_int16_t reg, u_int16_t data) argument 460 wp_wrreg(ess, WPREG_CRAM_PTR, reg | (ch << 4)); 461 if (wp_wait_data(ess, reg | (ch << 4)) == 0) { 550 wc_rdchctl(struct agg_info *ess, int ch) 552 return wc_rdreg(ess, ch << 3); 557 wc_wrchctl(struct agg_info *ess, int ch, u_int16_t data) argument 559 wc_wrreg(ess, ch << 844 aggch_start_dac(struct agg_chinfo *ch) argument 929 aggch_stop_dac(struct agg_chinfo *ch) argument 952 aggch_start_adc(struct agg_rchinfo *ch) argument 1039 aggch_stop_adc(struct agg_rchinfo *ch) argument 1081 aggch_feed_adc_stereo(struct agg_rchinfo *ch) argument 1121 aggch_feed_adc_mono(struct agg_rchinfo *ch) argument 1146 suppress_jitter(struct agg_chinfo *ch) argument 1163 suppress_rec_jitter(struct agg_rchinfo *ch) argument 1180 calc_timer_div(struct agg_chinfo *ch) argument 1197 calc_timer_div_rch(struct agg_rchinfo *ch) argument 1287 struct agg_chinfo *ch; local 1359 struct agg_chinfo *ch = data; local 1372 struct agg_chinfo *ch = data; local 1400 struct agg_chinfo *ch = data; local 1424 struct agg_chinfo *ch = data; local 1443 struct agg_chinfo *ch = data; local 1496 struct agg_rchinfo *ch; local 1525 struct agg_rchinfo *ch = data; local 1548 struct agg_rchinfo *ch = data; local 1572 struct agg_rchinfo *ch = sc; local 1595 struct agg_rchinfo *ch = sc; local [all...] |
/freebsd-10-stable/sys/dev/siis/ |
H A D | siis.c | 85 static int siis_sata_connect(struct siis_channel *ch); 461 struct siis_channel *ch = device_get_softc(dev); local 465 ch->dev = dev; 466 ch->unit = (intptr_t)device_get_ivars(dev); 467 ch->quirks = ctlr->quirks; 469 device_get_unit(dev), "pm_level", &ch->pm_level); 473 ch->user[i].revision = sata_rev; 474 ch->user[i].mode = 0; 475 ch->user[i].bytecount = 8192; 476 ch 551 struct siis_channel *ch = device_get_softc(dev); local 576 struct siis_channel *ch = device_get_softc(dev); local 593 struct siis_channel *ch = device_get_softc(dev); local 603 struct siis_channel *ch = device_get_softc(dev); local 617 struct siis_channel *ch = device_get_softc(dev); local 647 struct siis_channel *ch; local 666 struct siis_channel *ch = device_get_softc(dev); local 712 struct siis_channel *ch = device_get_softc(dev); local 734 struct siis_channel *ch = device_get_softc(dev); local 756 struct siis_channel *ch = device_get_softc(dev); local 774 struct siis_channel *ch = device_get_softc(dev); local 806 struct siis_channel *ch = device_get_softc(dev); local 838 struct siis_channel *ch = device_get_softc(dev); local 849 struct siis_channel *ch = device_get_softc(dev); local 952 struct siis_channel *ch = device_get_softc(dev); local 978 struct siis_channel *ch = device_get_softc(dev); local 1017 struct siis_channel *ch = device_get_softc(slot->dev); local 1059 struct siis_channel *ch = device_get_softc(dev); local 1131 struct siis_channel *ch = device_get_softc(dev); local 1152 struct siis_channel *ch = device_get_softc(dev); local 1175 struct siis_channel *ch = device_get_softc(dev); local 1214 struct siis_channel *ch = device_get_softc(dev); local 1369 struct siis_channel *ch = device_get_softc(dev); local 1446 struct siis_channel *ch = device_get_softc(dev); local 1504 struct siis_channel *ch = device_get_softc(dev); local 1525 struct siis_channel *ch = device_get_softc(dev); local 1542 struct siis_channel *ch = device_get_softc(dev); local 1562 struct siis_channel *ch = device_get_softc(dev); local 1581 struct siis_channel *ch = device_get_softc(dev); local 1688 struct siis_channel *ch = device_get_softc(dev); local 1737 siis_sata_connect(struct siis_channel *ch) argument 1800 struct siis_channel *ch; local 1981 struct siis_channel *ch = (struct siis_channel *)cam_sim_softc(sim); local [all...] |
/freebsd-10-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_ungetch.c | 60 _nc_ungetch(SCREEN *sp, int ch) argument 72 sp->_fifo[head] = ch; 73 T(("ungetch %s ok", _nc_tracechar(sp, ch))); 86 ungetch(int ch) argument 88 T((T_CALLED("ungetch(%s)"), _nc_tracechar(SP, ch))); 89 returnCode(_nc_ungetch(SP, ch));
|
H A D | lib_bkgd.c | 49 wbkgrndset(WINDOW *win, const ARG_CH_T ch) argument 51 T((T_CALLED("wbkgdset(%p,%s)"), win, _tracech_t(ch))); 55 attr_t on = AttrOf(CHDEREF(ch)); 66 if ((pair = GetPair(CHDEREF(ch))) != 0) 71 if (CharOf(CHDEREF(ch)) == L('\0')) { 72 SetChar(win->_nc_bkgd, BLANK_TEXT, AttrOf(CHDEREF(ch))); 73 if_EXT_COLORS(SetPair(win->_nc_bkgd, GetPair(CHDEREF(ch)))); 75 win->_nc_bkgd = CHDEREF(ch); 101 wbkgdset(WINDOW *win, chtype ch) argument 104 SetChar2(wch, ch); 117 wbkgrnd(WINDOW *win, const ARG_CH_T ch) argument 151 wbkgd(WINDOW *win, chtype ch) argument [all...] |
H A D | lib_getstr.c | 84 int ch; local 112 while ((ch = wgetch_events(win, evl)) != ERR) { 119 if (ch == '\n' 120 || ch == '\r' 121 || ch == KEY_DOWN 122 || ch == KEY_ENTER) { 130 if (ch == KEY_EVENT) 134 if (ch == KEY_RESIZE) 137 if (ch == erasec || ch [all...] |
/freebsd-10-stable/lib/libc/locale/ |
H A D | gb18030.c | 85 int ch, len, ocount; local 117 ch = (unsigned char)*s++; 118 if (ch <= 0x7f) { 120 wch = ch; 121 } else if (ch >= 0x81 && ch <= 0xfe) { 122 wch = ch; 125 ch = (unsigned char)*s++; 126 if ((ch >= 0x40 && ch < [all...] |
/freebsd-10-stable/lib/libutil/ |
H A D | property.c | 79 int ch = 0, blevel = 0; local 90 ch = buf[bp++]; 109 ch = buf[0]; 115 if (isspace((unsigned char)ch)) 118 else if (ch == '#' || ch == ';') { 122 else if (isalnum((unsigned char)ch) || ch == '_') { 128 hold_n[n++] = ch; 137 if (ch [all...] |
/freebsd-10-stable/sys/boot/ofw/libofw/ |
H A D | ofw_console.c | 91 unsigned char ch = '\0'; local 100 if (OF_read(stdin, &ch, 1) > 0) 101 return (ch); 109 unsigned char ch; local 114 if (OF_read(stdin, &ch, 1) > 0) { 115 saved_char = ch;
|
/freebsd-10-stable/sys/geom/label/ |
H A D | g_label_gpt.c | 59 uint32_t ch; local 64 ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str); 66 if ((ch & 0xf800) == 0xd800) { 73 if ((ch & 0x400) == 0 && (c & 0xfc00) == 0xdc00) { 74 ch = ((ch & 0x3ff) << 10) + (c & 0x3ff); 75 ch += 0x10000; 77 ch = 0xfffd; 78 } else if (ch == 0xfffe) { /* BOM (U+FEFF) swapped. */ 81 } else if (ch [all...] |
/freebsd-10-stable/usr.bin/tset/ |
H A D | wrterm.c | 54 register int ch; local 77 while ((ch = *p) != '\0' && isspace(ch)) 79 if (ch == '\0') 81 while ((ch = *p++) != '\0') 82 switch(ch) { 105 (void)putchar(ch); 106 if ((ch = *p++) == '\0') 110 (void)putchar(ch);
|
/freebsd-10-stable/sys/arm/mv/ |
H A D | mvreg.h | 236 #define SATA_EDMA_BASE(ch) (EDMA_REGISTERS_OFFSET + \ 237 ((ch) * EDMA_REGISTERS_SIZE)) 244 #define SATA_CR_COALDIS(ch) (1 << (24 + ch)) 255 #define SATA_ICR_DMADONE(ch) (1 << (ch)) 257 #define SATA_ICR_DEV(ch) (1 << (8 + ch)) 260 #define SATA_MICR_ERR(ch) (1 << (2 * ch)) [all...] |
/freebsd-10-stable/sys/dev/ata/ |
H A D | ata-sata.c | 52 struct ata_channel *ch = device_get_softc(dev); local 55 if (ata_sata_scr_read(ch, port, ATA_SERROR, &error)) 64 ata_sata_scr_write(ch, port, ATA_SERROR, error); 67 if ((error & ATA_SE_PHY_CHANGED) && (ch->pm_level == 0)) { 69 if (ata_sata_scr_read(ch, port, ATA_SSTATUS, &status)) { 78 taskqueue_enqueue(taskqueue_thread, &ch->conntask); 83 ata_sata_scr_read(struct ata_channel *ch, int port, int reg, uint32_t *val) argument 86 if (ch->hw.pm_read != NULL) 87 return (ch->hw.pm_read(ch 96 ata_sata_scr_write(struct ata_channel *ch, int port, int reg, uint32_t val) argument 109 ata_sata_connect(struct ata_channel *ch, int port, int quick) argument 155 struct ata_channel *ch = device_get_softc(dev); local 237 struct ata_channel *ch = device_get_softc(dev); local 288 struct ata_channel *ch = device_get_softc(dev); local [all...] |
H A D | ata-card.c | 90 struct ata_channel *ch = device_get_softc(dev); local 95 if (ch->attached) 97 ch->attached = 1; 107 ch->r_io[i].res = io; 108 ch->r_io[i].offset = i; 110 ch->r_io[ATA_IDX_ADDR].res = io; 117 ch->r_io[ATA_CONTROL].res = io; 118 ch->r_io[ATA_CONTROL].offset = 14; 126 ch->r_io[i].res = NULL; 129 ch 151 struct ata_channel *ch = device_get_softc(dev); local [all...] |
/freebsd-10-stable/usr.bin/tty/ |
H A D | tty.c | 54 int ch, sflag; local 58 while ((ch = getopt(argc, argv, "s")) != -1) 59 switch (ch) {
|
/freebsd-10-stable/usr.bin/fold/ |
H A D | fold.c | 70 int ch, previous_ch; local 77 while ((ch = getopt(argc, argv, "0123456789bsw:")) != -1) { 78 switch (ch) { 100 width = width * 10 + (ch - '0'); 110 width = ch - '0'; 117 previous_ch = ch; 160 wint_t ch; local 163 while ((ch = getwchar()) != WEOF) { 164 if (ch == '\n') { 169 if ((col = newpos(col, ch)) > widt 207 newpos(int col, wint_t ch) argument [all...] |
/freebsd-10-stable/contrib/gdb/gdb/gdbserver/ |
H A D | gdbreplay.c | 160 tohex (int ch) argument 162 if (ch >= '0' && ch <= '9') 164 return (ch - '0'); 166 if (ch >= 'A' && ch <= 'F') 168 return (ch - 'A' + 10); 170 if (ch >= 'a' && ch <= 'f') 172 return (ch 182 int ch; local 277 char ch; local 295 int ch; local [all...] |
/freebsd-10-stable/sys/arm/ti/ |
H A D | ti_edma3.c | 290 ti_edma3_enable_event_intr(unsigned int ch) argument 294 if (ch >= TI_EDMA3_NUM_DMA_CHS) 297 if (ch < 32) { 298 ti_edma3_cc_wr_4(TI_EDMA3CC_S_IESR(0), 1 << ch); 300 ti_edma3_cc_wr_4(TI_EDMA3CC_S_IESRH(0), 1 << (ch - 32)); 307 ti_edma3_request_dma_ch(unsigned int ch, unsigned int tccn, unsigned int eqn) argument 311 if (ch >= TI_EDMA3_NUM_DMA_CHS) 315 if (ch < 32) { 317 reg |= (0x01 << ch); 321 reg |= (0x01 << (ch 341 ti_edma3_request_qdma_ch(unsigned int ch, unsigned int tccn, unsigned int eqn) argument 368 ti_edma3_enable_transfer_manual(unsigned int ch) argument 384 ti_edma3_enable_transfer_qdma(unsigned int ch) argument 396 ti_edma3_enable_transfer_event(unsigned int ch) argument 417 ti_edma3_param_write(unsigned int ch, struct ti_edma3cc_param_set *prs) argument 424 ti_edma3_param_read(unsigned int ch, struct ti_edma3cc_param_set *prs) argument [all...] |
/freebsd-10-stable/usr.bin/uuencode/ |
H A D | uuencode.c | 77 int ch; local 86 while ((ch = getopt(argc, argv, "mo:r")) != -1) { 87 switch (ch) { 180 register int ch, n; local 187 ch = ENC(n); 188 if (fputc(ch, output) == EOF) 197 ch = *p >> 2; 198 ch = ENC(ch); 199 if (fputc(ch, outpu [all...] |
/freebsd-10-stable/lib/libc/nameser/ |
H A D | ns_ttl.c | 88 int ch; local 90 for (p = odst; (ch = *p) != '\0'; p++) 91 if (isascii(ch) && isupper(ch)) 92 *p = tolower(ch); 101 int ch, digits, dirty; local 107 while ((ch = *src++) != '\0') { 108 if (!isascii(ch) || !isprint(ch)) 110 if (isdigit(ch)) { [all...] |
/freebsd-10-stable/contrib/ntp/sntp/libopts/ |
H A D | tokenize.c | 55 ch_t ch = *(pSrc++); local 56 switch (ch) { 60 pSrc += ao_string_cook_escape_char((const char *)pSrc, (char *)&ch, 0x7F); 61 if (ch == 0x7F) 66 *(pDest++) = ch; 83 ch_t ch = *(pSrc++); local 84 switch (ch) { 104 ch = '\''; 114 *(pDest++) = ch; 252 int ch local [all...] |
/freebsd-10-stable/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_ulpi.c | 67 ng_l2cap_chan_p ch = NULL; local 106 ch = ng_l2cap_new_chan(l2cap, con, ip->psm); 107 if (ch == NULL) { 113 cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(con), 116 ng_l2cap_free_chan(ch); 123 ng_l2cap_free_chan(ch); 129 _ng_l2cap_con_req(cmd->aux, cmd->ident, ch->psm, ch->scid); 132 ng_l2cap_free_chan(ch); 151 ng_l2cap_l2ca_con_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result, u_int16_t status) argument 205 ng_l2cap_chan_p ch = NULL; local 309 ng_l2cap_l2ca_con_rsp_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result) argument 349 ng_l2cap_l2ca_con_ind(ng_l2cap_chan_p ch) argument 393 ng_l2cap_chan_p ch = NULL; local 497 ng_l2cap_l2ca_cfg_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result) argument 563 ng_l2cap_chan_p ch = NULL; local 656 ng_l2cap_l2ca_cfg_rsp_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result) argument 709 ng_l2cap_l2ca_cfg_ind(ng_l2cap_chan_p ch) argument 752 ng_l2cap_chan_p ch = NULL; local 838 ng_l2cap_l2ca_write_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result, u_int16_t length) argument 886 ng_l2cap_chan_p ch = NULL; local 1039 ng_l2cap_l2ca_qos_ind(ng_l2cap_chan_p ch) argument 1078 ng_l2cap_chan_p ch = NULL; local 1155 ng_l2cap_l2ca_discon_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result) argument 1195 ng_l2cap_l2ca_discon_ind(ng_l2cap_chan_p ch) argument 1265 ng_l2cap_l2ca_grp_add_member_rsp(ng_l2cap_chan_p ch, u_int32_t token, u_int16_t result) argument [all...] |
/freebsd-10-stable/usr.bin/cut/ |
H A D | cut.c | 80 int ch, rval; local 89 while ((ch = getopt(argc, argv, "b:c:d:f:snw")) != -1) 90 switch(ch) { 238 int ch, col; local 241 ch = 0; 245 if ((ch = getc(fp)) == EOF) 247 if (ch == '\n') 250 (void)putchar(ch); 252 if (ch != '\n') { 254 while ((ch 334 wint_t ch; local 367 is_delim(wchar_t ch) argument 382 wchar_t ch; local [all...] |
/freebsd-10-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_strlset.c | 48 openpam_strlset(char *str, int ch, size_t size) argument 53 *str++ = ch;
|