Lines Matching refs:sat

439 cdf_read_sat(const cdf_info_t *info, cdf_header_t *h, cdf_sat_t *sat)  in cdf_read_sat()  argument
460 sat->sat_len = h->h_num_sectors_in_master_sat * nsatpersec + i; in cdf_read_sat()
462 sat->sat_len, ss)); in cdf_read_sat()
463 if ((sat->sat_tab = CAST(cdf_secid_t *, CDF_CALLOC(sat->sat_len, ss))) in cdf_read_sat()
470 if (cdf_read_sector(info, sat->sat_tab, ss * i, ss, h, in cdf_read_sat()
496 if (i >= sat->sat_len) { in cdf_read_sat()
498 "u >= %" SIZE_T_FORMAT "u", i, sat->sat_len)); in cdf_read_sat()
501 if (cdf_read_sector(info, sat->sat_tab, ss * i, ss, h, in cdf_read_sat()
511 sat->sat_len = i; in cdf_read_sat()
519 free(sat->sat_tab); in cdf_read_sat()
524 cdf_count_chain(const cdf_sat_t *sat, cdf_secid_t sid, size_t size) in cdf_count_chain() argument
527 cdf_secid_t maxsector = (cdf_secid_t)((sat->sat_len * size) in cdf_count_chain()
547 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_count_chain()
563 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain() argument
568 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain()
602 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_long_sector_chain()
654 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_sector_chain() argument
662 return cdf_read_long_sector_chain(info, h, sat, sid, len, scn); in cdf_read_sector_chain()
667 const cdf_sat_t *sat, cdf_dir_t *dir) in cdf_read_dir() argument
674 ns = cdf_count_chain(sat, sid, ss); in cdf_read_dir()
704 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_dir()
721 const cdf_sat_t *sat, cdf_sat_t *ssat) in cdf_read_ssat() argument
728 ssat->sat_len = cdf_count_chain(sat, sid, ss); in cdf_read_ssat()
752 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_ssat()
764 const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn, in cdf_read_short_stream() argument
789 return cdf_read_long_sector_chain(info, h, sat, in cdf_read_short_stream()
808 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_doc_summary_info() argument
811 return cdf_read_user_stream(info, h, sat, ssat, sst, dir, in cdf_read_doc_summary_info()
817 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_summary_info() argument
820 return cdf_read_user_stream(info, h, sat, ssat, sst, dir, in cdf_read_summary_info()
826 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_user_stream() argument
838 return cdf_read_sector_chain(info, h, sat, ssat, sst, in cdf_read_user_stream()
1338 cdf_dump_sat(const char *prefix, const cdf_sat_t *sat, size_t size) in cdf_dump_sat() argument
1342 for (i = 0; i < sat->sat_len; i++) { in cdf_dump_sat()
1347 CDF_TOLE4(sat->sat_tab[s * i + j])); in cdf_dump_sat()
1386 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_dump_dir() argument
1428 if (cdf_read_sector_chain(info, h, sat, ssat, sst, in cdf_dump_dir()
1565 cdf_sat_t sat, ssat; in main() local
1588 if (cdf_read_sat(&info, &h, &sat) == -1) in main()
1591 cdf_dump_sat("SAT", &sat, CDF_SEC_SIZE(&h)); in main()
1594 if (cdf_read_ssat(&info, &h, &sat, &ssat) == -1) in main()
1600 if (cdf_read_dir(&info, &h, &sat, &dir) == -1) in main()
1603 if (cdf_read_short_stream(&info, &h, &sat, &dir, &sst, &root) in main()
1611 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir); in main()
1615 if (cdf_read_summary_info(&info, &h, &sat, &ssat, &sst, &dir, in main()
1622 if (cdf_read_user_stream(&info, &h, &sat, &ssat, &sst, in main()