| /freebsd-13.1/sbin/ipf/libipf/ |
| H A D | parseipfexpr.c | 121 osize = asize; in parseipfexpr() 132 osize += 4; in parseipfexpr() 200 oplist[osize++] = addr.i6[0]; in parseipfexpr() 201 oplist[osize++] = addr.i6[1]; in parseipfexpr() 202 oplist[osize++] = addr.i6[2]; in parseipfexpr() 203 oplist[osize++] = addr.i6[3]; in parseipfexpr() 216 oplist[osize++] = p; in parseipfexpr() 231 oplist[osize++] = flags; in parseipfexpr() 232 oplist[osize++] = mask; in parseipfexpr() 248 oplist[osize++] = port; in parseipfexpr() [all …]
|
| /freebsd-13.1/contrib/lua/src/ |
| H A D | lmem.c | 132 void luaM_free_ (lua_State *L, void *block, size_t osize) { in luaM_free_() argument 134 lua_assert((osize == 0) == (block == NULL)); in luaM_free_() 135 (*g->frealloc)(g->ud, block, osize, 0); in luaM_free_() 136 g->GCdebt -= osize; in luaM_free_() 147 size_t osize, size_t nsize) { in tryagain() argument 165 lua_assert((osize == 0) == (block == NULL)); in luaM_realloc_() 166 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_() 168 if (nsize > osize) /* not shrinking a block? */ in luaM_realloc_() 169 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_() 174 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-13.1/contrib/openpam/lib/libpam/ |
| H A D | pam_set_item.c | 64 size_t nsize, osize; in pam_set_item() local 68 osize = nsize = 0; in pam_set_item() 86 osize = strlen(*slot) + 1; in pam_set_item() 91 osize = nsize = sizeof(struct pam_repository); in pam_set_item() 94 osize = nsize = sizeof(struct pam_conv); in pam_set_item() 100 memset(*slot, 0xd0, osize); in pam_set_item()
|
| /freebsd-13.1/sys/dev/dcons/ |
| H A D | dcons.c | 133 int osize; in dcons_init_port() local 138 osize = size * 3 / 4; in dcons_init_port() 140 dc->o.size = osize; in dcons_init_port() 141 dc->i.size = size - osize; in dcons_init_port() 143 dc->i.buf = dc->o.buf + osize; in dcons_init_port() 149 buf->osize[port] = htonl(osize); in dcons_init_port() 150 buf->isize[port] = htonl(size - osize); in dcons_init_port() 152 buf->ioffset[port] = htonl(offset + osize); in dcons_init_port() 171 dc->o.size = ntohl(buf->osize[port]); in dcons_load_buffer()
|
| H A D | dcons.h | 55 V u_int32_t osize[DCONS_NPORT]; member
|
| /freebsd-13.1/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-13.1/tests/sys/fs/fusefs/ |
| H A D | cache.cc | 151 ssize_t osize = get<2>(GetParam()); in TEST_P() local 154 ASSERT_LE(osize, bufsize); in TEST_P() 165 expect_lookup(RELPATH, ino, osize, entry_valid, attr_valid); in TEST_P() 168 expect_getattr(ino, 2, osize, attr_valid); in TEST_P() 169 expect_read(ino, 0, osize, osize, CONTENTS); in TEST_P() 174 ASSERT_EQ(osize, read(fd, buf, bufsize)) << strerror(errno); in TEST_P() 175 ASSERT_EQ(0, memcmp(buf, CONTENTS, osize)); in TEST_P()
|
| H A D | utils.hh | 187 uint64_t osize, const void *contents, int flags = -1, 224 uint64_t osize, uint32_t flags_set, uint32_t flags_unset, 229 uint64_t osize, const void *contents);
|
| H A D | utils.cc | 387 uint64_t osize, const void *contents, int flags, uint64_t fh) in expect_read() argument 403 out.header.len = sizeof(struct fuse_out_header) + osize; in expect_read() 404 memmove(out.body.bytes, contents, osize); in expect_read() 495 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 548 out.body.write.size = osize; in expect_write_7_8()
|
| H A D | bmap.cc | 211 size_t osize = in.body.read.size; in TEST_P() local 212 out.header.len = sizeof(struct fuse_out_header) + osize; in TEST_P() 213 bzero(out.body.bytes, osize); in TEST_P()
|
| H A D | io.cc | 159 ssize_t osize; in SetUp() local 161 osize = pread(m_backing_fd, buf, isize, iofs); in SetUp() 162 ASSERT_LE(0, osize) << strerror(errno); in SetUp() 163 out.header.len = sizeof(struct fuse_out_header) + osize; in SetUp()
|
| /freebsd-13.1/usr.sbin/makefs/ffs/ |
| H A D | ffs_balloc.c | 90 int osize, nsize, num, i, error; in ffs_balloc_ufs1() local 114 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 115 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1() 153 osize = fragroundup(fs, blkoff(fs, ip->i_ffs1_size)); in ffs_balloc_ufs1() 155 if (nsize <= osize) { in ffs_balloc_ufs1() 164 error = bread(ip->i_devvp, lbn, osize, in ffs_balloc_ufs1() 341 int osize, nsize, num, i, error; in ffs_balloc_ufs2() local 365 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2() 366 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 406 if (nsize <= osize) { in ffs_balloc_ufs2() [all …]
|
| /freebsd-13.1/sys/ufs/ffs/ |
| H A D | ffs_balloc.c | 142 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 143 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1() 201 if (nsize <= osize) { in ffs_balloc_ufs1() 217 nsize, osize, bp); in ffs_balloc_ufs1() 659 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 706 if (nsize <= osize) { in ffs_balloc_ufs2() 726 nsize, osize, bp); in ffs_balloc_ufs2() 762 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2() 763 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2() 820 if (nsize <= osize) { in ffs_balloc_ufs2() [all …]
|
| H A D | ffs_inode.c | 257 off_t osize; local 319 osize = ip->i_din2->di_extsize; 333 sblksize(fs, osize, i), ip->i_number, 364 osize = ip->i_size; 370 if (osize < length) { 375 vnode_pager_setsize(vp, osize); 561 ip->i_size = osize; 562 DIP_SET(ip, i_size, osize);
|
| H A D | ffs_alloc.c | 256 int osize, nsize, flags; 282 if ((u_int)osize > fs->fs_bsize || fragoff(fs, osize) != 0 || 337 delta = btodb(nsize - osize); 345 vfs_bio_bzero_buf(bp, osize, nsize - osize); 347 vfs_bio_set_valid(bp, osize, nsize - osize); 421 delta = btodb(nsize - osize); 429 vfs_bio_bzero_buf(bp, osize, nsize - osize); 431 vfs_bio_set_valid(bp, osize, nsize - osize); 1682 int osize, nsize; 1721 cgp->cg_frsum[i - numfrags(fs, osize)]--; [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/module/lua/ |
| H A D | lmem.c | 74 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument 77 size_t realosize = (block) ? osize : 0; in luaM_realloc_() 83 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_() 89 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
|
| /freebsd-13.1/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-13.1/sys/fs/ext2fs/ |
| H A D | ext2_inode.c | 242 off_t osize; in ext2_ind_truncate() local 253 osize = oip->i_size; in ext2_ind_truncate() 259 if (osize < length) { in ext2_ind_truncate() 268 vnode_pager_setsize(vp, osize); in ext2_ind_truncate() 359 oip->i_size = osize; in ext2_ind_truncate() 472 off_t osize; in ext2_ext_truncate() local 476 osize = oip->i_size; in ext2_ext_truncate() 478 if (osize < length) { in ext2_ext_truncate() 488 vnode_pager_setsize(vp, osize); in ext2_ext_truncate() 533 oip->i_size = osize; in ext2_ext_truncate()
|
| /freebsd-13.1/sys/contrib/openzfs/module/zfs/ |
| H A D | lz4.c | 39 int osize); 43 int isize, int osize); 45 int isize, int osize); 469 int osize) in LZ4_compressCtx() argument 478 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() 659 int osize) in LZ4_compress64kCtx() argument 668 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx() 835 real_LZ4_compress(const char *source, char *dest, int isize, int osize) in real_LZ4_compress() argument 852 result = LZ4_compress64kCtx(ctx, source, dest, isize, osize); in real_LZ4_compress() 854 result = LZ4_compressCtx(ctx, source, dest, isize, osize); in real_LZ4_compress()
|
| /freebsd-13.1/stand/libsa/ |
| H A D | smbios.c | 300 int proc, size, osize, type; in smbios_parse_table() local 384 osize = SMBIOS_GET8(addr, 0x0a) & 0x7f; in smbios_parse_table() 385 if (osize > 0 && osize < 22) in smbios_parse_table() 386 smbios.old_enabled_memory += 1 << (osize + 10); in smbios_parse_table()
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_malloc.c | 115 #define DEBUG_REDZONE_ARG_DEF , unsigned long osize 116 #define DEBUG_REDZONE_ARG , osize 609 va = redzone_setup(va, osize); in malloc_large() 611 kasan_mark((void *)va, osize, sz, KASAN_MALLOC_REDZONE); in malloc_large() 639 unsigned long osize = size; variable 668 va = redzone_setup(va, osize); 672 kasan_mark((void *)va, osize, size, KASAN_MALLOC_REDZONE); 709 unsigned long osize = size; in malloc_domainset() local 735 va = redzone_setup(va, osize); in malloc_domainset() 739 kasan_mark((void *)va, osize, size, KASAN_MALLOC_REDZONE); in malloc_domainset() [all …]
|
| /freebsd-13.1/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);
|
| /freebsd-13.1/usr.sbin/makefs/msdos/ |
| H A D | msdosfs_vnops.c | 440 size_t osize = dep->de_FileSize; in msdosfs_wfile() local 460 MSDOSFS_DPRINTF(("%s(nsize=%zu, osize=%zu)\n", __func__, nsize, osize)); in msdosfs_wfile() 461 if (nsize > osize) { in msdosfs_wfile()
|
| /freebsd-13.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-mixx-defs.h | 1243 uint64_t osize : 20; /**< Represents the Outbound Ring Buffer's Size(in 8B member 1255 uint64_t osize : 20; 1262 uint64_t osize : 20; /**< Represents the Outbound Ring Buffer's Size(in 8B member 1276 uint64_t osize : 20;
|