Lines Matching refs:fp

104     struct preloaded_file     *fp;  in command_unload()  local
107 fp = preloaded_files; in command_unload()
109 file_discard(fp); in command_unload()
120 struct preloaded_file *fp; in command_lskern() local
129 for (fp = preloaded_files; fp; fp = fp->f_next) { in command_lskern()
131 (void *) fp->f_addr, fp->f_name, fp->f_type, (long) fp->f_size); in command_lskern()
133 if (fp->f_args != NULL) { in command_lskern()
135 pager_output(fp->f_args); in command_lskern()
149 struct preloaded_file *fp; in file_load() local
154 for (i = 0, fp = NULL; file_formats[i] && fp == NULL; i++) { in file_load()
155 error = (file_formats[i]->l_load)(filename, dest, &fp); in file_load()
157 fp->f_loader = i; /* remember the loader */ in file_load()
158 *result = fp; in file_load()
179 struct preloaded_file *fp, *last_file; in file_loadkernel() local
185 fp = file_findfile(filename, NULL); in file_loadkernel()
186 if (fp) { in file_loadkernel()
197 err = file_load(filename, loadaddr, &fp); in file_loadkernel()
200 fp->f_args = unargv(argc, argv); in file_loadkernel()
201 loadaddr = fp->f_addr + fp->f_size; in file_loadkernel()
202 file_insert_tail(fp); /* Add to the list of loaded files */ in file_loadkernel()
206 if (err && fp) in file_loadkernel()
207 file_discard(fp); in file_loadkernel()
219 struct preloaded_file *fp; in file_findfile() local
221 for (fp = preloaded_files; fp != NULL; fp = fp->f_next) { in file_findfile()
222 if (((name == NULL) || !strcmp(name, fp->f_name)) && in file_findfile()
223 ((type == NULL) || !strcmp(type, fp->f_type))) in file_findfile()
226 return (fp); in file_findfile()
245 file_discard(struct preloaded_file *fp) in file_discard() argument
247 if (fp == NULL) in file_discard()
249 if (fp->f_name != NULL) in file_discard()
250 free(fp->f_name); in file_discard()
251 if (fp->f_type != NULL) in file_discard()
252 free(fp->f_type); in file_discard()
253 if (fp->f_args != NULL) in file_discard()
254 free(fp->f_args); in file_discard()
255 if (fp->marks != NULL) in file_discard()
256 free(fp->marks); in file_discard()
257 free(fp); in file_discard()
267 struct preloaded_file *fp; in file_alloc() local
269 if ((fp = alloc(sizeof(struct preloaded_file))) != NULL) { in file_alloc()
270 memset(fp, 0, sizeof(struct preloaded_file)); in file_alloc()
277 return (fp); in file_alloc()
284 file_insert_tail(struct preloaded_file *fp) in file_insert_tail() argument
289 fp->f_next = NULL; in file_insert_tail()
291 preloaded_files = fp; in file_insert_tail()
295 cm->f_next = fp; in file_insert_tail()