Lines Matching refs:ptr
163 static char* find_keyword(char *ptr, size_t len, const char *word) in find_keyword() argument
165 if (!ptr) /* happens if xmalloc_open_zipped_read_close cannot read it */ in find_keyword()
170 char *old = ptr; in find_keyword()
174 ptr = memchr(ptr, word[0], len); in find_keyword()
175 if (ptr == NULL) /* no occurrence left, done */ in find_keyword()
177 after_word = is_prefixed_with(ptr, word); in find_keyword()
180 ++ptr; in find_keyword()
181 len -= (ptr - old); in find_keyword()
299 char *ptr; in parse_module() local
316 ptr = find_keyword(module_image + pos, len - pos, "alias="); in parse_module()
317 if (!ptr) { in parse_module()
318 ptr = find_keyword(module_image + pos, len - pos, "__ksymtab_"); in parse_module()
319 if (!ptr) in parse_module()
323 if (strcmp(ptr, "gpl") == 0 || strcmp(ptr, "strings") == 0) in parse_module()
325 dbg2_error_msg("alias:'symbol:%s'", ptr); in parse_module()
328 dbg2_error_msg("alias:'%s'", ptr); in parse_module()
330 append(ptr); in parse_module()
358 pos = (ptr - module_image); in parse_module()
366 ptr = find_keyword(module_image, len, "depends="); in parse_module()
367 if (ptr && *ptr) { in parse_module()
368 replace(ptr, ',', ' '); in parse_module()
369 replace(ptr, '-', '_'); in parse_module()
370 dbg2_error_msg("dep:'%s'", ptr); in parse_module()
371 append(ptr); in parse_module()