Lines Matching refs:ptr
300 …ic unsigned int scan_dev_name_common(const char *d, unsigned int n, int addendum, const char *ptr);
301 static unsigned int scan_dev_name(const char *d, unsigned int n, const char *ptr);
369 …tic unsigned int scan_dev_name_common(const char *d, unsigned int n, int addendum, const char *ptr) in scan_dev_name_common() argument
375 if (ptr[0] == 'p' && ptr[1] == 'a' && ptr[2] == 'r' && ptr[3] == 't') in scan_dev_name_common()
377 if (ptr[n - 2] == 'm' && ptr[n - 1] == 't') in scan_dev_name_common()
382 static unsigned int scan_dev_name(const char *d, unsigned int n, const char *ptr) in scan_dev_name() argument
389 return scan_dev_name_common(d, n, 0, ptr); in scan_dev_name()
394 return scan_dev_name_common(d, n, 4, ptr); in scan_dev_name()
568 char *ptr; in process_config_line() local
630 ptr = strchr(p[0], '.'); in process_config_line()
631 if (ptr == NULL) { in process_config_line()
636 *ptr++ = '\0'; in process_config_line()
638 new->u.permissions.gid = get_uid_gid(GID, ptr); in process_config_line()
925 const char *ptr; in action_compat() local
953 ptr = bb_basename(info->devname); in action_compat()
954 i = scan_dev_name(info->devname, info->namelen, ptr); in action_compat()
972 sprintf(compat_buf, fmt[i], host, bus, target, lun, atoi(ptr + 4)); in action_compat()
980 if (ptr[2] == 'l' /*108*/ || ptr[2] == 'm'/*109*/) in action_compat()
981 mode = ptr[2] - 107; /* 1 or 2 */ in action_compat()
982 if (ptr[2] == 'a') in action_compat()
989 snprintf(compat_buf, sizeof(compat_buf), fmt[i], host, bus, target, lun, ptr + 2); in action_compat()
1463 const char *ptr; in get_old_name() local
1498 ptr = bb_basename(devname); in get_old_name()
1499 i = scan_dev_name(devname, namelen, ptr); in get_old_name()
1512 compat_name = write_old_sd_name(buffer, major, minor, ((i == 2) ? "" : (ptr + 4))); in get_old_name()
1516 mode = ptr[2]; in get_old_name()
1526 sprintf(buffer, fmt[i] , get_old_ide_name(major, minor), ptr + 4); in get_old_name()
1530 sprintf(buffer, fmt[i], ptr + 2, minor & 0x7f); in get_old_name()
1632 const char *ptr; in st_expr_expand() local
1664 for (ptr = ++input; !isspace(ch) && (ch != '/') && (ch != '\0'); ch = *++ptr) in st_expr_expand()
1666 len = ptr - input; in st_expr_expand()
1670 input = ptr - 1; in st_expr_expand()
1726 const char *env, *ptr; in expand_variable() local
1744 for (ptr = input; isalnum(ch) || (ch == '_') || (ch == ':'); ch = *++ptr) in expand_variable()
1746 len = ptr - input; in expand_variable()
1751 input = ptr - 1; in expand_variable()
1767 for (ptr = input; isalnum(ch) || (ch == '_'); ch = *++ptr) in expand_variable()
1771 len = ptr - input; in expand_variable()
1776 ptr = expand_variable(buffer, length, out_pos, tmp, func, info); in expand_variable()
1777 if (ptr == NULL) in expand_variable()
1781 if (ch != ':' || ptr[1] != '-') { in expand_variable()
1786 len = ptr - input; in expand_variable()
1792 input = ptr; in expand_variable()
1794 ptr += 2; in expand_variable()
1795 ch = ptr[0]; in expand_variable()
1796 for (open_braces = 1; open_braces > 0; ch = *++ptr) { in expand_variable()
1811 --ptr; in expand_variable()
1817 input = ptr; in expand_variable()
1829 len = ptr - input; in expand_variable()
1834 input = ptr; in expand_variable()