/freebsd-10.1-release/sys/dev/ahci/ |
H A D | ahci.c | 68 static void ahci_ch_intr_main(struct ahci_channel *ch, uint32_t istatus); 89 static int ahci_sata_connect(struct ahci_channel *ch); 787 "ch%d" : "%d", i); 1054 struct ahci_channel *ch = device_get_softc(dev); local 1059 ch->dev = dev; 1060 ch->unit = (intptr_t)device_get_ivars(dev); 1061 ch->caps = ctlr->caps; 1062 ch->caps2 = ctlr->caps2; 1063 ch->quirks = ctlr->quirks; 1064 ch 1189 struct ahci_channel *ch = device_get_softc(dev); local 1221 struct ahci_channel *ch = device_get_softc(dev); local 1246 struct ahci_channel *ch = device_get_softc(dev); local 1267 struct ahci_channel *ch = device_get_softc(dev); local 1287 struct ahci_channel *ch = device_get_softc(dev); local 1321 struct ahci_channel *ch = device_get_softc(dev); local 1387 struct ahci_channel *ch = device_get_softc(dev); local 1416 struct ahci_channel *ch = device_get_softc(dev); local 1438 struct ahci_channel *ch = device_get_softc(dev); local 1456 struct ahci_channel *ch = device_get_softc(dev); local 1487 struct ahci_channel *ch = device_get_softc(dev); local 1518 struct ahci_channel *ch = device_get_softc(dev); local 1538 ahci_done(struct ahci_channel *ch, union ccb *ccb) argument 1555 struct ahci_channel *ch = device_get_softc(dev); local 1572 struct ahci_channel *ch = device_get_softc(dev); local 1596 struct ahci_channel *ch = device_get_softc(dev); local 1610 ahci_ch_intr_main(struct ahci_channel *ch, uint32_t istatus) argument 1761 struct ahci_channel *ch = device_get_softc(dev); local 1812 struct ahci_channel *ch = device_get_softc(dev); local 1863 struct ahci_channel *ch = device_get_softc(slot->dev); local 1895 struct ahci_channel *ch = device_get_softc(dev); local 2037 struct ahci_channel *ch = device_get_softc(dev); local 2054 struct ahci_channel *ch = device_get_softc(dev); local 2077 struct ahci_channel *ch = device_get_softc(dev); local 2156 struct ahci_channel *ch = device_get_softc(dev); local 2369 struct ahci_channel *ch = device_get_softc(dev); local 2446 struct ahci_channel *ch = device_get_softc(dev); local 2506 struct ahci_channel *ch = device_get_softc(dev); local 2528 struct ahci_channel *ch = device_get_softc(dev); local 2551 struct ahci_channel *ch = device_get_softc(dev); local 2573 struct ahci_channel *ch = device_get_softc(dev); local 2596 struct ahci_channel *ch = device_get_softc(dev); local 2617 struct ahci_channel *ch = device_get_softc(dev); local 2628 struct ahci_channel *ch = device_get_softc(dev); local 2656 struct ahci_channel *ch = device_get_softc(dev); local 2680 struct ahci_channel *ch = device_get_softc(dev); local 2772 struct ahci_channel *ch = device_get_softc(dev); local 2821 ahci_sata_connect(struct ahci_channel *ch) argument 2866 struct ahci_channel *ch = device_get_softc(dev); local 2908 struct ahci_channel *ch = device_get_softc(dev); local 2927 struct ahci_channel *ch; local 3115 struct ahci_channel *ch = (struct ahci_channel *)cam_sim_softc(sim); local [all...] |
/freebsd-10.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/sys/dev/sound/pci/ |
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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/usr.bin/uuencode/ |
H A D | uuencode.c | 76 int ch; local 85 while ((ch = getopt(argc, argv, "mo:")) != -1) { 86 switch (ch) { 174 register int ch, n; local 180 ch = ENC(n); 181 if (fputc(ch, output) == EOF) 190 ch = *p >> 2; 191 ch = ENC(ch); 192 if (fputc(ch, outpu [all...] |
/freebsd-10.1-release/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.1-release/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.1-release/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.1-release/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.1-release/contrib/less/ |
H A D | cvt.c | 69 LWCHAR ch; local 80 ch = step_char(&src, +1, src_end); 81 if ((ops & CVT_BS) && ch == '\b' && dst > odst) 88 } else if ((ops & CVT_ANSI) && IS_CSI_START(ch)) 98 if ((ops & CVT_TO_LC) && IS_UPPER(ch)) 99 ch = TO_LOWER(ch); 100 put_wchar(&dst, ch);
|
/freebsd-10.1-release/contrib/openpam/lib/libpam/ |
H A D | openpam_strlset.c | 48 openpam_strlset(char *str, int ch, size_t size) argument 53 *str++ = ch;
|