Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/cmd/fm/modules/common/eversholt/
H A Dalloc.c124 size_t osize; in alloc_realloc() local
126 bcopy((void *)((char *)ptr - HDRSIZ), (void *)&osize, in alloc_realloc()
127 sizeof (osize)); in alloc_realloc()
129 bcopy(ptr, retval, (osize < nbytes) ? osize : nbytes); in alloc_realloc()
162 size_t osize; in alloc_free() local
166 bcopy((void *)((char *)ptr - HDRSIZ), (void *)&osize, sizeof (osize)); in alloc_free()
170 fmd_hdl_free(Hdl, (char *)ptr - HDRSIZ, osize + HDRSIZ); in alloc_free()
173 stats_counter_add(Freetotal, osize); in alloc_free()
177 totalcount -= osize + HDRSIZ; in alloc_free()
/titanic_41/usr/src/cmd/drd/
H A Ddrd.c266 size_t osize; in drd_pack_response() local
284 osize = sizeof (*orsrcsp) * nrsrc; in drd_pack_response()
285 bcopy(rsrcs, orsrcsp, osize); in drd_pack_response()
287 offset = osize; in drd_pack_response()
306 resizep = realloc(orsrcsp, osize + len); in drd_pack_response()
336 osize += len; in drd_pack_response()
340 return (osize); in drd_pack_response()
350 size_t osize; in drd_door_server() local
422 osize = drd_pack_response(rsrcs, nrsrc); in drd_door_server()
423 if (osize == 0) in drd_door_server()
[all …]
/titanic_41/usr/src/cmd/troff/troff.d/
H A Ddraw.c76 int ohpos, ovpos, osize, ofont; local
80 osize = size;
81 setsize(t_size(pstab[osize-1] / drawsize));
95 setsize(osize);
106 setsize(osize);
145 setsize(osize);
157 int osize, ofont; local
160 osize = size;
161 setsize(t_size(pstab[osize-1] / drawsize));
199 setsize(osize);
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Dgetdents.c82 int osize, nsize; in getdents32() local
130 osize = 0; in getdents32()
162 osize += (uint_t)op->d_reclen; in getdents32()
167 ASSERT(osize <= count); in getdents32()
171 if ((error = copyout(obuf, buf, osize)) < 0) in getdents32()
183 return (osize); in getdents32()
/titanic_41/usr/src/uts/common/fs/ufs/
H A Dufs_bmap.c321 long osize, nsize; in bmap_write() local
368 osize = blksize(fs, ip, llbn); in bmap_write()
369 if (osize < bsize && osize > 0) { in bmap_write()
377 btodb(bsize - osize)) > INT_MAX) { in bmap_write()
398 err = realloccg(ip, ob, pref, (int)osize, (int)bsize, in bmap_write()
417 ip->i_blocks += btodb(bsize - osize); in bmap_write()
435 (void) free(ip, ob, (off_t)osize, metaflag); in bmap_write()
449 osize = fragroundup(fs, blkoff(fs, ip->i_size)); in bmap_write()
451 if (nsize <= osize) in bmap_write()
460 btodb(nsize - osize)) > INT_MAX) { in bmap_write()
[all …]
H A Dufs_alloc.c182 realloccg(struct inode *ip, daddr_t bprev, daddr_t bpref, int osize, in realloccg() argument
196 if ((unsigned)osize > fs->fs_bsize || fragoff(fs, osize) != 0 || in realloccg()
201 ip->i_dev, fs->fs_bsize, osize, nsize, fs->fs_fsmnt); in realloccg()
214 err = chkdq(ip, (long)btodb(nsize - osize), 0, cr, &errmsg, &len); in realloccg()
224 bno = fragextend(ip, cg, (long)bprev, osize, nsize); in realloccg()
262 (void) chkdq(ip, -(long)btodb(nsize - osize), 0, cr, (char **)NULL, in realloccg()
894 fragextend(struct inode *ip, int cg, long bprev, int osize, int nsize) in fragextend() argument
905 if (fs->fs_cs(fs, cg).cs_nffree < numfrags(fs, nsize - osize)) in fragextend()
925 for (i = numfrags(fs, osize); i < frags; i++) { in fragextend()
949 j = i - numfrags(fs, osize); in fragextend()
[all …]
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c234 size_t osize; in realloc() local
243 osize = block->size; in realloc()
256 if (block->size > osize) in realloc()
257 scribble((ulong_t *)((char *)ptr + osize), NEWMEM, in realloc()
258 (block->size - osize)); in realloc()
265 (void) memcpy(newptr, ptr, osize); in realloc()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dlz4.c38 int osize);
39 static int real_LZ4_uncompress(const char *source, char *dest, int osize);
44 int isize, int osize);
46 int isize, int osize);
518 int osize) in LZ4_compressCtx() argument
531 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx()
713 int osize) in LZ4_compress64kCtx() argument
726 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx()
893 real_LZ4_compress(const char *source, char *dest, int isize, int osize) in real_LZ4_compress() argument
907 result = LZ4_compress64kCtx(ctx, source, dest, isize, osize); in real_LZ4_compress()
[all …]
/titanic_41/usr/src/lib/libast/common/sfio/
H A Dsfsetbuf.c106 ssize_t osize = 0; local
162 osize = f->size;
191 osize = f->size;
324 if(init && osize > 0)
325 size = osize;
342 if(obuf && size == (size_t)osize && init)
382 if(obuf && obuf != f->data && osize > 0 && (oflags&SF_MALLOC))
388 _Sfi = f->val = obuf ? osize : 0;
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dserialize.c229 krb5_ser_pack_bytes(krb5_octet *ostring, size_t osize, krb5_octet **bufp, size_t *remainp) in krb5_ser_pack_bytes() argument
231 if (*remainp >= osize) { in krb5_ser_pack_bytes()
232 (void) memcpy(*bufp, ostring, osize); in krb5_ser_pack_bytes()
233 *bufp += osize; in krb5_ser_pack_bytes()
234 *remainp -= osize; in krb5_ser_pack_bytes()
/titanic_41/usr/src/uts/sun4v/io/
H A Ddrctl_impl.c67 i_drctl_send(void *msg, size_t size, void **obufp, size_t *osize) in i_drctl_send() argument
97 me, msg, size, (void *)obufp, (void *)osize); in i_drctl_send()
109 *osize = door_args.rsize; in i_drctl_send()
H A Ddrctl.c613 send_message(void *msg, size_t size, drctl_resp_t **obufp, size_t *osize) in send_message() argument
627 ASSERT(osize != NULL); in send_message()
629 *osize = in send_message()
632 kmem_alloc(*osize, KM_SLEEP); in send_message()
634 __func__, (void *)bufp, *osize); in send_message()
653 int flags, int count, void *data, size_t *osize, size_t *data_size) in pack_message() argument
685 *osize = hdr_size + *data_size; in pack_message()
686 msgp = kmem_alloc(*osize, KM_SLEEP); in pack_message()
688 __func__, (void *)msgp, *osize); in pack_message()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncstat.c61 int isize, osize; in main() local
175 isize = osize = 0; in main()
177 osize = st.ochar / st.opack; in main()
184 isize, osize); in main()
/titanic_41/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c160 size_t osize; in realloc() local
171 osize = block->size; in realloc()
188 (void) memcpy(newptr, ptr, osize); in realloc()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_map.c73 size_t osize = maxformat * sizeof (void *); in dt_strdata_add() local
81 bcopy(*data, new_data, osize); in dt_strdata_add()
134 size_t osize = max * sizeof (void *); in dt_epid_add() local
136 bcopy(dtp->dt_pdesc, new_pdesc, osize); in dt_epid_add()
139 bcopy(dtp->dt_edesc, new_edesc, osize); in dt_epid_add()
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_slice.c100 uint64_t osize,
719 uint64_t osize = 0; /* orig size (bytes) */ in create_new_slice() local
745 (error = slice_get_size(oslice, &osize)) || in create_new_slice()
794 if (osize == nsize) { in create_new_slice()
798 } else if (osize > nsize) { in create_new_slice()
816 ostart, osize, bytes_per_sect, nname, nindex, nsize, in create_new_slice()
863 uint64_t osize, in create_modified_slice() argument
875 uint64_t nstart = (ostart + osize) - nsize; in create_modified_slice()
892 osize = osize - nsize; in create_modified_slice()
893 (void) slice_set_size(oslice, osize); in create_modified_slice()
[all …]
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_hash.c172 size_t osize = ihp->ih_nbuckets; in ipmi_hash_resize() local
179 if (nsize == osize) in ipmi_hash_resize()
194 for (idx = 0; idx < osize; idx++) { in ipmi_hash_resize()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs_cmd.c332 size_t osize; in nfscmd_convname() local
344 osize = size; in nfscmd_convname()
348 &holdname, &osize, &err); in nfscmd_convname()
351 &holdname, &osize, &err); in nfscmd_convname()
/titanic_41/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c193 uint64_t osize = 0; in size2str() local
201 osize = size; in size2str()
209 if (osize != 0 && (osize / scale) < 10) in size2str()
210 (void) snprintf(buf, len, "%.1f%c", (float)osize / scale, *up); in size2str()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c571 ssize_t osize, in b2clf_buf() argument
608 if ((*out_size >= osize) || in b2clf_buf()
645 count = (ssize_t)snprintf(&(obuf[*out_size]), osize - *out_size, in b2clf_buf()
/titanic_41/usr/src/cmd/eeprom/i386/
H A Dbenv.c202 exec_cmd(char *cmdline, char *output, int64_t osize) in exec_cmd() argument
272 if (output && osize > 0) { in exec_cmd()
273 (void) snprintf(output, osize, "%s", buf); in exec_cmd()
276 osize -= len; in exec_cmd()
/titanic_41/usr/src/cmd/lp/filter/postscript/font/devpost/charlib/
H A D1426 /osize size def
H A D3426 /osize size def
H A D1226 /osize size def
/titanic_41/usr/src/uts/common/os/
H A Dmmapobj.c2052 size_t osize; in doaoutwork() local
2092 osize = P2ROUNDUP(hdr->a_text, PAGESIZE) + hdr->a_data + hdr->a_bss; in doaoutwork()
2099 size = MAX(osize, nsize); in doaoutwork()
2143 osize = size; in doaoutwork()
2154 (void) as_unmap(as, start_addr, osize); in doaoutwork()
2161 osize = size; in doaoutwork()
2188 (void) as_unmap(as, start_addr, osize); in doaoutwork()
2210 (void) as_unmap(as, start_addr, osize); in doaoutwork()
2234 (void) as_unmap(as, start_addr, osize); in doaoutwork()

12