Lines Matching refs:scn

513     const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn)  in cdf_read_long_sector_chain()  argument
517 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain()
518 scn->sst_dirlen = len; in cdf_read_long_sector_chain()
520 if (scn->sst_len == (size_t)-1) in cdf_read_long_sector_chain()
523 scn->sst_tab = calloc(scn->sst_len, ss); in cdf_read_long_sector_chain()
524 if (scn->sst_tab == NULL) in cdf_read_long_sector_chain()
533 if (i >= scn->sst_len) { in cdf_read_long_sector_chain()
536 scn->sst_len)); in cdf_read_long_sector_chain()
540 if ((nr = cdf_read_sector(info, scn->sst_tab, i * ss, ss, h, in cdf_read_long_sector_chain()
542 if (i == scn->sst_len - 1 && nr > 0) { in cdf_read_long_sector_chain()
553 free(scn->sst_tab); in cdf_read_long_sector_chain()
560 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_short_sector_chain() argument
563 scn->sst_len = cdf_count_chain(ssat, sid, CDF_SEC_SIZE(h)); in cdf_read_short_sector_chain()
564 scn->sst_dirlen = len; in cdf_read_short_sector_chain()
566 if (sst->sst_tab == NULL || scn->sst_len == (size_t)-1) in cdf_read_short_sector_chain()
569 scn->sst_tab = calloc(scn->sst_len, ss); in cdf_read_short_sector_chain()
570 if (scn->sst_tab == NULL) in cdf_read_short_sector_chain()
579 if (i >= scn->sst_len) { in cdf_read_short_sector_chain()
582 i, scn->sst_len)); in cdf_read_short_sector_chain()
586 if (cdf_read_short_sector(sst, scn->sst_tab, i * ss, ss, h, in cdf_read_short_sector_chain()
595 free(scn->sst_tab); in cdf_read_short_sector_chain()
602 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_sector_chain() argument
607 scn); in cdf_read_sector_chain()
609 return cdf_read_long_sector_chain(info, h, sat, sid, len, scn); in cdf_read_sector_chain()
710 const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn, in cdf_read_short_stream() argument
732 d->d_stream_first_sector, d->d_size, scn); in cdf_read_short_stream()
734 scn->sst_tab = NULL; in cdf_read_short_stream()
735 scn->sst_len = 0; in cdf_read_short_stream()
736 scn->sst_dirlen = 0; in cdf_read_short_stream()
752 const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_read_summary_info() argument
755 "\05SummaryInformation", scn); in cdf_read_summary_info()
761 const cdf_dir_t *dir, const char *name, cdf_stream_t *scn) in cdf_read_user_stream() argument
771 d->d_stream_first_sector, d->d_size, scn); in cdf_read_user_stream()
1269 cdf_stream_t scn; in cdf_dump_dir() local
1306 d->d_stream_first_sector, d->d_size, &scn) == -1) { in cdf_dump_dir()
1311 cdf_dump_stream(h, &scn); in cdf_dump_dir()
1312 free(scn.sst_tab); in cdf_dump_dir()
1443 cdf_stream_t sst, scn; in main() local
1493 &scn) == -1) in main()
1497 cdf_dump_summary_info(&h, &scn); in main()
1500 &scn) == -1) in main()
1504 cdf_dump_catalog(&h, &scn); in main()