Home
last modified time | relevance | path

Searched refs:pch (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd/contrib/ntp/libntp/
H A Dsocktoa.c113 const u_char *pch; in sock_hash()
123 pch = (const void *)&AF(addr); in sock_hash()
124 hashVal = 37 * hashVal + *pch; in sock_hash()
126 pch++; in sock_hash()
127 hashVal = 37 * hashVal + *pch; in sock_hash()
131 pch = (const void *)&SOCK_ADDR4(addr); in sock_hash()
136 pch = (const void *)&SOCK_ADDR6(addr); in sock_hash()
142 hashVal = 37 * hashVal + pch[j]; in sock_hash()
114 const u_char *pch; sock_hash() local
H A Dssl_init.c100 char * pch; in keytype_from_text()
116 for (pch = upcased; '\0' != *pch; pch++) { in keytype_from_text()
117 *pch = (char)toupper((unsigned char)*pch); in keytype_from_text()
107 char * pch; keytype_from_text() local
H A Dis_ip_address.c38 char *pch; in is_ip_address() local
66 pch = strchr(tmpbuf, ']'); in is_ip_address()
67 if (pch != NULL) in is_ip_address()
68 *pch = '\0'; in is_ip_address()
H A Dstatestr.c352 char * pch; in decode_bitflags()
360 pch = buf; in decode_bitflags()
374 size_t avail = lim - pch; in decode_bitflags()
375 rc = snprintf(pch, avail, "%s%s", sep, in decode_bitflags()
379 pch += rc; in decode_bitflags()
353 char * pch; decode_bitflags() local
/freebsd/lib/libc/inet/
H A Dinet_net_pton.c197 const char *pch; in getbits() local
199 pch = strchr(digits, ch); in getbits()
200 if (pch != NULL) { in getbits()
204 val += (pch - digits); in getbits()
228 const char *pch; in getv4() local
230 pch = strchr(digits, ch); in getv4()
231 if (pch != NULL) { in getv4()
235 val += (pch - digits); in getv4()
288 const char *pch; in inet_net_pton_ipv6() local
290 if ((pch in inet_net_pton_ipv6()
[all...]
H A Dinet_pton.c85 const char *pch; in inet_pton4() local
87 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4()
88 u_int new = *tp * 10 + (pch - digits); in inet_pton4()
148 const char *pch; in inet_pton6() local
150 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_pton6()
151 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6()
152 if (pch != NULL) { in inet_pton6()
154 val |= (pch - xdigits); in inet_pton6()
H A Dinet_cidr_pton.c170 const char *pch; in inet_cidr_pton_ipv6() local
172 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_cidr_pton_ipv6()
173 pch = strchr((xdigits = xdigits_u), ch); in inet_cidr_pton_ipv6()
174 if (pch != NULL) { in inet_cidr_pton_ipv6()
176 val |= (pch - xdigits); in inet_cidr_pton_ipv6()
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dinet_pton.c92 const char *pch; in inet_pton4() local
94 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4()
95 size_t newv = *tp * 10 + (pch - digits); in inet_pton4()
154 const char *pch; in inet_pton6() local
156 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_pton6()
157 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6()
158 if (pch != NULL) { in inet_pton6()
160 val |= (pch - xdigits); in inet_pton6()
/freebsd/sys/libkern/
H A Dinet_pton.c79 const char *pch; in inet_pton4() local
81 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4()
82 u_int new = *tp * 10 + (pch - digits); in inet_pton4()
144 const char *pch; in inet_pton6() local
146 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_pton6()
147 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6()
148 if (pch != NULL) { in inet_pton6()
150 val |= (pch - xdigits); in inet_pton6()
/freebsd/contrib/unbound/compat/
H A Dinet_pton.c106 const char *pch; local
108 if ((pch = strchr(digits, ch)) != NULL) {
109 uint32_t new = *tp * 10 + (pch - digits);
170 const char *pch; local
172 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL)
173 pch = strchr((xdigits = xdigits_u), ch);
174 if (pch != NULL) {
176 val |= (pch - xdigits);
/freebsd/contrib/ldns/compat/
H A Dinet_pton.c106 const char *pch; local
108 if ((pch = strchr(digits, ch)) != NULL) {
109 uint32_t new = *tp * 10 + (pch - digits);
170 const char *pch; local
172 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL)
173 pch = strchr((xdigits = xdigits_u), ch);
174 if (pch != NULL) {
176 val |= (pch - xdigits);
/freebsd/contrib/elftoolchain/elfcopy/
H A Dpe.c51 PE_CoffHdr pch; in create_pe() local
81 memset(&pch, 0, sizeof(pch)); in create_pe()
84 pch.ch_machine = IMAGE_FILE_MACHINE_I386; in create_pe()
87 pch.ch_machine = IMAGE_FILE_MACHINE_AMD64; in create_pe()
90 pch.ch_machine = IMAGE_FILE_MACHINE_UNKNOWN; in create_pe()
95 pch.ch_timestamp = (uint32_t) timestamp; in create_pe()
96 if (pe_update_coff_header(pe, &pch) < 0) in create_pe()
/freebsd/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c412 struct pmcstat_cgnode_hash *pch; in pmcstat_callgraph_print_for_pmcid() local
430 LIST_FOREACH(pch, &pmcstat_cgnode_hash[n], pch_next) in pmcstat_callgraph_print_for_pmcid()
431 if (pch->pch_pmcid == pmcid) { in pmcstat_callgraph_print_for_pmcid()
432 nsamples += pch->pch_cgnode->pcg_count; in pmcstat_callgraph_print_for_pmcid()
433 *cgn++ = pch->pch_cgnode; in pmcstat_callgraph_print_for_pmcid()
600 struct pmcstat_cgnode_hash *pch; in pmcpl_cg_topdisplay() local
623 LIST_FOREACH(pch, &pmcstat_cgnode_hash[n], pch_next) in pmcpl_cg_topdisplay()
624 if (pmcr == NULL || pch->pch_pmcid == pmcr->pr_pmcid) { in pmcpl_cg_topdisplay()
625 nsamples += pch->pch_cgnode->pcg_count; in pmcpl_cg_topdisplay()
626 *cgn++ = pch in pmcpl_cg_topdisplay()
689 struct pmcstat_cgnode_hash *pch, *pchtmp; pmcpl_cg_shutdown() local
[all...]
H A Dpmcpl_calltree.c353 struct pmcpl_ct_node_hash *pch; in pmcpl_ct_node_cleartag() local
356 STAILQ_FOREACH(pch, &pmcpl_ct_node_hash[i], pch_next) in pmcpl_ct_node_cleartag()
357 pch->pch_ctnode->pct_color = PMCPL_PCT_WHITE; in pmcpl_ct_node_cleartag()
985 struct pmcpl_ct_node_hash *pch, *pchc; in pmcpl_ct_bfs() local
990 if ((pch = malloc(sizeof(*pch))) == NULL) in pmcpl_ct_bfs()
992 pch->pch_ctnode = ct; in pmcpl_ct_bfs()
993 STAILQ_INSERT_TAIL(&q, pch, pch_next); in pmcpl_ct_bfs()
997 pch = STAILQ_FIRST(&q); in pmcpl_ct_bfs()
999 pmcpl_ct_printnode(pch->pch_ctnode); in pmcpl_ct_bfs()
1000 for (i = 0; i<pch->pch_ctnode->pct_narc; i++) { in pmcpl_ct_bfs()
[all …]
/freebsd/contrib/ntp/sntp/
H A Dkod_management.c129 char *pch; in write_kod_db() local
143 pch = strchr(kod_db_file + 1, DIR_SEP); in write_kod_db()
144 while (NULL != pch) { in write_kod_db()
145 *pch = '\0'; in write_kod_db()
152 *pch = DIR_SEP; in write_kod_db()
153 pch = strchr(pch + 1, DIR_SEP); in write_kod_db()
/freebsd/contrib/tcpdump/
H A Dstrtoaddr.c171 const char *pch; in strtoaddr6() local
173 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in strtoaddr6()
174 pch = strchr((xdigits = xdigits_u), ch); in strtoaddr6()
175 if (pch != NULL) { in strtoaddr6()
177 val |= (int)(pch - xdigits); in strtoaddr6()
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_audio.c121 struct bcm2835_audio_chinfo pch; member
228 chn_intr(sc->pch.channel); in bcm2835_audio_callback()
473 struct bcm2835_audio_chinfo *ch = &sc->pch; in bcm2835_audio_worker()
518 bcm2835_audio_reset_channel(&sc->pch); in bcm2835_audio_worker()
590 struct bcm2835_audio_chinfo *ch = &sc->pch; in bcmchan_init()
681 chn_intr(sc->pch.channel); in bcmchan_trigger()
816 CTLFLAG_RD, &sc->pch.callbacks, in vchi_audio_sysctl_init()
819 CTLFLAG_RD, &sc->pch.submitted_samples, in vchi_audio_sysctl_init()
822 CTLFLAG_RD, &sc->pch.retrieved_samples, in vchi_audio_sysctl_init()
825 CTLFLAG_RD, &sc->pch.underruns, in vchi_audio_sysctl_init()
[all …]
/freebsd/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c190 int ch, pch, fid_len, res = 0; in getthefile() local
239 pch = ch = getc(bpf); in getthefile()
240 while ( ! ( ch == '\n' && pch != '\\') && ch != EOF) { in getthefile()
241 pch = ch; ch = getc(bpf); in getthefile()
288 int ch, pch; in checkhost() local
345 pch = ch = getc(bpf); in checkhost()
346 while ( ! ( ch == '\n' && pch != '\\') && ch != EOF) { in checkhost()
347 pch = ch; ch = getc(bpf); in checkhost()
/freebsd/sys/contrib/device-tree/src/mips/loongson/
H A Dloongson64c_4core_ls7a.dts6 #include "ls7a-pch.dtsi"
27 &pch {
29 compatible = "loongson,pch-msi-1.0";
H A Dloongson64g_4core_ls7a.dts6 #include "ls7a-pch.dtsi"
31 &pch {
33 compatible = "loongson,pch-msi-1.0";
/freebsd/sys/dev/sound/pci/
H A Datiixp.c122 struct atiixp_chinfo pch; member
445 ch = &sc->pch; in atiixp_chan_init()
684 #define atiixp_chan_active(sc) (((sc)->pch.flags | (sc)->rch.flags) & \
702 trigger |= (atiixp_poll_channel(&sc->pch) != 0) ? 1 : 0; in atiixp_poll_callback()
712 chn_intr(sc->pch.channel); in atiixp_poll_callback()
779 if (sc->pch.flags & ATI_IXP_CHN_RUNNING) in atiixp_chan_trigger()
780 ch = &sc->pch; in atiixp_chan_trigger()
888 (sc->pch.flags & ATI_IXP_CHN_RUNNING)) in atiixp_intr()
922 chn_intr(sc->pch.channel); in atiixp_intr()
1341 if (sc->pch.flags & ATI_IXP_CHN_RUNNING) { in atiixp_pci_suspend()
[all …]
H A Dcs4281.c97 struct sc_chinfo pch; member
319 struct sc_chinfo *ch = (dir == PCMDIR_PLAY) ? &sc->pch : &sc->rch; in cs4281chan_init()
518 chn_intr(sc->pch.channel); in cs4281_intr()
907 sc->pch.dma_active = adcdac_go(&sc->pch, 0); in cs4281_pci_suspend()
942 cs4281chan_setspeed(NULL, &sc->pch, sc->pch.spd); in cs4281_pci_resume()
943 cs4281chan_setblocksize(NULL, &sc->pch, sc->pch.blksz); in cs4281_pci_resume()
944 cs4281chan_setformat(NULL, &sc->pch, sc->pch.fmt); in cs4281_pci_resume()
945 adcdac_go(&sc->pch, sc->pch.dma_active); in cs4281_pci_resume()
H A Dmaestro3.c151 struct sc_pchinfo pch[M3_PCHANS]; member
427 ch = &sc->pch[idx]; in m3_pchan_init()
626 ret += sc->pch[i].active; in m3_chan_active()
1106 struct sc_pchinfo *pch; in m3_intr() local
1160 pch = &sc->pch[i]; in m3_intr()
1161 if (pch->active) { in m3_intr()
1162 pch->ptr = m3_pchan_getptr_internal(pch); in m3_intr()
1163 delta = pch->bufsize + pch->ptr - pch->prevptr; in m3_intr()
1164 delta %= pch->bufsize; in m3_intr()
1165 if (delta < sndbuf_getblksz(pch->buffer)) in m3_intr()
[all …]
/freebsd/usr.bin/from/
H A Dfrom.c135 char ch, pch, first; in match() local
146 if (!(pch = *p++)) in match()
150 if (ch != pch) in match()
/freebsd/lib/libutil/
H A Dlogin_class.c140 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) in substvar() argument
158 - dollas + (tildes * (pch+hlen)) in substvar()
175 int v = pch && *(p+1) != '/'; /* Avoid double // */ in substvar()
202 char pch = 0; in setclassenvironment() local
205 ++pch; in setclassenvironment()
211 char * np = substvar(var, pwd, hlen, pch, nlen); in setclassenvironment()
242 if ((np = substvar(p, pwd, hlen, pch, nlen)) != NULL) { in setclassenvironment()

1234