/freebsd-10.1-release/sys/dev/sound/pci/ |
H A D | via82c686.c | 221 via_buildsgdt(struct via_chinfo *ch) argument 232 seg_size = ch->blksz; 233 segs = sndbuf_getsize(ch->buffer) / seg_size; 234 phys_addr = sndbuf_getbufaddr(ch->buffer); 238 ch->sgd_table[i].ptr = phys_addr + (i * seg_size); 239 ch->sgd_table[i].flags = flag | seg_size; 250 struct via_chinfo *ch; local 254 ch = &via->pch; 255 ch->base = VIA_PLAY_DMAOPS_BASE; 256 ch 286 struct via_chinfo *ch = data; local 310 struct via_chinfo *ch = data; local 333 struct via_chinfo *ch = data; local 344 struct via_chinfo *ch = data; local 371 struct via_chinfo *ch = data; local 410 struct via_chinfo *ch = data; local [all...] |
H A D | maestro3.c | 377 struct sc_pchinfo *ch; local 427 ch = &sc->pch[idx]; 428 ch->dac_idx = idx; 429 ch->dac_data = dac_data; 430 if (ch->dac_data + data_bytes/2 >= 0x1c00) { 436 ch->buffer = b; 437 ch->parent = sc; 438 ch->channel = c; 439 ch->fmt = SND_FORMAT(AFMT_U8, 1, 0); 440 ch 518 struct sc_pchinfo *ch = chdata; local 542 struct sc_pchinfo *ch = chdata; local 570 struct sc_pchinfo *ch = chdata; local 593 struct sc_pchinfo *ch = chdata; local 604 struct sc_pchinfo *ch = chdata; local 637 struct sc_pchinfo *ch = chdata; local 707 m3_pchan_getptr_internal(struct sc_pchinfo *ch) argument 726 struct sc_pchinfo *ch = chdata; local 740 struct sc_pchinfo *ch = chdata; local 754 struct sc_rchinfo *ch; local 892 struct sc_rchinfo *ch = chdata; local 916 struct sc_rchinfo *ch = chdata; local 943 struct sc_rchinfo *ch = chdata; local 966 struct sc_rchinfo *ch = chdata; local 977 struct sc_rchinfo *ch = chdata; local 994 struct sc_rchinfo *ch = chdata; local 1059 m3_rchan_getptr_internal(struct sc_rchinfo *ch) argument 1078 struct sc_rchinfo *ch = chdata; local 1092 struct sc_rchinfo *ch = chdata; local [all...] |
H A D | emu10kx-pcm.c | 711 struct emu_pcm_pchinfo *ch; local 720 ch = &(sc->pch[sc->pnum++]); 721 ch->buffer = b; 722 ch->pcm = sc; 723 ch->channel = c; 724 ch->blksz = sc->bufsz; 725 ch->fmt = SND_FORMAT(AFMT_U8, 1, 0); 726 ch->spd = 8000; 727 ch->master = emu_valloc(sc->card); 732 ch 741 struct emu_pcm_pchinfo *ch = c_devinfo; local 754 struct emu_pcm_pchinfo *ch = c_devinfo; local 763 struct emu_pcm_pchinfo *ch = c_devinfo; local 772 struct emu_pcm_pchinfo *ch = c_devinfo; local 787 struct emu_pcm_pchinfo *ch = c_devinfo; local 814 struct emu_pcm_pchinfo *ch = c_devinfo; local 826 struct emu_pcm_pchinfo *ch = c_devinfo; local 863 struct emu_pcm_rchinfo *ch; local 893 struct emu_pcm_rchinfo *ch = c_devinfo; local 903 struct emu_pcm_rchinfo *ch = c_devinfo; local 912 struct emu_pcm_rchinfo *ch = c_devinfo; local 926 struct emu_pcm_rchinfo *ch = c_devinfo; local 947 struct emu_pcm_rchinfo *ch = c_devinfo; local 1011 struct emu_pcm_rchinfo *ch = c_devinfo; local 1043 struct emu_pcm_rchinfo *ch; local 1081 struct emu_pcm_rchinfo *ch = c_devinfo; local 1090 struct emu_pcm_rchinfo *ch = c_devinfo; local 1107 struct emu_pcm_rchinfo *ch = c_devinfo; local 1181 struct emu_pcm_rchinfo *ch = c_devinfo; local 1193 struct emu_pcm_rchinfo *ch = c_devinfo; local 1205 struct emu_pcm_rchinfo *ch = c_devinfo; local [all...] |
/freebsd-10.1-release/usr.bin/tr/ |
H A D | cmap.c | 121 cmap_lookup_hard(struct cmap *cm, wint_t ch) argument 125 cm->cm_root = cmap_splay(cm->cm_root, ch); 126 if (cm->cm_root->cmn_from == ch) 129 return (cm->cm_def == CM_DEF_SELF ? ch : cm->cm_def); 139 wint_t ch; local 141 for (ch = 0; ch < CM_CACHE_SIZE; ch++) 142 cm->cm_cache[ch] = cmap_lookup_hard(cm, ch); 165 cmap_splay(struct cmapnode *t, wint_t ch) argument [all...] |
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-10.1-release/sys/dev/ata/chipsets/ |
H A D | ata-siliconimage.c | 233 struct ata_channel *ch = device_get_softc(dev); local 240 ch->hw.status = ata_cmd_status; 242 ch->flags |= ATA_NO_ATAPI_DMA; 250 struct ata_channel *ch = device_get_softc(dev); local 254 (ch->unit ? 0x08 : 0x04))) { 256 reg71 & ~(ch->unit ? 0x04 : 0x08), 1); 267 struct ata_channel *ch = device_get_softc(dev); local 268 int devno = (ch->unit << 1) + target; 270 int ureg = ch->unit ? 0x7b : 0x73; 300 struct ata_channel *ch local 363 struct ata_channel *ch = device_get_softc(dev); local 382 struct ata_channel *ch = device_get_softc(dev); local 402 struct ata_channel *ch = device_get_softc(dev); local 480 struct ata_channel *ch = device_get_softc(dev); local 510 struct ata_channel *ch = device_get_softc(dev); local 523 struct ata_channel *ch = device_get_softc(dev); local 546 struct ata_channel *ch = device_get_softc(request->parent); local 613 struct ata_channel *ch = device_get_softc(request->parent); local 691 struct ata_channel *ch = device_get_softc(dev); local 728 struct ata_channel *ch = device_get_softc(dev); local 771 struct ata_channel *ch = device_get_softc(dev); local 817 struct ata_channel *ch = device_get_softc(dev); local 848 struct ata_channel *ch = device_get_softc(dev); local 945 struct ata_channel *ch = device_get_softc(dev); local [all...] |
/freebsd-10.1-release/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_misc.c | 330 ng_l2cap_chan_p ch = NULL; local 332 ch = malloc(sizeof(*ch), M_NETGRAPH_L2CAP, 334 if (ch == NULL) 337 ch->scid = ng_l2cap_get_cid(l2cap); 339 if (ch->scid != NG_L2CAP_NULL_CID) { 341 ch->psm = psm; 342 ch->con = con; 343 ch->state = NG_L2CAP_CLOSED; 346 ch 374 ng_l2cap_chan_p ch = NULL; local 388 ng_l2cap_free_chan(ng_l2cap_chan_p ch) argument 419 ng_l2cap_new_cmd(ng_l2cap_con_p con, ng_l2cap_chan_p ch, u_int8_t ident, u_int8_t code, u_int32_t token) argument [all...] |
H A D | ng_l2cap_cmds.c | 111 ng_l2cap_l2ca_con_rsp(cmd->ch, cmd->token, 113 ng_l2cap_free_chan(cmd->ch); /* will free commands */ 122 if (cmd->ch != NULL) { 123 ng_l2cap_l2ca_con_rsp_rsp(cmd->ch, cmd->token, 127 ng_l2cap_free_chan(cmd->ch); 135 ng_l2cap_l2ca_cfg_rsp(cmd->ch, cmd->token, 147 if (cmd->ch != NULL) 148 ng_l2cap_l2ca_cfg_rsp_rsp(cmd->ch, cmd->token, 156 ng_l2cap_l2ca_discon_rsp(cmd->ch, cmd->token, 159 ng_l2cap_free_chan(cmd->ch); /* XX 233 ng_l2cap_chan_p ch = NULL; local [all...] |
/freebsd-10.1-release/lib/libc/inet/ |
H A D | inet_cidr_pton.c | 89 int n, ch, tmp, bits; local 93 while (ch = *src++, (isascii(ch) && isdigit(ch))) { 96 n = strchr(digits, ch) - digits; 102 } while ((ch = *src++) != '\0' && isascii(ch) && isdigit(ch)); 106 if (ch == '\0' || ch 159 int ch, saw_xdigit; local 259 char *cp, ch; local [all...] |
/freebsd-10.1-release/contrib/apr/network_io/unix/ |
H A D | inet_pton.c | 109 int saw_digit, octets, ch; local 115 while ((ch = *src++) != '\0') { 118 if ((pch = strchr(digits, ch)) != NULL) { 129 } else if (ch == '.' && saw_digit) { 165 int ch, saw_xdigit; local 178 while ((ch = *src++) != '\0') { 181 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 182 pch = strchr((xdigits = xdigits_u), ch); 191 if (ch == ':') { 207 if (ch [all...] |
/freebsd-10.1-release/contrib/ldns/compat/ |
H A D | inet_pton.c | 99 int saw_digit, octets, ch; local 105 while ((ch = *src++) != '\0') { 108 if ((pch = strchr(digits, ch)) != NULL) { 119 } else if (ch == '.' && saw_digit) { 156 int ch, saw_xdigit; local 169 while ((ch = *src++) != '\0') { 172 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 173 pch = strchr((xdigits = xdigits_u), ch); 182 if (ch == ':') { 198 if (ch [all...] |
/freebsd-10.1-release/contrib/tcsh/ |
H A D | ed.xmap.c | 14 * int GetXkey(ch,val); 15 * CStr *ch; 18 * Looks up *ch in map and then reads characters until a 22 * The last character read is returned in *ch. 106 Char ch; /* single character of Xkey */ member in struct:Xmapnode 165 GetXkey(CStr *ch, XmapVal *val) argument 167 return (TraverseMap(Xmap, ch, val)); 175 TraverseMap(XmapNode *ptr, CStr *ch, XmapVal *val) argument 179 if (ptr->ch == *(ch 415 GetFreeNode(CStr *ch) argument 577 unparsech(struct Strbuf *buf, Char ch) argument 663 Char ch; local [all...] |
/freebsd-10.1-release/contrib/unbound/compat/ |
H A D | inet_pton.c | 99 int saw_digit, octets, ch; local 105 while ((ch = *src++) != '\0') { 108 if ((pch = strchr(digits, ch)) != NULL) { 119 } else if (ch == '.' && saw_digit) { 156 int ch, saw_xdigit; local 169 while ((ch = *src++) != '\0') { 172 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 173 pch = strchr((xdigits = xdigits_u), ch); 182 if (ch == ':') { 198 if (ch [all...] |
/freebsd-10.1-release/sys/libkern/ |
H A D | inet_pton.c | 81 int saw_digit, octets, ch; local 88 while ((ch = *src++) != '\0') { 91 if ((pch = strchr(digits, ch)) != NULL) { 104 } else if (ch == '.' && saw_digit) { 140 int ch, seen_xdigits; local 153 while ((ch = *src++) != '\0') { 156 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 157 pch = strchr((xdigits = xdigits_u), ch); 165 if (ch == ':') { 183 if (ch [all...] |
/freebsd-10.1-release/tools/regression/sockets/sblock/ |
H A D | sblock.c | 71 char ch; local 73 len = recv(fd, &ch, sizeof(ch), 0); 96 char ch; local 100 len = recv(fd, &ch, sizeof(ch), 0); 117 char ch; local 131 len = send(fd, &ch, sizeof(ch), 0); 136 if (len != sizeof(ch)) { [all...] |
/freebsd-10.1-release/contrib/ntp/lib/isc/ |
H A D | inet_pton.c | 85 int saw_digit, octets, ch; local 91 while ((ch = *src++) != '\0') { 94 if ((pch = strchr(digits, ch)) != NULL) { 107 } else if (ch == '.' && saw_digit) { 140 int ch, seen_xdigits; local 153 while ((ch = *src++) != '\0') { 156 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 157 pch = strchr((xdigits = xdigits_u), ch); 165 if (ch == ':') { 181 if (ch [all...] |
/freebsd-10.1-release/contrib/binutils/binutils/ |
H A D | mclex.c | 130 parse_digit (unichar ch) argument 134 if (ch == '0') 145 v = (rc_uint_type) (ch - '0'); 147 while ((ch = input_stream_pos[0]) != 0) 149 if (ch >= 'A' && ch <= 'F') 150 c = (rc_uint_type) (ch - 'A') + 10; 151 else if (ch >= 'a' && ch <= 'f') 152 c = (rc_uint_type) (ch 331 unichar ch; local [all...] |
/freebsd-10.1-release/sys/arm/freescale/vybrid/ |
H A D | vf_edma.c | 96 struct edma_channel *ch; local 108 ch = &edma_map[i]; 109 if (ch->enabled == 1) { 110 if (ch->ih != NULL) { 111 ch->ih(ch->ih_user, i); 139 struct edma_channel *ch; local 141 ch = &edma_map[chnum]; 142 ch->enabled = 0; 144 dmamux_configure(ch 152 struct edma_channel *ch; local 209 struct edma_channel *ch; local [all...] |
/freebsd-10.1-release/contrib/ncurses/ncurses/trace/ |
H A D | lib_traceatr.c | 183 _nc_altcharset_name(attr_t attr, chtype ch) argument 234 if (ChCharOf(cp[1]) == ChCharOf(ch)) { 241 ch = ChCharOf(*found); 243 if (sp->val == ch) { 253 _tracechtype2(int bufnum, chtype ch) argument 260 if ((found = _nc_altcharset_name(ChAttrOf(ch), ch)) != 0) { 263 (void) _nc_trace_bufcat(bufnum, _nc_tracechar(SP, (int) ChCharOf(ch))); 265 if (ChAttrOf(ch) != A_NORMAL) { 268 _traceattr2(bufnum + 20, ChAttrOf(ch))); 277 _tracechtype(chtype ch) argument 292 _tracecchar_t2(int bufnum, const cchar_t *ch) argument 350 _tracecchar_t(const cchar_t *ch) argument [all...] |
/freebsd-10.1-release/contrib/smbfs/lib/smb/ |
H A D | subr.c | 215 int ch, pos; local 229 ch = *src++; 230 if (isascii(ch)) 231 ch = (isupper(ch) ? ('A' + (ch - 'A' + 13) % 26) : 232 islower(ch) ? ('a' + (ch - 'a' + 13) % 26) : ch); 233 ch 246 int len, ch, pos; local [all...] |
/freebsd-10.1-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-10.1-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-10.1-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-10.1-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-10.1-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 401 int ch, i, numbits; local [all...] |