Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 3195) sorted by relevance

12345678910>>...128

/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/
H A D577xx_int_offsets.h68 #define XSTORM_SPQ_PAGE_BASE_SIZE (IRO[30].size)
71 #define XSTORM_SPQ_PROD_SIZE (IRO[31].size)
74 #define XSTORM_SPQ_DATA_SIZE (IRO[32].size)
76 #define XSTORM_HIGIG_HDR_LENGTH_SIZE (IRO[33].size)
79 #define XSTORM_VF_SPQ_PAGE_BASE_SIZE (IRO[34].size)
82 #define XSTORM_VF_SPQ_PROD_SIZE (IRO[35].size)
85 #define XSTORM_VF_SPQ_DATA_SIZE (IRO[36].size)
87 #define XSTORM_JUMBO_SUPPORT_SIZE (IRO[37].size)
89 #define XSTORM_COMMON_IP_ID_MASK_SIZE (IRO[38].size)
92 #define XSTORM_COMMON_RTC_PARAMS_SIZE (IRO[39].size)
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c52 size_t size; /* Space available for user */ member
60 size_t size; /* Total page size (incl. header) */ member
87 scribble(ulong_t *membgn, int pattern, size_t size) in scribble() argument
89 size_t memsize = size / sizeof (ulong_t); in scribble()
119 block->size += block2->size + HDR_BLOCK; in defrag()
135 split(struct block *block, size_t size) in split() argument
137 if (block->size > size + sizeof (struct block)) { in split()
141 ((char *)block + HDR_BLOCK + size); in split()
146 newblock->size = block->size - size - HDR_BLOCK; in split()
147 block->size = size; in split()
[all …]
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_iro.h41 #define YSTORM_FLOW_CONTROL_MODE_SIZE (IRO[0].size)
44 #define TSTORM_PORT_STAT_SIZE (IRO[1].size)
47 #define TSTORM_LL2_PORT_STAT_SIZE (IRO[2].size)
50 #define USTORM_VF_PF_CHANNEL_READY_SIZE (IRO[3].size)
53 #define USTORM_FLR_FINAL_ACK_SIZE (IRO[4].size)
56 #define USTORM_EQE_CONS_SIZE (IRO[5].size)
59 #define USTORM_ETH_QUEUE_ZONE_SIZE (IRO[6].size)
62 #define USTORM_COMMON_QUEUE_CONS_SIZE (IRO[7].size)
65 #define XSTORM_INTEG_TEST_DATA_SIZE (IRO[8].size)
68 #define YSTORM_INTEG_TEST_DATA_SIZE (IRO[9].size)
[all …]
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c61 size_t size; /* Space available for user */ member
69 size_t size; /* Total page size (incl. header) */ member
94 malloc(size_t size) in malloc() argument
98 retval = malloc_unlocked(size); in malloc()
105 malloc_unlocked(size_t size) in malloc_unlocked() argument
113 size = align(size, MINSZ); in malloc_unlocked()
120 if (block->status == FREE && block->size >= size) in malloc_unlocked()
130 size_t totsize = size + HDR_PAGE; in malloc_unlocked()
140 page->size = totpage; in malloc_unlocked()
144 block->size = totpage - HDR_PAGE; in malloc_unlocked()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_alloc.c53 size_t size; local
59 size = strlen(str) + 1;
60 if ((ret = __os_malloc(size, NULL, &p)) != 0)
63 memcpy(p, str, size);
76 __os_calloc(num, size, storep) in __os_calloc() argument
77 size_t num, size; in __os_calloc()
83 size *= num;
84 if ((ret = __os_malloc(size, NULL, &p)) != 0)
87 memset(p, 0, size);
100 __os_malloc(size, db_malloc, storep) in __os_malloc() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_alloc.c55 smb_mem_alloc(size_t size) in smb_mem_alloc() argument
57 return (smb_alloc(NULL, size, B_FALSE)); in smb_mem_alloc()
64 smb_mem_zalloc(size_t size) in smb_mem_zalloc() argument
66 return (smb_alloc(NULL, size, B_TRUE)); in smb_mem_zalloc()
75 smb_mem_realloc(void *ptr, size_t size) in smb_mem_realloc() argument
77 return (smb_realloc(NULL, ptr, size, B_FALSE)); in smb_mem_realloc()
88 smb_mem_rezalloc(void *ptr, size_t size) in smb_mem_rezalloc() argument
90 return (smb_realloc(NULL, ptr, size, B_TRUE)); in smb_mem_rezalloc()
121 size_t size; in smb_mem_strdup() local
123 size = strlen(ptr) + 1; in smb_mem_strdup()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Duni_common.c34 int size = 0; local
45 *(buf + size++) = (uchar_t)0xff;
46 *(buf + size++) = (uchar_t)0xfe;
53 *(buf + size++) = (uchar_t)(unichr & 0xff);
54 *(buf + size++) = (uchar_t)((unichr >> 8) & 0xff);
56 return size;
67 int size = 0; local
78 *(buf + size++) = (uchar_t)0xfe;
79 *(buf + size++) = (uchar_t)0xff;
86 *(buf + size++) = (uchar_t)((unichr >> 8) & 0xff);
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dalloc.c101 size_t size; in initial_allocation() local
123 size = (size_t)MINSIZE << bucketnum; in initial_allocation()
124 n = SUBCHUNKSIZE / size; in initial_allocation()
130 void *next = (void *)((caddr_t)ptr + size); in initial_allocation()
154 getbucketnum(size_t size) in getbucketnum() argument
158 if (size-- <= MINSIZE) in getbucketnum()
162 if (size & 0xffffffff00000000ul) in getbucketnum()
163 highbit += 32, size >>= 32; in getbucketnum()
165 if (size & 0xffff0000) in getbucketnum()
166 highbit += 16, size >>= 16; in getbucketnum()
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DResample.cc127 int size) in updateState() argument
130 Fir::updateState(in, size); in updateState()
131 else if (size >= num_state) in updateState()
132 memcpy(state, in + size - num_state, in updateState()
135 int old = num_state - size; in updateState()
136 BCOPY((char *)(state + size), (char *)state, in updateState()
138 memcpy(state + old, in, size * sizeof (double)); in updateState()
175 int size, in decimate_noadjust() argument
180 if (size <= 0) in decimate_noadjust()
183 return (Fir::filter_noadjust(in, size, out)); in decimate_noadjust()
[all …]
H A DFir.cc69 int size) in short2double() argument
71 while (size-- > 0) in short2double()
89 int size) in updateState() argument
91 if (size >= order) in updateState()
92 memcpy(state, data + size - order, order * sizeof (double)); in updateState()
94 int old = order - size; in updateState()
95 BCOPY((char *)(state + size), (char *)state, in updateState()
97 memcpy(state + order - size, data, size * sizeof (double)); in updateState()
104 int size) in update_short() argument
106 double *in_buf = new double[size]; in update_short()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A D_putmessage.c50 int size = 0; local
63 size = MESG_LEN;
73 (void) htos(buf + size, t_short);
75 size += 4;
81 (void) ltos(buf + size, t_long);
83 size += 8;
91 (void) htos(buf + size, t_short);
93 size += 4;
97 (void) memcpy(buf + size, t_string, t_short);
99 (buf + size)[0] = 0;
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_alloc.c33 topo_alloc(size_t size, int flags) in topo_alloc() argument
35 return (umem_alloc(size, flags)); in topo_alloc()
40 topo_zalloc(size_t size, int flags) in topo_zalloc() argument
42 void *data = topo_alloc(size, flags); in topo_zalloc()
44 bzero(data, size); in topo_zalloc()
50 topo_free(void *data, size_t size) in topo_free() argument
52 umem_free(data, size); in topo_free()
56 topo_hdl_alloc(topo_hdl_t *thp, size_t size) in topo_hdl_alloc() argument
60 return (ap->ta_alloc(size, ap->ta_flags)); in topo_hdl_alloc()
64 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) in topo_hdl_zalloc() argument
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dbits.h13 static inline unsigned long long sign_bit(unsigned size) in sign_bit() argument
15 return 1ULL << (size - 1); in sign_bit()
18 static inline unsigned long long sign_mask(unsigned size) in sign_mask() argument
20 unsigned long long sbit = sign_bit(size); in sign_mask()
24 static inline unsigned long long bits_mask(unsigned size) in bits_mask() argument
26 unsigned long long sbit = sign_bit(size); in bits_mask()
31 static inline long long zero_extend(long long val, unsigned size) in zero_extend() argument
33 return val & bits_mask(size); in zero_extend()
36 static inline long long sign_extend(long long val, unsigned size) in sign_extend() argument
38 if (val & sign_bit(size)) in sign_extend()
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c66 size_t size; in umem_malloc() local
69 size = size_arg + sizeof (malloc_data_t); in umem_malloc()
72 if (size > UMEM_SECOND_ALIGN) { in umem_malloc()
73 size += sizeof (malloc_data_t); in umem_malloc()
74 high_size = (size >> 32); in umem_malloc()
77 if (size < size_arg) { in umem_malloc()
81 ret = (malloc_data_t *)_umem_alloc(size, UMEM_DEFAULT); in umem_malloc()
83 if (size <= UMEM_MAXBUF) in umem_malloc()
90 uint32_t low_size = (uint32_t)size; in umem_malloc()
104 } else if (size > UMEM_SECOND_ALIGN) { in umem_malloc()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/qsort/
H A Dmerge.c91 mergesort(void *base, size_t nmemb, size_t size, in mergesort() argument
99 if (size < PSIZE / 2) { /* Pointers must fit into 2 * size. */ in mergesort()
112 if (!(size % ISIZE) && !(((char *)base - (char *)0) % ISIZE)) in mergesort()
115 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL) in mergesort()
119 setup(list1, list2, nmemb, size, cmp); in mergesort()
120 last = list2 + nmemb * size; in mergesort()
143 while ((b += size) < t && cmp(q, b) >sense) in mergesort()
149 EXPONENTIAL: for (i = size; ; i <<= 1) in mergesort()
151 if ((p = t - size) > b && in mergesort()
159 if (i == size) in mergesort()
[all …]
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drsrc_info.c133 size_t size = 0; in ri_pack() local
159 if (ap_list_pack(hdl->aps, &buf, &size, encoding) != 0 || in ri_pack()
160 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) { in ri_pack()
165 if (client_list_pack(hdl->cpu_cap_clients, &buf, &size, in ri_pack()
168 size) != 0) { in ri_pack()
173 if (client_list_pack(hdl->mem_cap_clients, &buf, &size, in ri_pack()
176 size) != 0) { in ri_pack()
181 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) { in ri_pack()
188 *sizep = size; in ri_pack()
207 size_t size; in ap_list_pack() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dvmalloc.c42 vp->size = sizeof(vp->current->data); in _vm_open()
66 _vm_resize(register Vmalloc_t* vp, void* o, unsigned long size) in _vm_resize() argument
73 vp->last = size; in _vm_resize()
74 if (o && size < z) in _vm_resize()
76 if ((o ? (size - z) : size) > vp->size) in _vm_resize()
78 n = (size > sizeof(vp->current->data)) ? (size - sizeof(vp->current->data)) : 0; in _vm_resize()
83 vp->size = n ? 0 : sizeof(vp->current->data); in _vm_resize()
91 size -= z; in _vm_resize()
93 size = roundof(size, VM_ALIGN); in _vm_resize()
94 if (size >= vp->size) in _vm_resize()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Drpool.c60 sm_rpool_allocblock_x(rpool, size) in sm_rpool_allocblock_x() argument
62 size_t size;
66 p = sm_malloc_x(sizeof(SM_POOLHDR_T) + size);
84 sm_rpool_allocblock(rpool, size) in sm_rpool_allocblock() argument
86 size_t size;
90 p = sm_malloc(sizeof(SM_POOLHDR_T) + size);
126 sm_rpool_malloc_tagged_x(rpool, size, file, line, group) in sm_rpool_malloc_tagged_x() argument
128 size_t size;
133 sm_rpool_malloc_x(rpool, size)
135 size_t size;
[all …]
H A Dheap.c73 #define MALLOC_SIZE(size) ((size) == 0 ? 1 : (size)) argument
94 sm_malloc_x(size) in sm_malloc_x() argument
95 size_t size; in sm_malloc_x()
100 ptr = malloc(MALLOC_SIZE(size));
120 sm_malloc(size) in sm_malloc() argument
121 size_t size; in sm_malloc()
126 ptr = malloc(MALLOC_SIZE(size));
143 sm_realloc(ptr, size) in sm_realloc() argument
145 size_t size;
150 newptr = realloc(ptr, MALLOC_SIZE(size));
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_event.c200 if (entry->bp && entry->size) { in emlxs_event_destroy()
201 kmem_free(entry->bp, entry->size); in emlxs_event_destroy()
213 emlxs_event(emlxs_port_t *port, emlxs_event_t *evt, void *bp, uint32_t size) in emlxs_event() argument
240 entry->size = size; in emlxs_event()
287 entry->id, bp, size, eventq->count); in emlxs_event()
298 if (bp && size) { in emlxs_event()
299 kmem_free(bp, size); in emlxs_event()
352 emlxs_log_rscn_event(emlxs_port_t *port, uint8_t *payload, uint32_t size) in emlxs_log_rscn_event() argument
362 if (size > MAX_RSCN_PAYLOAD) { in emlxs_log_rscn_event()
363 size = MAX_RSCN_PAYLOAD; in emlxs_log_rscn_event()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmemcluster.c65 size_t size; member
175 __memget(size_t size) { in __memget() argument
176 return (__memget_record(size, NULL, 0)); in __memget()
180 __memget_record(size_t size, const char *file, int line) { in __memget_record() argument
181 size_t new_size = quantize(size); in __memget_record()
201 if (size == 0U) { in __memget_record()
206 if (size >= max_size || new_size >= max_size) { in __memget_record()
218 e->size = size; in __memget_record()
227 p = (char *)e + sizeof *e + size; in __memget_record()
232 return (malloc(size)); in __memget_record()
[all …]
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditm_util.c90 if ((sizeof (itm_place_t)) < itm_hdr->interpreter.size) { in itm_def_process()
93 itm_hdr->interpreter.size, in itm_def_process()
99 if ((sizeof (itm_place_t)) < itm_hdr->type_id.size) { in itm_def_process()
102 itm_hdr->type_id.size, in itm_def_process()
149 act->tbl_hdr, act->tbl_hdr->size, in direction_unit()
186 tbl->size = (sizeof (itm_tbl_hdr_t)) + (obj_array.num *obj_size); in obj_table()
200 itm_size_t size) in obj_list_to_array() argument
211 obj_array.obj = malloc_vital(hdr_size + (size * obj_array.num)); in obj_list_to_array()
217 ol; offset += size, ol = ol->next) { in obj_list_to_array()
218 (void) memcpy((char *)(obj_array.obj) + offset, ol->obj, size); in obj_list_to_array()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_subr.c33 ctf_data_alloc(size_t size) in ctf_data_alloc() argument
35 return (mmap(NULL, size, PROT_READ | PROT_WRITE, in ctf_data_alloc()
40 ctf_data_free(void *buf, size_t size) in ctf_data_free() argument
42 (void) munmap(buf, size); in ctf_data_free()
46 ctf_data_protect(void *buf, size_t size) in ctf_data_protect() argument
48 (void) mprotect(buf, size, PROT_READ); in ctf_data_protect()
52 ctf_alloc(size_t size) in ctf_alloc() argument
54 return (malloc(size)); in ctf_alloc()
58 mergeq_alloc(size_t size) in mergeq_alloc() argument
60 return (malloc(size)); in mergeq_alloc()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_kmem.c205 hat_memload_alloc(vmem_t *vmp, size_t size, int flags) in hat_memload_alloc() argument
208 return (segkmem_alloc(vmp, size, flags)); in hat_memload_alloc()
218 segkmem_alloc_permanent(vmem_t *vmp, size_t size, int flags) in segkmem_alloc_permanent() argument
220 return (segkmem_alloc(vmp, size, flags | VM_NORELOC)); in segkmem_alloc_permanent()
367 boot_mapin(caddr_t addr, size_t size) in boot_mapin() argument
373 if (page_resv(btop(size), KM_NOSLEEP) == 0) in boot_mapin()
376 for (eaddr = addr + size; addr < eaddr; addr += PAGESIZE) { in boot_mapin()
420 boot_alloc(void *inaddr, size_t size, uint_t align) in boot_alloc() argument
428 size = ptob(btopr(size)); in boot_alloc()
430 if (bop_alloc_chunk(addr, size, align) != (caddr_t)addr) in boot_alloc()
[all …]
/illumos-gate/usr/src/uts/sun4u/lw8/io/
H A Dsgfru.c379 size_t ssize, size; in sgfru_getchildlist() local
397 size = (size_t)(FRU_INFO_SIZE + (max_cnt * NODE_SIZE)); in sgfru_getchildlist()
398 datap = kmem_zalloc(size, KM_SLEEP); in sgfru_getchildlist()
400 f, FRU_INFO_SIZE, NODE_SIZE, size); in sgfru_getchildlist()
405 if ((ret = sgfru_mbox(iargp->cmd, datap, size, &clist.fru_info)) in sgfru_getchildlist()
407 kmem_free(datap, size); in sgfru_getchildlist()
418 kmem_free(datap, size); in sgfru_getchildlist()
423 kmem_free(datap, size); in sgfru_getchildlist()
448 size_t size; in sgfru_getchildhandles() local
468 size = (size_t)(FRU_INFO_SIZE + (max_cnt * FRU_HDL_SIZE)); in sgfru_getchildhandles()
[all …]

12345678910>>...128