Home
last modified time | relevance | path

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

1234567

/freebsd-13-stable/sys/arm64/coresight/
HDcoresight_cmd.c52 struct endpoint *endp; in coresight_next_device() local
54 TAILQ_FOREACH(endp, &cs_dev->pdata->endpoints, link) { in coresight_next_device()
55 if (endp->input != 0) in coresight_next_device()
58 out = coresight_get_output_device(endp, &out_endp); in coresight_next_device()
62 endp->cs_dev = cs_dev; in coresight_next_device()
63 LIST_INSERT_HEAD(&event->endplist, endp, in coresight_next_device()
98 struct endpoint *endp; in coresight_init_event() local
118 LIST_FOREACH(endp, &event->endplist, endplink) { in coresight_init_event()
119 cs_dev = endp->cs_dev; in coresight_init_event()
130 struct endpoint *endp; in coresight_enable() local
[all …]
HDcoresight_fdt.c57 struct endpoint *endp; in coresight_fdt_get_ports() local
84 endp = malloc(sizeof(struct endpoint), in coresight_fdt_get_ports()
86 endp->my_node = endpoint_child; in coresight_fdt_get_ports()
87 endp->their_node = OF_node_from_xref(xref); in coresight_fdt_get_ports()
88 endp->dev_node = dev_node; in coresight_fdt_get_ports()
89 endp->reg = port_reg; in coresight_fdt_get_ports()
93 endp->input = 1; in coresight_fdt_get_ports()
99 endp, link); in coresight_fdt_get_ports()
HDcoresight.c68 struct endpoint *endp; in coresight_get_output_endpoint() local
73 TAILQ_FOREACH(endp, &pdata->endpoints, link) { in coresight_get_output_endpoint()
74 if (endp->input == 0) in coresight_get_output_endpoint()
75 return (endp); in coresight_get_output_endpoint()
82 coresight_get_output_device(struct endpoint *endp, struct endpoint **out_endp) in coresight_get_output_device() argument
94 if (endp->their_node == endp2->my_node) { in coresight_get_output_device()
103 if (endp->their_handle == endp2->my_handle) { in coresight_get_output_device()
/freebsd-13-stable/crypto/openssh/openbsd-compat/
HDdirname.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 …]
HDbasename.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-13-stable/lib/libc/gen/
HDdirname_compat.c33 const char *endp; in __freebsd11_dirname() local
49 endp = path + strlen(path) - 1; in __freebsd11_dirname()
50 while (endp > path && *endp == '/') in __freebsd11_dirname()
51 endp--; in __freebsd11_dirname()
54 while (endp > path && *endp != '/') in __freebsd11_dirname()
55 endp--; in __freebsd11_dirname()
58 if (endp == path) { in __freebsd11_dirname()
59 dname[0] = *endp == '/' ? '/' : '.'; in __freebsd11_dirname()
65 endp--; in __freebsd11_dirname()
66 } while (endp > path && *endp == '/'); in __freebsd11_dirname()
[all …]
HDbasename_compat.c32 const char *endp, *startp; in __freebsd11_basename_r() local
43 endp = path + strlen(path) - 1; in __freebsd11_basename_r()
44 while (endp > path && *endp == '/') in __freebsd11_basename_r()
45 endp--; in __freebsd11_basename_r()
48 if (endp == path && *endp == '/') { in __freebsd11_basename_r()
55 startp = endp; in __freebsd11_basename_r()
59 len = endp - startp + 1; in __freebsd11_basename_r()
/freebsd-13-stable/contrib/bmake/
HDdirname.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-13-stable/contrib/lib9p/
HDrfuncs.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-13-stable/lib/libc/resolv/
HDres_mkupdate.c97 u_char *cp, *sp2, *startp, *endp; in res_nmkupdate() local
223 endp = startp + rrecp->r_size - 1; in res_nmkupdate()
227 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
242 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
255 endp)) in res_nmkupdate()
275 soanum = getnum_str(&startp, endp); in res_nmkupdate()
291 n = getnum_str(&startp, endp); in res_nmkupdate()
296 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
305 n = getnum_str(&startp, endp); in res_nmkupdate()
311 n = getnum_str(&startp, endp); in res_nmkupdate()
[all …]
/freebsd-13-stable/usr.sbin/ypldap/
HDentries.c45 char *endp; in flatten_entries() local
65 endp = linep; in flatten_entries()
75 memcpy(endp, ue->ue_line, len); in flatten_entries()
76 endp[strcspn(endp, ":")] = '\0'; in flatten_entries()
78 ue->ue_line = endp; in flatten_entries()
79 endp += len; in flatten_entries()
103 endp = linep; in flatten_entries()
112 memcpy(endp, ge->ge_line, len); in flatten_entries()
113 endp[strcspn(endp, ":")] = '\0'; in flatten_entries()
115 ge->ge_line = endp; in flatten_entries()
[all …]
/freebsd-13-stable/contrib/tcpdump/
HDstrtoaddr.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-13-stable/contrib/ntp/libntp/lib/isc/
HDinet_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-13-stable/sys/libkern/
HDinet_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()
/freebsd-13-stable/lib/libc/inet/
HDinet_pton.c136 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
142 endp = tp + NS_IN6ADDRSZ; in inet_pton6()
173 if (tp + NS_INT16SZ > endp) in inet_pton6()
181 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6()
190 if (tp + NS_INT16SZ > endp) 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-13-stable/contrib/ldns/compat/
HDinet_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-13-stable/contrib/apr/network_io/unix/
HDinet_pton.c163 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
169 endp = tp + IN6ADDRSZ; in inet_pton6()
199 if (tp + INT16SZ > endp) in inet_pton6()
207 if (ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
216 if (tp + INT16SZ > endp) in inet_pton6()
230 endp[- i] = colonp[n - i]; in inet_pton6()
233 tp = endp; in inet_pton6()
235 if (tp != endp) in inet_pton6()
/freebsd-13-stable/contrib/unbound/compat/
HDinet_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-13-stable/sbin/mknod/
HDmknod.c116 char *cp, *endp; in main() local
132 mymajor = (long)strtoul(argv[3], &endp, 0); in main()
133 if (endp == argv[3] || *endp != '\0') in main()
137 myminor = (long)strtoul(argv[4], &endp, 0); in main()
138 if (endp == argv[4] || *endp != '\0') in main()
/freebsd-13-stable/contrib/wpa/src/fst/
HDfst_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-13-stable/contrib/nvi/ex/
HDex_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-13-stable/usr.sbin/chroot/
HDchroot.c66 char *endp, *p, *user, *group, *grouplist; in main() local
111 gid = (gid_t)strtoul(group, &endp, 0); in main()
112 if (*endp != '\0') in main()
132 gidlist[gids] = (gid_t)strtoul(p, &endp, 0); in main()
133 if (*endp != '\0') in main()
149 uid = (uid_t)strtoul(user, &endp, 0); in main()
150 if (*endp != '\0') in main()
/freebsd-13-stable/contrib/nvi/vi/
HDv_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-13-stable/lib/libc/stdlib/
HDlsearch.c38 uint8_t *ep, *endp; in lwork() local
41 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) { in lwork()
54 memcpy(endp, key, width); in lwork()
57 return (endp); in lwork()
/freebsd-13-stable/lib/libc/tests/stdio/
HDscanfloat_test.c283 char *endp; in ATF_TC_BODY() local
287 ATF_REQUIRE(strtod("0xy", &endp) == 0); in ATF_TC_BODY()
288 ATF_REQUIRE(strcmp("xy", endp) == 0); in ATF_TC_BODY()
292 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY()
293 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY()
295 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY()
296 ATF_REQUIRE(strtod("2e308", &endp) == INFINITY); in ATF_TC_BODY()
298 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY()
299 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY()
301 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY()
[all …]

1234567