• Home
  • Raw
  • Download

Lines Matching refs:p

64 static int ParseDeviceConfig(char *p)  in ParseDeviceConfig()  argument
66 INIT_LOGV("Parse device config info: %s", p); in ParseDeviceConfig()
72 INIT_CHECK_ONLY_ELOG(!INVALIDSTRING(p), "Invalid argument"); in ParseDeviceConfig()
73 items = SplitStringExt(p, " ", &count, expectedCount); in ParseDeviceConfig()
75 INIT_LOGE("Ignore invalid item: %s", p); in ParseDeviceConfig()
104 static int ParseSysfsConfig(char *p) in ParseSysfsConfig() argument
106 INIT_LOGV("Parse sysfs config info: %s", p); in ParseSysfsConfig()
112 INIT_CHECK_ONLY_ELOG(!INVALIDSTRING(p), "Invalid argument"); in ParseSysfsConfig()
113 items = SplitStringExt(p, " ", &count, expectedCount); in ParseSysfsConfig()
115 INIT_LOGE("Ignore invalid item: %s", p); in ParseSysfsConfig()
138 static int ParseFirmwareConfig(char *p) in ParseFirmwareConfig() argument
140 INIT_LOGV("Parse firmware config info: %s", p); in ParseFirmwareConfig()
141 INIT_ERROR_CHECK(!INVALIDSTRING(p), return -1, "Invalid argument"); in ParseFirmwareConfig()
145 INIT_ERROR_CHECK(stat(p, &st) == 0, return -1, "Invalid firmware file: %s, err = %d", p, errno); in ParseFirmwareConfig()
150 config->fmPath = strdup(p); in ParseFirmwareConfig()
180 char *p = buffer; in ParseUeventConfig() local
184 if (*p == '[') { in ParseUeventConfig()
185 p++; in ParseUeventConfig()
186 if ((right = strchr(p, ']')) == NULL) { in ParseUeventConfig()
191 section = p; in ParseUeventConfig()
201 return (callback != NULL) ? callback(p) : -1; in ParseUeventConfig()
213 char *p = items[i]; in DoUeventConfigParse() local
215 while (isspace(*p)) { in DoUeventConfigParse()
216 p++; in DoUeventConfigParse()
220 if (*p == '\0' || *p == '#') { in DoUeventConfigParse()
223 int rc = ParseUeventConfig(p); in DoUeventConfigParse()
225 INIT_LOGE("Parse uevent config from %s failed", p); in DoUeventConfigParse()
280 const char *p = pattern; in IsMatch() local
284 if (*t == *p) { in IsMatch()
286 p++; in IsMatch()
291 if (*p == '?') { in IsMatch()
292 p++; in IsMatch()
297 if (*p == '\0') { in IsMatch()
301 if (*p == '*') { in IsMatch()
305 plast = ++p; in IsMatch()
312 p = plast; in IsMatch()
319 while (*p == '*') { in IsMatch()
320 p++; in IsMatch()
322 return (*p == '\0'); in IsMatch()