/broadcom-cfe-1.4.2/cfe/lib/ |
H A D | lib_qsort.c | 7 static void qsexchange(void *a, void *b, size_t size) argument 20 for (i = sizeof(int); i <= size; i += sizeof(int)) { 27 for (i = i - sizeof(int) + 1; i <= size; i++) { 34 void qsort(void *base, size_t nmemb, size_t size, argument 46 ubStack[0] = (char *)base + (nmemb-1)*size; 58 P = lb + offset - offset % size; 59 qsexchange (lb, P, size); 62 i = lb + size; 65 while (i < j && compar(lb, i) > 0) i += size; 66 while (j >= i && compar(j, lb) > 0) j -= size; [all...] |
H A D | lib_malloc.c | 85 unsigned int length; /* size of memory region */ 100 * of memory and a size. This routine simply initializes the 146 * Returns the total size of the specified memory pool 152 * size of pool in bytes 272 * kmalloc(pool,size,align) 278 * size - size of item to allocate 285 void *kmalloc(mempool_t *pool,unsigned int size,unsigned int align) argument 298 * size of an int64 306 * size o 547 int size; local [all...] |
/broadcom-cfe-1.4.2/cfe/include/ |
H A D | cfe_mem.h | 78 int cfe_arena_loadcheck(uintptr_t start,unsigned int size); 79 int cfe_arena_enum(int idx,int *type,uint64_t *start,uint64_t *size,int allrecs);
|
H A D | lib_malloc.h | 64 void *kmalloc(mempool_t *pool,unsigned int size,unsigned int align); 74 #define KMALLOC(size,align) kmalloc(&kmempool,(size),(align))
|
H A D | cfe_flashimage.h | 52 uint8_t size[4]; /* Image size, in bytes, always big-endian */ member in struct:cfe_flashimage_s
|
H A D | zipstart.h | 52 void *zs_malloc(int size);
|
H A D | ptable.h | 65 uint32_t size; member in struct:partition_s
|
/broadcom-cfe-1.4.2/cfe/arch/ppc/common/include/ |
H A D | ppcmacros.h | 83 .size name,.-name; 91 #define IMPORT(name, size) \ 92 .extern name,size 95 #define COMM(name,size) \ 96 .comm name,size 99 #define LCOMM(name,size) \ 100 .lcomm name,size
|
/broadcom-cfe-1.4.2/cfe/pccons/ |
H A D | x86mem.h | 81 uint32_t addr,int size); 83 uint32_t addr,uint32_t val,int size); 104 uint32_t (*readf)(x86mem_t *mem,uint32_t addr,int size), 105 void (*writef)(x86mem_t *mem,uint32_t addr,uint32_t val,int size)); 106 void x86mem_hook_range(x86mem_t *mem,uint32_t chunkaddr,int size, 107 uint32_t (*readf)(x86mem_t *mem,uint32_t addr,int size), 108 void (*writef)(x86mem_t *mem,uint32_t addr,uint32_t val,int size));
|
H A D | x86mem.c | 384 uint32_t (*readf)(x86mem_t *mem,uint32_t addr,int size), 385 void (*writef)(x86mem_t *mem,uint32_t addr,uint32_t val,int size)) 396 * X86MEM_HOOK_RANGE(mem,addr,size,readf,writef) 404 * size - size of region to hook. Should be a multiple 405 * of the chunk size 413 void x86mem_hook_range(x86mem_t *mem,uint32_t chunkaddr,int size, argument 414 uint32_t (*readf)(x86mem_t *mem,uint32_t addr,int size), 415 void (*writef)(x86mem_t *mem,uint32_t addr,uint32_t val,int size)) 417 while (size > 383 x86mem_hook(x86mem_t *mem,uint32_t chunkaddr, uint32_t (*readf)(x86mem_t *mem,uint32_t addr,int size), void (*writef)(x86mem_t *mem,uint32_t addr,uint32_t val,int size)) argument [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/board/sentosa/src/ |
H A D | ui_sentosa.c | 103 "map pci offset size paddr [-off] [-l2ca] [-matchbits]\n\n" 104 "Map the region of size bytes starting at paddr to appear\n" 145 unsigned long offset, size; local 154 size = parse_hex(cmd_getarg(cmd, 1)); 158 result = pci_map_window(paddr, offset, size, l2ca, endian); 162 size = parse_hex(cmd_getarg(cmd, 1)); 163 result = pci_unmap_window(offset, size);
|
/broadcom-cfe-1.4.2/cfe/ui/ |
H A D | ui_ptable.c | 69 for (i = 0; i < PTABLE_MAX_PARTITIONS && ptable.part[i].size; i++) { 71 ptable.part[i].offset, ptable.part[i].size); 79 int i, j, offset, size, overlap; local 85 size = atoi(cmd_getarg(cmd, 2)); 91 if (ptable.part[PTABLE_MAX_PARTITIONS-1].size != 0) { 103 if (size == 0) { 110 if (offset+size > ptable.part[i].offset) { 115 if (ptable.part[i].offset + ptable.part[i].size > offset) { 119 if (ptable.part[i].size == 0) { 135 ptable.part[i].size [all...] |
H A D | ui_flash.c | 122 "-size=*;Size of source device when programming from flash to flash|" 165 * outsize - size of data we should program 180 uint32_t size; local 193 size = GET32(hdr->size); 196 printf("Flash image is %d bytes, flags %08X, CRC %08X\n",size,flags,hdrcrc); 203 if ((size == 0) || (size > FLASH_STAGING_BUFFER_SIZE) || 204 ((size + sizeof(cfe_flashimage_t)) < insize)) { 205 printf("Flash image size i 259 int size = 0; local [all...] |
/broadcom-cfe-1.4.2/cfe/zlib/ |
H A D | zutil.c | 127 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) argument 130 ulg bsize = (ulg)items*size; 186 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) argument 189 return _halloc((long)items, size); 204 extern voidp calloc OF((uInt items, uInt size)); 208 voidpf zcalloc (opaque, items, size) 211 unsigned size; 213 if (opaque) items += size - size; /* make compiler happy */ 214 return (voidpf)calloc(items, size); [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/board/swarm/src/ |
H A D | ui_swarm.c | 108 "map pci offset size paddr [-off] [-l2ca] [-matchbits]\n\n" 109 "Map the region of size bytes starting at paddr to appear\n" 166 unsigned long offset, size; local 175 size = parse_hex(cmd_getarg(cmd, 1)); 179 result = pci_map_window(paddr, offset, size, l2ca, endian); 183 size = parse_hex(cmd_getarg(cmd, 1)); 184 result = pci_unmap_window(offset, size);
|
/broadcom-cfe-1.4.2/cfe/main/ |
H A D | cfe_mem.c | 132 * cfe_arena_enum(idx,type,start,size) 141 * type,start,size: pointers to variables to receive the 151 int cfe_arena_enum(int idx,int *type,uint64_t *start,uint64_t *size,int allrecs) argument 166 *size = node->an_length; 178 * cfe_arena_loadcheck(start,size) 186 * size - size of requested region 193 int cfe_arena_loadcheck(uintptr_t start,unsigned int size) argument 205 ((start+size) <= (BOOT_START_ADDRESS+BOOT_AREA_SIZE))) { 229 ((start+size) < [all...] |
H A D | env_subr.c | 112 * the maximum size of the output buffer. 316 int size; local 339 size = nvram_getsize(); 340 buffer = KMALLOC(size,0); 353 while ((*ptr != ENV_TLV_TYPE_END) && (size > 1)) { 358 size--; 371 size--; 381 size -= 2; 385 if (reclen > size) break; /* should not happen, bad NVRAM */ 410 size 443 int size; local [all...] |
H A D | zipstart_load.c | 62 extern void *zs_malloc(int size); 104 * readprogsegment(fsctx,addr,size) 112 * size - size of region to read 119 void *addr,int size,int flags) 125 putdec(size); 128 res = fs_read(fsctx,addr,size); 131 if (res != size) return CFE_ERR_BADELFFMT; 133 return size; 138 * readclearbss(addr,size) 118 readprogsegment(fileio_ctx_t *fsctx, void *addr,int size,int flags) argument 151 readclearbss(void *addr,int size,int flags) argument 188 unsigned size = ep->e_shnum * sizeof(Elf32_Shdr); local [all...] |
H A D | cfe_ldr_elf.c | 70 * readprogsegment(fsctx,ref,addr,size) 79 * size - size of region to read 86 hsaddr_t addr,int size,int flags) 91 if (flags & LOADFLG_NOISY) xprintf("0x%016llx/%d ",addr,size); 93 if (flags & LOADFLG_NOISY) xprintf("0x%x/%d ",addr,size); 96 if (!cfe_arena_loadcheck(addr,size)) { 100 res = fs_read(fsctx,ref,addr,size); 103 if (res != size) return CFE_ERR_BADELFFMT; 105 return size; 85 readprogsegment(fileio_ctx_t *fsctx,void *ref, hsaddr_t addr,int size,int flags) argument 123 readclearbss(hsaddr_t addr,int size,int flags) argument [all...] |
/broadcom-cfe-1.4.2/build/broadcom/tiny/ |
H A D | runcfe | 21 --with-swarm-ide-disk0-size 60 \ 35 --with-swarm-ide-disk0-size 60 \
|
/broadcom-cfe-1.4.2/cfe/net/ |
H A D | net_tcpbuf.h | 61 int tmb_bufsize; /* size of buffer */ 74 int tmb_alloc(tcpmodbuf_t *buf,int size);
|
H A D | net_tcpbuf.c | 96 * tmb_alloc(buf,size) 102 * size - size of data in modulo buffer 109 int tmb_alloc(tcpmodbuf_t *buf,int size) argument 111 buf->tmb_buf = KMALLOC(size,0); 113 buf->tmb_bufsize = size;
|
/broadcom-cfe-1.4.2/build/broadcom/sim/ |
H A D | runcfe | 24 --with-swarm-ide-disk0-size 60 \
|
/broadcom-cfe-1.4.2/cfe/arch/mips/board/bcm91280e/src/ |
H A D | ui_bcm91280e.c | 217 unsigned long offset, size; local 226 size = parse_hex(cmd_getarg(cmd, 1)); 230 result = pci_map_window(paddr, offset, size, l2ca, endian); 234 size = parse_hex(cmd_getarg(cmd, 1)); 235 result = pci_unmap_window(offset, size); 290 "map pci offset size paddr [-off] [-l2ca] [-matchbits]\n\n" 291 "Map the region of size bytes starting at paddr to appear\n"
|
/broadcom-cfe-1.4.2/cfe/hosttools/ |
H A D | swapflashimage.c | 113 uint32_t size; local 126 size = get_be32(hdr->size); 130 (unsigned int)size,(unsigned int)flags,(unsigned int)hdrcrc); 132 if (size != insize) { 133 printf("Flash image size is bogus!\n"); 137 calccrc = crc32(code,size); 263 * Update the size and CRC in the flash header 268 stuff_be32(header.size,flashsize);
|