Home
last modified time | relevance | path

Searched refs:size (Results 26 – 50 of 3427) sorted by relevance

12345678910>>...138

/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfresize.c29 int sfresize(Sfio_t* f, Sfoff_t size) in sfresize() argument
31 int sfresize(f, size) in sfresize()
33 Sfoff_t size;
40 if(size < 0 || f->extent < 0 ||
49 if(f->extent >= size)
53 if(s < f->size && (d = realloc(f->data, s)) )
55 f->size = s;
59 memclear((char*)(f->data+size), (int)(f->extent-size));
62 { if(SFSK(f, size, SEEK_SET, f->disc) != size)
71 if(ftruncate(f->file, (sfoff_t)size) < 0)
[all …]
H A Dsfsetbuf.c136 size = 0;
174 osize = f->size;
200 f->size = 0;
203 osize = f->size;
211 size = 0;
347 size = osize;
349 size = 0;
351 size = SF_GRAIN;
356 size = bufsize;
376 if(size > 0)
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dabd.c295 kmem_free(abd, size); in abd_free_struct()
319 abd->abd_size = size; in abd_alloc()
373 abd->abd_size = size; in abd_alloc_linear()
516 VERIFY3U(size, >, 0); in abd_get_offset()
547 abd->abd_size = size; in abd_get_from_buf()
809 while (size > 0) { in abd_iterate_func()
822 size -= len; in abd_iterate_func()
906 (void) memset(buf, 0, size); in abd_zero_off_cb()
942 while (size > 0) { in abd_iterate_func2()
960 size -= len; in abd_iterate_func2()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmlast.c40 size_t size;
52 size = size < ALIGN ? ALIGN : ROUND(size,ALIGN);
140 size_t size;
160 if(size <= 0)
198 size = size < ALIGN ? ALIGN : ROUND(size,ALIGN);
225 { ds = oldsize < size ? oldsize : size;
302 long size; local
308 size = -1L;
315 return size;
360 size_t size;
[all …]
H A Dvmpool.c46 reg size_t size;
55 if(size <= 0)
71 size = ROUND(size,ALIGN);
89 if((s -= size) <= (size + sizeof(Head_t)) )
90 { for(; s >= size; s -= size)
124 size_t size; local
140 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
197 size_t size;
212 if(size == 0)
286 size_t size;
[all …]
H A Dvmprivate.c108 SIZE(bp) += size;
115 SIZE(bp) += size;
123 seg->size += size;
124 seg->extent += size;
125 seg->baddr += size;
137 seg->extent = size;
202 if(size < seg->size)
206 less = size;
212 if(less > 0 && (ssize_t)size > less && (size-less) < sizeof(Block_t) )
221 seg->size -= less;
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_utils.c88 &key->size, &rkey->data, &rkey->size))
101 key->size = bl->ksize;
104 key->size = bl->ksize;
114 &data->size, &rdata->data, &rdata->size))
182 k2.size = bl->ksize;
190 k2.size = bi->ksize;
196 &k2.size, &t->bt_rdata.data, &t->bt_rdata.size))
228 len = MIN(a->size, b->size);
232 return ((int)a->size - (int)b->size);
253 len = MIN(a->size, b->size);
[all …]
/illumos-gate/usr/src/common/ucode/
H A Ducode_utils_amd.c48 if (ucodep == NULL || size <= 0) in ucode_validate_amd()
52 size -= 4; in ucode_validate_amd()
65 size -= 4; in ucode_validate_amd()
69 size -= 4; in ucode_validate_amd()
76 size -= count; in ucode_validate_amd()
85 while (size > 8) { in ucode_validate_amd()
87 size -= 4; in ucode_validate_amd()
91 size -= 4; in ucode_validate_amd()
92 if (((count = *ptr++) > size)) in ucode_validate_amd()
96 size -= count; in ucode_validate_amd()
[all …]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_fletcher.c484 if (size > 0) { in fletcher_4_native()
486 buf, size); in fletcher_4_native()
491 if (p2size < size) { in fletcher_4_native()
532 if (size > 0) { in fletcher_4_byteswap()
534 buf, size); in fletcher_4_byteswap()
539 if (p2size < size) { in fletcher_4_byteswap()
577 while (size > 0) { in fletcher_4_incremental_impl()
588 size -= len; in fletcher_4_incremental_impl()
599 if (size < SPA_MINBLOCKSIZE) in fletcher_4_incremental_native()
856 size -= asize; in abd_fletcher_4_iter()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dcudbg_common.c51 get_scratch_buff(struct cudbg_buffer *pdbg_buff, u32 size, in get_scratch_buff() argument
57 scratch_offset = pdbg_buff->size - size; in get_scratch_buff()
59 if (pdbg_buff->offset > (int)scratch_offset || pdbg_buff->size < size) { in get_scratch_buff()
65 pscratch_buff->size = size; in get_scratch_buff()
66 pdbg_buff->size -= size; in get_scratch_buff()
77 pdbg_buff->size += pscratch_buff->size; in release_scratch_buff()
81 memset(pscratch_buff->data, 0, pscratch_buff->size); in release_scratch_buff()
84 pscratch_buff->size = 0; in release_scratch_buff()
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootops.c232 size = roundup(size, MAX(align, 8)); in bop_temp_alloc()
233 if (size <= left) { in bop_temp_alloc()
235 littlehand += size; in bop_temp_alloc()
240 size = roundup(size, PAGESIZE); in bop_temp_alloc()
244 bighand += size; in bop_temp_alloc()
333 while (size) { in bop_alloc_chunk()
352 size -= chunksz; in bop_alloc_chunk()
353 if (size < chunksz) in bop_alloc_chunk()
354 chunksz = size; in bop_alloc_chunk()
575 if (size < pgsz) in cobp_free_mem()
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_vpd.c41 size_t size; in sfxge_vpd_get_keyword() local
45 if ((rc = efx_vpd_size(enp, &size)) != 0) in sfxge_vpd_get_keyword()
48 buf = kmem_zalloc(size, KM_NOSLEEP); in sfxge_vpd_get_keyword()
54 if ((rc = efx_vpd_read(enp, buf, size)) != 0) in sfxge_vpd_get_keyword()
70 kmem_free(buf, size); in sfxge_vpd_get_keyword()
80 kmem_free(buf, size); in sfxge_vpd_get_keyword()
93 size_t size; in sfxge_vpd_set_keyword() local
99 if ((rc = efx_vpd_size(enp, &size)) != 0) in sfxge_vpd_set_keyword()
102 buf = kmem_zalloc(size, KM_NOSLEEP); in sfxge_vpd_set_keyword()
135 kmem_free(buf, size); in sfxge_vpd_set_keyword()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-fcntl.c39 size_t size;
49 size_t size;
63 lock.l_start = apl->size;
67 if (lseek(apl->fd, apl->size, SEEK_SET) != apl->size)
74 if (lseek(apl->fd, apl->size, SEEK_SET) != apl->size)
122 if (lseek(fd, size, SEEK_SET) != size)
132 size -= sizeof(references);
139 if (lseek(fd, size, SEEK_SET) != size)
144 if (lseek(fd, size, SEEK_SET) != size)
152 apl->size = size;
[all …]
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Dassemble.c64 data.size, data.size, data.place.itm_64d, \
328 info_header->str_sec.size; in relocation_I()
517 n_plc += name->name.size; in relocation_II()
536 n_plc += name->name.size; in relocation_II()
1016 sec_size += ref->size; in output()
1020 sec_size += ref->size; in output()
1085 data.size = ref->size; in output()
1131 data.size = name->name.size; in output()
1161 data.size = name->name.size; in output()
1184 name->name.size, fp); in output()
[all …]
/illumos-gate/usr/src/lib/krb5/dyn/
H A Ddyn_realloc.c25 int cnt, size; local
27 if (obj->size > req)
32 if (obj->size == 0)
33 size = -obj->inc;
35 size = obj->size;
37 while (size <= req)
38 size <<= 1;
40 return _DynRealloc(obj, size);
67 new_size_in_bytes - obj->el_size*obj->size,
79 obj->size += obj->inc*num_incs;
[all …]
/illumos-gate/usr/src/uts/common/io/qede/579xx/hsi/mcp/
H A Dnvm_meta.txt116 …e "pcie" 13,entity_name "glob" 13,struct_name "nvm_cfg1" 13,offset 128 13,size 32 13,elementSize 0…
117 …e "pcie" 14,entity_name "glob" 14,struct_name "nvm_cfg1" 14,offset 160 14,size 128 14,elementSize …
121 …features" 20,entity_name "port" 20,struct_name "nvm_cfg1" 20,offset 72 20,size 8 20,elementSize 0 …
165 …ame "VF" 74,entity_name "func" 74,struct_name "nvm_cfg1" 74,offset 192 74,size 7 74,elementSize 0 …
166 75,name "VF PCI BAR2 size" 75,group_name "VF" 75,entity_name "func" 75,struct_name "nvm_cfg1" 75,of…
170 80,name "Expansion ROM size" 80,group_name "pre-boot" 80,entity_name "glob" 80,struct_name "nvm_cfg…
171 81,name "VF PCI BAR2 size" 81,group_name "VF" 81,entity_name "glob" 81,struct_name "nvm_cfg1" 81,of…
172 82,name "Bar1 size" 82,group_name "pcie" 82,entity_name "func" 82,struct_name "nvm_cfg1" 82,offset …
173 83,name "Bar2 size" 83,group_name "pcie" 83,entity_name "glob" 83,struct_name "nvm_cfg1" 83,offset …
185 …eatures" 96,entity_name "func" 96,struct_name "nvm_cfg1" 96,offset 210 96,size 8 96,elementSize 0 …
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_constraints_required.c105 if (size->type != EXPR_BINOP || size->op != '+') in handle_zero_size_arrays()
141 size = mult_right; in handle_zero_size_arrays()
144 size = mult_left; in handle_zero_size_arrays()
170 size = strip_expr(size); in match_alloc_helper()
174 size_orig = size; in match_alloc_helper()
183 size = size_orig; in match_alloc_helper()
190 if (size->type == EXPR_BINOP && size->op == '*') { in match_alloc_helper()
198 size = mult_right; in match_alloc_helper()
201 size = mult_left; in match_alloc_helper()
206 if (size->type == EXPR_BINOP && size->op == '+' && in match_alloc_helper()
[all …]
H A Dsmatch_buf_comparison.c162 size = strip_expr(size); in match_alloc_helper()
172 if (size->type == EXPR_BINOP && size->op == '*') { in match_alloc_helper()
192 if (size->type == EXPR_BINOP && size->op == '+' && in match_alloc_helper()
194 size = size->left; in match_alloc_helper()
279 if (!size) in array_check()
377 if (!size) in buf_comparison_index_ok()
401 int size; in known_access_ok_numbers() local
539 if (!size) in buf_size_param_comparison()
737 size = right; in match_assign_size()
739 size = size->left; in match_assign_size()
[all …]
/illumos-gate/usr/src/uts/sun4v/os/
H A Dintrq.c66 size_t size; in cpu_intrq_setup() local
95 if (size < INTR_REPORT_SIZE) in cpu_intrq_setup()
96 size = INTR_REPORT_SIZE; in cpu_intrq_setup()
102 if (!ISP2(size)) { in cpu_intrq_setup()
103 size = 1 << highbit(size); in cpu_intrq_setup()
128 mcpup->cpu_q_size = size; in cpu_intrq_setup()
143 mcpup->dev_q_size = size; in cpu_intrq_setup()
158 mcpup->cpu_rq_size = size; in cpu_intrq_setup()
160 bzero(mcpup->cpu_rq_va, 2 * size); in cpu_intrq_setup()
175 mcpup->cpu_nrq_size = size; in cpu_intrq_setup()
[all …]
/illumos-gate/usr/src/lib/libdtrace/i386/
H A Ddt_isadep.c84 int size; in dt_pid_has_jump_table() local
100 if (size <= 0) { in dt_pid_has_jump_table()
129 int size; in dt_pid_create_return_probe() local
172 if (size <= 0) in dt_pid_create_return_probe()
178 size = 2; in dt_pid_create_return_probe()
183 size = 3; in dt_pid_create_return_probe()
189 size = 4; in dt_pid_create_return_probe()
196 size = 5; in dt_pid_create_return_probe()
205 if (size <= 0) in dt_pid_create_return_probe()
281 int size; in dt_pid_create_offset_probe() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_compare.c103 pg_dbt.size = bk->len;
122 pg_dbt.size = bi->len;
164 len = a->size > b->size ? b->size : a->size;
168 return ((long)a->size - (long)b->size);
185 len = a->size > b->size ? b->size : a->size;
194 return (a->size < b->size ? a->size + 1 : a->size);
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c334 size_t size; in calloc() local
337 size = 0; in calloc()
736 if (size == 0) in valloc()
1214 size = ALIGN(size, MTMALLOC_MIN_ALIGN); in oversize()
1256 sp != &oversize_list && (op->size > sp->size); in insert_oversize()
1294 if (op->size > op->next_bysize->size || in position_oversize_by_size()
1295 op->size < op->prev_bysize->size) { in position_oversize_by_size()
1303 sp != &oversize_list && (op->size > sp->size); in position_oversize_by_size()
1343 if (pv->size) { in add_oversize()
1414 while (wp != &oversize_list && size > wp->size) in find_oversize()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftASN1.c1041 tmplen = size + 1;
1064 tmplen = size + 1;
1087 tmplen = size + 1;
1110 tmplen = size + 1;
1133 tmplen = size + 1;
1156 tmplen = size + 1;
1179 tmplen = size + 1;
1202 tmplen = size + 1;
1321 tmplen = size + 1;
1344 tmplen = size + 1;
[all …]
/illumos-gate/usr/src/lib/libzfsbootenv/common/
H A Dlzbe_pair.c184 size_t size) in lzbe_add_pair() argument
201 if (size != sizeof (uint8_t)) { in lzbe_add_pair()
209 if (size != sizeof (int16_t)) { in lzbe_add_pair()
217 if (size != sizeof (uint16_t)) { in lzbe_add_pair()
225 if (size != sizeof (int32_t)) { in lzbe_add_pair()
233 if (size != sizeof (uint32_t)) { in lzbe_add_pair()
241 if (size != sizeof (int64_t)) { in lzbe_add_pair()
249 if (size != sizeof (uint64_t)) { in lzbe_add_pair()
301 if (size != sizeof (boolean_t)) { in lzbe_add_pair()
309 if (size != sizeof (int8_t)) { in lzbe_add_pair()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dbp_map.c41 #define BP_FLUSH(addr, size) flush_instr_mem((void *)addr, size); argument
43 #define BP_FLUSH(addr, size) argument
52 offset_t offset, size_t size);
91 size_t size; in bp_mapin_common() local
108 npages = btop(size); in bp_mapin_common()
206 size_t size; in bp_mapout() local
216 npages = btop(size); in bp_mapout()
233 BP_FLUSH(base, size); in bp_mapout()
336 while (size > 0) { in bp_copy_common()
402 size -= psize; in bp_copy_common()
[all …]

12345678910>>...138