/freebsd/sbin/ipf/libipf/ |
H A D | parseipfexpr.c | 117 osize = asize; in parseipfexpr() 128 osize += 4; in parseipfexpr() 196 oplist[osize++] = addr.i6[0]; in parseipfexpr() 197 oplist[osize++] = addr.i6[1]; in parseipfexpr() 198 oplist[osize++] = addr.i6[2]; in parseipfexpr() 199 oplist[osize++] = addr.i6[3]; in parseipfexpr() 212 oplist[osize++] = p; in parseipfexpr() 227 oplist[osize++] = flags; in parseipfexpr() 228 oplist[osize++] = mask; in parseipfexpr() 244 oplist[osize++] = port; in parseipfexpr() [all …]
|
/freebsd/contrib/lua/src/ |
H A D | lmem.c | 150 void luaM_free_ (lua_State *L, void *block, size_t osize) { in luaM_free_() argument 152 lua_assert((osize == 0) == (block == NULL)); in luaM_free_() 153 callfrealloc(g, block, osize, 0); in luaM_free_() 154 g->GCdebt -= osize; in luaM_free_() 163 size_t osize, size_t nsize) { in tryagain() argument 167 return callfrealloc(g, block, osize, nsize); /* try again */ in tryagain() 179 lua_assert((osize == 0) == (block == NULL)); in luaM_realloc_() 180 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_() 182 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_() 187 g->GCdebt = (g->GCdebt + nsize) - osize; in luaM_realloc_() [all …]
|
H A D | lstring.c | 62 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash() argument 64 for (i = osize; i < nsize; i++) /* clear new elements */ in tablerehash() 66 for (i = 0; i < osize; i++) { /* rehash old part of the array */ in tablerehash() 87 int osize = tb->size; in luaS_resize() local 89 if (nsize < osize) /* shrinking table? */ in luaS_resize() 90 tablerehash(tb->hash, osize, nsize); /* depopulate shrinking part */ in luaS_resize() 91 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize() 93 if (nsize < osize) /* was it shrinking table? */ in luaS_resize() 94 tablerehash(tb->hash, nsize, osize); /* restore to original size */ in luaS_resize() 100 if (nsize > osize) in luaS_resize() [all …]
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | pam_set_item.c | 62 size_t nsize, osize; in pam_set_item() local 66 osize = nsize = 0; in pam_set_item() 84 osize = strlen(*slot) + 1; in pam_set_item() 89 osize = nsize = sizeof(struct pam_repository); in pam_set_item() 92 osize = nsize = sizeof(struct pam_conv); in pam_set_item() 98 memset(*slot, 0xd0, osize); in pam_set_item()
|
/freebsd/sys/dev/dcons/ |
H A D | dcons.c | 132 int osize; in dcons_init_port() local 137 osize = size * 3 / 4; in dcons_init_port() 139 dc->o.size = osize; in dcons_init_port() 140 dc->i.size = size - osize; in dcons_init_port() 142 dc->i.buf = dc->o.buf + osize; in dcons_init_port() 148 buf->osize[port] = htonl(osize); in dcons_init_port() 149 buf->isize[port] = htonl(size - osize); in dcons_init_port() 151 buf->ioffset[port] = htonl(offset + osize); in dcons_init_port() 170 dc->o.size = ntohl(buf->osize[port]); in dcons_load_buffer()
|
H A D | dcons.h | 54 V u_int32_t osize[DCONS_NPORT]; member
|
/freebsd/contrib/netbsd-tests/sbin/resize_ffs/ |
H A D | common.sh | 113 local osize=$3 130 -s ${osize} ${i} -F ${IMG} 132 newfs -O${fslevel} -b ${bs} -f ${fragsz} -s ${osize} ${i} \ 140 if [ ${nsize} -lt ${osize} ]; then 142 local remove=$((numdata-numdata*nsize/osize)) 154 if [ ${nsize} -lt ${osize} ]; then
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | cache.cc | 149 ssize_t osize = get<2>(GetParam()); in TEST_P() local 152 ASSERT_LE(osize, bufsize); in TEST_P() 163 expect_lookup(RELPATH, ino, osize, entry_valid, attr_valid); in TEST_P() 166 expect_getattr(ino, 2, osize, attr_valid); in TEST_P() 167 expect_read(ino, 0, osize, osize, CONTENTS); in TEST_P() 172 ASSERT_EQ(osize, read(fd, buf, bufsize)) << strerror(errno); in TEST_P() 173 ASSERT_EQ(0, memcmp(buf, CONTENTS, osize)); in TEST_P()
|
H A D | utils.hh | 189 uint64_t osize, const void *contents, int flags = -1, 226 uint64_t osize, uint32_t flags_set, uint32_t flags_unset, 231 uint64_t osize, const void *contents);
|
H A D | bmap.cc | 219 size_t osize = in.body.read.size; in TEST_P() local 221 assert(osize < sizeof(out.body.bytes)); in TEST_P() 222 out.header.len = sizeof(struct fuse_out_header) + osize; in TEST_P() 223 bzero(out.body.bytes, osize); in TEST_P()
|
H A D | utils.cc | 384 uint64_t osize, const void *contents, int flags, uint64_t fh) in expect_read() argument 400 assert(osize <= sizeof(out.body.bytes)); in expect_read() 401 out.header.len = sizeof(struct fuse_out_header) + osize; in expect_read() 402 memmove(out.body.bytes, contents, osize); in expect_read() 493 uint64_t osize, uint32_t flags_set, uint32_t flags_unset, in expect_write() argument 525 out.body.write.size = osize; in expect_write() 530 uint64_t osize, const void *contents) in expect_write_7_8() argument 551 out.body.write.size = osize; in expect_write_7_8()
|
H A D | io.cc | 161 ssize_t osize; in SetUp() local 164 osize = pread(m_backing_fd, buf, isize, iofs); in SetUp() 165 ASSERT_LE(0, osize) << strerror(errno); in SetUp() 166 out.header.len = sizeof(struct fuse_out_header) + osize; in SetUp()
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 86 int osize, nsize, num, i, error; in ffs_balloc_ufs1() local 110 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 111 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1() 149 osize = fragroundup(fs, blkoff(fs, ip->i_ffs1_size)); in ffs_balloc_ufs1() 151 if (nsize <= osize) { in ffs_balloc_ufs1() 161 osize, NULL, bpp); in ffs_balloc_ufs1() 343 int osize, nsize, num, i, error; in ffs_balloc_ufs2() local 367 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2() 368 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 408 if (nsize <= osize) { in ffs_balloc_ufs2() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 137 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 138 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1() 196 if (nsize <= osize) { in ffs_balloc_ufs1() 212 nsize, osize, bp); in ffs_balloc_ufs1() 654 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 701 if (nsize <= osize) { in ffs_balloc_ufs2() 721 nsize, osize, bp); in ffs_balloc_ufs2() 757 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2() 758 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 815 if (nsize <= osize) { in ffs_balloc_ufs2() [all …]
|
H A D | ffs_inode.c | 252 off_t osize; in ffs_truncate() local 314 osize = ip->i_din2->di_extsize; in ffs_truncate() 328 sblksize(fs, osize, i), ip->i_number, in ffs_truncate() 359 osize = ip->i_size; in ffs_truncate() 365 if (osize < length) { in ffs_truncate() 370 vnode_pager_setsize(vp, osize); in ffs_truncate() 560 ip->i_size = osize; in ffs_truncate() 561 DIP_SET(ip, i_size, osize); in ffs_truncate()
|
H A D | ffs_alloc.c | 255 int osize, in ffs_realloccg() argument 283 if ((uint64_t)osize > fs->fs_bsize || fragoff(fs, osize) != 0 || in ffs_realloccg() 338 delta = btodb(nsize - osize); in ffs_realloccg() 346 vfs_bio_bzero_buf(bp, osize, nsize - osize); in ffs_realloccg() 348 vfs_bio_set_valid(bp, osize, nsize - osize); in ffs_realloccg() 422 delta = btodb(nsize - osize); in ffs_realloccg() 430 vfs_bio_bzero_buf(bp, osize, nsize - osize); in ffs_realloccg() 432 vfs_bio_set_valid(bp, osize, nsize - osize); in ffs_realloccg() 1698 int osize, in ffs_fragextend() argument 1740 cgp->cg_frsum[i - numfrags(fs, osize)]--; in ffs_fragextend() [all …]
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lmem.c | 73 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument 76 size_t realosize = (block) ? osize : 0; in luaM_realloc_() 82 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_() 88 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 365 size_t osize; in KRB5KDF() local 408 for (osize = 0; osize < okey_len; osize += cipherlen) { in KRB5KDF() 426 if (cipherlen > okey_len - osize) in KRB5KDF() 427 cipherlen = okey_len - osize; in KRB5KDF() 428 memcpy(okey + osize, cipherblock, cipherlen); in KRB5KDF() 430 if (okey_len > osize + cipherlen) { in KRB5KDF()
|
/freebsd/sys/vm/ |
H A D | uma_dbg.c | 148 int off, osize = size; in mtrash_ctor() local 178 mem, osize, zone ? zone->uz_name : "", *ksp, off, *p); in mtrash_ctor() 180 mem, osize, zone ? zone->uz_name : "", (*ksp)->ks_shortdesc, in mtrash_ctor() 184 mem, osize, zone ? zone->uz_name : "", *ksp, off, *p); in mtrash_ctor()
|
/freebsd/sys/cddl/contrib/opensolaris/common/lz4/ |
H A D | lz4.c | 62 int osize); 66 int isize, int osize); 68 int isize, int osize); 474 int osize) in LZ4_compressCtx() argument 487 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() 669 int osize) in LZ4_compress64kCtx() argument 682 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx() 868 result = LZ4_compress64kCtx(ctx, source, dest, isize, osize); in real_LZ4_compress() 870 result = LZ4_compressCtx(ctx, source, dest, isize, osize); in real_LZ4_compress() 880 return (LZ4_compress64kCtx(NULL, source, dest, isize, osize)); in real_LZ4_compress() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | lz4_zfs.c | 43 int osize); 45 int isize, int osize); 47 int isize, int osize); 475 int osize) in LZ4_compressCtx() argument 484 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() 665 int osize) in LZ4_compress64kCtx() argument 674 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx() 841 real_LZ4_compress(const char *source, char *dest, int isize, int osize) in real_LZ4_compress() argument 858 result = LZ4_compress64kCtx(ctx, source, dest, isize, osize); in real_LZ4_compress() 860 result = LZ4_compressCtx(ctx, source, dest, isize, osize); in real_LZ4_compress()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_inode.c | 241 off_t osize; in ext2_ind_truncate() local 252 osize = oip->i_size; in ext2_ind_truncate() 258 if (osize < length) { in ext2_ind_truncate() 267 vnode_pager_setsize(vp, osize); in ext2_ind_truncate() 362 oip->i_size = osize; in ext2_ind_truncate() 475 off_t osize; in ext2_ext_truncate() local 479 osize = oip->i_size; in ext2_ext_truncate() 481 if (osize < length) { in ext2_ext_truncate() 491 vnode_pager_setsize(vp, osize); in ext2_ext_truncate() 536 oip->i_size = osize; in ext2_ext_truncate()
|
/freebsd/stand/libsa/ |
H A D | smbios.c | 390 int proc, size, osize, type; in smbios_parse_table() local 483 osize = SMBIOS_GET8(addr, 0x0a) & 0x7f; in smbios_parse_table() 484 if (osize > 0 && osize < 22) in smbios_parse_table() 485 smbios.old_enabled_memory += 1 << (osize + 10); in smbios_parse_table()
|
/freebsd/sys/kern/ |
H A D | kern_malloc.c | 112 #define DEBUG_REDZONE_ARG_DEF , unsigned long osize 113 #define DEBUG_REDZONE_ARG , osize 602 va = redzone_setup(va, osize); in malloc_large() 604 kasan_mark(va, osize, size, KASAN_MALLOC_REDZONE); in malloc_large() 632 unsigned long osize = size; variable 666 va = redzone_setup(va, osize); 670 kasan_mark((void *)va, osize, size, KASAN_MALLOC_REDZONE); 707 unsigned long osize = size; in malloc_domainset() local 733 va = redzone_setup(va, osize); in malloc_domainset() 737 kasan_mark((void *)va, osize, size, KASAN_MALLOC_REDZONE); in malloc_domainset() [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_map.c | 74 size_t osize = maxformat * sizeof (void *); in dt_strdata_add() local 82 bcopy(*data, new_data, osize); in dt_strdata_add() 135 size_t osize = max * sizeof (void *); local 137 bcopy(dtp->dt_pdesc, new_pdesc, osize); 140 bcopy(dtp->dt_edesc, new_edesc, osize);
|