Home
last modified time | relevance | path

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

123

/freebsd-14.2/sbin/ipf/libipf/
H A Dparseipfexpr.c117 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-14.2/contrib/lua/src/
H A Dlmem.c150 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 Dlstring.c62 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-14.2/contrib/openpam/lib/libpam/
H A Dpam_set_item.c62 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-14.2/sys/dev/dcons/
H A Ddcons.c132 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 Ddcons.h54 V u_int32_t osize[DCONS_NPORT]; member
/freebsd-14.2/contrib/netbsd-tests/sbin/resize_ffs/
H A Dcommon.sh113 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-14.2/tests/sys/fs/fusefs/
H A Dcache.cc149 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 Dutils.hh189 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 Dbmap.cc219 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 Dutils.cc384 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 Dio.cc161 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-14.2/usr.sbin/makefs/ffs/
H A Dffs_balloc.c89 int osize, nsize, num, i, error; in ffs_balloc_ufs1() local
113 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
114 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1()
152 osize = fragroundup(fs, blkoff(fs, ip->i_ffs1_size)); in ffs_balloc_ufs1()
154 if (nsize <= osize) { in ffs_balloc_ufs1()
164 osize, NULL, bpp); in ffs_balloc_ufs1()
346 int osize, nsize, num, i, error; in ffs_balloc_ufs2() local
370 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2()
371 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2()
411 if (nsize <= osize) { in ffs_balloc_ufs2()
[all …]
/freebsd-14.2/sys/ufs/ffs/
H A Dffs_balloc.c140 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
141 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1()
199 if (nsize <= osize) { in ffs_balloc_ufs1()
215 nsize, osize, bp); in ffs_balloc_ufs1()
657 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2()
704 if (nsize <= osize) { in ffs_balloc_ufs2()
724 nsize, osize, bp); in ffs_balloc_ufs2()
760 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2()
761 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs2()
818 if (nsize <= osize) { in ffs_balloc_ufs2()
[all …]
H A Dffs_inode.c254 off_t osize; in ffs_truncate() local
316 osize = ip->i_din2->di_extsize; in ffs_truncate()
330 sblksize(fs, osize, i), ip->i_number, in ffs_truncate()
361 osize = ip->i_size; in ffs_truncate()
367 if (osize < length) { in ffs_truncate()
372 vnode_pager_setsize(vp, osize); in ffs_truncate()
562 ip->i_size = osize; in ffs_truncate()
563 DIP_SET(ip, i_size, osize); in ffs_truncate()
H A Dffs_alloc.c257 int osize, in ffs_realloccg() argument
285 if ((uint64_t)osize > fs->fs_bsize || fragoff(fs, osize) != 0 || in ffs_realloccg()
340 delta = btodb(nsize - osize); in ffs_realloccg()
348 vfs_bio_bzero_buf(bp, osize, nsize - osize); in ffs_realloccg()
350 vfs_bio_set_valid(bp, osize, nsize - osize); in ffs_realloccg()
424 delta = btodb(nsize - osize); in ffs_realloccg()
432 vfs_bio_bzero_buf(bp, osize, nsize - osize); in ffs_realloccg()
434 vfs_bio_set_valid(bp, osize, nsize - osize); in ffs_realloccg()
1700 int osize, in ffs_fragextend() argument
1742 cgp->cg_frsum[i - numfrags(fs, osize)]--; in ffs_fragextend()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/lua/
H A Dlmem.c73 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-14.2/crypto/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c365 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-14.2/sys/cddl/contrib/opensolaris/common/lz4/
H A Dlz4.c62 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-14.2/sys/fs/ext2fs/
H A Dext2_inode.c243 off_t osize; in ext2_ind_truncate() local
254 osize = oip->i_size; in ext2_ind_truncate()
260 if (osize < length) { in ext2_ind_truncate()
269 vnode_pager_setsize(vp, osize); in ext2_ind_truncate()
364 oip->i_size = osize; in ext2_ind_truncate()
477 off_t osize; in ext2_ext_truncate() local
481 osize = oip->i_size; in ext2_ext_truncate()
483 if (osize < length) { in ext2_ext_truncate()
493 vnode_pager_setsize(vp, osize); in ext2_ext_truncate()
538 oip->i_size = osize; in ext2_ext_truncate()
/freebsd-14.2/sys/contrib/openzfs/module/zfs/
H A Dlz4_zfs.c43 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-14.2/stand/libsa/
H A Dsmbios.c390 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-14.2/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_map.c74 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-14.2/sys/kern/
H A Dkern_malloc.c114 #define DEBUG_REDZONE_ARG_DEF , unsigned long osize
115 #define DEBUG_REDZONE_ARG , osize
632 va = redzone_setup(va, osize); in malloc_large()
634 kasan_mark(va, osize, size, KASAN_MALLOC_REDZONE); in malloc_large()
664 unsigned long osize = size; variable
698 va = redzone_setup(va, osize);
702 kasan_mark((void *)va, osize, size, KASAN_MALLOC_REDZONE);
739 unsigned long osize = size; in malloc_domainset() local
765 va = redzone_setup(va, osize); in malloc_domainset()
769 kasan_mark((void *)va, osize, size, KASAN_MALLOC_REDZONE); in malloc_domainset()
[all …]
/freebsd-14.2/usr.sbin/makefs/msdos/
H A Dmsdosfs_vnops.c436 size_t osize = dep->de_FileSize; in msdosfs_wfile() local
456 MSDOSFS_DPRINTF(("%s(nsize=%zu, osize=%zu)\n", __func__, nsize, osize)); in msdosfs_wfile()
457 if (nsize > osize) { in msdosfs_wfile()

123