Lines Matching refs:sid
470 cdf_count_chain(const cdf_sat_t *sat, cdf_secid_t sid, size_t size) in cdf_count_chain() argument
477 for (j = i = 0; sid >= 0; i++, j++) { in cdf_count_chain()
478 DPRINTF((" %d", sid)); in cdf_count_chain()
484 if (sid >= maxsector) { in cdf_count_chain()
485 DPRINTF(("Sector %d >= %d\n", sid, maxsector)); in cdf_count_chain()
489 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_count_chain()
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()
511 for (j = i = 0; sid >= 0; i++, j++) { in cdf_read_long_sector_chain()
525 sid)) != (ssize_t)ss) { in cdf_read_long_sector_chain()
530 DPRINTF(("Reading long sector chain %d", sid)); in cdf_read_long_sector_chain()
533 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); 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()
557 for (j = i = 0; sid >= 0; i++, j++) { in cdf_read_short_sector_chain()
571 sid) != (ssize_t)ss) { in cdf_read_short_sector_chain()
572 DPRINTF(("Reading short sector chain %d", sid)); in cdf_read_short_sector_chain()
575 sid = CDF_TOLE4((uint32_t)ssat->sat_tab[sid]); in cdf_read_short_sector_chain()
586 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_sector_chain() argument
590 return cdf_read_short_sector_chain(h, ssat, sst, sid, len, in cdf_read_sector_chain()
593 return cdf_read_long_sector_chain(info, h, sat, sid, len, scn); in cdf_read_sector_chain()
603 cdf_secid_t sid = h->h_secid_first_directory; in cdf_read_dir() local
605 ns = cdf_count_chain(sat, sid, ss); in cdf_read_dir()
628 if (cdf_read_sector(info, buf, 0, ss, h, sid) != (ssize_t)ss) { in cdf_read_dir()
629 DPRINTF(("Reading directory sector %d", sid)); in cdf_read_dir()
636 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_dir()
656 cdf_secid_t sid = h->h_secid_first_sector_in_short_sat; in cdf_read_ssat() local
658 ssat->sat_len = cdf_count_chain(sat, sid, CDF_SEC_SIZE(h)); in cdf_read_ssat()
666 for (j = i = 0; sid >= 0; i++, j++) { in cdf_read_ssat()
679 if (cdf_read_sector(info, ssat->sat_tab, i * ss, ss, h, sid) != in cdf_read_ssat()
681 DPRINTF(("Reading short sat sector %d", sid)); in cdf_read_ssat()
684 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_ssat()