/titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/ |
H A D | 577xx_int_offsets.h | 68 #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 …]
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | malloc.c | 52 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 …]
|
/titanic_41/usr/src/lib/libmapmalloc/common/ |
H A D | textmem.c | 63 size_t size; /* Space available for user */ member 71 size_t size; /* Total page size (incl. header) */ member 96 malloc(size_t size) in malloc() argument 100 retval = malloc_unlocked(size); in malloc() 107 malloc_unlocked(size_t size) in malloc_unlocked() argument 115 size = align(size, MINSZ); in malloc_unlocked() 122 if (block->status == FREE && block->size >= size) in malloc_unlocked() 132 size_t totsize = size + HDR_PAGE; in malloc_unlocked() 142 page->size = totpage; in malloc_unlocked() 146 block->size = totpage - HDR_PAGE; in malloc_unlocked() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/os/ |
H A D | os_alloc.c | 53 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 …]
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_alloc.c | 51 smb_mem_alloc(size_t size) in smb_mem_alloc() argument 53 return (smb_alloc(NULL, size, B_FALSE)); in smb_mem_alloc() 60 smb_mem_zalloc(size_t size) in smb_mem_zalloc() argument 62 return (smb_alloc(NULL, size, B_TRUE)); in smb_mem_zalloc() 71 smb_mem_realloc(void *ptr, size_t size) in smb_mem_realloc() argument 73 return (smb_realloc(NULL, ptr, size, B_FALSE)); in smb_mem_realloc() 84 smb_mem_rezalloc(void *ptr, size_t size) in smb_mem_rezalloc() argument 86 return (smb_realloc(NULL, ptr, size, B_TRUE)); in smb_mem_rezalloc() 117 size_t size; in smb_mem_strdup() local 119 size = strlen(ptr) + 1; in smb_mem_strdup() [all …]
|
/titanic_41/usr/src/lib/libc/port/threads/ |
H A D | alloc.c | 100 size_t size; in initial_allocation() local 122 size = (size_t)MINSIZE << bucketnum; in initial_allocation() 123 n = SUBCHUNKSIZE / size; in initial_allocation() 129 void *next = (void *)((caddr_t)ptr + size); in initial_allocation() 153 getbucketnum(size_t size) in getbucketnum() argument 157 if (size-- <= MINSIZE) in getbucketnum() 161 if (size & 0xffffffff00000000ul) in getbucketnum() 162 highbit += 32, size >>= 32; in getbucketnum() 164 if (size & 0xffff0000) in getbucketnum() 165 highbit += 16, size >>= 16; in getbucketnum() [all …]
|
/titanic_41/usr/src/cmd/audio/utilities/ |
H A D | Resample.cc | 129 int size) in updateState() argument 132 Fir::updateState(in, size); in updateState() 133 else if (size >= num_state) in updateState() 134 memcpy(state, in + size - num_state, in updateState() 137 int old = num_state - size; in updateState() 138 BCOPY((char *)(state + size), (char *)state, in updateState() 140 memcpy(state + old, in, size * sizeof (double)); in updateState() 177 int size, in decimate_noadjust() argument 182 if (size <= 0) in decimate_noadjust() 185 return (Fir::filter_noadjust(in, size, out)); in decimate_noadjust() [all …]
|
H A D | Fir.cc | 71 int size) in short2double() argument 73 while (size-- > 0) in short2double() 91 int size) in updateState() argument 93 if (size >= order) in updateState() 94 memcpy(state, data + size - order, order * sizeof (double)); in updateState() 96 int old = order - size; in updateState() 97 BCOPY((char *)(state + size), (char *)state, in updateState() 99 memcpy(state + order - size, data, size * sizeof (double)); in updateState() 106 int size) in update_short() argument 108 double *in_buf = new double[size]; in update_short() [all …]
|
/titanic_41/usr/src/cmd/lp/lib/msgs/ |
H A D | _putmessage.c | 50 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 …]
|
/titanic_41/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_mem.c | 217 ((char *)_nsc_rmhdr_ptr + _nsc_rmhdr_ptr->size); in _nsc_check_mapinuse() 345 size_t size; in _nsc_global_setup() local 353 size = sizeof (nsc_rmhdr_t) + in _nsc_global_setup() 356 size = (size + _NSC_GLALIGN) & ~_NSC_GLALIGN; in _nsc_global_setup() 357 bzero(_nsc_rm_base, size); in _nsc_global_setup() 361 hdr->size = size; in _nsc_global_setup() 374 size, nsc_cm_errhdlr) < 0) in _nsc_global_setup() 397 _nsc_rm_size - hdr->size, hdr->size)) { in _nsc_global_setup() 405 (void) nsc_kmem_alloc(hdr->size, 0, _nsc_rmhdr_mem); in _nsc_global_setup() 425 int size = sizeof (nsc_rmhdr_t) + in _nsc_need_global_mem() local [all …]
|
/titanic_41/usr/src/uts/common/io/drm/ |
H A D | drm_mm.c | 64 return (entry->size); in drm_mm_tail_space() 68 drm_mm_remove_space_from_tail(struct drm_mm *mm, unsigned long size) in drm_mm_remove_space_from_tail() argument 78 if (entry->size <= size) in drm_mm_remove_space_from_tail() 81 entry->size -= size; in drm_mm_remove_space_from_tail() 89 unsigned long size) in drm_mm_create_tail_node() argument 99 child->size = size; in drm_mm_create_tail_node() 111 drm_mm_add_space_to_tail(struct drm_mm *mm, unsigned long size) in drm_mm_add_space_to_tail() argument 120 entry->start + entry->size, size)); in drm_mm_add_space_to_tail() 122 entry->size += size; in drm_mm_add_space_to_tail() 128 unsigned long size) in drm_mm_split_at_start() argument [all …]
|
/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_alloc.c | 35 topo_alloc(size_t size, int flags) in topo_alloc() argument 37 return (umem_alloc(size, flags)); in topo_alloc() 42 topo_zalloc(size_t size, int flags) in topo_zalloc() argument 44 void *data = topo_alloc(size, flags); in topo_zalloc() 46 bzero(data, size); in topo_zalloc() 52 topo_free(void *data, size_t size) in topo_free() argument 54 umem_free(data, size); in topo_free() 58 topo_hdl_alloc(topo_hdl_t *thp, size_t size) in topo_hdl_alloc() argument 62 return (ap->ta_alloc(size, ap->ta_flags)); in topo_hdl_alloc() 66 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) in topo_hdl_zalloc() argument [all …]
|
/titanic_41/usr/src/lib/libumem/common/ |
H A D | malloc.c | 66 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 …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | strftime.c | 66 int size; local 75 size = 0; 81 if (++size >= maxsize) 89 if (++size >= maxsize) 98 if (++size >= maxsize) 108 if (++size >= maxsize) 117 if (++size >= maxsize) 124 i = strftime(cp, maxsize - size, "%x %X", tm); 128 size += i; 132 i = strftime(cp, maxsize - size, [all …]
|
/titanic_41/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rsrc_info.c | 138 size_t size = 0; in ri_pack() local 164 if (ap_list_pack(hdl->aps, &buf, &size, encoding) != 0 || in ri_pack() 165 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) { in ri_pack() 170 if (client_list_pack(hdl->cpu_cap_clients, &buf, &size, in ri_pack() 173 size) != 0) { in ri_pack() 178 if (client_list_pack(hdl->mem_cap_clients, &buf, &size, in ri_pack() 181 size) != 0) { in ri_pack() 186 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) { in ri_pack() 193 *sizep = size; in ri_pack() 213 size_t size; in ap_list_pack() local [all …]
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_event.c | 199 if (entry->bp && entry->size) { in emlxs_event_destroy() 200 kmem_free(entry->bp, entry->size); in emlxs_event_destroy() 212 emlxs_event(emlxs_port_t *port, emlxs_event_t *evt, void *bp, uint32_t size) in emlxs_event() argument 239 entry->size = size; in emlxs_event() 286 entry->id, bp, size, eventq->count); in emlxs_event() 297 if (bp && size) { in emlxs_event() 298 kmem_free(bp, size); in emlxs_event() 351 emlxs_log_rscn_event(emlxs_port_t *port, uint8_t *payload, uint32_t size) in emlxs_log_rscn_event() argument 361 if (size > MAX_RSCN_PAYLOAD) { in emlxs_log_rscn_event() 362 size = MAX_RSCN_PAYLOAD; in emlxs_log_rscn_event() [all …]
|
/titanic_41/usr/src/cmd/sendmail/libsm/ |
H A D | rpool.c | 62 sm_rpool_allocblock_x(rpool, size) in sm_rpool_allocblock_x() argument 64 size_t size; 68 p = sm_malloc_x(sizeof(SM_POOLHDR_T) + size); 86 sm_rpool_allocblock(rpool, size) in sm_rpool_allocblock() argument 88 size_t size; 92 p = sm_malloc(sizeof(SM_POOLHDR_T) + size); 128 sm_rpool_malloc_tagged_x(rpool, size, file, line, group) in sm_rpool_malloc_tagged_x() argument 130 size_t size; 135 sm_rpool_malloc_x(rpool, size) 137 size_t size; [all …]
|
H A D | heap.c | 75 #define MALLOC_SIZE(size) ((size) == 0 ? 1 : (size)) argument 96 sm_malloc_x(size) in sm_malloc_x() argument 97 size_t size; in sm_malloc_x() 102 ptr = malloc(MALLOC_SIZE(size)); 122 sm_malloc(size) in sm_malloc() argument 123 size_t size; in sm_malloc() 128 ptr = malloc(MALLOC_SIZE(size)); 145 sm_realloc(ptr, size) in sm_realloc() argument 147 size_t size; 152 newptr = realloc(ptr, MALLOC_SIZE(size)); [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 70 size_t size; member 180 __memget(size_t size) { in __memget() argument 181 return (__memget_record(size, NULL, 0)); in __memget() 185 __memget_record(size_t size, const char *file, int line) { in __memget_record() argument 186 size_t new_size = quantize(size); in __memget_record() 206 if (size == 0U) { in __memget_record() 211 if (size >= max_size || new_size >= max_size) { in __memget_record() 223 e->size = size; in __memget_record() 232 p = (char *)e + sizeof *e + size; in __memget_record() 237 return (malloc(size)); in __memget_record() [all …]
|
/titanic_41/usr/src/lib/libast/common/sfio/ |
H A D | sfresize.c | 29 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) 50 { if((f->flags&SF_MALLOC) && (f->next - f->data) <= size) 51 { size_t s = (((size_t)size + 1023)/1024)*1024; 53 if(s < f->size && (d = realloc(f->data, s)) ) 55 f->size = s; 59 memclear((char*)(f->data+size), (int)(f->extent-size)); [all …]
|
/titanic_41/usr/src/cmd/geniconvtbl/ |
H A D | itm_util.c | 90 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 …]
|
/titanic_41/usr/src/lib/libast/common/vmalloc/ |
H A D | vmprivate.c | 39 static Block_t* vmextend(reg Vmalloc_t* vm, size_t size, Vmsearch_f searchf ) in vmextend() argument 41 static Block_t* vmextend(vm, size, searchf ) in vmextend() 43 size_t size; /* desired amount of space */ 66 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN; 67 if(s <= size) /* size was too large and we have wrapped around */ 69 if((size = ROUND(s,vd->incr)) < s) 73 if(size > 2*vd->incr && vm->disc->round < vd->incr) 84 if((s = (s/vd->incr)*vd->incr) == size) 85 size += vd->incr; 88 seg->extent+size-s,vm->disc); [all …]
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_utils.c | 90 &key->size, &rkey->data, &rkey->size)) 94 if (bl->ksize > rkey->size) { 100 rkey->size = bl->ksize; 103 key->size = bl->ksize; 106 key->size = bl->ksize; 116 &data->size, &rdata->data, &rdata->size)) 121 if (bl->dsize + 1 > rdata->size) { 128 rdata->size = bl->dsize + 1; 131 data->size = bl->dsize; 134 data->size = bl->dsize; [all …]
|
/titanic_41/usr/src/uts/sun4u/lw8/io/ |
H A D | sgfru.c | 379 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 …]
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 197 hat_memload_alloc(vmem_t *vmp, size_t size, int flags) in hat_memload_alloc() argument 200 return (segkmem_alloc(vmp, size, flags)); in hat_memload_alloc() 210 segkmem_alloc_permanent(vmem_t *vmp, size_t size, int flags) in segkmem_alloc_permanent() argument 212 return (segkmem_alloc(vmp, size, flags | VM_NORELOC)); in segkmem_alloc_permanent() 359 boot_mapin(caddr_t addr, size_t size) in boot_mapin() argument 365 if (page_resv(btop(size), KM_NOSLEEP) == 0) in boot_mapin() 368 for (eaddr = addr + size; addr < eaddr; addr += PAGESIZE) { in boot_mapin() 412 boot_alloc(void *inaddr, size_t size, uint_t align) in boot_alloc() argument 420 size = ptob(btopr(size)); in boot_alloc() 422 if (bop_alloc_chunk(addr, size, align) != (caddr_t)addr) in boot_alloc() [all …]
|