Home
last modified time | relevance | path

Searched refs:fsize (Results 1 – 25 of 60) sorted by relevance

123

/openbsd/sys/arch/m88k/m88k/
H A Dsig_machdep.c113 size_t fsize; in sendsig() local
120 fsize = sizeof(struct sigframe); in sendsig()
122 fsize = offsetof(struct sigframe, sf_si); in sendsig()
131 fsize); in sendsig()
140 bzero(&sf, fsize); in sendsig()
155 if (copyout((caddr_t)&sf, (caddr_t)fp, fsize)) in sendsig()
286 frame = (tos - fsize) & ~_STACKALIGNBYTES; in local_stack_frame()
291 tos = frame + fsize; in local_stack_frame()
294 frame = (tf->tf_dma0 - fsize) & in local_stack_frame()
300 frame = (tf->tf_dma1 - fsize) & in local_stack_frame()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/config/m68k/
H A Dm68k.c263 if (fsize > 30000)
279 else if (fsize)
393 else if (fsize)
398 if (fsize + 4 <= 8)
426 fsize + 4 - 8);
429 fsize + 4 - 8);
786 else if (fsize)
892 offset + fsize,
915 offset + fsize,
1009 fpoffset + fsize,
[all …]
/openbsd/lib/libelf/
H A Dlibelf_open.c129 size_t fsize; in _libelf_open_object() local
141 fsize = (size_t) sb.st_size; in _libelf_open_object()
179 if (fsize == 0) { in _libelf_open_object()
194 m = mmap(NULL, fsize, PROT_READ, MAP_PRIVATE, fd, (off_t) 0); in _libelf_open_object()
207 if ((m = malloc(fsize)) == NULL) { in _libelf_open_object()
212 if (read(fd, m, fsize) != (ssize_t) fsize) { in _libelf_open_object()
220 } else if ((m = _libelf_read_special_file(fd, &fsize)) != NULL) in _libelf_open_object()
225 if ((e = _libelf_memory(m, fsize, reporterror)) == NULL) { in _libelf_open_object()
232 (void) munmap(m, fsize); in _libelf_open_object()
H A Dlibelf_fsize.m4133 struct fsize {
138 static struct fsize fsize[ELF_T_NUM] = {
153 sz = ec == ELFCLASS64 ? fsize[t].fsz64 : fsize[t].fsz32;
/openbsd/usr.sbin/mkuboot/
H A Dmkuboot.c151 uint32_t fsize; in main() local
248 fsize = htobe32(sb.st_size); in main()
249 crc = crc32(crc, (Bytef *)&fsize, sizeof(fsize)); in main()
250 if (write(ofd, &fsize, sizeof fsize) != sizeof fsize) in main()
252 fsize = 0; in main()
253 crc = crc32(crc, (Bytef *)&fsize, sizeof(fsize)); in main()
254 if (write(ofd, &fsize, sizeof fsize) != sizeof fsize) in main()
/openbsd/sys/arch/landisk/stand/xxboot/
H A Dufs12.c333 u_int64_t fsize; in buf_read_file() local
377 fsize = fp->f_di.i2.di_size; in buf_read_file()
379 fsize = fp->f_di.i1.di_size; in buf_read_file()
398 u_int64_t fsize; in search_directory() local
404 fsize = fp->f_di.i2.di_size; in search_directory()
406 fsize = fp->f_di.i1.di_size; in search_directory()
685 u_int64_t fsize; in ufs12_read() local
690 fsize = fp->f_di.i2.di_size; in ufs12_read()
692 fsize = fp->f_di.i1.di_size; in ufs12_read()
729 u_int64_t fsize; in ufs12_seek() local
[all …]
/openbsd/gnu/gcc/gcc/config/pa/
H A Dpa64-linux.h45 int fsize; \
47 fsize = compute_frame_size (get_frame_size (), 0); \
60 (OFFSET) = - fsize; \
64 (OFFSET) = - fsize - 16; \
/openbsd/gnu/usr.bin/gcc/gcc/config/pa/
H A Dpa64-linux.h45 int fsize; \
47 fsize = compute_frame_size (get_frame_size (), 0); \
61 (OFFSET) = - fsize; \
65 (OFFSET) = - fsize - 16; \
/openbsd/sys/arch/mips64/include/
H A Dasm.h215 #define LEAF(x, fsize) \ argument
220 .frame sp, fsize, ra; \
233 #define NLEAF(x, fsize) \ argument
238 .frame sp, fsize, ra; \
246 #define NON_LEAF(x, fsize, retpc) \ argument
251 .frame sp, fsize, retpc; \
261 #define NNON_LEAF(x, fsize, retpc) \ argument
266 .frame sp, fsize, retpc \
/openbsd/lib/libc/gen/
H A Ddisklabel.c107 u_int32_t fsize, frag = 8; in getdiskbyname() local
113 getnumdflt(fsize, pfsize, 0); in getdiskbyname()
114 if (fsize) { in getdiskbyname()
118 frag = bsize / fsize; in getdiskbyname()
120 DISKLABELV1_FFS_FRAGBLOCK(fsize, frag); in getdiskbyname()
/openbsd/sys/arch/mips64/mips64/
H A Dsendsig.c102 int fsize; in sendsig() local
110 fsize = sizeof(struct sigframe); in sendsig()
112 fsize -= sizeof(siginfo_t); in sendsig()
117 - fsize); in sendsig()
119 fp = (struct sigframe *)(regs->sp - fsize); in sendsig()
/openbsd/sbin/disklabel/
H A Ddisklabel.c495 u_int32_t fsize = DISKLABELV1_FFS_FSIZE(pp->p_fragblock); in display_partition() local
512 fsize, fsize * frag, in display_partition()
808 u_int32_t v, fsize; in getasciilabel() local
974 NXTNUM(fsize, fsize, &errstr); in getasciilabel()
975 if (fsize == 0) in getasciilabel()
979 DISKLABELV1_FFS_FRAGBLOCK(fsize, v / fsize); in getasciilabel()
983 NXTNUM(fsize, fsize, &errstr); in getasciilabel()
984 if (fsize == 0) in getasciilabel()
988 DISKLABELV1_FFS_FRAGBLOCK(fsize, v / fsize); in getasciilabel()
/openbsd/sbin/newfs/
H A Dnewfs.c127 int fsize = 0; /* fragment size */ variable
245 fsize = strtonum(optarg, MINBSIZE / MAXFRAG, MAXBSIZE, in main()
471 defaultfsize = fsize == 0; in main()
472 if (fsize == 0) { in main()
473 fsize = DISKLABELV1_FFS_FSIZE(pp->p_fragblock); in main()
474 if (fsize <= 0) in main()
475 fsize = MAXIMUM(DFL_FRAGSIZE, lp->d_secsize); in main()
480 bsize = MINIMUM(DFL_BLKSIZE, 8 * fsize); in main()
483 density = NFPI * fsize; in main()
/openbsd/sbin/newfs_ext2fs/
H A Dnewfs_ext2fs.c99 uint fsize = 0; /* fragment size */ variable
184 fsize = strsuftoi64("fragment size", in main()
341 bsize = fsize; in main()
351 if (fsize == 0) in main()
352 fsize = bsize; in main()
H A Dmke2fs.c203 if (!powerof2(fsize)) { in mke2fs()
206 fsize); in mke2fs()
208 if (fsize < sectorsize) { in mke2fs()
211 fsize, sectorsize); in mke2fs()
223 if (bsize != fsize) { in mke2fs()
232 bsize, fsize); in mke2fs()
242 sblock.e2fs.e2fs_log_fsize = ilog2(fsize) - LOG_MINFSIZE; in mke2fs()
245 sblock.e2fs_fsize = fsize; in mke2fs()
523 fssize, bsize, fsize); in mke2fs()
H A Dextern.h46 extern uint fsize; /* fragment size */
/openbsd/usr.sbin/makefs/
H A Dffs.c143 { "fsize", &ffs_opts->fsize, OPT_INT32, 1, INT_MAX }, in ffs_prep_opts()
155 ffs_opts->fsize = -1; in ffs_prep_opts()
228 const uint32_t fsize = ffs_opts->fsize; in ffs_makerdroot() local
247 pp->p_fragblock = DISKLABELV1_FFS_FRAGBLOCK(fsize, bsize / fsize); in ffs_makerdroot()
379 if (ffs_opts->fsize != -1 || ffs_opts->bsize != -1) in ffs_validate()
385 ffs_opts->fsize = DISKLABELV1_FFS_FSIZE(pp->p_fragblock); in ffs_validate()
397 if (ffs_opts->fsize == -1 || ffs_opts->bsize == -1 || in ffs_validate()
406 if (ffs_opts->fsize == -1) in ffs_validate()
407 ffs_opts->fsize = MAXIMUM(DFL_FRAGSIZE, fsopts->sectorsize); in ffs_validate()
409 ffs_opts->bsize = MINIMUM(DFL_BLKSIZE, 8 * ffs_opts->fsize); in ffs_validate()
[all …]
H A Dffs.h45 int fsize; /* fragment size */ member
/openbsd/sys/isofs/udf/
H A Dudf_vnops.c451 off_t fsize, offset; in udf_read() local
458 fsize = letoh64(up->u_fentry->inf_len); in udf_read()
460 while (uio->uio_offset < fsize && uio->uio_resid > 0) { in udf_read()
463 if (size > fsize - offset) in udf_read()
464 size = fsize - offset; in udf_read()
581 ds->fsize = fsize; in udf_opendir()
593 if (ds->offset + ds->off >= ds->fsize) { in udf_getfid()
1007 int numdirpasses, fsize; in udf_lookup() local
1018 fsize = letoh64(up->u_fentry->inf_len); in udf_lookup()
1053 if (nameiop != LOOKUP || up->u_diroff == 0 || up->u_diroff > fsize) { in udf_lookup()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/config/pdp11/
H A Dpdp11.c152 HOST_WIDE_INT fsize = ((size) + 1) & ~1; local
180 if (fsize)
181 fprintf (stream, "\tsub $%#o, sp\n", fsize);
261 HOST_WIDE_INT fsize = ((size) + 1) & ~1; local
283 fprintf(stream, "\tmov %#o(r5), %s\n",(-fsize-2*j--)&0xffff, reg_names[i]);
301 fprintf(stream, "\tldd %#o(r5), %s\n", (-fsize-k)&0xffff, reg_names[i]);
312 fprintf(stream, "\tldd %#o(r5), %s\n", (-fsize-k)&0xffff, reg_names[via_ac]);
353 if (fsize)
354 fprintf((stream), "\tadd $%#o, sp\n", (fsize)&0xffff);
/openbsd/sys/kern/
H A Dspec_vnops.c229 u_int32_t fsize = in spec_read() local
232 fsize != 0) in spec_read()
233 bsize = frag * fsize; in spec_read()
318 u_int32_t fsize = in spec_write() local
321 fsize != 0) in spec_write()
322 bsize = frag * fsize; in spec_write()
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp205 uptr fsize = internal_filesize(fd); in MapFileToMemory() local
206 CHECK_NE(fsize, (uptr)-1); in MapFileToMemory()
207 CHECK_GT(fsize, 0); in MapFileToMemory()
208 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
/openbsd/gnu/gcc/gcc/config/m68k/
H A Dm68k.c818 fsize = current_frame.size; in m68k_output_function_epilogue()
829 fsize_with_regs = fsize; in m68k_output_function_epilogue()
854 fsize = 0, big = true; in m68k_output_function_epilogue()
927 current_frame.offset + fsize, in m68k_output_function_epilogue()
933 current_frame.offset + fsize, in m68k_output_function_epilogue()
943 current_frame.offset + fsize, in m68k_output_function_epilogue()
949 current_frame.offset + fsize, in m68k_output_function_epilogue()
963 current_frame.offset + fsize, in m68k_output_function_epilogue()
1000 current_frame.foffset + fsize, in m68k_output_function_epilogue()
1034 current_frame.foffset + fsize, in m68k_output_function_epilogue()
[all …]
/openbsd/gnu/gcc/gcc/config/pdp11/
H A Dpdp11.c258 HOST_WIDE_INT fsize = ((size) + 1) & ~1; in pdp11_output_function_prologue() local
287 if (fsize) in pdp11_output_function_prologue()
288 asm_fprintf (stream, "\tsub $%#wo, sp\n", fsize); in pdp11_output_function_prologue()
364 HOST_WIDE_INT fsize = ((size) + 1) & ~1; in pdp11_output_function_epilogue() local
386 fprintf(stream, "\tmov %#o(r5), %s\n",(-fsize-2*j--)&0xffff, reg_names[i]); in pdp11_output_function_epilogue()
404 fprintf(stream, "\tldd %#o(r5), %s\n", (-fsize-k)&0xffff, reg_names[i]); in pdp11_output_function_epilogue()
414 fprintf(stream, "\tldd %#o(r5), %s\n", (-fsize-k)&0xffff, reg_names[via_ac]); in pdp11_output_function_epilogue()
454 if (fsize) in pdp11_output_function_epilogue()
455 fprintf((stream), "\tadd $%#o, sp\n", (fsize)&0xffff); in pdp11_output_function_epilogue()
/openbsd/sys/sys/
H A Ddisklabel.h148 #define DISKLABELV1_FFS_FRAGBLOCK(fsize, frag) \ argument
149 ((fsize) * (frag) == 0 ? 0 : \
150 (((ffs((fsize) * (frag)) - 13) << 3) | (ffs(frag))))

123