Lines Matching full:nsec
376 uint32_t *buf = NULL, nsec;
400 nsec = *sections = le32_to_cpu(buf[2]);
402 if (nsec > MAXSECTIONS) {
404 nsec);
408 off = (size_t *) malloc((nsec + 1) * sizeof(size_t));
415 buf = malloc(sizeof(uint32_t) * nsec);
420 rc = next_entry(buf, file, sizeof(uint32_t) * nsec);
426 for (i = 0; i < nsec; i++) {
436 rc = policy_file_length(file, &off[nsec]);
440 if (nsec && off[nsec] < off[nsec-1]) {
442 "offset %zu -> %zu", nsec, off[nsec - 1],
443 off[nsec]);
467 uint32_t buf[1], nsec;
472 if (module_package_read_offsets(mod, file, &offsets, &nsec))
477 for (i = 0; i < nsec; i++) {
653 uint32_t buf[5], len, nsec;
662 if (module_package_read_offsets(mod, file, &offsets, &nsec)) {
666 for (i = 0; i < nsec; i++) {
878 uint32_t buf[5], offsets[5], len, nsec = 0;
891 nsec++;
907 nsec++;
910 nsec++;
913 nsec++;
916 nsec++;
920 buf[2] = cpu_to_le32(nsec);
925 offsets[0] = (nsec + 3) * sizeof(uint32_t);
954 if (put_entry(buf, sizeof(uint32_t), nsec, file) != nsec)