/broadcom-cfe-1.4.2/cfe/net/ |
H A D | net_tcpbuf.h | 78 int tmb_copyout2(tcpmodbuf_t *tmb,hsaddr_t buf,int offset,int len);
|
H A D | net_tcpbuf.c | 243 * tmb_copyout2(tmb,buf,offset,len) 245 * Copy data out of the modulo buffer from a specific offset from 253 * offset - offset from remove pointer to start 259 int tmb_copyout2(tcpmodbuf_t *tmb,hsaddr_t buf,int offset,int len) argument 267 maxlen = tmb->tmb_len - offset; 269 /* if offset is beyond length, get out now. */ 276 /* Adjust remove pointer for offset */ 277 remptr = (tmb->tmb_remptr + offset) % tmb->tmb_bufsize;
|
/broadcom-cfe-1.4.2/cfe/dev/ |
H A D | dev_ide_common.c | 1018 uint64_t offset;
local 1026 offset = buffer->buf_offset;
1029 if (offset & (softc->idecommon_sectorsize-1)) {
1030 lba = (offset >> sectorshift);
1033 amtcopy = softc->idecommon_sectorsize - (offset & (softc->idecommon_sectorsize-1));
1035 hs_memcpy_to_hs(bptr,§or[offset & (softc->idecommon_sectorsize-1)],amtcopy);
1037 offset += amtcopy;
1042 lba = (offset >> sectorshift);
1047 offset += amtcopy;
1052 lba = (offset >> sectorshif 1113 uint64_t offset; local [all...] |
H A D | dev_generic_flashop.c | 53 #define FLASHCMD_8(base,offset,value) phys_write8((base)+(offset),(value)) 54 #define FLASHCMD_16(base,offset,value) phys_write16((base)+((offset)<<1),(value)) 55 #define FLASHCMD_16B(base,offset,value) phys_write8((base)+((offset)<<1),(value)) 58 #define FLASHCMD_8(base,offset,value) phys_write8(((base)+(offset))^3,(value)) 59 #define FLASHCMD_16(base,offset,value) phys_write16(((base)+((offset)<< [all...] |
H A D | dev_newflash.c | 444 unsigned int offset; local 465 offset = softc->fd_probe.flash_size * whichchip; 475 offset + (secidx-curblk)*blksiz; 480 offset += (nblks)*blksiz; 896 * the sizes in the table to generate a table of {offset,size} 1086 xsprintf(descr,"%s at %08X offset %08X size %uKB", 1159 * considered to be like a disk (you need to specify the offset). 1174 int offset; local 1177 offset = (long)buffer->buf_offset; 1179 if ((offset 1237 int offset; local 1385 int offset; local [all...] |
H A D | dev_aic6915.c | 428 int offset, i, j; local 433 offset = start; 437 if (offset + j*step < next) 439 offset+j*step, READCSR(sc, offset+j*step)); 441 offset += 4; 1084 unsigned offset; local 1113 for (offset = 0; offset < PERFECT_ADDRESS_ENTRIES*4; offset [all...] |
/broadcom-cfe-1.4.2/cfe/pci/ |
H A D | pcivar.h | 66 unsigned int offset, unsigned int len, 68 int pci_unmap_window(unsigned int offset, unsigned int len);
|
H A D | pciconf.c | 226 int offset, prev;
local 229 offset = PCI_CAPLIST_PTR(cpr) &~ 0x3;
232 while (offset != 0 && offset != prev) {
233 cr = pci_conf_read(tag, offset);
235 return offset;
237 prev = offset;
238 offset = PCI_CAPLIST_NEXT(cr) &~ 0x3;
267 int offset;
local 275 offset 493 unsigned int offset; local [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/chipset/sibyte/src/ |
H A D | dev_sb1250_pcihost.c | 90 uint32_t offset; member in struct:sb1250_host_s 107 softc->offset = 0; 151 read. We maintain a current offset in case a sequential mode is 157 softc->offset = softc->limit; 179 softc->offset = boffset; 192 return softc->pci_base != 0 && softc->offset < softc->limit;
|
/broadcom-cfe-1.4.2/cfe/ui/ |
H A D | ui_test_disk.c | 70 "test disk device-name [-random | sector# | {-w sector offset byte}]", 73 "-w;Write a byte at offset in sector.**DANGER!! BE CAREFUL WHICH DEVICE YOU WRITE TO.**"); 86 "copydisk host:filename device-name [offset]", 275 int offset; local 285 if (!toffset) offset = 0; else offset = atoi(toffset); 312 if (res > 0) cfe_writeblk(fh,total+offset*512,PTR2HSADDR(buffer),res); 338 cfe_offset_t offset; local 373 offset = (cfe_offset_t) secnum * (cfe_offset_t) secsize; 377 res = cfe_writeblk(fh,offset [all...] |
H A D | ui_flash.c | 121 "-offset=*;Begin programming at this offset in the flash device|" 256 int offset = 0; local 322 if (cmd_sw_value(cmd,"-offset",&x)) { 323 offset = atoi(x); 349 * offset of the flash info. Otherwise 467 if ((copysize + offset) > flashinfo.flash_size) { 511 range.range_base = offset; 529 amtcopy = cfe_writeblk(fh,offset,PTR2HSADDR(ptr),copysize);
|
H A D | ui_spdcmds.c | 138 "program spd chan device [ {-offset=* -byte=*} | [MEMORY_PARAMETERS] ]\n\n" 140 "-offset=*;Dev addr within SPD(deflt=0)|" 141 "-byte=*;Byte value if -offset used|" 335 int offset=0; local 365 cmd_sw_value(cmd,"-offset",&x); 366 if (x != NULL) offset = lib_atoi(x); 370 if (x != NULL) spd[offset] = lib_atoi(x);
|
/broadcom-cfe-1.4.2/cfe/main/ |
H A D | bcmnvram.c | 151 unsigned int offset; local 157 for (offset = 9; offset < hdr->len; offset++) 158 crc = crc8_table[crc ^ base[offset ^ bytesel]]; 251 unsigned int offset; local 267 offset = sizeof(nvram_header_t); 269 while (offset < hdr->len && *(base+offset) != 0) { 270 len = strlen(base+offset); [all...] |
H A D | cfe_rawfs.c | 78 int raw_baseoffset; /* starting offset of raw "file" */ 90 static int raw_fileop_seek(void *ref,int offset,int how); 168 * offset,length - for example, 0x10000,0x200 230 static int raw_fileop_seek(void *ref,int offset,int how) argument 236 file->raw_fileoffset = offset; 239 file->raw_fileoffset += offset;
|
H A D | cfe_devfuncs.c | 100 int cfe_readblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length) argument 109 iocb.plist.iocb_buffer.buf_offset = offset; 124 int cfe_writeblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length) argument 133 iocb.plist.iocb_buffer.buf_offset = offset; 150 cfe_offset_t offset) 159 iocb.plist.iocb_buffer.buf_offset = offset; 148 cfe_ioctl(int handle,unsigned int ioctlnum, unsigned char *buffer,int length,int *retlen, cfe_offset_t offset) argument
|
H A D | cfe_httpfs.c | 94 static int http_fileop_seek(void *ref,int offset,int how); 325 static int http_fileop_seek(void *ref,int offset,int how) argument 334 newoffset = offset; 337 newoffset = file->http_offset + offset; 340 newoffset = offset; 352 * Eat data till offset reaches where we want.
|
H A D | cfe_filesys.c | 321 * fs_seek(fsctx,ref,offset,how) 328 * offset - distance to move 332 * new offset 336 int fs_seek(fileio_ctx_t *fsctx,void *ref,int offset,int how) argument 338 return BDSEEK(fsctx->ops,ref,offset,how);
|
H A D | cfe_zlibfs.c | 101 static int zlibfs_fileop_seek(void *ref,int offset,int how); 385 static int zlibfs_fileop_seek(void *ref,int offset,int how) argument 393 delta = offset - file->zlibfs_fileoffset; 396 delta = offset;
|
/broadcom-cfe-1.4.2/cfe/usb/ |
H A D | usbmass.c | 939 uint64_t offset; local 949 offset = buffer->buf_offset; 952 if (offset & (softc->usbdisk_sectorsize-1)) { 953 lba = (offset >> sectorshift); 956 amtcopy = softc->usbdisk_sectorsize - (offset & (softc->usbdisk_sectorsize-1)); 958 hs_memcpy_to_hs(bptr,§or[offset & (softc->usbdisk_sectorsize-1)],amtcopy); 960 offset += amtcopy; 967 lba = (offset >> sectorshift); 975 offset += amtcopy; 980 lba = (offset >> sectorshif 1042 uint64_t offset; local [all...] |
/broadcom-cfe-1.4.2/cfe/arch/mips/board/lausanne/src/ |
H A D | ui_lausanne.c | 122 "map pci offset size paddr [-off] [-l2ca] [-matchbits]\n\n" 124 "at offset relative to BAR0\n", 181 unsigned long offset, size; local 189 offset = parse_hex(cmd_getarg(cmd, 0)); 194 result = pci_map_window(paddr, offset, size, l2ca, endian); 197 offset = parse_hex(cmd_getarg(cmd, 0)); 199 result = pci_unmap_window(offset, size);
|
/broadcom-cfe-1.4.2/cfe/zlib/ |
H A D | gzio.c | 654 compressed file. The offset represents a number of bytes in the 655 gzseek returns the resulting offset location as measured in bytes from 660 z_off_t ZEXPORT gzseek (file, offset, whence) 662 z_off_t offset; 677 offset -= s->stream.total_in; 679 if (offset < 0) return -1L; 681 /* At this point, offset is the number of zero bytes to write. */ 686 while (offset > 0) { 688 if (offset < Z_BUFSIZE) size = (uInt)offset; [all...] |
/broadcom-cfe-1.4.2/cfe/api/ |
H A D | cfe_api.h | 185 int length, int *retlen, uint64_t offset); 188 int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, int length); 191 int cfe_writeblk(int handle, int64_t offset, unsigned char *buffer,
|
H A D | cfe_api.c | 413 int *retlen, cfe_xuint_t offset) 422 xiocb.plist.xiocb_buffer.buf_offset = offset; 468 cfe_readblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length) argument 477 xiocb.plist.xiocb_buffer.buf_offset = offset; 536 cfe_writeblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length) argument 545 xiocb.plist.xiocb_buffer.buf_offset = offset; 412 cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, int length, int *retlen, cfe_xuint_t offset) argument
|
/broadcom-cfe-1.4.2/cfe/arch/mips/common/src/ |
H A D | dev_flash_all.S | 60 #define WRITEFLASH(base,offset,value) \ 62 sb t0,offset(base)
|
H A D | dev_flashop_engine.S | 68 #define FLASHCMD_8(base,offset,value) \ 70 sb t0,((offset)^0x3)(base) 72 #define FLASHCMD_16(base,offset,value) \ 74 sh t0,(((offset)<<1)^0x2)(base) 76 #define FLASHCMD_16B(base,offset,value) \ 78 sb t0,(((offset)<<1)^0x3)(base) 83 #define FLASHCMD_8(base,offset,value) \ 85 sb t0,offset(base) 87 #define FLASHCMD_16(base,offset,value) \ 89 sh t0,((offset)<< [all...] |