/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | basemem.c | 39 void * allot_base_memory ( size_t size ) { 40 uint16_t size_kb = ( size + 1023 ) >> 10; 81 * Yes, it's annoying that you have to remember the size of the blocks 89 void forget_base_memory ( void *ptr, size_t size ) { 91 uint16_t size_kb = ( size + remainder + 1023 ) >> 10; 95 if ( ( ptr == NULL ) || ( size == 0 ) ) { return; } 99 size, virt_to_phys ( ptr ) ); 117 * need for recording the size of the blocks. However, we 119 * probably adds around 8 bytes to the overall code size.
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | trace.h | 48 int ift_size; /* size of packet */ 81 #define TRACE_INPUT(ifp, src, size) { \ 83 trace(&(ifp)->int_input, (src), packet, (size), \ 88 packet, (size)); \ 91 #define TRACE_OUTPUT(ifp, dst, size) { \ 93 trace(&(ifp)->int_output, (dst), packet, (size), \ 98 packet, (size)); \
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fread.c | 32 ** size -- size of each chunk of data 43 sm_io_read(fp, timeout, buf, size) 47 size_t size; 49 register size_t resid = size; 63 ** or a size of 0. Peculiarily, it imposes no such requirements 90 return size - resid; 95 return size - resid; 101 return size;
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | bld_vernote.ksh | 60 .word .endname - .startname /* note name size */ 61 .word 0 /* note desc size */ 72 .size link_ver_string, .-link_ver_string 90 .long .endname - .startname /* note name size */ 91 .long 0 /* note desc size */ 102 .size link_ver_string, .-link_ver_string
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | library.h | 45 void *mymalloc(size_t size); 46 void *mycalloc(size_t nelem, size_t size); 47 void *myrealloc(void *p, size_t size);
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | setbuffer.c | 54 int size = asize - _SMBFSZ; local 65 size = BUFSIZ - _SMBFSZ; 68 size = _SMBFSZ - PUSHBACK; 72 size = _SMBFSZ - PUSHBACK; 74 } else /* regular buffered I/O, specified buffer size */ { 75 if (size <= 0) 82 _setbufend(iop, temp + size);
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfpeek.c | 35 extern ssize_t sfpeek(reg Sfio_t* f, Void_t** bp, reg size_t size) argument 37 extern ssize_t sfpeek(f,bp,size) 40 reg size_t size; /* size of peek */ 46 if((sz = size) == 0 || !bp) 58 else if(n > 0) /* size == 0 */ 70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0);
|
H A D | sfsetbuf.c | 43 ** If size < 0, it is assigned a suitable value depending on the 44 ** kind of stream. The actual buffer size allocated is dependent 93 Void_t* sfsetbuf(Sfio_t* f, Void_t* buf, size_t size) argument 95 Void_t* sfsetbuf(f,buf,size) 98 size_t size; /* buffer size, -1 for default size */ 115 if(size == 0 && buf) 117 _Sfi = f->val = (f->bits&SF_MMAP) ? (f->endb-f->data) : f->size; 124 size [all...] |
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | stdio_c99.c | 61 fgets_unlocked(char* buf, int size, Sfio_t* sp) argument 63 return fgets(buf, size, sp); 85 fread_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument 87 return fread(buf, size, n, sp); 91 fwrite_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument 93 return fwrite(buf, size, n, sp);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | sha256.c | 34 zio_checksum_SHA256(const void *buf, uint64_t size, argument 41 SHA2Update(&ctx, buf, size); 59 zio_checksum_SHA512_native(const void *buf, uint64_t size, argument 65 SHA2Update(&ctx, buf, size); 71 zio_checksum_SHA512_byteswap(const void *buf, uint64_t size, argument 76 zio_checksum_SHA512_native(buf, size, ctx_template, &tmp);
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_sid.c | 82 int size; local 87 size = smb_sid_len(sid); 88 if ((new_sid = smb_sid_alloc(size)) == NULL) 91 bcopy(sid, new_sid, size); 107 int size; local 112 size = smb_sid_len(domain_sid); 113 if ((sid = smb_sid_alloc(size + sizeof (rid))) == NULL) 116 bcopy(domain_sid, sid, size); 154 int size; local 163 size 322 int size; local 369 int size; local 438 smb_sid_alloc(size_t size) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/ |
H A D | tag_list.c | 53 tagList->hdr.size = tag_size(tag_core); 60 tagList->hdr.size = tag_size(tag_mem32); 62 tagList->u.mem.size = MEM_SIZE; 66 tagList->hdr.size = tag_size(tag_cmdline); 76 tagList->hdr.size += ((unsigned)(src - parms) + 1) / sizeof(unsigned); 79 tagList->hdr.size = 0;
|
/illumos-gate/usr/src/boot/sys/boot/fdt/dts/arm/ |
H A D | tegra20.dtsi | 35 #size-cells = <1>; 40 #size-cells = <1>; 57 #size-cells = <0>;
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | bp_map.c | 43 #define BP_FLUSH(addr, size) flush_instr_mem((void *)addr, size); 45 #define BP_FLUSH(addr, size) 54 offset_t offset, size_t size); 63 bp_vmem_alloc(vmem_t *vmp, size_t size, int vmflag) argument 65 return (vmem_xalloc(vmp, size, bp_align, 0, 0, NULL, NULL, vmflag)); 93 size_t size; local 108 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); 109 npages = btop(size); 132 P2ROUNDUP(color + size, bp_alig 207 size_t size; local 251 bp_copyout(void *driverbuf, struct buf *bp, offset_t offset, size_t size) argument 261 bp_copyin(struct buf *bp, void *driverbuf, offset_t offset, size_t size) argument 272 bp_copy_common(bp_copydir_t dir, struct buf *bp, void *driverbuf, offset_t offset, size_t size) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | i915_mem.c | 71 end = (p->start + p->size - 1) >> shift; 101 static struct mem_block *split_block(struct mem_block *p, int start, int size, drm_file_t *fpriv) argument 110 newblock->size = p->size - (start - p->start); 116 p->size -= newblock->size; 121 if (size < p->size) { 126 newblock->start = start + size; 127 newblock->size 142 alloc_block(struct mem_block *heap, int size, int align2, drm_file_t *fpriv) argument 205 init_heap(struct mem_block **heap, int start, int size) argument [all...] |
/illumos-gate/usr/src/common/lzma/ |
H A D | Types.h | 119 SRes (*Read)(void *p, void *buf, size_t *size); 120 /* if (input(*size) != 0 && output(*size) == 0) means end_of_stream. 121 (output(*size) < input(*size)) is allowed */ 125 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size); 126 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType); 131 size_t (*Write)(void *p, const void *buf, size_t size); 133 (result < size) means error */ 145 SRes (*Read)(void *p, void *buf, size_t *size); /* sam 177 size_t size; member in struct:__anon1998 [all...] |
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | getpcstack.c | 62 size_t size = 0; local 86 size = st.ss_size; 89 * If size == 0, then ss_sp is the *top* of the stack. 96 size = (uintptr_t)st.ss_sp; 110 size = umem_max_stack - umem_min_stack; 114 * shorten size so that fr_savfp and fr_savpc will be within the stack 117 if (size >= UMEM_FRAMESIZE - 1) 118 size -= (UMEM_FRAMESIZE - 1); 120 size = 0; 131 if (((uintptr_t)fp - base) >= size) [all...] |
/illumos-gate/usr/src/uts/common/io/ath/ |
H A D | ath_osdep.c | 48 size_t size; member in struct:ath_halfix 85 * within ath_hal.o. We must record the size of 87 * the size and then calls kmem_free(). 90 ath_hal_malloc(size_t size) argument 103 p = kmem_zalloc(size, KM_SLEEP); 105 ath_halfix[i].size = size; 107 "%d: p=%p, size=%d\n", i, p, size)); 123 kmem_free(p, ath_halfix[i].size); [all...] |
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_printf.c | 125 uint8_t size; local 138 size = 0; 166 if (size == 0) 167 size = sizeof (long); 168 else if (size == sizeof (long)) 169 size = sizeof (long long); 173 if (size == 0) 175 else if (size == sizeof (long)) 193 if (size == 0) 195 else if (size [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | pol_xdr.c | 45 u_int size; local 49 size = 0; 51 size = strlen(*objp) + 1; 53 if (! xdr_u_int(xdrs, &size)) { 58 if (size == 0) { 62 *objp = (char *) mem_alloc(size); 68 return (xdr_opaque(xdrs, *objp, size)); 71 if (size != 0) 72 return (xdr_opaque(xdrs, *objp, size)); 77 mem_free(*objp, size); [all...] |
/illumos-gate/usr/src/lib/libast/common/cdt/ |
H A D | dtdisc.c | 32 static Void_t* dtmemory(Dt_t* dt,Void_t* addr,size_t size,Dtdisc_t* disc) argument 34 static Void_t* dtmemory(dt, addr, size, disc) 37 size_t size; /* size to obtain */ 42 { if(size == 0) 46 else return realloc(addr,size); 48 else return size > 0 ? malloc(size) : NIL(Void_t*); 105 dt->data->size = 0; 119 k = _DTKEY((Void_t*)k,disc->key,disc->size); [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rsrc_info.c | 133 size_t size = 0; local 159 if (ap_list_pack(hdl->aps, &buf, &size, encoding) != 0 || 160 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) { 165 if (client_list_pack(hdl->cpu_cap_clients, &buf, &size, 168 size) != 0) { 173 if (client_list_pack(hdl->mem_cap_clients, &buf, &size, 176 size) != 0) { 181 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) { 188 *sizep = size; 207 size_t size; local 260 size_t size = 0; local 314 size_t size = 0; local 364 size_t size = 0; local 428 size_t size = 0; local 473 size_t size = 0; local 520 size_t size = 0; local 541 ri_unpack(caddr_t buf, size_t size, ri_hdl_t **hdlp) argument 614 ap_list_unpack(char *buf, size_t size, ri_ap_t **aps) argument 673 dev_list_unpack(char *buf, size_t size, ri_dev_t **devs) argument 730 client_list_unpack(char *buf, size_t size, ri_client_t **clients) argument 789 client_unpack(char *buf, size_t size, ri_client_t *client) argument 830 dev_unpack(char *buf, size_t size, ri_dev_t *dev) argument 868 ap_unpack(char *buf, size_t size, ri_ap_t *ap) argument 937 size_t size = 0; local [all...] |
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | intrq.c | 66 size_t size; local 94 size = ncpu_guest_max * sizeof (uint16_t); 95 if (size < INTR_REPORT_SIZE) 96 size = INTR_REPORT_SIZE; 99 * contig_mem_alloc() requires size to be a power of 2. 100 * Increase size to a power of 2 if necessary. 102 if (!ISP2(size)) { 103 size = 1 << highbit(size); 106 mcpup->cpu_list = contig_mem_alloc(size); [all...] |
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | prom_plat.h | 77 * Page size of Prom mappings are typically 8k, "modify" cannot change 128 unsigned long long physaddr, uint_t size); 135 extern caddr_t prom_malloc(caddr_t virt, size_t size, uint_t align); 137 extern caddr_t prom_allocate_virt(uint_t align, size_t size); 138 extern caddr_t prom_claim_virt(size_t size, caddr_t virt); 139 extern void prom_free_virt(size_t size, caddr_t virt); 141 extern int prom_allocate_phys(size_t size, uint_t align, 143 extern int prom_claim_phys(size_t size, 145 extern void prom_free_phys(size_t size, 148 extern int prom_map_phys(int mode, size_t size, caddr_ [all...] |
/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | dma.c | 41 size_t size; local 45 size = (size_t) POP(DS); 46 p = valloc(size); 47 debug_msg(DEBUG_REG_ACCESS, "dma-alloc ( %x ) -> %p\n", (int)size, p); 56 size_t size; local 59 size = POP(DS); 61 debug_msg(DEBUG_REG_ACCESS, "dma-free ( %p %x )\n", p, (int)size);
|