Lines Matching refs:rf
62 struct romfs_file_s *rf = NULL; in romfs_lookup() local
142 rf = (struct romfs_file_s *)zalloc(sizeof(struct romfs_file_s)); in romfs_lookup()
143 if (!rf) in romfs_lookup()
154 rf->rf_size = dirinfo->rd_size; in romfs_lookup()
155 rf->rf_type = (uint8_t)(dirinfo->rd_next & RFNEXT_ALLMODEMASK); in romfs_lookup()
160 &rf->rf_startoffset); in romfs_lookup()
173 rf->rf_next = rm->rm_head; in romfs_lookup()
174 rm->rm_head = rf->rf_next; in romfs_lookup()
187 newVnode->data = rf; in romfs_lookup()
203 free(rf); in romfs_lookup()
221 struct romfs_file_s *rf = vp->data; in romfs_reclaim() local
222 if (rf->rf_buffer) in romfs_reclaim()
224 free(rf->rf_buffer); in romfs_reclaim()
229 free(rf); in romfs_reclaim()
243 struct romfs_file_s *rf = NULL; in romfs_read() local
250 rf = (struct romfs_file_s *)filep->f_vnode->data; in romfs_read()
265 bytesleft = rf->rf_size - filep->f_pos; in romfs_read()
276 offset = rf->rf_startoffset + filep->f_pos; in romfs_read()
298 struct romfs_file_s *rf = NULL; in romfs_readpage() local
302 rf = (struct romfs_file_s *)vnode->data; in romfs_readpage()
315 if (off >= rf->rf_size) in romfs_readpage()
324 bytesleft = rf->rf_size - off; in romfs_readpage()
335 off = rf->rf_startoffset + off; in romfs_readpage()
352 struct romfs_file_s *rf = NULL; in romfs_seek() local
357 rf = (struct romfs_file_s *)filep->f_vnode->data; in romfs_seek()
377 position = offset + rf->rf_size; in romfs_seek()
387 if (position > rf->rf_size) in romfs_seek()
391 position = rf->rf_size; in romfs_seek()
813 struct romfs_file_s *rf = NULL; in romfs_stat() local
836 rf = (struct romfs_file_s *)vp->data; in romfs_stat()
838 buf->st_size = rf->rf_size; in romfs_stat()