Lines Matching refs:ntohl
197 ntohl(embedded->magic) == CSMAGIC_EMBEDDED_SIGNATURE) {
201 limit = &embedded->index[ntohl(embedded->count)];
207 if (ntohl(p->type) == CSSLOT_CODEDIRECTORY) {
211 cd = (const CS_CodeDirectory *)(base + ntohl(p->offset));
224 cs_valid_range(cd, (const char *) cd + ntohl(cd->length),
226 cs_valid_range(cd, (const char *) cd + ntohl(cd->hashOffset),
229 ntohl(cd->hashOffset) +
230 (ntohl(cd->nCodeSlots) * SHA1_RESULTLEN),
233 ntohl(cd->magic) == CSMAGIC_CODEDIRECTORY) {
257 base = (const unsigned char *)cd + ntohl(cd->hashOffset);
258 nCodeSlots = ntohl(cd->nCodeSlots);
2239 blob->csb_flags = ntohl(cd->flags) | CS_VALID;
2240 blob->csb_end_offset = round_page(ntohl(cd->codeLimit));
2242 (ntohl(cd->nCodeSlots) * PAGE_SIZE));
2245 sha1_size = ntohl(cd->length);
2585 end_offset = round_page(ntohl(cd->codeLimit));
2586 start_offset = end_offset - (ntohl(cd->nCodeSlots) * PAGE_SIZE);
2594 codeLimit = ntohl(cd->codeLimit);