/dragonfly/sys/dev/disk/nata/ |
H A D | ata-dma.c | 109 if (bus_dma_tag_create(ch->dma->dmatag,ch->dma->alignment,ch->dma->boundary, in ata_dmaalloc() 120 if (bus_dmamap_load(ch->dma->sg_tag, ch->dma->sg_map, ch->dma->sg, in ata_dmaalloc() 122 bus_dmamem_free(ch->dma->sg_tag, ch->dma->sg, ch->dma->sg_map); in ata_dmaalloc() 140 if (bus_dmamap_load(ch->dma->work_tag, ch->dma->work_map,ch->dma->work, in ata_dmaalloc() 142 bus_dmamem_free(ch->dma->work_tag,ch->dma->work, ch->dma->work_map); in ata_dmaalloc() 162 bus_dmamap_unload(ch->dma->work_tag, ch->dma->work_map); in ata_dmafree() 163 bus_dmamem_free(ch->dma->work_tag, ch->dma->work, ch->dma->work_map); in ata_dmafree() 173 bus_dmamap_unload(ch->dma->sg_tag, ch->dma->sg_map); in ata_dmafree() 174 bus_dmamem_free(ch->dma->sg_tag, ch->dma->sg, ch->dma->sg_map); in ata_dmafree() 274 bus_dmamap_sync(ch->dma->sg_tag, ch->dma->sg_map, in ata_dmaunload() [all …]
|
H A D | ata-lowlevel.c | 128 if ((error = ch->dma->load(ch->dev, request->data, request->bytecount, in ata_begin_transaction() 145 if (ch->dma->start && ch->dma->start(request->dev)) { in ata_begin_transaction() 183 if ((error = ch->dma->load(ch->dev, request->data, request->bytecount, in ata_begin_transaction() 199 if (ch->dma->start && ch->dma->start(request->dev)) { in ata_begin_transaction() 209 if (ch->dma && ch->dma->flags & ATA_DMA_LOADED) in ata_begin_transaction() 210 ch->dma->unload(ch->dev); in ata_begin_transaction() 310 if (ch->dma->stop) in ata_end_transaction() 322 ch->dma->unload(ch->dev); in ata_end_transaction() 421 if (ch->dma->stop) in ata_end_transaction() 433 ch->dma->unload(ch->dev); in ata_end_transaction() [all …]
|
H A D | ata-queue.c | 54 ch->reorder = 0; in ata_queue_init() 100 ch->running = request; in ata_queue_request() 102 ch->running = NULL; in ata_queue_request() 125 ata_start(ch->dev); in ata_queue_request() 329 if (ch && !ata_reinit(ch->dev) && !request->result && in ata_completed() 534 if (ch) in ata_completed() 535 ata_start(ch->dev); in ata_completed() 579 ch->running = NULL; in ata_fail_requests() 637 if (ch->transition) { in ata_sort_queue() 643 ch->reorder = 0; in ata_sort_queue() [all …]
|
/dragonfly/contrib/binutils-2.27/gas/ |
H A D | app.c | 522 else if (ch >= '0' && ch <= '9') in do_scrub_chars() 537 while (ch != EOF && ch != '\n') in do_scrub_chars() 688 if (ch == 'f' || ch == 'F') in do_scrub_chars() 754 if (ch != '\0' && (*symver_state == ch)) in do_scrub_chars() 1078 ch = process_escape (ch); in do_scrub_chars() 1152 while (ch != EOF && ch != '\n'); in do_scrub_chars() 1218 while (ch != EOF && !IS_NEWLINE (ch)) in do_scrub_chars() 1265 || (ch != '!' && ch != '*'))) in do_scrub_chars() 1268 && (ch == '!' || ch == '*' || ch == '#') in do_scrub_chars() 1300 while (ch != EOF && !IS_NEWLINE (ch)); in do_scrub_chars() [all …]
|
/dragonfly/contrib/binutils-2.34/gas/ |
H A D | app.c | 533 else if (ch >= '0' && ch <= '9') in do_scrub_chars() 548 while (ch != EOF && ch != '\n') in do_scrub_chars() 697 if (ch == 'f' || ch == 'F') in do_scrub_chars() 764 if (ch != '\0' && (*symver_state == ch)) in do_scrub_chars() 1087 ch = process_escape (ch); in do_scrub_chars() 1160 while (ch != EOF && ch != '\n'); in do_scrub_chars() 1226 while (ch != EOF && !IS_NEWLINE (ch)) in do_scrub_chars() 1273 || (ch != '!' && ch != '*'))) in do_scrub_chars() 1276 && (ch == '!' || ch == '*' || ch == '#') in do_scrub_chars() 1308 while (ch != EOF && !IS_NEWLINE (ch)); in do_scrub_chars() [all …]
|
/dragonfly/contrib/openpam/lib/libpam/ |
H A D | openpam_ctype.h | 39 (ch >= '0' && ch <= '9') 45 ((ch >= '0' && ch <= '9') || \ 46 (ch >= 'a' && ch <= 'f') || \ 47 (ch >= 'A' && ch <= 'F')) 53 (ch >= 'A' && ch <= 'Z') 59 (ch >= 'a' && ch <= 'z') 65 (is_upper(ch) || is_lower(ch)) 73 (ch == ' ' || ch == '\t' || ch == '\f' || ch == '\r') 79 (is_lws(ch) || ch == '\n') 86 (ch >= '!' && ch <= '~') [all …]
|
H A D | openpam_readword.c | 66 if (ch == '\n') { in openpam_readword() 79 if (ch == '\n') in openpam_readword() 88 if (ch == EOF) in openpam_readword() 90 ungetc(ch, f); in openpam_readword() 91 if (ch == '\n') in openpam_readword() 96 while ((ch = fgetc(f)) != EOF && (!is_ws(ch) || quote || escape)) { in openpam_readword() 99 escape = ch; in openpam_readword() 100 } else if ((ch == '\'' || ch == '"') && !quote && !escape) { in openpam_readword() 102 quote = ch; in openpam_readword() 113 if (escape && quote && ch != '\\' && ch != quote && in openpam_readword() [all …]
|
/dragonfly/lib/i18n_module/ZW/ |
H A D | citrus_zw.c | 135 psenc->ch[psenc->chlen++] = ch; \ in _citrus_ZW_mbrtowc_priv() 154 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv() 164 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv() 166 if (ch != '\n' && ch != '\0') in _citrus_ZW_mbrtowc_priv() 224 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_mbrtowc_priv() 228 if (ch < 0x21 || ch > 0x7E) { in _citrus_ZW_mbrtowc_priv() 266 if (ch == '\0' || ch == '\n') in _citrus_ZW_wcrtomb_priv() 314 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_wcrtomb_priv() 316 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv() 318 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_wcrtomb_priv() [all …]
|
/dragonfly/sys/dev/sound/pci/ |
H A D | t4dwave.c | 412 cr[3]=(ch->fmc<<14) | (ch->rvol<<7) | (ch->cvol); in tr_wrch() 413 cr[4]=(ch->gvsel<<31) | (ch->pan<<24) | (ch->vol<<16) | (ch->ctrl<<12) | (ch->ec); in tr_wrch() 421 cr[0]=(ch->cso<<16) | (ch->alpha<<4) | (ch->fms); in tr_wrch() 422 cr[2]=(ch->eso<<16) | (ch->delta); in tr_wrch() 427 cr[0]=((ch->delta & 0xff)<<24) | (ch->cso); in tr_wrch() 428 cr[2]=((ch->delta>>8)<<24) | (ch->eso); in tr_wrch() 429 cr[3]|=(ch->alpha<<20) | (ch->fms<<16) | (ch->fmc<<14); in tr_wrch() 564 ch->lba = sndbuf_getbufaddr(ch->buffer); in trpchan_trigger() 566 ch->eso = (sndbuf_getsize(ch->buffer) / sndbuf_getalign(ch->buffer)) - 1; in trpchan_trigger() 567 ch->rvol = ch->cvol = 0x7f; in trpchan_trigger() [all …]
|
H A D | hdspe-pcm.c | 104 hdspe_hw_mixer(ch, ch->lslot, ch->lslot, in hdspechan_setgain() 106 hdspe_hw_mixer(ch, ch->rslot, ch->rslot, in hdspechan_setgain() 157 if (ch->run) in hdspemixer_set() 324 ch->run = 0; in hdspechan_init() 325 ch->lvol = 0; in hdspechan_init() 326 ch->rvol = 0; in hdspechan_init() 329 ch->data = kmalloc(ch->size, M_HDSPE, M_WAITOK | M_ZERO); in hdspechan_init() 339 if (sndbuf_setup(ch->buffer, ch->data, ch->size) != 0) { in hdspechan_init() 344 return ch; in hdspechan_init() 370 clean(ch); in hdspechan_trigger() [all …]
|
H A D | maestro.c | 856 wpwa = (ch->phys - ch->base) >> 1; in aggch_start_dac() 971 wpwa2 = (ch->srcphys + ch->parent->bufsz/2 - ch->base) >> 1; in aggch_start_adc() 976 wpwa = (ch->phys - ch->base) >> 1; in aggch_start_adc() 1135 mixdown(ch->src + last, ch->sink + last, ch->buflen - last); in aggch_feed_adc_mono() 1136 mixdown(ch->src, ch->sink, cur); in aggch_feed_adc_mono() 1171 cp1 = (ch->stereo? ch->parent->bufsz >> 2 : ch->parent->bufsz >> 1) in suppress_rec_jitter() 1195 return (48000 * (ch->blklen << (!ch->qs16 + !ch->stereo)) in calc_timer_div() 1379 ch->stereo = ch->qs16 = ch->us = 0; in aggpch_setformat() 1407 blkcnt = (ch->speed << (ch->stereo + ch->qs16)) / (50 * blocksize); in aggpch_setblocksize() 1453 return ch->qs16 && ch->stereo in aggpch_getptr() [all …]
|
H A D | ich.c | 305 if ((ch->blksz * ch->blkcnt) > sndbuf_getmaxsize(ch->buffer)) in ich_filldtbl() 306 ch->blksz = sndbuf_getmaxsize(ch->buffer) / ch->blkcnt; in ich_filldtbl() 309 sndbuf_resize(ch->buffer, ch->blkcnt, ch->blksz) != 0) in ich_filldtbl() 315 ch->dtbl[i].buffer = base + (ch->blksz * (i % ch->blkcnt)); in ich_filldtbl() 376 ch = &sc->ch[num]; in ichchan_init() 386 ch->blksz = sc->bufsz / ch->blkcnt; in ichchan_init() 557 ch->civ = ich_rd(sc, ch->regbase + ICH_REG_X_CIV, 1) % ch->blkcnt; in ichchan_getptr() 560 pos = ch->civ * ch->blksz; in ichchan_getptr() 622 ch = &sc->ch[i]; in ich_intr() 638 cbi = ch->civ % ch->blkcnt; in ich_intr() [all …]
|
/dragonfly/sys/dev/disk/nata/chipsets/ |
H A D | ata-marvell.c | 49 ((ch->unit & 3) * 0x0100) + (ch->unit > 3 ? 0x30000 : 0x20000) 51 ((ch->unit & 3) * 0x2000) + (ch->unit > 3 ? 0x30000 : 0x20000) 212 bus_dmamap_sync(ch->dma->work_tag, ch->dma->work_map, in ata_marvell_edma_allocate() 231 ch->r_io[ATA_SERROR].offset = 0x00104 + ATA_MV_HOST_BASE(ch); in ata_marvell_edma_allocate() 241 ch->r_io[ATA_SERROR].offset = 0x02304 + ATA_MV_EDMA_BASE(ch); in ata_marvell_edma_allocate() 245 ch->r_io[ATA_SACTIVE].offset = 0x02350 + ATA_MV_EDMA_BASE(ch); in ata_marvell_edma_allocate() 283 ATA_IDX_OUTL(ch, ATA_SERROR, ATA_IDX_INL(ch, ATA_SERROR)); in ata_marvell_edma_allocate() 302 int shift = (ch->unit << 1) + (ch->unit > 3); in ata_marvell_edma_status() 419 bus_dmamap_sync(ch->dma->work_tag, ch->dma->work_map, in ata_marvell_edma_begin_transaction() 464 bus_dmamap_sync(ch->dma->work_tag, ch->dma->work_map, in ata_marvell_edma_end_transaction() [all …]
|
H A D | ata-promise.c | 367 ATA_IDX_OUTL(ch, ATA_BMDTP_PORT, ch->dma->sg_bus); in ata_promise_dmastart() 413 if (ch->dma) { in ata_promise_dmainit() 530 ch->r_io[i].offset = offset + 0x0200 + (i << 2) + (ch->unit << 7); in ata_promise_mio_allocate() 539 ch->r_io[ATA_SSTATUS].offset = 0x400 + (ch->unit << 8); in ata_promise_mio_allocate() 541 ch->r_io[ATA_SERROR].offset = 0x404 + (ch->unit << 8); in ata_promise_mio_allocate() 543 ch->r_io[ATA_SCONTROL].offset = 0x408 + (ch->unit << 8); in ata_promise_mio_allocate() 639 tp->dev = ch->dev; in ata_promise_mio_status() 653 tp->dev = ch->dev; in ata_promise_mio_status() 713 ATA_OUTL(ctlr->r_res2, 0xc0260 + (ch->unit << 7), ch->unit + 1); in ata_promise_mio_reset() 812 ch->devices); in ata_promise_mio_reset() [all …]
|
H A D | ata-siliconimage.c | 282 int unit01 = (ch->unit & 1), unit10 = (ch->unit & 2); in ata_sii_allocate() 308 ch->flags |= ATA_NO_SLAVE; in ata_sii_allocate() 316 ch->dma->boundary = 8192; in ata_sii_allocate() 330 int offset0 = ((ch->unit & 1) << 3) + ((ch->unit & 2) << 8); in ata_sii_status() 331 int offset1 = ((ch->unit & 1) << 6) + ((ch->unit & 2) << 8); in ata_sii_status() 543 if (ch->dma->load(ch->dev, request->data, request->bytecount, in ata_siiprb_begin_transaction() 618 ch->dma->unload(ch->dev); in ata_siiprb_end_transaction() 719 ch->devices = 0; in ata_siiprb_reset() 736 ch->devices = 0; in ata_siiprb_reset() 742 ch->devices = 0; in ata_siiprb_reset() [all …]
|
/dragonfly/lib/libalias/ |
H A D | alias_ftp.c | 168 char ch; in ParseFtpPortCommand() local 183 ch = sptr[i]; in ParseFtpPortCommand() 197 octet = ch - '0'; in ParseFtpPortCommand() 250 ch = sptr[i]; in ParseFtpEprtCommand() 260 delim = ch; in ParseFtpEprtCommand() 294 port = ch - '0'; in ParseFtpEprtCommand() 321 char ch; in ParseFtp227Reply() local 367 else if (ch == ',' || (state == 12 && ch == ')')) { in ParseFtp227Reply() 402 ch = sptr[i]; in ParseFtp229Reply() 414 delim = ch; in ParseFtp229Reply() [all …]
|
/dragonfly/lib/libc/citrus/ |
H A D | citrus_prop.c | 124 if (ch == 'x' || ch == 'X') { \ in _CITRUS_PROP_READ_UINT_COMMON() 147 int base, ch; local 151 *result = ch; 285 (ch == ';' || _bcs_isspace(ch)))) { in _citrus_prop_read_str() 297 s[n] = ch; in _citrus_prop_read_str() 319 int ch; in _citrus_prop_read_symbol() local 324 if (ch != '_' && _bcs_isalnum(ch) == 0) in _citrus_prop_read_symbol() 326 s[m] = ch; in _citrus_prop_read_symbol() 329 if (ch == '_' || _bcs_isalnum(ch) != 0) in _citrus_prop_read_symbol() 360 if (ch != '=' && ch != ':') in _citrus_prop_parse_element() [all …]
|
/dragonfly/lib/i18n_module/DECHanyu/ |
H A D | citrus_dechanyu.c | 173 int ch; in _citrus_DECHanyu_mbrtowc_priv() local 197 psenc->ch[psenc->chlen++] = ch; in _citrus_DECHanyu_mbrtowc_priv() 200 ch = psenc->ch[0] & 0xFF; in _citrus_DECHanyu_mbrtowc_priv() 205 ch = psenc->ch[0] & 0xFF; in _citrus_DECHanyu_mbrtowc_priv() 207 ch = psenc->ch[1] & 0xFF; in _citrus_DECHanyu_mbrtowc_priv() 226 psenc->ch[psenc->chlen++] = ch; in _citrus_DECHanyu_mbrtowc_priv() 233 psenc->ch[psenc->chlen++] = ch; in _citrus_DECHanyu_mbrtowc_priv() 242 psenc->ch[psenc->chlen++] = ch; in _citrus_DECHanyu_mbrtowc_priv() 245 ch = psenc->ch[2] & 0xFF; in _citrus_DECHanyu_mbrtowc_priv() 299 psenc->ch[psenc->chlen++] = ch; in _citrus_DECHanyu_wcrtomb_priv() [all …]
|
/dragonfly/contrib/ncurses/ncurses/base/ |
H A D | MKunctrl.awk | 53 for ( ch = 0; ch < 256; ch++ ) { 56 if ((ch % 8) == 0) { 58 if (ch != 0) 64 if (ch < 32) { 70 } else if (ch >= 128 && ch < 160) { 84 if (ch == 255) 105 for ( ch = 128; ch < 256; ch++ ) { 107 if ((ch % 8) == 0) { 108 if (ch != 128) 121 if (ch >= 128) { [all …]
|
/dragonfly/sys/netgraph7/bluetooth/l2cap/ |
H A D | ng_l2cap_ulpi.c | 113 cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(con), in ng_l2cap_l2ca_con_req() 129 _ng_l2cap_con_req(cmd->aux, cmd->ident, ch->psm, ch->scid); in ng_l2cap_l2ca_con_req() 271 ch = NULL; in ng_l2cap_l2ca_con_rsp_req() 429 ch->scid); in ng_l2cap_l2ca_cfg_req() 436 bcopy(&ip->oflow, &ch->oflow, sizeof(ch->oflow)); in ng_l2cap_l2ca_cfg_req() 456 cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(ch->con), in ng_l2cap_l2ca_cfg_req() 599 ch->scid); in ng_l2cap_l2ca_cfg_rsp_req() 611 bcopy(&ip->iflow, &ch->iflow, sizeof(ch->iflow)); in ng_l2cap_l2ca_cfg_rsp_req() 624 cmd = ng_l2cap_new_cmd(ch->con, ch, ch->ident, NG_L2CAP_CFG_RSP, in ng_l2cap_l2ca_cfg_rsp_req() 922 ch->imtu, ch->scid); in ng_l2cap_l2ca_receive() [all …]
|
/dragonfly/lib/libc/inet/ |
H A D | inet_net_pton.c | 60 ch = *src++; in inet_net_pton_ipv4() 69 while ((ch = *src++) != '\0' && isascii(ch) && isxdigit(ch)) { in inet_net_pton_ipv4() 71 ch = tolower(ch); in inet_net_pton_ipv4() 90 } else if (isascii(ch) && isdigit(ch)) { in inet_net_pton_ipv4() 102 isascii(ch) && isdigit(ch)); in inet_net_pton_ipv4() 106 if (ch == '\0' || ch == '/') in inet_net_pton_ipv4() 111 if (!isascii(ch) || !isdigit(ch)) in inet_net_pton_ipv4() 130 } while ((ch = *src++) != '\0' && isascii(ch) && isdigit(ch)); in inet_net_pton_ipv4() 186 char ch; in getbits() local 217 char ch; in getv4() local [all …]
|
/dragonfly/contrib/less/ |
H A D | charset.c | 574 if (ch == ESC) in prutfchar() 576 else if (ch < 128 && control_char(ch)) in prutfchar() 588 if (ch >= 0x80000000) in prutfchar() 590 put_wchar(&p, ch); in prutfchar() 601 if ((ch & 0x80) == 0) in utf_len() 721 *(*pp)++ = (char) ch; in put_wchar() 765 LWCHAR ch; in step_char() local 781 ch = 0; in step_char() 785 ch = get_wchar(p); in step_char() 795 ch = 0; in step_char() [all …]
|
/dragonfly/sys/dev/misc/dcons/ |
H A D | dcons.c | 58 if (gen == ch->gen && pos == ch->pos) in dcons_ischar() 64 || (gen == ch->gen && pos < ch->pos)) { in dcons_ischar() 87 if (gen == ch->gen && pos == ch->pos) in dcons_checkc() 93 || (gen == ch->gen && pos < ch->pos)) { in dcons_checkc() 101 c = ch->buf[ch->pos]; in dcons_checkc() 102 ch->pos ++; in dcons_checkc() 103 if (ch->pos >= ch->size) { in dcons_checkc() 118 ch->buf[ch->pos] = c; in dcons_putc() 120 if (ch->pos >= ch->size) { in dcons_putc() 121 ch->gen = DCONS_NEXT_GEN(ch->gen); in dcons_putc() [all …]
|
/dragonfly/usr.sbin/cron/lib/ |
H A D | entry.c | 102 int ch; in load_entry() local 112 if (ch == EOF) in load_entry() 422 while (ch != EOF && ch != '\n') in load_entry() 458 ch = get_range(bits, low, high, names, ch, file); in get_list() 472 return ch; in get_list() 504 return ch; in get_range() 514 ch = get_number(&num2, low, names, ch, file); in get_range() 534 ch = get_number(&num3, 0, NULL, ch, file); in get_range() 552 return ch; in get_range() 577 *pc++ = ch; in get_number() [all …]
|
/dragonfly/games/hangman/ |
H A D | getguess.c | 51 ch = readch(); in getguess() 53 if (isupper(ch)) in getguess() 54 ch = tolower(ch); in getguess() 59 ch); in getguess() 67 ch); in getguess() 84 if (isalpha(ch)) in getguess() 89 uch = toupper(ch); in getguess() 92 Known[i] = ch; in getguess() 111 char ch; in readch() local 115 if (read(STDIN_FILENO, &ch, sizeof(ch)) <= 0) { in readch() [all …]
|