Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 169) sorted by relevance

1234567

/freebsd/sys/arm64/coresight/
H A Dcoresight_cmd.c51 struct endpoint *endp; in coresight_next_device() local
53 TAILQ_FOREACH(endp, &cs_dev->pdata->endpoints, link) { in coresight_next_device()
54 if (endp->input != 0) in coresight_next_device()
57 out = coresight_get_output_device(endp, &out_endp); in coresight_next_device()
61 endp->cs_dev = cs_dev; in coresight_next_device()
62 LIST_INSERT_HEAD(&event->endplist, endp, in coresight_next_device()
97 struct endpoint *endp; in coresight_init_event() local
117 LIST_FOREACH(endp, &event->endplist, endplink) { in coresight_init_event()
118 cs_dev = endp->cs_dev; in coresight_init_event()
129 struct endpoint *endp; in coresight_enable() local
[all …]
H A Dcoresight_fdt.c56 struct endpoint *endp; in coresight_fdt_get_ports() local
83 endp = malloc(sizeof(struct endpoint), in coresight_fdt_get_ports()
85 endp->my_node = endpoint_child; in coresight_fdt_get_ports()
86 endp->their_node = OF_node_from_xref(xref); in coresight_fdt_get_ports()
87 endp->dev_node = dev_node; in coresight_fdt_get_ports()
88 endp->reg = port_reg; in coresight_fdt_get_ports()
92 endp->input = 1; in coresight_fdt_get_ports()
98 endp, link); in coresight_fdt_get_ports()
H A Dcoresight.c67 struct endpoint *endp; in coresight_get_output_endpoint() local
72 TAILQ_FOREACH(endp, &pdata->endpoints, link) { in coresight_get_output_endpoint()
73 if (endp->input == 0) in coresight_get_output_endpoint()
74 return (endp); in coresight_get_output_endpoint()
81 coresight_get_output_device(struct endpoint *endp, struct endpoint **out_endp) in coresight_get_output_device() argument
93 if (endp->their_node == endp2->my_node) { in coresight_get_output_device()
102 if (endp->their_handle == endp2->my_handle) { in coresight_get_output_device()
/freebsd/crypto/openssh/openbsd-compat/
H A Ddirname.c32 const char *endp; in dirname() local
42 endp = path + strlen(path) - 1; in dirname()
43 while (endp > path && *endp == '/') in dirname()
44 endp--; in dirname()
47 while (endp > path && *endp != '/') in dirname()
48 endp--; in dirname()
51 if (endp == path) { in dirname()
52 dname[0] = *endp == '/' ? '/' : '.'; in dirname()
58 endp--; in dirname()
59 } while (endp > path && *endp == '/'); in dirname()
[all …]
H A Dbasename.c31 const char *endp, *startp; in basename() local
41 endp = path + strlen(path) - 1; in basename()
42 while (endp > path && *endp == '/') in basename()
43 endp--; in basename()
46 if (endp == path && *endp == '/') { in basename()
53 startp = endp; in basename()
57 len = endp - startp + 1; in basename()
/freebsd/lib/libc/gen/
H A Ddirname_compat.c32 const char *endp; in __freebsd11_dirname() local
48 endp = path + strlen(path) - 1; in __freebsd11_dirname()
49 while (endp > path && *endp == '/') in __freebsd11_dirname()
50 endp--; in __freebsd11_dirname()
53 while (endp > path && *endp != '/') in __freebsd11_dirname()
54 endp--; in __freebsd11_dirname()
57 if (endp == path) { in __freebsd11_dirname()
58 dname[0] = *endp == '/' ? '/' : '.'; in __freebsd11_dirname()
64 endp--; in __freebsd11_dirname()
65 } while (endp > path && *endp == '/'); in __freebsd11_dirname()
[all …]
H A Dbasename_compat.c31 const char *endp, *startp; in __freebsd11_basename_r() local
42 endp = path + strlen(path) - 1; in __freebsd11_basename_r()
43 while (endp > path && *endp == '/') in __freebsd11_basename_r()
44 endp--; in __freebsd11_basename_r()
47 if (endp == path && *endp == '/') { in __freebsd11_basename_r()
54 startp = endp; in __freebsd11_basename_r()
58 len = endp - startp + 1; in __freebsd11_basename_r()
/freebsd/contrib/lib9p/
H A Drfuncs.c66 const char *endp, *comp; in r_basename() local
84 endp = path + strlen(path) - 1; in r_basename()
85 while (*endp == '/' && endp > path) in r_basename()
86 endp--; in r_basename()
88 if (*endp == '/') { in r_basename()
117 comp = endp; in r_basename()
120 len = (size_t)(endp - comp + 1); in r_basename()
161 const char *endp, *dirpart; in r_dirname() local
195 endp = path + strlen(path) - 1; in r_dirname()
196 while (endp > path && *endp == '/') in r_dirname()
[all …]
/freebsd/contrib/bmake/
H A Ddirname.c63 const char *endp; in xdirname_r() local
77 endp = path + strlen(path) - 1; in xdirname_r()
78 while (endp != path && *endp == '/') in xdirname_r()
79 endp--; in xdirname_r()
82 while (endp > path && *endp != '/') in xdirname_r()
83 endp--; in xdirname_r()
85 if (endp == path) { in xdirname_r()
86 path = *endp == '/' ? "/" : "."; in xdirname_r()
92 endp--; in xdirname_r()
93 while (endp > path && *endp == '/'); in xdirname_r()
[all …]
/freebsd/lib/libc/resolv/
H A Dres_mkupdate.c93 u_char *cp, *sp2, *startp, *endp; in res_nmkupdate() local
219 endp = startp + rrecp->r_size - 1; in res_nmkupdate()
223 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
238 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
251 endp)) in res_nmkupdate()
271 soanum = getnum_str(&startp, endp); in res_nmkupdate()
287 n = getnum_str(&startp, endp); in res_nmkupdate()
292 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
301 n = getnum_str(&startp, endp); in res_nmkupdate()
307 n = getnum_str(&startp, endp); in res_nmkupdate()
[all …]
/freebsd/usr.sbin/ypldap/
H A Dentries.c44 char *endp; in flatten_entries() local
63 endp = linep; in flatten_entries()
73 memcpy(endp, ue->ue_line, len); in flatten_entries()
74 endp[strcspn(endp, ":")] = '\0'; in flatten_entries()
76 ue->ue_line = endp; in flatten_entries()
77 endp += len; in flatten_entries()
99 endp = linep; in flatten_entries()
108 memcpy(endp, ge->ge_line, len); in flatten_entries()
109 endp[strcspn(endp, ":")] = '\0'; in flatten_entries()
111 ge->ge_line = endp; in flatten_entries()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dinet_pton.c138 unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
144 endp = tp + NS_IN6ADDRSZ; in inet_pton6()
173 if (NS_INT16SZ > endp - tp) in inet_pton6()
181 if (ch == '.' && (NS_INADDRSZ <= endp - tp) && in inet_pton6()
190 if (NS_INT16SZ > endp - tp) in inet_pton6()
203 if (tp == endp) in inet_pton6()
206 endp[- i] = colonp[n - i]; in inet_pton6()
209 tp = endp; in inet_pton6()
211 if (tp != endp) in inet_pton6()
/freebsd/sys/libkern/
H A Dinet_pton.c128 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
134 endp = tp + NS_IN6ADDRSZ; in inet_pton6()
165 if (tp + NS_INT16SZ > endp) in inet_pton6()
173 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6()
182 if (tp + NS_INT16SZ > endp) in inet_pton6()
195 if (tp == endp) in inet_pton6()
198 endp[- i] = colonp[n - i]; in inet_pton6()
201 tp = endp; in inet_pton6()
203 if (tp != endp) in inet_pton6()
/freebsd/lib/libc/inet/
H A Dinet_pton.c132 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
138 endp = tp + NS_IN6ADDRSZ; in inet_pton6()
169 if (tp + NS_INT16SZ > endp) in inet_pton6()
177 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6()
186 if (tp + NS_INT16SZ > endp) in inet_pton6()
199 if (tp == endp) in inet_pton6()
202 endp[- i] = colonp[n - i]; in inet_pton6()
205 tp = endp; in inet_pton6()
207 if (tp != endp) in inet_pton6()
H A Dinet_cidr_pton.c152 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() local
159 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6()
192 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
200 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_cidr_pton_ipv6()
215 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
228 if (tp == endp) in inet_cidr_pton_ipv6()
231 endp[- i] = colonp[n - i]; in inet_cidr_pton_ipv6()
234 tp = endp; in inet_cidr_pton_ipv6()
/freebsd/contrib/tcpdump/
H A Dstrtoaddr.c155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in strtoaddr6() local
161 endp = tp + NS_IN6ADDRSZ; in strtoaddr6()
191 if (tp + NS_INT16SZ > endp) in strtoaddr6()
199 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in strtoaddr6()
208 if (tp + NS_INT16SZ > endp) in strtoaddr6()
221 if (tp == endp) in strtoaddr6()
224 endp[- i] = colonp[n - i]; in strtoaddr6()
227 tp = endp; in strtoaddr6()
229 if (tp != endp) in strtoaddr6()
/freebsd/contrib/unbound/compat/
H A Dinet_pton.c154 uint8_t tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
160 endp = tp + NS_IN6ADDRSZ;
190 if (tp + NS_INT16SZ > endp)
198 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
207 if (tp + NS_INT16SZ > endp)
221 endp[- i] = colonp[n - i];
224 tp = endp;
226 if (tp != endp)
/freebsd/contrib/ldns/compat/
H A Dinet_pton.c154 uint8_t tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
160 endp = tp + NS_IN6ADDRSZ;
190 if (tp + NS_INT16SZ > endp)
198 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
207 if (tp + NS_INT16SZ > endp)
221 endp[- i] = colonp[n - i];
224 tp = endp;
226 if (tp != endp)
/freebsd/contrib/wpa/src/fst/
H A Dfst_ctrl_iface.c559 char *endp; in get_peer_mbies() local
566 if (fst_read_next_text_param(params, ifname, sizeof(ifname), &endp) || in get_peer_mbies()
570 while (isspace(*endp)) in get_peer_mbies()
571 endp++; in get_peer_mbies()
572 if (fst_read_peer_addr(endp, peer_addr)) in get_peer_mbies()
821 int fst_read_next_int_param(const char *params, bool *valid, char **endp) in fst_read_next_int_param() argument
827 *endp = (char *) params; in fst_read_next_int_param()
830 ret = (int) strtol(curp, endp, 0); in fst_read_next_int_param()
831 if (!**endp || isspace(**endp)) in fst_read_next_int_param()
840 char **endp) in fst_read_next_text_param() argument
[all …]
/freebsd/sbin/mknod/
H A Dmknod.c104 char *cp, *endp; in main() local
120 mymajor = (long)strtoul(argv[3], &endp, 0); in main()
121 if (endp == argv[3] || *endp != '\0') in main()
125 myminor = (long)strtoul(argv[4], &endp, 0); in main()
126 if (endp == argv[4] || *endp != '\0') in main()
/freebsd/contrib/nvi/ex/
H A Dex_script.c196 char *endp, *p, *t, buf[1024]; in sscr_getprompt() local
208 endp = buf; in sscr_getprompt()
228 more: len = sizeof(buf) - (endp - buf); in sscr_getprompt()
229 switch (nr = read(sc->sh_master, endp, len)) { in sscr_getprompt()
237 endp += nr; in sscr_getprompt()
242 for (p = t = buf; p < endp; ++p) { in sscr_getprompt()
253 memmove(buf, t, endp - t); in sscr_getprompt()
254 endp = buf + (endp - t); in sscr_getprompt()
256 if (endp == buf) in sscr_getprompt()
273 llen = endp - buf; in sscr_getprompt()
[all …]
/freebsd/contrib/nvi/vi/
H A Dv_ch.c139 CHAR_T *endp, *p, *startp; in v_chf() local
162 endp = (startp = p) + len; in v_chf()
165 while (++p < endp && *p != key); in v_chf()
166 if (p == endp) { in v_chf()
230 CHAR_T *endp, *p; in v_chF() local
254 endp = p - 1; in v_chF()
257 while (--p > endp && *p != key); in v_chF()
258 if (p == endp) { in v_chF()
264 vp->m_stop.cno = (p - endp) - 1; in v_chF()
/freebsd/usr.sbin/chroot/
H A Dchroot.c54 char *endp, *p, *user, *group, *grouplist; in main() local
99 gid = (gid_t)strtoul(group, &endp, 0); in main()
100 if (*endp != '\0') in main()
120 gidlist[gids] = (gid_t)strtoul(p, &endp, 0); in main()
121 if (*endp != '\0') in main()
137 uid = (uid_t)strtoul(user, &endp, 0); in main()
138 if (*endp != '\0') in main()
/freebsd/lib/libc/stdlib/
H A Dlsearch.c37 uint8_t *ep, *endp; in lwork() local
40 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) { in lwork()
53 memcpy(endp, key, width); in lwork()
56 return (endp); in lwork()
/freebsd/lib/libc/tests/stdio/
H A Dscanfloat_test.c282 char *endp; in ATF_TC_BODY() local
286 ATF_REQUIRE(strtod("0xy", &endp) == 0); in ATF_TC_BODY()
287 ATF_REQUIRE(strcmp("xy", endp) == 0); in ATF_TC_BODY()
291 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY()
292 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY()
294 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY()
295 ATF_REQUIRE(strtod("2e308", &endp) == INFINITY); in ATF_TC_BODY()
297 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY()
298 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY()
300 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY()
[all …]

1234567