Searched refs:offset (Results 1 - 25 of 72) sorted by relevance

123

/broadcom-cfe-1.4.2/cfe/x86emu/x86emu/
H A Ddecode.h63 u8 fetch_data_byte (uint offset);
64 u8 fetch_data_byte_abs (uint segment, uint offset);
65 u16 fetch_data_word (uint offset);
66 u16 fetch_data_word_abs (uint segment, uint offset);
67 u32 fetch_data_long (uint offset);
68 u32 fetch_data_long_abs (uint segment, uint offset);
69 void store_data_byte (uint offset, u8 val);
70 void store_data_byte_abs (uint segment, uint offset, u8 val);
71 void store_data_word (uint offset, u16 val);
72 void store_data_word_abs (uint segment, uint offset, u1
[all...]
/broadcom-cfe-1.4.2/cfe/ui/
H A Dui_clkgen.c55 * smbus_readbyte(base,slaveaddr,offset)
62 * offset - address of byte within device
69 smbus_readbyte(cfe_smbus_channel_t *chan, uint8_t dev, uint8_t offset) argument
74 err = SMBUS_XACT(chan, dev, offset, buf, 1);
81 * smbus_writebyte(base,dev,offset,b)
88 * offset - byte with in the device to read
97 uint8_t offset, uint8_t b)
102 buf[0] = offset;
230 uint8_t offset; local
235 offset
96 smbus_writebyte(cfe_smbus_channel_t *chan, uint8_t dev, uint8_t offset, uint8_t b) argument
251 uint8_t offset; local
276 uint8_t offset; local
[all...]
H A Dui_ptable.c71 ptable.part[i].offset, ptable.part[i].size);
79 int i, j, offset, size, overlap; local
84 offset = atoi(cmd_getarg(cmd, 1));
109 if (offset < ptable.part[i].offset) {
110 if (offset+size > ptable.part[i].offset) {
115 if (ptable.part[i].offset + ptable.part[i].size > offset) {
134 ptable.part[i].offset
[all...]
H A Dui_test_flash.c71 "test nvram devname offset",
146 printf(" Sector %d offset %08X size %d\n",
166 int offset = 0;
175 if (tok) offset = xtoi(tok);
176 else offset = 0;
184 res = cfe_readblk(fd,offset,buf,512);
185 printf("Offset %d Result %d\n",offset,res);
204 int offset;
211 offset = 0;
212 if ((tok = cmd_getarg(cmd,1))) offset
[all...]
H A Dui_robo.c84 int page, reg, len, i, offset, fh, bytes, devno; local
109 offset = ((page & 0xFF) << 8) | (reg & 0xFF);
110 bytes = cfe_readblk(fh,offset,PTR2HSADDR(buf),len);
129 int page, reg, len, fh, offset, bytes, devno; local
163 offset = ((page & 0xFF) << 8) | (reg & 0xFF);
164 bytes = cfe_writeblk(fh,offset,PTR2HSADDR(buf),len);
/broadcom-cfe-1.4.2/cfe/pci/
H A Dldtinit.c91 int offset, prev; local
95 offset = PCI_CAPLIST_PTR(cpr) &~ 0x3;
98 while (offset != 0 && offset != prev) {
99 cr = pci_conf_read(tag, offset);
103 return offset;
105 return offset;
107 prev = offset;
108 offset = PCI_CAPLIST_NEXT(cr) &~ 0x3;
117 ldt_get_link(pcitag_t tag, int offset, in argument
123 ldt_set_link(pcitag_t tag, int offset, int index, pcireg_t lr) argument
130 ldt_show_cap(pcitag_t tag, int offset, int secondary) argument
150 ldt_show_cap(pcitag_t tag, int offset, int secondary) argument
171 ldt_wait_ready(pcitag_t tag, int offset, int index) argument
191 ldt_end_chain(pcitag_t tag, int offset, int index) argument
205 ldt_freq_cap(pcitag_t tag, int offset, int index) argument
260 ldt_set_freq(pcitag_t tag, int offset, int index, uint8_t freq) argument
283 ldt_set_link_freq(pcitag_t tag, int offset, int link, pcitag_t prev_tag, int prev_offset, int prev_link, uint16_t prev_cap) argument
350 ldt_set_link_width(pcitag_t tag, int offset, int link, pcitag_t prev_tag, int prev_offset, int prev_link) argument
391 int offset, prev_offset; local
533 int offset; local
649 int offset; local
[all...]
/broadcom-cfe-1.4.2/cfe/dev/
H A Ddev_sp1011.c94 unsigned offset; local
131 offset = pb->inta_shift % 4;
132 t = (intmap + offset);
133 offset = (offset+1) % 4;
134 t |= (intmap + offset) << 16;
137 offset = (offset+1) % 4;
138 t = (intmap + offset);
139 offset
[all...]
H A Ddev_flash.c70 #define GETCFIBYTE(softc,offset) READFLASH_K1(softc,((offset) << (softc->flashdrv_widemode)))
140 int (*erasesector)(flashdrv_t *f,int offset);
141 int (*writeblk)(flashdrv_t *f,int offset,hsaddr_t buf,int len);
158 static int amd_flash_write_block(flashdrv_t *softc,int offset,hsaddr_t buf,int len);
159 static int amd_flash_erase_sector(flashdrv_t *softc,int offset);
161 static int intel_flash_write_block(flashdrv_t *softc,int offset,hsaddr_t buf,int len);
162 static int intel_flash_erase_sector(flashdrv_t *softc,int offset);
247 * amd_flash_write_byte(softc,offset,val)
255 * offset
262 amd_flash_write_byte(flashdrv_t *softc,int offset, unsigned char val) argument
312 amd_flash_write_block(flashdrv_t *softc,int offset,hsaddr_t buf,int len) argument
345 amd_flash_erase_sector(flashdrv_t *softc,int offset) argument
389 intel_flash_write_byte(flashdrv_t *softc, int offset, unsigned char val) argument
427 intel_flash_write_word(flashdrv_t *softc, int offset, unsigned short val) argument
466 intel_flash_write_block(flashdrv_t *softc,int offset,hsaddr_t buf,int len) argument
513 intel_flash_erase_sector(flashdrv_t *softc,int offset) argument
669 unsigned int offset; local
1098 int offset; local
1240 int offset; local
1281 int offset; local
[all...]
H A Ddev_ht7520.c119 unsigned offset; local
144 offset = pb->inta_shift % 4;
146 iv = pci_int_line(offset+1); /* PCI_INTA = 1, etc. */
168 offset = (offset + 1) % 4;
/broadcom-cfe-1.4.2/cfe/arch/mips/board/sentosa/src/
H A Dui_sentosa.c103 "map pci offset size paddr [-off] [-l2ca] [-matchbits]\n\n"
105 "at offset relative to BAR0\n",
145 unsigned long offset, size; local
153 offset = parse_hex(cmd_getarg(cmd, 0));
158 result = pci_map_window(paddr, offset, size, l2ca, endian);
161 offset = parse_hex(cmd_getarg(cmd, 0));
163 result = pci_unmap_window(offset, size);
/broadcom-cfe-1.4.2/cfe/arch/mips/board/bcm91280e/src/
H A Dui_bcm91280e.c127 uint64_t offset = 0; local
143 offset = 0;
146 for (idx = 0; idx < nblks; idx++,offset += 32) {
153 : : "r"(pattern),"r"(uacbase+offset));
161 offset = 0;
163 for (idx = 0; idx < nblks; idx++,offset += 32) {
170 : "=r"(d0),"=r"(d1),"=r"(d2),"=r"(d3) :"r"(ucbase+offset));
217 unsigned long offset, size; local
225 offset = parse_hex(cmd_getarg(cmd, 0));
230 result = pci_map_window(paddr, offset, siz
[all...]
/broadcom-cfe-1.4.2/cfe/include/
H A Dcfe_devfuncs.h63 int cfe_readblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length);
65 int cfe_writeblk(int handle,cfe_offset_t offset,hsaddr_t buffer,int length);
68 cfe_offset_t offset);
H A Dcfe_fileops.h75 #define BDSEEK(ops,ref,offset,how) (ops)->seek((ref),(offset),(how))
88 int (*seek)(void *ref,int offset,int how);
106 int fs_seek(fileio_ctx_t *,void *ref,int offset,int how);
H A Dptable.h64 uint32_t offset; member in struct:partition_s
/broadcom-cfe-1.4.2/cfe/main/
H A Dnvram_subr.c177 * nvram_read(buffer,offset,length)
183 * offset - offset of data to read
189 int nvram_read(unsigned char *buffer,int offset,int length) argument
194 (cfe_offset_t) (offset+nvram_info.nvram_offset),
200 * nvram_write(buffer,offset,length)
206 * offset - offset of data to write
212 int nvram_write(unsigned char *buffer,int offset,int length) argument
217 (cfe_offset_t) (offset
[all...]
H A Denv_subr.c322 int offset; local
345 offset = 0;
348 if (nvram_read(ptr,offset,1) != 1) {
357 offset++;
366 if (nvram_read(ptr,offset,1) != 1) {
372 offset++;
376 if (nvram_read(ptr,offset,2) != 2) {
382 offset += 2;
390 if (nvram_read(ptr,offset,reclen) != reclen) goto error;
411 offset
[all...]
/broadcom-cfe-1.4.2/cfe/x86emu/
H A Ddecode.c298 offset - Offset to load data from
306 uint offset)
310 x86emu_check_data_access((u16)get_data_segment(), offset);
312 return (*sys_rdb)((get_data_segment() << 4) + offset);
317 offset - Offset to load data from
325 uint offset)
329 x86emu_check_data_access((u16)get_data_segment(), offset);
331 return (*sys_rdw)((get_data_segment() << 4) + offset);
336 offset - Offset to load data from
344 uint offset)
305 fetch_data_byte( uint offset) argument
324 fetch_data_word( uint offset) argument
343 fetch_data_long( uint offset) argument
363 fetch_data_byte_abs( uint segment, uint offset) argument
384 fetch_data_word_abs( uint segment, uint offset) argument
405 fetch_data_long_abs( uint segment, uint offset) argument
427 store_data_byte( uint offset, u8 val) argument
449 store_data_word( uint offset, u16 val) argument
471 store_data_long( uint offset, u32 val) argument
493 store_data_byte_abs( uint segment, uint offset, u8 val) argument
516 store_data_word_abs( uint segment, uint offset, u16 val) argument
539 store_data_long_abs( uint segment, uint offset, u32 val) argument
862 unsigned offset; local
[all...]
H A Ddebug.c256 int offset; local
275 offset = M.x86.saved_ip;
288 if (ntok == 2) { offset = ps[1]; }
289 offset = disassemble_forward(M.x86.saved_cs,(u16)offset,10);
294 offset = ps[1];
295 X86EMU_dump_memory(segment,(u16)offset,16);
296 offset += 16;
299 offset = ps[2];
300 X86EMU_dump_memory(segment,(u16)offset,1
[all...]
/broadcom-cfe-1.4.2/cfe/arch/mips/board/swarm/src/
H A Dui_swarm.c108 "map pci offset size paddr [-off] [-l2ca] [-matchbits]\n\n"
110 "at offset relative to BAR0\n",
166 unsigned long offset, size; local
174 offset = parse_hex(cmd_getarg(cmd, 0));
179 result = pci_map_window(paddr, offset, size, l2ca, endian);
182 offset = parse_hex(cmd_getarg(cmd, 0));
184 result = pci_unmap_window(offset, size);
/broadcom-cfe-1.4.2/cfe/arch/mips/board/bcm1250cpci/src/
H A Dui_bcm1250cpci.c116 int offset; member in struct:env_vars
157 vxw_addr = (char *) (LOCAL_MEM_LOCAL_ADRS + var_table[ var ].offset);
/broadcom-cfe-1.4.2/cfe/lib/
H A Dlib_qsort.c39 unsigned int offset; local
57 offset = (ub - lb) >> 1;
58 P = lb + offset - offset % size;
/broadcom-cfe-1.4.2/cfe/arch/mips/chipset/sibyte/src/
H A Dui_memtest.c240 hsaddr_t offset; local
325 for (offset = 0; (offset < arena_size); offset += CACHE_LINE_LEN) {
326 dst_adr = (mem_base+offset);
338 for (offset = 0; (offset < arena_size); offset += CACHE_LINE_LEN) {
339 dst_adr = (mem_base+offset);
344 cache_dst_adr = (mem_base+offset);
[all...]
/broadcom-cfe-1.4.2/cfe/arch/mips/board/bcm91480b/src/
H A Dui_bcm91480b.c122 uint64_t offset = 0; local
138 offset = 0;
141 for (idx = 0; idx < nblks; idx++,offset += 32) {
148 : : "r"(pattern),"r"(uacbase+offset));
156 offset = 0;
158 for (idx = 0; idx < nblks; idx++,offset += 32) {
165 : "=r"(d0),"=r"(d1),"=r"(d2),"=r"(d3) :"r"(ucbase+offset));
/broadcom-cfe-1.4.2/cfe/arch/mips/board/bcm91480ht/src/
H A Dui_bcm91480ht.c122 uint64_t offset = 0; local
138 offset = 0;
141 for (idx = 0; idx < nblks; idx++,offset += 32) {
148 : : "r"(pattern),"r"(uacbase+offset));
156 offset = 0;
158 for (idx = 0; idx < nblks; idx++,offset += 32) {
165 : "=r"(d0),"=r"(d1),"=r"(d2),"=r"(d3) :"r"(ucbase+offset));
/broadcom-cfe-1.4.2/cfe/msys/
H A Ddev_msys.c381 /* Get signature of device and check offset of binary partition */
483 * considered to be like a disk (you need to specify the offset).
500 int offset; local
505 offset = (int) buffer->buf_offset;
508 if ((offset + blen) > softc->real_part_size) {
509 blen = softc->real_part_size - offset;
512 printf("bdkdrv_read: bptr=0x%x blen=%d offset=%d\n",
513 (unsigned)bptr, blen, offset);
517 startUnit = offset / softc->unit_size; /* e.g. 512/32K */
527 memcpy(bptr, tmp + offset, ble
[all...]

Completed in 104 milliseconds

123