Lines Matching refs:from
32 prom_path_gettoken(register char *from, register char *to)
34 while (*from) {
35 switch (*from) {
41 return (from);
43 *to++ = *from++;
47 return (from);
62 char *from = tmp;
83 if ((uintptr_t)from > (uint32_t)-1) {
84 from = promplat_alloc(OBP_MAXPATHLEN);
85 if (from == NULL) {
95 (void) prom_strcpy(from, to);
101 ci[3] = p1275_ptr2cell(from); /* Arg1: token */
115 if (from != tmp) {
116 (void) prom_strcpy(tmp, from);
117 promplat_free(from, OBP_MAXPATHLEN);
118 from = tmp;
124 * options from the input string ... save options at
143 if ((p = prom_strrchr(from, '/')) == 0)
144 p = from;
155 * Strip any options strings from an OBP pathname.
156 * Output buffer (to) expected to be as large as input buffer (from).
159 prom_strip_options(char *from, char *to)
161 while (*from != (char)0) {
162 if (*from == ':') {
163 while ((*from != (char)0) && (*from != '/'))
164 ++from;
166 *to++ = *from++;