Lines Matching defs:tmp
40 char tmp[64];
44 strncpy(tmp, str, sizeof(tmp));
45 tmp[sizeof(tmp)-1] = '\0';
46 len_str = strlen(tmp);
52 switch(tmp[len_str - 1]) {
59 tmp[len_str - 1] = '\0';
65 *plen = strtoull(tmp, NULL, 0);
100 const char *tmp;
110 if (!(tmp = config_str(partnode, "type", NULL))) {
116 if (!strcmp(tmp, "linux")) {
118 } else if (!strcmp(tmp, "fat32")) {
121 ALOGE("Unsupported partition type found: %s", tmp);
125 if ((tmp = config_str(partnode, "len", NULL)) != NULL) {
127 if (parse_len(tmp, &len))
146 const char *tmp;
173 if (!(tmp = config_str(devroot, "path", path_override))) {
177 dinfo->device = strdup(tmp);
180 if (!(tmp = config_str(devroot, "scheme", NULL))) {
183 } else if (!strcmp(tmp, "mbr")) {
185 } else if (!strcmp(tmp, "gpt")) {
189 ALOGE("Unknown partition scheme specified: %s", tmp);
194 tmp = config_str(devroot, "sector_size", "512");
195 dinfo->sect_size = strtol(tmp, NULL, 0);
197 ALOGE("Invalid sector size: %s", tmp);
202 if (!(tmp = config_str(devroot, "start_lba", NULL))) {
207 if (!(dinfo->skip_lba = strtol(tmp, NULL, 0))) {
208 ALOGE("Invalid starting LBA (or zero): %s", tmp);
213 if (!(tmp = config_str(devroot, "num_lba", NULL))) {
217 dinfo->num_lba = strtoul(tmp, NULL, 0);