Searched refs:offset (Results 26 - 50 of 72) sorted by relevance

123

/broadcom-cfe-1.4.2/cfe/net/
H A Dnet_tcpbuf.h78 int tmb_copyout2(tcpmodbuf_t *tmb,hsaddr_t buf,int offset,int len);
H A Dnet_tcpbuf.c243 * 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 Ddev_ide_common.c1018 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,&sector[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 Ddev_generic_flashop.c53 #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 Ddev_newflash.c444 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 Ddev_aic6915.c428 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 Dpcivar.h66 unsigned int offset, unsigned int len,
68 int pci_unmap_window(unsigned int offset, unsigned int len);
H A Dpciconf.c226 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 Ddev_sb1250_pcihost.c90 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 Dui_test_disk.c70 "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 Dui_flash.c121 "-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 Dui_spdcmds.c138 "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 Dbcmnvram.c151 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 Dcfe_rawfs.c78 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 Dcfe_devfuncs.c100 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 Dcfe_httpfs.c94 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 Dcfe_filesys.c321 * 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 Dcfe_zlibfs.c101 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 Dusbmass.c939 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,&sector[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 Dui_lausanne.c122 "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 Dgzio.c654 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 Dcfe_api.h185 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 Dcfe_api.c413 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 Ddev_flash_all.S60 #define WRITEFLASH(base,offset,value) \
62 sb t0,offset(base)
H A Ddev_flashop_engine.S68 #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...]

Completed in 104 milliseconds

123