/broadcom-cfe-1.4.2/cfe/include/ |
H A D | cfe_devfuncs.h | 63 int cfe_readblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length); 64 int cfe_read(int handle,hsaddr_t buffer,int length); 65 int cfe_writeblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length); 66 int cfe_write(int handle,hsaddr_t buffer,int length); 67 int cfe_ioctl(int handle,unsigned int ioctlnum,unsigned char *buffer,int length,int *retlen,
|
H A D | lib_malloc.h | 62 void kmeminit(mempool_t *pool,unsigned char *buffer,int length); 71 #define KMEMINIT(buffer,length) kmeminit(&kmempool,(buffer),(length))
|
H A D | lib_arena.h | 73 int arena_markrange(arena_t *arena,uint64_t address,uint64_t length,
|
H A D | cfe_console.h | 81 int console_read(unsigned char *buffer,int length); 82 int console_write(unsigned char *buffer,int length);
|
/broadcom-cfe-1.4.2/cfe/applets/ |
H A D | download.c | 61 * console_write(buffer,length) 68 * length - number of characters to write 74 static int console_write(unsigned char *buffer,int length) argument 89 res = cfe_write(conhandle,buffer,length); 92 length -= res; 93 if (length == 0) break;
|
H A D | test.c | 63 * console_write(buffer,length) 70 * length - number of characters to write 76 static int console_write(unsigned char *buffer,int length) argument 91 res = cfe_write(conhandle,buffer,length); 94 length -= res; 95 if (length == 0) break; 172 uint64_t start,length,type; local 199 if ((res = cfe_enummem(idx,1,&start,&length,&type) != 0)) break; 200 xprintf("Memory at %016llX length %016llX type %ld\n", 201 start,length,typ [all...] |
/broadcom-cfe-1.4.2/cfe/lib/ |
H A D | lib_malloc.c | 76 unsigned int length; /* length of the entire data section */ member in struct:memnode_s 85 unsigned int length; /* size of memory region */ member in struct:mempool_s 97 * kmeminit(pool,buffer,length) 106 * length - length of buffer area 113 void kmeminit(mempool_t *pool,unsigned char *buffer,int length) argument 117 pool->root->length = length - sizeof(memnode_t); 123 pool->length [all...] |
H A D | lib_arena.c | 198 * Allocate a new node and adjust the length of the node we're 261 * arena_markrange(arena,address,length,type,descr) 272 * address,length - region to mark 281 int arena_markrange(arena_t *arena,uint64_t address,uint64_t length,int type,char *descr) argument 291 ((address+length) > (arena->arena_base + arena->arena_size))) { 305 if (arena_split(arena,(address+length)) < 0) { 314 * specified in the "Address,length" args. 322 ((node->an_address + node->an_length) <= (address+length))) {
|
/broadcom-cfe-1.4.2/cfe/main/ |
H A D | nvram_subr.c | 177 * nvram_read(buffer,offset,length) 184 * length - number of bytes to read 189 int nvram_read(unsigned char *buffer,int offset,int length) argument 196 length); 200 * nvram_write(buffer,offset,length) 207 * length - number of bytes to write 212 int nvram_write(unsigned char *buffer,int offset,int length) argument 219 length);
|
H A D | cfe_devfuncs.c | 100 int cfe_readblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length) argument 111 iocb.plist.iocb_buffer.buf_length = length; 118 int cfe_read(int handle,hsaddr_t buffer,int length) argument 120 return cfe_readblk(handle,0,buffer,length); 124 int cfe_writeblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length) argument 135 iocb.plist.iocb_buffer.buf_length = length; 142 int cfe_write(int handle,hsaddr_t buffer,int length) argument 144 return cfe_writeblk(handle,0,buffer,length); 149 unsigned char *buffer,int length,int *retlen, 162 iocb.plist.iocb_buffer.buf_length = length; 148 cfe_ioctl(int handle,unsigned int ioctlnum, unsigned char *buffer,int length,int *retlen, cfe_offset_t offset) argument [all...] |
H A D | cfe_console.c | 136 static void console_save(unsigned char *buffer,int length); 247 * console_read(buffer,length) 253 * length - total size of the buffer 259 int console_read(unsigned char *buffer,int length) argument 263 return cfe_read(console_handle,PTR2HSADDR(buffer),length); 268 * console_write(buffer,length) 275 * length - number of characters to write 281 int console_write(unsigned char *buffer,int length) argument 290 console_save(buffer,length); 291 return length; 542 int length; local 592 console_save(unsigned char *buffer,int length) argument [all...] |
/broadcom-cfe-1.4.2/cfe/ui/ |
H A D | ui_test_flash.c | 205 int length; 213 length = 512; 215 if ((tok = cmd_getarg(cmd,2))) length = xtoi(tok); 216 if (length > 2048) length = 2048; 235 printf("Fill offset %04X length %04X\n",offset,length); 237 res = cfe_writeblk(fd,offset,buffer,length);
|
H A D | ui_examcmds.c | 70 int dumpmem(hsaddr_t addr,hsaddr_t dispaddr,int length,int wlen); 90 static int getaddrargs(ui_cmdline_t *cmd,int *curtype,hsaddr_t *addr,int *length) argument 152 if (length) { 156 *length = newlen; 216 int dumpmem(hsaddr_t addr,hsaddr_t dispaddr,int length,int wlen) argument 241 for (idx = 0; idx < length; idx += 16) { 247 if (idx+x < length) { 261 if (idx+x < length) { 275 if (idx+x < length) { 290 if (idx+x < length) { [all...] |
/broadcom-cfe-1.4.2/cfe/api/ |
H A D | cfe_api.h | 174 int cfe_enummem(int idx, int flags, uint64_t *start, uint64_t *length, 185 int length, int *retlen, uint64_t offset); 187 int cfe_read(int handle, unsigned char *buffer, int length); 188 int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, int length); 190 int cfe_write(int handle, unsigned char *buffer, int length); 192 int length);
|
H A D | cfe_api.c | 199 cfe_enummem(int idx, int flags, cfe_xuint_t *start, cfe_xuint_t *length, argument 217 *length = xiocb.plist.xiocb_meminfo.mi_size; 412 cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, int length, argument 425 xiocb.plist.xiocb_buffer.buf_length = length; 460 cfe_read(int handle, unsigned char *buffer, int length) argument 462 return cfe_readblk(handle, 0, buffer, length); 468 cfe_readblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length) argument 479 xiocb.plist.xiocb_buffer.buf_length = length; 528 cfe_write(int handle, unsigned char *buffer, int length) argument 530 return cfe_writeblk(handle, 0, buffer, length); 536 cfe_writeblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length) argument [all...] |
/broadcom-cfe-1.4.2/cfe/usb/ |
H A D | usbd.c | 356 * buf,length - user buffer and buffer length 363 usbreq_t *usb_make_request(usbdev_t *dev,int epaddr,uint8_t *buf,int length,int flags) argument 381 ur->ur_length = length; 579 * buf,length - user buffer and buffer length 586 int usb_make_sync_request(usbdev_t *dev,int epaddr,uint8_t *buf,int length,int flags) argument 591 ur = usb_make_request(dev,epaddr,buf,length,flags); 794 * wIndex,buffer,length) 804 * length 810 usb_std_request(usbdev_t *dev,uint8_t bmRequestType, uint8_t bRequest,uint16_t wValue, uint16_t wIndex,uint8_t *buffer,int length) argument [all...] |
H A D | usbd.h | 220 usbreq_t *usb_make_request(usbdev_t *dev,int pipenum,uint8_t *buf,int length,int flags); 228 int usb_make_sync_request(usbdev_t *dev,int pipenum,uint8_t *buf,int length,int flags); 242 uint16_t wIndex,uint8_t *buffer,int length);
|
/broadcom-cfe-1.4.2/cfe/zlib/ |
H A D | deflate.h | 23 /* number of length codes, not counting the special END_BLOCK code */ 57 ush len; /* length of bit string */ 105 * performed with a length multiple of the block size. Also, it limits 140 uInt match_length; /* length of best match */ 154 * length. A higher limit improves compression ratio but degrades the 164 /* Insert new strings in the hash table only if the match length is not 165 * greater than this length. This saves time but degrades compression. 179 struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ 185 struct tree_desc_s bl_desc; /* desc. for bit length tree */ 188 /* number of codes at each bit length fo [all...] |
H A D | trees.c | 47 /* Bit length codes must not exceed MAX_BL_BITS bits */ 53 /* repeat previous bit length 3-6 times (2 bits of repeat count) */ 56 /* repeat a zero length 3-10 times (3 bits of repeat count) */ 59 /* repeat a zero length 11-138 times (7 bits of repeat count) */ 61 local const int extra_lbits[LENGTH_CODES] /* extra bits for each length code */ 67 local const int extra_blbits[BL_CODES]/* extra bits for each bit length code */ 72 /* The lengths of the bit length codes are sent in order of decreasing 73 * probability, to avoid transmitting the lengths for unused bit length codes. 109 /* length code for each normalized match length ( 245 int length; /* length value */ local [all...] |
H A D | deflate.c | 93 int length)); 106 /* Matches of length 3 are discarded if their distance exceeds TOO_FAR */ 119 ush good_length; /* reduce lazy search above this match length */ 120 ush max_lazy; /* do not perform lazy search above this match length */ 121 ush nice_length; /* quit search above this match length */ 162 * the previous length of the hash chain. 219 * output size for (length,distance) codes is <= 24 bits. 297 uInt length = dictLength; local 307 if (length < MIN_MATCH) return Z_OK; 308 if (length > MAX_DIS [all...] |
/broadcom-cfe-1.4.2/cfe/dev/ |
H A D | dev_rtl8139.c | 109 int32_t length; /* 4 */ member in struct:eth_pkt_s 125 int n = (pkt->length < 32 ? pkt->length : 32); 127 xprintf("%c[%4d]:", c, pkt->length); 275 pkt->length = ETH_PKTBUF_LEN; 321 prefixed with a length/status word and placed end-to-end in the 328 DMA in progress, in which case the length will be read as 0xFFF0. */ 360 size_t length, count, incr, n; local 363 length = G_RS_LEN(status); 367 if (length [all...] |
H A D | dev_aic6915.c | 107 int32_t length; /* 4 */ member in struct:eth_pkt_s 115 int32_t length; /* 4 */ member in struct:eth_pkt_s 132 int n = (pkt->length < 32 ? pkt->length : 32); 134 xprintf("%c[%4d]:", c, pkt->length); 185 uint16_t length; member in struct:aic_tx_dscr1_s 213 uint16_t length; member in struct:aic_rx_comp_dscr0_s 218 uint16_t length; member in struct:aic_rx_comp_dscr1_s 225 uint16_t length; member in struct:aic_rx_comp_dscr2_s 232 uint16_t length; member in struct:aic_rx_comp_dscr3_s [all...] |
/broadcom-cfe-1.4.2/cfe/hosttools/ |
H A D | installboot.c | 132 static void do_checksum(void *ptr,int length,uint32_t *csptr,int swap) argument 140 length /= sizeof(uint32_t); 142 while (length) { 147 length--;
|
H A D | mkbootimage.c | 116 static void do_checksum(void *ptr,int length,uint32_t *csptr,int swap) argument 124 length /= sizeof(uint32_t); 126 while (length) { 131 length--;
|
/broadcom-cfe-1.4.2/cfe/arch/mips/chipset/sibyte/src/ |
H A D | dev_sb1250_ethernet.c | 162 uint64_t status,unsigned int length); 169 int length; member in struct:sbeth_pkt_s 235 static int sbeth_transmit(sbeth_t *s,int chan,unsigned char *pkt,int length,void *arg); 236 static int sbeth_addrcvbuf(sbeth_t *s,int chan,unsigned char *pkt,int length,void *arg); 704 * the status from the descriptor, and the length from 782 * SBDMA_ADDBUFFER(d,ptr,length,ctx) 791 * length - length of buffer 800 static int sbdma_addbuffer(sbethdma_t *d,uint8_t *ptr,int length,void *ctx) argument 826 /* transmitting: set outbound options and length */ 1589 sbeth_transmit(sbeth_t *s,int chan,unsigned char *pkt,int length,void *arg) argument 1609 sbeth_addrcvbuf(sbeth_t *s,int chan,unsigned char *pkt,int length,void *arg) argument [all...] |