/titanic_51/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_51/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 in split() 159 malloc(size_t size) malloc() argument 207 calloc(size_t num,size_t size) calloc() argument 231 realloc(void * ptr,size_t size) realloc() argument 307 lfree(void * ptr,size_t size) lfree() argument [all...] |
/titanic_51/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() 157 realloc(void * ptr,size_t size) realloc() argument 216 align(size_t size,int bound) align() argument 225 split(struct block * block,size_t size) split() argument [all...] |
/titanic_51/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_mallo argument 141 __os_realloc(storep,size) __os_realloc() argument 186 __os_free(ptr,size) __os_free() argument [all...] |
/titanic_51/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() 77 * Allocate or resize memory previously allocated. If the new size is greater 78 * than the current size, the extra space is zeroed out. If the new size is less 79 * then the current size th 84 smb_mem_rezalloc(void * ptr,size_t size) smb_mem_rezalloc() argument 117 size_t size; smb_mem_strdup() local 155 smb_srm_alloc(smb_request_t * sr,size_t size) smb_srm_alloc() argument 166 smb_srm_zalloc(smb_request_t * sr,size_t size) smb_srm_zalloc() argument 177 smb_srm_realloc(smb_request_t * sr,void * p,size_t size) smb_srm_realloc() argument 191 smb_srm_rezalloc(smb_request_t * sr,void * p,size_t size) smb_srm_rezalloc() argument 200 size_t size; smb_srm_strdup() local 218 smb_alloc(smb_request_t * sr,size_t size,boolean_t zero) smb_alloc() argument 281 smb_realloc(smb_request_t * sr,void * ptr,size_t size,boolean_t zero) smb_realloc() argument [all...] |
/titanic_51/usr/src/lib/iconv_modules/zh/common/ |
H A D | uni_common.c | 34 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 100 int size = 0; global() local 137 int size = 0; global() local [all...] |
/titanic_51/usr/src/lib/libc/port/threads/ |
H A D | alloc.c | 37 * (minimum size is 64 bytes) are obtained from mmap() of 64K chunks 39 * The interface requires the caller to keep track of the size of an 40 * allocated block and to pass that size back when freeing a block. 59 * bucketnum allocation size 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 in getbucketnum() 180 lmalloc(size_t size) lmalloc() argument 270 lfree(void * ptr,size_t size) lfree() argument 345 libc_malloc(size_t size) libc_malloc() argument 357 libc_realloc(void * old,size_t size) libc_realloc() argument [all...] |
/titanic_51/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, ou in decimate_noadjust() 214 decimate(short * in,int size,short * out) decimate() argument 248 interpolate_noadjust(short * in,int size,short * out) interpolate_noadjust() argument 309 interpolate(short * in,int size,short * out) interpolate() argument 333 filter_noadjust(short * in,int size,short * out) filter_noadjust() argument 418 filter(short * in,int size,short * out) filter() argument [all...] |
H A D | Fir.cc | 71 int size) in short2double() argument 73 while (size-- > 0) in short2double() 88 void Fir:: // update state with data[size] 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 * sizeo in updateState() 106 update_short(short * in,int size) update_short() argument 169 filter_noadjust(short * in,int size,short * out) filter_noadjust() argument 238 filter(short * in,int size,short * out) filter() argument [all...] |
/titanic_51/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)[ [all...] |
/titanic_51/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, hd in _nsc_global_setup() 425 int size = sizeof (nsc_rmhdr_t) + _nsc_need_global_mem() local 450 nsc_kmem_alloc(size_t size,int flag,nsc_mem_t * mem) nsc_kmem_alloc() argument 497 size_t size = *sizep; _nsc_mem_alloc() local 533 nsc_kmem_free(void * addr,size_t size) nsc_kmem_free() argument 564 _nsc_mem_free(void * addr,size_t size) _nsc_mem_free() argument 607 nsc_kmem_zalloc(size_t size,int flag,nsc_mem_t * mem) nsc_kmem_zalloc() argument 694 _nsc_global_zero(ulong_t offset,size_t size) _nsc_global_zero() argument 740 size_t avail, size = (*sizep); _nsc_rm_alloc() local 818 _nsc_rm_free(void * addr,size_t size) _nsc_rm_free() argument 868 size_t size; _nsc_rm_avail() local 913 size_t size; _nsc_get_global_data() local [all...] |
/titanic_51/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 74 topo_hdl_free(topo_hdl_t * thp,void * data,size_t size) topo_hdl_free() argument 82 topo_mod_alloc(topo_mod_t * mod,size_t size) topo_mod_alloc() argument 88 topo_mod_zalloc(topo_mod_t * mod,size_t size) topo_mod_zalloc() argument 94 topo_mod_free(topo_mod_t * mod,void * data,size_t size) topo_mod_free() argument [all...] |
/titanic_51/usr/src/lib/libumem/common/ |
H A D | malloc.c | 39 * See umem_impl.h for the various magic numbers used, and the size 42 * The 'size' of the buffer includes the tags. That is, we encode the 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 < in umem_malloc() 125 size_t size = nelem * elsize; calloc() local 151 size_t size; memalign() local 229 valloc(size_t size) valloc() argument 254 size_t size; process_free() local [all...] |
/titanic_51/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | vmalloc.c | 42 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 in _vm_resize() [all...] |
/titanic_51/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_51/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rsrc_info.c | 133 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 260 size_t size = 0; dev_list_pack() local 314 size_t size = 0; client_list_pack() local 364 size_t size = 0; ap_pack() local 428 size_t size = 0; dev_pack() local 473 size_t size = 0; client_pack() local 520 size_t size = 0; pack_add_byte_array() local 541 ri_unpack(caddr_t buf,size_t size,ri_hdl_t ** hdlp) ri_unpack() argument 614 ap_list_unpack(char * buf,size_t size,ri_ap_t ** aps) ap_list_unpack() argument 673 dev_list_unpack(char * buf,size_t size,ri_dev_t ** devs) dev_list_unpack() argument 730 client_list_unpack(char * buf,size_t size,ri_client_t ** clients) client_list_unpack() argument 789 client_unpack(char * buf,size_t size,ri_client_t * client) client_unpack() argument 830 dev_unpack(char * buf,size_t size,ri_dev_t * dev) dev_unpack() argument 868 ap_unpack(char * buf,size_t size,ri_ap_t * ap) ap_unpack() argument 937 size_t size = 0; lookup_unpack_byte_array() local [all...] |
/titanic_51/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() 285 "%s[%d]: bp=%p size=%d cnt=%d", entry->evt->label, 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 392 emlxs_log_vportrscn_event(emlxs_port_t * port,uint8_t * payload,uint32_t size) emlxs_log_vportrscn_event() argument 471 emlxs_log_ct_event(emlxs_port_t * port,uint8_t * payload,uint32_t size,uint32_t rxid) emlxs_log_ct_event() argument 544 uint32_t size; emlxs_log_link_event() local 658 emlxs_log_dump_event(emlxs_port_t * port,uint8_t * buffer,uint32_t size) emlxs_log_dump_event() argument 700 uint32_t size; emlxs_log_temp_event() local 736 uint32_t size; emlxs_log_fcoe_event() local 770 uint32_t size; emlxs_log_async_event() local 969 uint32_t size = 0; emlxs_get_dfc_event() local 1107 uint32_t size; emlxs_log_sd_basic_els_event() local 1144 uint32_t size; emlxs_log_sd_prlo_event() local 1182 uint32_t size; emlxs_log_sd_lsrjt_event() local 1222 uint32_t size; emlxs_log_sd_fc_bsy_event() local 1265 uint32_t size; emlxs_log_sd_fc_rdchk_event() local 1306 uint32_t size; emlxs_log_sd_scsi_event() local 1346 uint32_t size; emlxs_log_sd_scsi_check_event() local 1394 uint32_t size = 0; emlxs_get_sd_event() local [all...] |
/titanic_51/usr/src/cmd/sendmail/libsm/ |
H A D | rpool.c | 52 ** size -- size of block. 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); 79 ** size -- size of block. 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) sm_rpool_malloc_tagged_x() argument 224 sm_rpool_malloc_tagged(rpool,size,file,line,group) sm_rpool_malloc_tagged() argument [all...] |
H A D | heap.c | 64 ** The behaviour of malloc with size==0 is platform dependent (it 68 ** two choices: "size = 1" or "return NULL". We use the former in the 72 ** use size. 75 #define MALLOC_SIZE(size) ((size) == 0 ? 1 : (size)) argument 81 ** size -- size of requested memory. 96 sm_malloc_x(size) in sm_malloc_x() argument 97 size_t size; in sm_malloc_x() 122 sm_malloc(size) sm_malloc() argument 145 sm_realloc(ptr,size) sm_realloc() argument 172 sm_realloc_x(ptr,size) sm_realloc_x() argument 361 sm_malloc_tagged(size,tag,num,group) sm_malloc_tagged() argument 415 sm_malloc_tagged_x(size,tag,num,group) sm_malloc_tagged_x() argument 472 sm_heap_register(ptr,size,tag,num,group) sm_heap_register() argument 525 sm_realloc(ptr,size) sm_realloc() argument 593 sm_realloc_x(ptr,size) sm_realloc_x() argument [all...] |
/titanic_51/usr/src/lib/libctf/common/ |
H A D | ctf_subr.c | 33 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() 64 workq_alloc(size_t size) workq_alloc() argument 71 ctf_free(void * buf,size_t size) ctf_free() argument 78 mergeq_free(void * buf,size_t size) mergeq_free() argument 85 workq_free(void * buf,size_t size) workq_free() argument [all...] |
/titanic_51/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() 363 __memput(void * mem,size_t size) __memput() argument 368 __memput_record(void * mem,size_t size,const char * file,int line) __memput_record() argument 477 __memget_debug(size_t size,const char * file,int line) __memget_debug() argument 486 __memput_debug(void * ptr,size_t size,const char * file,int line) __memput_debug() argument 558 quantize(size_t size) quantize() argument [all...] |
/titanic_51/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_51/usr/src/contrib/ast/src/lib/libast/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), (in [all...] |
/titanic_51/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() 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) obj_register() argument [all...] |
/titanic_51/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 …]
|