Lines Matching refs:ss
305 size_t ss = sst->sst_dirlen < h->h_min_size_standard_stream ? in cdf_check_stream() local
307 assert(ss == sst->sst_ss); in cdf_check_stream()
318 size_t ss = cdf_check_stream(sst, h); in cdf_check_stream_offset() local
320 if (e >= b && CAST(size_t, e - b) <= ss * sst->sst_len) in cdf_check_stream_offset()
325 ss * sst->sst_len, ss, sst->sst_len)); in cdf_check_stream_offset()
395 size_t ss = CDF_SEC_SIZE(h); in cdf_read_sector() local
398 if (SIZE_T_MAX / ss < CAST(size_t, id)) in cdf_read_sector()
402 assert(ss == len); in cdf_read_sector()
410 size_t ss = CDF_SHORT_SEC_SIZE(h); in cdf_read_short_sector() local
413 if (SIZE_T_MAX / ss < CAST(size_t, id)) in cdf_read_short_sector()
417 assert(ss == len); in cdf_read_short_sector()
439 size_t ss = CDF_SEC_SIZE(h); in cdf_read_sat() local
441 size_t nsatpersec = (ss / sizeof(mid)) - 1; in cdf_read_sat()
447 #define CDF_SEC_LIMIT (UINT32_MAX / (64 * ss)) in cdf_read_sat()
459 sat->sat_len, ss)); in cdf_read_sat()
460 if ((sat->sat_tab = CAST(cdf_secid_t *, CDF_CALLOC(sat->sat_len, ss))) in cdf_read_sat()
467 if (cdf_read_sector(info, sat->sat_tab, ss * i, ss, h, in cdf_read_sat()
468 h->h_master_sat[i]) != CAST(ssize_t, ss)) { in cdf_read_sat()
474 if ((msa = CAST(cdf_secid_t *, CDF_CALLOC(1, ss))) == NULL) in cdf_read_sat()
485 if (cdf_read_sector(info, msa, 0, ss, h, mid) != in cdf_read_sat()
486 CAST(ssize_t, ss)) { in cdf_read_sat()
500 if (cdf_read_sector(info, sat->sat_tab, ss * i, ss, h, in cdf_read_sat()
501 sec) != CAST(ssize_t, ss)) { in cdf_read_sat()
564 size_t ss = CDF_SEC_SIZE(h), i, j; in cdf_read_long_sector_chain() local
567 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain()
569 scn->sst_ss = ss; in cdf_read_long_sector_chain()
577 scn->sst_tab = CDF_CALLOC(scn->sst_len, ss); in cdf_read_long_sector_chain()
592 if ((nr = cdf_read_sector(info, scn->sst_tab, i * ss, ss, h, in cdf_read_long_sector_chain()
593 sid)) != CAST(ssize_t, ss)) { in cdf_read_long_sector_chain()
614 size_t ss = CDF_SHORT_SEC_SIZE(h), i, j; in cdf_read_short_sector_chain() local
618 scn->sst_ss = ss; in cdf_read_short_sector_chain()
623 scn->sst_tab = CDF_CALLOC(scn->sst_len, ss); in cdf_read_short_sector_chain()
638 if (cdf_read_short_sector(sst, scn->sst_tab, i * ss, ss, h, in cdf_read_short_sector_chain()
639 sid) != CAST(ssize_t, ss)) { in cdf_read_short_sector_chain()
669 size_t ss = CDF_SEC_SIZE(h), ns, nd; in cdf_read_dir() local
673 ns = cdf_count_chain(sat, sid, ss); in cdf_read_dir()
677 nd = ss / CDF_DIRECTORY_SIZE; in cdf_read_dir()
685 if ((buf = CAST(char *, CDF_MALLOC(ss))) == NULL) { in cdf_read_dir()
695 if (cdf_read_sector(info, buf, 0, ss, h, sid) != in cdf_read_dir()
696 CAST(ssize_t, ss)) { in cdf_read_dir()
724 size_t ss = CDF_SEC_SIZE(h); in cdf_read_ssat() local
728 ssat->sat_len = cdf_count_chain(sat, sid, ss); in cdf_read_ssat()
732 ssat->sat_tab = CAST(cdf_secid_t *, CDF_CALLOC(ssat->sat_len, ss)); in cdf_read_ssat()
747 if (cdf_read_sector(info, ssat->sat_tab, i * ss, ss, h, sid) != in cdf_read_ssat()
748 CAST(ssize_t, ss)) { in cdf_read_ssat()
1153 size_t ss = cdf_check_stream(sst, h); in cdf_unpack_catalog() local
1155 const char *nb, *eb = b + ss * sst->sst_len; in cdf_unpack_catalog()
1381 size_t ss = sst->sst_ss; in cdf_dump_stream() local
1382 cdf_dump(sst->sst_tab, ss * sst->sst_len); in cdf_dump_stream()