Lines Matching refs:sf
39 extern int sfile_equal(struct sfile const * sf, struct sfile const * sf2);
703 static int ibs_sfile_create(struct sfile * sf) in ibs_sfile_create() argument
706 sf->ext_files = xmalloc(ibs_selected_size * sizeof(odb_t)); in ibs_sfile_create()
708 odb_init(&sf->ext_files[i]); in ibs_sfile_create()
727 static int ibs_sfile_close(struct sfile * sf) in ibs_sfile_close() argument
730 if (sf->ext_files != NULL) { in ibs_sfile_close()
732 odb_close(&sf->ext_files[i]); in ibs_sfile_close()
734 free(sf->ext_files); in ibs_sfile_close()
735 sf->ext_files= NULL; in ibs_sfile_close()
740 static int ibs_sfile_sync(struct sfile * sf) in ibs_sfile_sync() argument
743 if (sf->ext_files != NULL) { in ibs_sfile_sync()
745 odb_sync(&sf->ext_files[i]); in ibs_sfile_sync()
752 struct sfile * sf = trans->current; in ibs_sfile_get() local
773 if (sf->ext_files == NULL) in ibs_sfile_get()
774 ibs_sfile_create(sf); in ibs_sfile_get()
776 file = &(sf->ext_files[ibs_vci]); in ibs_sfile_get()
785 list_for_each(pos, &sf->cg_hash[hash]) { in ibs_sfile_get()
795 list_add(&cg->hash, &sf->cg_hash[hash]); in ibs_sfile_get()
800 opd_open_sample_file(file, last, sf, counter, is_cg); in ibs_sfile_get()