Home
last modified time | relevance | path

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

123

/src/sbin/ipf/libipf/ !
H A Dparseipfexpr.c37 int not, items, asize, *oplist, osize, i; in parseipfexpr() local
117 osize = asize; in parseipfexpr()
127 ipfe = (ipfexp_t *)(oplist + osize); in parseipfexpr()
128 osize += 4; in parseipfexpr()
135 for (s = arg; (*s != '\0') && (osize < asize); s = t) { in parseipfexpr()
167 oplist[osize++] = addr.in4.s_addr; in parseipfexpr()
168 oplist[osize++] = mask.in4.s_addr; 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()
[all …]
/src/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()
176 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument
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_()
[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 …]
/src/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()
/src/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()
/src/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
/src/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 Dbmap.cc248 size_t osize = in.body.read.size; in TEST_P() local
250 assert(osize < sizeof(out.body.bytes)); in TEST_P()
251 out.header.len = sizeof(struct fuse_out_header) + osize; in TEST_P()
252 bzero(out.body.bytes, osize); in TEST_P()
309 size_t osize = in.body.read.size; in TEST_P() local
311 assert(osize < sizeof(out.body.bytes)); in TEST_P()
312 out.header.len = sizeof(struct fuse_out_header) + osize; in TEST_P()
313 bzero(out.body.bytes, osize); in TEST_P()
H A Dutils.hh195 uint64_t osize, const void *contents, int flags = -1,
232 uint64_t osize, uint32_t flags_set, uint32_t flags_unset,
237 uint64_t osize, const void *contents);
H A Dutils.cc378 uint64_t osize, const void *contents, int flags, uint64_t fh) in expect_read() argument
394 assert(osize <= sizeof(out.body.bytes)); in expect_read()
395 out.header.len = sizeof(struct fuse_out_header) + osize; in expect_read()
396 memmove(out.body.bytes, contents, osize); in expect_read()
487 uint64_t osize, uint32_t flags_set, uint32_t flags_unset, in expect_write() argument
519 out.body.write.size = osize; in expect_write()
524 uint64_t osize, const void *contents) in expect_write_7_8() argument
545 out.body.write.size = osize; in expect_write_7_8()
/src/crypto/krb5/src/lib/krb5/krb/ !
H A Dserialize.c67 krb5_ser_pack_bytes(krb5_octet *ostring, size_t osize, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_bytes() argument
69 if (*remainp >= osize) { in krb5_ser_pack_bytes()
70 memcpy(*bufp, ostring, osize); in krb5_ser_pack_bytes()
71 *bufp += osize; in krb5_ser_pack_bytes()
72 *remainp -= osize; in krb5_ser_pack_bytes()
/src/usr.sbin/makefs/ffs/ !
H A Dffs_balloc.c86 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()
406 osize = fragroundup(fs, blkoff(fs, ip->i_ffs2_size)); in ffs_balloc_ufs2()
[all …]
/src/sys/ufs/ffs/ !
H A Dffs_balloc.c101 int deallocated, osize, nsize, num, i, error; in ffs_balloc_ufs1() local
137 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
138 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1()
142 &dp->di_db[0]), osize, (int)fs->fs_bsize, flags, in ffs_balloc_ufs1()
149 fs->fs_bsize, osize, bp); in ffs_balloc_ufs1()
194 osize = fragroundup(fs, blkoff(fs, ip->i_size)); in ffs_balloc_ufs1()
196 if (nsize <= osize) { in ffs_balloc_ufs1()
197 error = bread(vp, lbn, osize, NOCRED, &bp); in ffs_balloc_ufs1()
205 &dp->di_db[0]), osize, nsize, flags, in ffs_balloc_ufs1()
212 nsize, osize, bp); in ffs_balloc_ufs1()
[all …]
H A Dffs_inode.c252 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()
/src/sys/contrib/openzfs/module/lua/ !
H A Dlmem.c74 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_()
/src/crypto/openssl/test/ !
H A Dbio_comp_test.c42 int osize; in do_bio_comp_test() local
54 osize = BIO_write(bcomp, original, size); in do_bio_comp_test()
55 if (!TEST_int_eq(osize, size) in do_bio_comp_test()
68 || !TEST_mem_eq(original, osize, result, rsize)) in do_bio_comp_test()
/src/sys/vm/ !
H A Duma_dbg.c148 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()
/src/crypto/openssl/providers/implementations/kdfs/ !
H A Dkrb5kdf.c388 size_t osize; in KRB5KDF() local
436 for (osize = 0; osize < okey_len; osize += cipherlen) { in KRB5KDF()
454 if (cipherlen > okey_len - osize) in KRB5KDF()
455 cipherlen = okey_len - osize; in KRB5KDF()
456 memcpy(okey + osize, cipherblock, cipherlen); in KRB5KDF()
458 if (okey_len > osize + cipherlen) { in KRB5KDF()
/src/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()
849 real_LZ4_compress(const char *source, char *dest, int isize, int osize) in real_LZ4_compress() argument
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()
[all …]
/src/sys/kern/ !
H A Dkern_malloc.c112 #define DEBUG_REDZONE_ARG_DEF , unsigned long osize
113 #define DEBUG_REDZONE_ARG , osize
480 contigmalloc(unsigned long osize, struct malloc_type *type, int flags, in contigmalloc() argument
488 size = redzone_size_ntor(osize); in contigmalloc()
490 size = osize; in contigmalloc()
500 ret = redzone_setup(ret, osize); in contigmalloc()
507 contigmalloc_domainset(unsigned long osize, struct malloc_type *type, in contigmalloc_domainset() argument
515 size = redzone_size_ntor(osize); in contigmalloc_domainset()
517 size = osize; in contigmalloc_domainset()
527 ret = redzone_setup(ret, osize); in contigmalloc_domainset()
[all …]
/src/sys/fs/ext2fs/ !
H A Dext2_inode.c241 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()
/src/sys/contrib/openzfs/module/zfs/ !
H A Dlz4_zfs.c44 int osize);
46 int isize, int osize);
48 int isize, int osize);
479 int osize) in LZ4_compressCtx() argument
488 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx()
669 int osize) in LZ4_compress64kCtx() argument
678 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx()
845 real_LZ4_compress(const char *source, char *dest, int isize, int osize) in real_LZ4_compress() argument
862 result = LZ4_compress64kCtx(ctx, source, dest, isize, osize); in real_LZ4_compress()
864 result = LZ4_compressCtx(ctx, source, dest, isize, osize); in real_LZ4_compress()
/src/sys/compat/linuxkpi/common/src/ !
H A Dlinux_slab.c245 size_t osize; in lkpi_krealloc() local
253 osize = ksize(ptr); in lkpi_krealloc()
254 if (size <= osize) in lkpi_krealloc()
271 memcpy(nptr, ptr, osize); in lkpi_krealloc()
/src/stand/libsa/ !
H A Dsmbios.c411 int proc, size, osize, type; in smbios_parse_table() local
505 osize = SMBIOS_GET8(addr, 0x0a) & 0x7f; in smbios_parse_table()
506 if (osize > 0 && osize < 22) in smbios_parse_table()
507 smbios.old_enabled_memory += 1 << (osize + 10); in smbios_parse_table()
/src/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);

123