Lines Matching refs:sid
475 cdf_count_chain(const cdf_sat_t *sat, cdf_secid_t sid, size_t size) in cdf_count_chain() argument
482 if (sid == CDF_SECID_END_OF_CHAIN) { in cdf_count_chain()
488 for (j = i = 0; sid >= 0; i++, j++) { in cdf_count_chain()
489 DPRINTF((" %d", sid)); in cdf_count_chain()
495 if (sid >= maxsector) { in cdf_count_chain()
496 DPRINTF(("Sector %d >= %d\n", sid, maxsector)); in cdf_count_chain()
500 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_count_chain()
503 DPRINTF((" none, sid: %d\n", sid)); in cdf_count_chain()
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()
527 for (j = i = 0; sid >= 0; i++, j++) { in cdf_read_long_sector_chain()
541 sid)) != (ssize_t)ss) { in cdf_read_long_sector_chain()
546 DPRINTF(("Reading long sector chain %d", sid)); in cdf_read_long_sector_chain()
549 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); 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()
573 for (j = i = 0; sid >= 0; i++, j++) { in cdf_read_short_sector_chain()
587 sid) != (ssize_t)ss) { in cdf_read_short_sector_chain()
588 DPRINTF(("Reading short sector chain %d", sid)); in cdf_read_short_sector_chain()
591 sid = CDF_TOLE4((uint32_t)ssat->sat_tab[sid]); in cdf_read_short_sector_chain()
602 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_sector_chain() argument
606 return cdf_read_short_sector_chain(h, ssat, sst, sid, len, in cdf_read_sector_chain()
609 return cdf_read_long_sector_chain(info, h, sat, sid, len, scn); in cdf_read_sector_chain()
619 cdf_secid_t sid = h->h_secid_first_directory; in cdf_read_dir() local
621 ns = cdf_count_chain(sat, sid, ss); in cdf_read_dir()
644 if (cdf_read_sector(info, buf, 0, ss, h, sid) != (ssize_t)ss) { in cdf_read_dir()
645 DPRINTF(("Reading directory sector %d", sid)); in cdf_read_dir()
652 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_dir()
672 cdf_secid_t sid = h->h_secid_first_sector_in_short_sat; in cdf_read_ssat() local
674 ssat->sat_len = cdf_count_chain(sat, sid, CDF_SEC_SIZE(h)); in cdf_read_ssat()
682 for (j = i = 0; sid >= 0; i++, j++) { in cdf_read_ssat()
695 if (cdf_read_sector(info, ssat->sat_tab, i * ss, ss, h, sid) != in cdf_read_ssat()
697 DPRINTF(("Reading short sat sector %d", sid)); in cdf_read_ssat()
700 sid = CDF_TOLE4((uint32_t)sat->sat_tab[sid]); in cdf_read_ssat()