Searched refs:size (Results 226 - 250 of 3651) sorted by relevance

1234567891011>>

/opensolaris-onvv-gate/usr/src/lib/efcode/fcdriver/
H A Ddma.c41 size_t size; local
45 size = (size_t) POP(DS);
46 p = valloc(size);
47 debug_msg(DEBUG_REG_ACCESS, "dma-alloc ( %x ) -> %p\n", (int)size, p);
56 size_t size; local
59 size = POP(DS);
61 debug_msg(DEBUG_REG_ACCESS, "dma-free ( %p %x )\n", p, (int)size);
/opensolaris-onvv-gate/usr/src/lib/efcode/packages/
H A Dmemalloc.c44 size_t size; local
52 size = POP(DS);
55 fc_int2cell(align), fc_size2cell(size), fc_ptr2cell(hint), &vaddr);
58 vaddr = mapping_to_mcookie(vaddr, size, NULL, NULL);
65 size_t size; local
71 size = POP(DS);
73 fc_size2cell(size), fc_ptr2cell(addr));
/opensolaris-onvv-gate/usr/src/lib/krb5/dyn/
H A Ddyn_create.c43 obj->num_el = obj->size = 0;
61 obj1->size = obj->size;
66 obj1->array = (char *) malloc(obj1->el_size * obj1->size);
72 (size_t) (obj1->el_size * obj1->size));
83 obj->el_size * obj->size, obj->array);
84 memset(obj->array, 0, obj->el_size * obj->size);
/opensolaris-onvv-gate/usr/src/lib/libc/port/stdio/
H A Dfread.c47 fread(void *ptr, size_t size, size_t count, FILE *iop) argument
73 s = size;
74 else if (size == 1)
77 s = size * count;
134 return (size != 0 ? count - ((s + size - 1) / size) : 0);
H A Dfwrite.c46 _fwrite_unlocked(const void *ptr, size_t size, size_t count, FILE *iop);
49 fwrite(const void *ptr, size_t size, size_t count, FILE *iop) argument
58 retval = _fwrite_unlocked(ptr, size, count, iop);
65 _fwrite_unlocked(const void *ptr, size_t size, size_t count, FILE *iop) argument
78 s = size;
79 else if (size == 1)
82 s = size * count;
100 if (size < 1 || count < 1)
127 * Then it is divided by size to produce items.
133 return (written / size);
[all...]
/opensolaris-onvv-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c109 pp->size = ALIGN(pp->size, shp->sh_addralign);
110 pp->size += ALIGN(shp->sh_size, 8);
112 tp->size = ALIGN(tp->size, 8);
113 dp->size = ALIGN(dp->size, 8);
/opensolaris-onvv-gate/usr/src/uts/intel/ia32/krtld/
H A Dkobj_isa.c109 pp->size = ALIGN(pp->size, shp->sh_addralign);
110 pp->size += ALIGN(shp->sh_size, 8);
112 tp->size = ALIGN(tp->size, 8);
113 dp->size = ALIGN(dp->size, 8);
/opensolaris-onvv-gate/usr/src/uts/sparc/krtld/
H A Dkobj_isa.c125 pp->size = ALIGN(pp->size, shp->sh_addralign);
126 pp->size += ALIGN(shp->sh_size, 8);
128 tp->size = ALIGN(tp->size, 8);
129 dp->size = ALIGN(dp->size, 8);
/opensolaris-onvv-gate/usr/src/lib/libdtrace/i386/
H A Ddt_isadep.c80 int size; local
89 for (i = 0; i < ftp->ftps_size; i += size) {
90 size = dt_instr_size(&text[i], dtp, pid, symp->st_value + i,
96 if (size <= 0) {
125 int size; local
163 for (i = 0, end = ftp->ftps_size; i < end; i += size) {
164 size = dt_instr_size(&text[i], dtp, pid,
168 if (size <= 0)
174 size = 2;
179 size
277 int size; local
350 int size; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_auto.c49 logrec.size = sizeof(rectype) + sizeof(txn_num) + sizeof(DB_LSN)
51 + sizeof(u_int32_t) + (name == NULL ? 0 : name->size)
52 + sizeof(u_int32_t) + (uid == NULL ? 0 : uid->size)
55 if ((ret = __os_malloc(logrec.size, NULL, &logrec.data)) != 0)
72 memcpy(bp, &name->size, sizeof(name->size));
73 bp += sizeof(name->size);
74 memcpy(bp, name->data, name->size);
75 bp += name->size;
82 memcpy(bp, &uid->size, sizeo
[all...]
/opensolaris-onvv-gate/usr/src/lib/libast/common/sfio/
H A Dsfreserve.c30 Void_t* sfreserve(Sfio_t* f, ssize_t size, int type) argument
32 Void_t* sfreserve(f,size,type)
34 ssize_t size; /* size of peek */
46 sz = size < 0 ? -size : size;
80 if(size == 0 && (type < 0 || type == SF_LOCKR) )
110 if(size == 0 || (f->mode&SF_WRITE))
112 else if(size <
[all...]
/opensolaris-onvv-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmalloc.c38 * tree (thus minimizing search time for a block of a given size).
109 * A block with a negative size, a size that is not a multiple
110 * of ALIGNSIZ, a size greater than the current extent of the
111 * heap, or a size which extends beyond the end of the heap is
115 #define badblksize(p,size)\
116 ( (size) < SMALLEST_BLK \
117 || (size) & (ALIGNSIZ-1) \
118 || (size) > heapsize() \
119 || ((char*)(p))+(size) > _uboun
933 uint size; local
1161 uint size; local
1354 int size; local
[all...]
H A Dmemalign.c38 * Returns a block of specified size on a specified alignment boundary.
63 register uint blksize; /* Current (shrinking) block size */
66 register uint frag_size; /* size of fragments fore and aft */
70 * check for valid size and alignment parameters
81 * fragment of minimum size cannot be created.
91 * get size of the entire block (overhead and all)
94 blksize = blk->size;
120 blk->size = frag_size;
122 aligned_blk->size = blksize;
137 blk->size
[all...]
/opensolaris-onvv-gate/usr/src/cmd/geniconvtbl/
H A Dassemble.c64 comment ## " size=%4ld(0x%4lx); 64d=0x%16" PRIx64 "; ptr=%4p(%c...)\n"
66 data.size, data.size, data.place.itm_64d, \
69 (((sizeof (itm_place_t) < data.size))? \
168 "size(10) referencer next\n"));
176 ref->reloc.itm_ptr, ref->size,
208 * determin section size
213 ref; sec_num += 1, sec_size += ref->size, ref = ref->next) {}
215 info_header->str_plc_tbl.size = ((sizeof (itm_data_t)) * sec_num);
217 info_header->str_sec.size
[all...]
H A Ditm_util.c91 if ((sizeof (itm_place_t)) < itm_hdr->interpreter.size) {
94 itm_hdr->interpreter.size,
100 if ((sizeof (itm_place_t)) < itm_hdr->type_id.size) {
103 itm_hdr->type_id.size,
150 act->tbl_hdr, act->tbl_hdr->size,
187 tbl->size = (sizeof (itm_tbl_hdr_t)) + (obj_array.num *obj_size);
201 itm_size_t size)
212 obj_array.obj = malloc_vital(hdr_size + (size * obj_array.num));
218 ol; offset += size, ol = ol->next) {
219 (void) memcpy((char *)(obj_array.obj) + offset, ol->obj, size);
200 obj_list_to_array(itm_size_t hdr_size, itmc_obj_t *obj_list, itm_size_t size) argument
302 obj_register(itm_type_t type, itm_data_t *name, void *obj, size_t size, itm_place_t *ref, itm_type_t reg_place) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sendmail/libsm/
H A Dstrl.c32 ** SM_STRLCPY -- size bounded string copy
35 ** If size > 0, copy up to size-1 characters from the nul terminated
36 ** string src to dst, nul terminating the result. If size == 0,
53 ** size -- size of destination buffer
60 sm_strlcpy(dst, src, size)
63 ssize_t size;
67 if (size-- <= 0)
69 for (i = 0; i < size
[all...]
/opensolaris-onvv-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsun4u_memlist.c49 u_longlong_t size; member in struct:sun4u_prom_memlist
57 static struct memlist *reg_to_list(struct sun4u_prom_memlist *a, size_t size,
59 static void sort_reglist(struct sun4u_prom_memlist *ar, size_t size);
115 prom_panic("fill_memlists - memlist size");
164 u_longlong_t size = 0; local
184 if (i < n-1 && (start1 + ar[i].size == start2)) {
185 size += ar[i].size;
196 size += ar[i].size;
[all...]
/opensolaris-onvv-gate/usr/src/lib/libast/common/misc/
H A Dstack.c37 stackalloc(register int size, void* error) argument
42 if (size <= 0) size = 100;
49 if (!(b->stack = newof(0, void*, size, 0)))
56 stack->size = size;
116 if (++stack->position.index >= stack->size)
125 if (!(b->stack = newof(0, void*, stack->size, 0)))
157 stack->position.index = stack->size - 1;
/opensolaris-onvv-gate/usr/src/uts/common/vm/
H A Dseg_kmem.c128 * The large page size "segkmem_lpsize" for kernel heap is selected in the
196 hat_memload_alloc(vmem_t *vmp, size_t size, int flags) argument
199 return (segkmem_alloc(vmp, size, flags));
209 segkmem_alloc_permanent(vmem_t *vmp, size_t size, int flags) argument
211 return (segkmem_alloc(vmp, size, flags | VM_NORELOC));
358 boot_mapin(caddr_t addr, size_t size) argument
364 if (page_resv(btop(size), KM_NOSLEEP) == 0)
367 for (eaddr = addr + size; addr < eaddr; addr += PAGESIZE) {
411 boot_alloc(void *inaddr, size_t size, uint_t align) argument
419 size
441 segkmem_fault(struct hat *hat, struct seg *seg, caddr_t addr, size_t size, enum fault_type type, enum seg_rw rw) argument
509 segkmem_setprot(struct seg *seg, caddr_t addr, size_t size, uint_t prot) argument
537 segkmem_checkprot(struct seg *seg, caddr_t addr, size_t size, uint_t prot) argument
580 segkmem_xdump_range(void *arg, void *start, size_t size) argument
596 segkmem_dump_range(void *arg, void *start, size_t size) argument
824 segkmem_page_create(void *addr, size_t size, int vmflag, void *arg) argument
858 segkmem_xalloc(vmem_t *vmp, void *inaddr, size_t size, int vmflag, uint_t attr, page_t *(*page_create_func)(void *, size_t, int, void *), void *pcarg) argument
928 segkmem_alloc_vn(vmem_t *vmp, size_t size, int vmflag, struct vnode *vp) argument
964 segkmem_alloc(vmem_t *vmp, size_t size, int vmflag) argument
970 segkmem_zio_alloc(vmem_t *vmp, size_t size, int vmflag) argument
982 segkmem_free_vn(vmem_t *vmp, void *inaddr, size_t size, struct vnode *vp, void (*func)(page_t *)) argument
1039 segkmem_xfree(vmem_t *vmp, void *inaddr, size_t size, void (*func)(page_t *)) argument
1045 segkmem_free(vmem_t *vmp, void *inaddr, size_t size) argument
1051 segkmem_zio_free(vmem_t *vmp, void *inaddr, size_t size) argument
1071 segkmem_mapin(struct seg *seg, void *addr, size_t size, uint_t vprot, pfn_t pfn, uint_t flags) argument
1080 segkmem_mapout(struct seg *seg, void *addr, size_t size) argument
1103 segkmem_page_create_large(void *addr, size_t size, int vmflag, void *arg) argument
1128 segkmem_xalloc_lp(vmem_t *vmp, void *inaddr, size_t size, int vmflag, uint_t attr, page_t *(*page_create_func)(void *, size_t, int, void *), void *pcarg) argument
1220 segkmem_free_one_lp(caddr_t addr, size_t size) argument
1256 size_t size; local
1378 segkmem_free_lp(vmem_t *vmp, void *inaddr, size_t size) argument
1393 segkmem_alloc_lpi(vmem_t *vmp, size_t size, int vmflag) argument
1418 segkmem_free_lpi(vmem_t *vmp, void *inaddr, size_t size) argument
1541 segkmem_alloc_ppa(vmem_t *vmp, size_t size, int vmflag) argument
1562 segkmem_free_ppa(vmem_t *vmp, void *addr, size_t size) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/gcore/
H A Dgcore.c45 convert_path(const char *path, char *fname, size_t size, argument
55 fname[size - 1] = '\0';
56 size--;
58 while ((p = strchr(path, '%')) != NULL && size != 0) {
59 len = MIN(size, p - path);
63 if ((size -= len) == 0)
69 len = snprintf(fname, size, "%d", (int)pip->pr_pid);
72 len = snprintf(fname, size, "%d", (int)pip->pr_uid);
75 len = snprintf(fname, size, "%d", (int)pip->pr_gid);
78 len = snprintf(fname, size, "
[all...]
/opensolaris-onvv-gate/usr/src/cmd/nscd/
H A Dnscd_biggest.c51 int size, guess, base, last; local
57 size = table[0].num;
58 if (table[size].num < n) /* biggest so far */
59 guess = size;
62 last = size;
/opensolaris-onvv-gate/usr/src/cmd/sgs/include/
H A Dmonv.h56 Size size; member in struct:_prof_object
68 Size size; member in struct:_prof_header
88 * the size of (Address) equal to 8
95 Size size; member in struct:_prof_buffer
103 Size size; member in struct:_prof_call_graph
110 Size size; member in struct:_prof_module_list
/opensolaris-onvv-gate/usr/src/cmd/svr4pkg/libinst/
H A Dnblk.c41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) argument
46 if (size == 0 || bsize == 0)
57 tot = howmany(size, bsize);
69 roundup(size, frsize) :
70 roundup(size, bsize);
/opensolaris-onvv-gate/usr/src/common/nvpair/
H A Dnvpair_alloc_fixed.c61 * bufsz size of pre-allocated buffer
84 nv_fixed_alloc(nv_alloc_t *nva, size_t size) argument
89 if (size == 0 || new + size > nvb->nvb_lim)
92 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t));
99 nv_fixed_free(nv_alloc_t *nva, void *buf, size_t size) argument
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dpr_to_salt.c42 unsigned int size = 0, offset=0; local
55 size += krb5_princ_realm(context, pr)->length;
58 size += krb5_princ_component(context, pr, i)->length;
60 ret->length = size;
61 if (!(ret->data = malloc (size)))

Completed in 186 milliseconds

1234567891011>>