Lines Matching refs:scn
497 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain() argument
501 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain()
502 scn->sst_dirlen = len; in cdf_read_long_sector_chain()
504 if (scn->sst_len == (size_t)-1) in cdf_read_long_sector_chain()
507 scn->sst_tab = calloc(scn->sst_len, ss); in cdf_read_long_sector_chain()
508 if (scn->sst_tab == NULL) in cdf_read_long_sector_chain()
517 if (i >= scn->sst_len) { in cdf_read_long_sector_chain()
520 scn->sst_len)); in cdf_read_long_sector_chain()
524 if ((nr = cdf_read_sector(info, scn->sst_tab, i * ss, ss, h, in cdf_read_long_sector_chain()
526 if (i == scn->sst_len - 1 && nr > 0) { in cdf_read_long_sector_chain()
537 free(scn->sst_tab); in cdf_read_long_sector_chain()
544 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_short_sector_chain() argument
547 scn->sst_len = cdf_count_chain(ssat, sid, CDF_SEC_SIZE(h)); in cdf_read_short_sector_chain()
548 scn->sst_dirlen = len; in cdf_read_short_sector_chain()
550 if (sst->sst_tab == NULL || scn->sst_len == (size_t)-1) in cdf_read_short_sector_chain()
553 scn->sst_tab = calloc(scn->sst_len, ss); in cdf_read_short_sector_chain()
554 if (scn->sst_tab == NULL) in cdf_read_short_sector_chain()
563 if (i >= scn->sst_len) { in cdf_read_short_sector_chain()
566 i, scn->sst_len)); in cdf_read_short_sector_chain()
570 if (cdf_read_short_sector(sst, scn->sst_tab, i * ss, ss, h, in cdf_read_short_sector_chain()
579 free(scn->sst_tab); in cdf_read_short_sector_chain()
586 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_sector_chain() argument
591 scn); in cdf_read_sector_chain()
593 return cdf_read_long_sector_chain(info, h, sat, sid, len, scn); in cdf_read_sector_chain()
694 const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_read_short_stream() argument
713 d->d_stream_first_sector, d->d_size, scn); in cdf_read_short_stream()
715 scn->sst_tab = NULL; in cdf_read_short_stream()
716 scn->sst_len = 0; in cdf_read_short_stream()
717 scn->sst_dirlen = 0; in cdf_read_short_stream()
733 const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_read_summary_info() argument
752 d->d_stream_first_sector, d->d_size, scn); in cdf_read_summary_info()
1152 cdf_stream_t scn; in cdf_dump_dir() local
1187 d->d_stream_first_sector, d->d_size, &scn) == -1) { in cdf_dump_dir()
1192 cdf_dump_stream(h, &scn); in cdf_dump_dir()
1193 free(scn.sst_tab); in cdf_dump_dir()
1306 cdf_stream_t sst, scn; local
1354 &scn) == -1)
1357 cdf_dump_summary_info(&h, &scn);