Home
last modified time | relevance | path

Searched refs:size (Results 276 – 300 of 3939) sorted by relevance

1...<<11121314151617181920>>...158

/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dmakectxt.c62 size_t size; in makecontext() local
72 size = sizeof (struct frame); in makecontext()
73 size += (argc > 6 ? argc - 6 : 0) * sizeof (long); in makecontext()
81 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp - size) & in makecontext()
115 size_t size; in __makecontext_v2() local
125 size = sizeof (struct frame); in __makecontext_v2()
126 size += (argc > 6 ? argc - 6 : 0) * sizeof (long); in __makecontext_v2()
129 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); in __makecontext_v2()
/illumos-gate/usr/src/uts/sun4u/io/
H A Dmc-us3.c621 mcseg->size = seg->size; in mc_ioctl()
681 mcbank.size = bank->size; in mc_ioctl()
714 mcdevgrp.size = dgrp->size; in mc_ioctl()
953 size = ((bank->size / 4) / 64) * 72; in mc_offset_to_addr()
1045 size = ((bank->size / 4) / 64) * 72; in mc_addr_to_offset()
1646 bank_curr->size = size; in mlayout_add()
1686 dgrp->size += size; in mlayout_add()
1703 dev->size += (size / NDIMMS); in mlayout_add()
1716 seg_curr->size += size; in mlayout_add()
1726 seg_curr->size = size; in mlayout_add()
[all …]
/illumos-gate/usr/src/test/smbclient-tests/tests/smbfs/create/
H A Dtp_create_008.ksh49 size=150m
51 size=5m
72 cti_execute_cmd "mkfile $size $TDIR/file"
73 cti_execute_cmd "mkfile $size $TMNT/file"
75 cti_fail "FAIL: failed to create the $size file"
78 cti_report "PASS: create the $size file successfully"
/illumos-gate/usr/src/cmd/sendmail/db/lock/
H A Dlock_util.c48 return (dbt->size == lock_obj->lockobj.size &&
49 memcmp(dbt->data, obj_data, dbt->size) == 0);
110 if (dbt->size == sizeof(DB_LOCK_ILOCK))
113 return (__ham_func5(dbt->data, dbt->size));
134 if (lock_obj->lockobj.size == sizeof(DB_LOCK_ILOCK))
137 return (__ham_func5(obj_data, lock_obj->lockobj.size));
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c107 pp->size = ALIGN(pp->size, shp->sh_addralign); in get_progbits_size()
108 pp->size += ALIGN(shp->sh_size, 8); in get_progbits_size()
110 tp->size = ALIGN(tp->size, 8); in get_progbits_size()
111 dp->size = ALIGN(dp->size, 8); in get_progbits_size()
/illumos-gate/usr/src/cmd/bhyve/
H A Dtpm_intf_crb.c258 if (!(size == 1 || size == 2 || size == 4 || size == 8)) in tpm_crb_mmiocpy()
260 memcpy(dst, src, size); in tpm_crb_mmiocpy()
275 if ((addr & (size - 1)) != 0) { in tpm_crb_mem_handler()
292 error = tpm_crb_mmiocpy(val, ptr, size); in tpm_crb_mem_handler()
300 if ((size_t)size > sizeof(loc_ctrl)) in tpm_crb_mem_handler()
304 tpm_crb_mmiocpy(&loc_ctrl, val, size); in tpm_crb_mem_handler()
319 if ((size_t)size > sizeof(req)) in tpm_crb_mem_handler()
323 tpm_crb_mmiocpy(&req, val, size); in tpm_crb_mem_handler()
344 if ((size_t)size > sizeof(start)) in tpm_crb_mem_handler()
350 tpm_crb_mmiocpy(&start, val, size); in tpm_crb_mem_handler()
[all …]
H A Dmem.c158 mem_read(struct vcpu *vcpu, uint64_t gpa, uint64_t *rval, int size, void *arg) in mem_read() argument
163 error = (*mr->handler)(vcpu, MEM_F_READ, gpa, size, rval, mr->arg1, in mem_read()
174 error = (*mr->handler)(vcpu, MEM_F_WRITE, gpa, size, &wval, mr->arg1, in mem_write()
263 int size; member
274 return (mr->handler(vcpu, rma->operation, paddr, rma->size, in rw_mem_cb()
279 read_mem(struct vcpu *vcpu, uint64_t gpa, uint64_t *rval, int size) in read_mem() argument
284 rma.size = size; in read_mem()
290 write_mem(struct vcpu *vcpu, uint64_t gpa, uint64_t wval, int size) in write_mem() argument
295 rma.size = size; in write_mem()
316 mrp->mr_end = memp->base + memp->size - 1; in register_mem_int()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_as.c120 if (size != -1) { in as_add_callback()
131 rsize = size; in as_add_callback()
1585 eoff += size; in as_map_vnsegs()
1589 size = P2ROUNDUP_TYPED(size, PAGESIZE, size_t); in as_map_vnsegs()
1607 addr += size; in as_map_vnsegs()
1608 size = save_size - size; in as_map_vnsegs()
2205 size_t size; in as_segunlock() local
2598 for (; size != 0; size -= ssize, addr += ssize) { in as_pagelock_segs()
2627 ssize = size; in as_pagelock_segs()
2904 rsize = size; in as_setpagesize()
[all …]
H A Das.h274 faultcode_t as_faulta(struct as *as, caddr_t addr, size_t size);
275 int as_setprot(struct as *as, caddr_t addr, size_t size, uint_t prot);
276 int as_checkprot(struct as *as, caddr_t addr, size_t size, uint_t prot);
277 int as_unmap(struct as *as, caddr_t addr, size_t size);
280 int as_map_locked(struct as *as, caddr_t addr, size_t size,
291 int as_incore(struct as *as, caddr_t addr, size_t size, char *vec,
293 int as_ctl(struct as *as, caddr_t addr, size_t size, int func, int attr,
296 size_t size, enum seg_rw rw);
298 size_t size, enum seg_rw rw);
299 int as_setpagesize(struct as *as, caddr_t addr, size_t size, uint_t szc,
[all …]
H A Danon.h239 pgcnt_t size; /* number of pointers to (anon) pages */ member
304 size_t size; /* size in bytes mapped by the anon array */ member
458 #define anon_unresv(size) anon_unresvmem(size, curproc->p_zone) argument
459 #define anon_unresv_zone(size, zone) anon_unresvmem(size, zone) argument
460 #define anon_resv(size) \ argument
461 anon_resvmem((size), 1, curproc->p_zone, 1)
462 #define anon_resv_zone(size, zone) anon_resvmem((size), 1, zone, 1) argument
463 #define anon_checkspace(size, zone) anon_resvmem((size), 0, zone, 0) argument
464 #define anon_try_resv_zone(size, zone) anon_resvmem((size), 1, zone, 0) argument
/illumos-gate/usr/src/uts/common/inet/
H A Dproto_set.c41 proto_set_rx_hiwat(queue_t *q, conn_t *connp, size_t size) in proto_set_rx_hiwat() argument
48 sopp.sopp_rxhiwat = size; in proto_set_rx_hiwat()
61 stropt->so_hiwat = size; in proto_set_rx_hiwat()
75 sopp.sopp_rxlowat = size; in proto_set_rx_lowat()
88 stropt->so_lowat = size; in proto_set_rx_lowat()
106 sopp.sopp_maxpsz = size; in proto_set_maxpsz()
125 (void) strqset(wq, QMAXPSZ, 0, size); in proto_set_maxpsz()
139 sopp.sopp_maxblk = size; in proto_set_tx_maxblk()
152 stropt->so_maxblk = size; in proto_set_tx_maxblk()
191 sopp.sopp_wroff = size; in proto_set_tx_wroff()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_fat.c204 int size; in fat_read() local
210 if (size > len) in fat_read()
211 size = len; in fat_read()
214 filepos += size; in fat_read()
215 return size; in fat_read()
273 if (size > len) in fat_read()
274 size = len; in fat_read()
282 len -= size; in fat_read()
283 buf += size; in fat_read()
284 ret += size; in fat_read()
[all …]
H A Dfsys_ffs.c147 int logno, off, size, map, ret = 0; in ffs_read() local
153 size = blksize (SUPERBLOCK, INODE, logno); in ffs_read()
158 size -= off; in ffs_read()
160 if (size > len) in ffs_read()
161 size = len; in ffs_read()
165 devread (fsbtodb (SUPERBLOCK, map), off, size, buf); in ffs_read()
169 buf += size; in ffs_read()
170 len -= size; in ffs_read()
171 filepos += size; in ffs_read()
172 ret += size; in ffs_read()
/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.c136 Format_size(char *str, size_t size, int length) in Format_size() argument
139 if (size >= 10000) { in Format_size()
140 size = (size + 512) / 1024; in Format_size()
142 if (size >= 10000) { in Format_size()
143 size = (size + 512) / 1024; in Format_size()
216 Realloc(void *ptr, size_t size) in Realloc() argument
221 eagain: if ((ptr = realloc(ptr, size))) in Realloc()
237 Malloc(size_t size) in Malloc() argument
239 return (Realloc(NULL, size)); in Malloc()
243 Zalloc(size_t size) in Zalloc() argument
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dinit_os_ctx.c58 UINT size = GetWindowsDirectory(0, 0); in get_from_windows_dir() local
59 *pname = malloc(size + 1 + in get_from_windows_dir()
63 GetWindowsDirectory(*pname, size); in get_from_windows_dir()
77 const DWORD size = 1024; /* fixed buffer */ in get_from_module_dir() local
85 name = MALLOC(size); in get_from_module_dir()
98 name[size - 1] = 0; in get_from_module_dir()
105 if (name) FREE(name, size); in get_from_module_dir()
126 DWORD size = 0; in get_from_registry() local
153 *pbuffer = MALLOC(size); in get_from_registry()
166 FREE(*pbuffer, size); in get_from_registry()
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem.c2174 if (size == 0) in _umem_alloc()
2197 if (size == 0) in _umem_alloc_align()
3021 if (size == 0) { in umem_alloc_sizes_add()
3035 size); in umem_alloc_sizes_add()
3040 size = P2ROUNDUP(size, UMEM_ALIGN); in umem_alloc_sizes_add()
3042 size); in umem_alloc_sizes_add()
3049 size); in umem_alloc_sizes_add()
3052 if (cur > size) in umem_alloc_sizes_add()
3077 size); in umem_alloc_sizes_remove()
3097 size_t size; in umem_cache_tmem_cleanup() local
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_softc.c38 size_t size; /* how many bytes per state struct */ member
64 ddi_soft_state_init(void **state_p, size_t size, size_t n_items) in ddi_soft_state_init() argument
68 if (state_p == NULL || size == 0) in ddi_soft_state_init()
73 ss->size = size; in ddi_soft_state_init()
107 if (ss->size == 0) { in ddi_soft_state_zalloc()
128 new_element = kmem_zalloc(ss->size, KM_SLEEP); in ddi_soft_state_zalloc()
203 if ((array = ss->array) == NULL || ss->size == 0) { in ddi_soft_state_free()
217 kmem_free(element, ss->size); in ddi_soft_state_free()
247 if (ss->size == 0) { in ddi_soft_state_fini()
/illumos-gate/usr/src/cmd/listen/
H A Dnlps_serv.c143 int size; in nlps_server() local
159 if (size < 0) { in nlps_server()
171 nls_service(bp, size); in nlps_server()
222 int size; local
240 tmp += size;
250 if (++size > RCVBUFSZ) {
276 size += 28;
325 return(size);
459 nls_service(bp, size) in nls_service() argument
460 int size; in nls_service()
[all …]
/illumos-gate/usr/src/common/ficl/ficlplatform/
H A Dunix.c19 ficlMalloc(size_t size) in ficlMalloc() argument
21 return (malloc(size)); in ficlMalloc()
25 ficlRealloc(void *p, size_t size) in ficlRealloc() argument
27 return (realloc(p, size)); in ficlRealloc()
54 ficlFileTruncate(ficlFile *ff, ficlUnsigned size) in ficlFileTruncate() argument
56 return (ftruncate(fileno(ff->f), size)); in ficlFileTruncate()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmdebug.c248 DBSIZE(data) = size;
333 long size; local
338 size = -1L;
348 size = (long)DBSIZE(addr);
358 return size;
366 size_t size;
393 dbsetinfo(data,size,file,line);
468 reg size_t size; /* new size */
489 if(size == 0)
658 size_t size;
[all …]
/illumos-gate/usr/src/boot/efi/loader/
H A Dmemmap.c73 UINTN size, desc_size, key; in efi_getsmap() local
83 size = 0; in efi_getsmap()
85 status = BS->GetMemoryMap(&size, efi_mmap, &key, &desc_size, NULL); in efi_getsmap()
86 efi_mmap = malloc(size); in efi_getsmap()
87 status = BS->GetMemoryMap(&size, efi_mmap, &key, &desc_size, NULL); in efi_getsmap()
99 ndesc = size / desc_size; in efi_getsmap()
158 size_t size; in efi_addsmapdata() local
162 size = smaplen * sizeof (*smapbase); in efi_addsmapdata()
163 file_addmetadata(kfp, MODINFOMD_SMAP, size, smapbase); in efi_addsmapdata()
/illumos-gate/usr/src/common/exacct/
H A Dexacct_core.c63 ea_alloc(size_t size) in ea_alloc() argument
85 ea_free(void *ptr, size_t size) in ea_free() argument
90 kmem_free(ptr, size); in ea_free()
129 size_t size) in ea_cond_memcpy_at_offset() argument
134 if (dst == NULL || src == NULL || size == 0 || offset + size > dstsize) in ea_cond_memcpy_at_offset()
494 size_t size; in ea_pack_object() local
659 size = sizeof (uint8_t); in ea_pack_object()
663 size = sizeof (uint16_t); in ea_pack_object()
678 size = sizeof (double); in ea_pack_object()
696 size = 0; in ea_pack_object()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfread.c41 sm_io_read(fp, timeout, buf, size)
45 size_t size; variable
47 register size_t resid = size;
88 return size - resid;
93 return size - resid;
99 return size;
/illumos-gate/usr/src/cmd/cdrw/
H A Dwrite_image.c44 off_t size; in write_image() local
86 ret = h->bstr_size(h, &size); in write_image()
96 if ((no_size == 0) && (size == 0)) { in write_image()
143 if (size > cap) { in write_image()
145 "than available space (%lld bytes).\n"), size, cap); in write_image()
154 size = cap - 1; in write_image()
161 (uint32_t)(size/2048)); in write_image()
163 if (!set_reservation(target->d_fd, size/2048)) { in write_image()
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dldump.c26 #define DumpMem(b,n,size,D) DumpBlock(b,(n)*(size),D) argument
29 static void DumpBlock(const void* b, size_t size, DumpState* D) in DumpBlock() argument
34 D->status=(*D->writer)(D->L,b,size,D->data); in DumpBlock()
55 static void DumpVector(const void* b, int n, size_t size, DumpState* D) in DumpVector() argument
58 DumpMem(b,n,size,D); in DumpVector()
65 size_t size=0; in DumpString() local
66 DumpVar(size,D); in DumpString()
70 size_t size=s->tsv.len+1; /* include trailing '\0' */ in DumpString() local
71 DumpVar(size,D); in DumpString()
72 DumpBlock(getstr(s),size*sizeof(char),D); in DumpString()

1...<<11121314151617181920>>...158