| /src/sys/arch/mac68k/dev/ |
| if_ae.c | 39 ae_size_card_memory(bus_space_tag_t bst, bus_space_handle_t bsh, int ofs) 54 bus_space_write_2(bst, bsh, ofs + i8, 0x8888); 55 bus_space_write_2(bst, bsh, ofs + i4, 0x4444); 56 bus_space_write_2(bst, bsh, ofs + i3, 0x3333); 57 bus_space_write_2(bst, bsh, ofs + i2, 0x2222); 58 bus_space_write_2(bst, bsh, ofs + i1, 0x1111); 69 if (bus_space_read_2(bst, bsh, ofs + i1) == 0x1111 && 70 bus_space_read_2(bst, bsh, ofs + i2) == 0x2222 && 71 bus_space_read_2(bst, bsh, ofs + i3) == 0x3333 && 72 bus_space_read_2(bst, bsh, ofs + i4) == 0x4444 & [all...] |
| /src/sys/arch/hpc/stand/hpcboot/ |
| file_fat.cpp | 86 FatFile::read(void *buf, size_t bytes, off_t ofs) 90 if (ofs != -1) 91 SetFilePointer(_handle, ofs, 0, FILE_BEGIN); 98 FatFile::write(const void *buf, size_t bytes, off_t ofs) 102 if (ofs != -1) 103 SetFilePointer(_handle, ofs, 0, FILE_BEGIN); 110 FatFile::seek(off_t ofs) 113 SetFilePointer(_handle, ofs, 0, FILE_BEGIN);
|
| file_ufs.cpp | 111 UfsFile::read(void *buf, size_t bytes, off_t ofs) 115 if (ofs != -1) 116 ufs_seek(_f, ofs, SEEK_SET); 123 UfsFile::write(const void *buf, size_t bytes, off_t ofs) 127 if (ofs != -1) 128 ufs_seek(_f, ofs, SEEK_SET); 135 UfsFile::seek(off_t ofs) 137 ufs_seek(_f, ofs, SEEK_SET);
|
| file_http.cpp | 222 HttpFile::_read_from_cache(void *buf, size_t bytes, off_t ofs) 226 if (ofs >= _buffer_size) 229 transfer = ofs + bytes > _buffer_size ? _buffer_size - ofs : bytes; 231 memcpy(buf, &_buffer[ofs], transfer); 248 off_t ofs; local 251 ofs = offset; 253 ofs = _cur_pos; 258 return _read_from_cache(buf, bytes, ofs); 286 return _read_from_cache(buf, bytes, ofs); [all...] |
| file_manager.cpp | 87 FileManager::read(void *buf, size_t len, off_t ofs) 89 if (ofs != -1) 90 seek(ofs); 174 FileManager::write(const void *buf, size_t bytes, off_t ofs) 176 return _file->write(buf, bytes, ofs);
|
| /src/sys/arch/i386/pci/ |
| opti82c700.c | 131 opti82c700_addr(int link, int *addrofs, int *ofs) 146 *ofs = (regofs & 3) << 3; 155 *ofs = regofs << 2; 199 int val, addrofs, ofs; local 201 if (opti82c700_addr(clink, &addrofs, &ofs)) 205 val = (reg >> ofs) & FIRESTAR_CFG_PIRQ_MASK; 217 int addrofs, ofs; local 223 if (opti82c700_addr(clink, &addrofs, &ofs)) 227 reg &= ~(FIRESTAR_CFG_PIRQ_MASK << ofs); 228 reg |= (irq << ofs); 238 int i, val, addrofs, ofs; local 252 i), &addrofs, &ofs); local 268 i), &addrofs, &ofs); local 284 int i, val, addrofs, ofs; local 297 i), &addrofs, &ofs); local 317 i), &addrofs, &ofs); local [all...] |
| opti82c700reg.h | 64 #define FIRESTAR_PIR_MAKELINK(src, ofs) \ 66 ((ofs) << FIRESTAR_PIR_REGOFS_SHIFT))
|
| /src/lib/libc/citrus/ |
| citrus_region.h | 64 _citrus_region_check(const struct _citrus_region *r, size_t ofs, size_t sz) 66 return r->r_size >= ofs + sz ? 0 : -1; 100 size_t ofs, size_t sz) 102 if (_citrus_region_check(r, ofs, sz)) 104 _citrus_region_init(subr, _citrus_region_offset(r, ofs), sz);
|
| citrus_db_factory.c | 267 size_t i, ofs, keyofs, dataofs, nextofs; local 270 ofs = 0; 273 dump_header(r, magic, &ofs, 0); 313 dump_header(r, magic, &ofs, df->df_num_entries); 324 put32(r, &ofs, de->de_hashvalue); 325 put32(r, &ofs, nextofs); 326 put32(r, &ofs, keyofs); 327 put32(r, &ofs, _region_size(&de->de_key)); 328 put32(r, &ofs, dataofs); 329 put32(r, &ofs, _region_size(&de->de_data)) [all...] |
| /src/sys/ufs/chfs/ |
| chfs_readinode.c | 85 return (tdi1->tmpnode->node->ofs - tdi2->tmpnode->node->ofs); 92 uint64_t ofs = *(const uint64_t *)key; local 94 return (tdi->tmpnode->node->ofs - ofs); 112 return (frag1->ofs - frag2->ofs); 119 uint64_t ofs = *(const uint64_t *)key; local 121 return (frag->ofs - ofs); 147 uint64_t ofs; local 1102 off_t ofs; local [all...] |
| chfs_scan.c | 103 struct chfs_eraseblock *cheb, void *buf, off_t ofs) 142 nref->nref_offset = ofs; 279 struct chfs_eraseblock *cheb, void *buf, off_t ofs) 333 fd->nref->nref_offset = ofs; 352 struct chfs_eraseblock *cheb, void *buf, off_t ofs) 377 nref->nref_offset = CHFS_GET_OFS(ofs) | CHFS_UNCHECKED_NODE_MASK; 433 off_t ofs = 0; local 444 while((ofs + CHFS_NODE_HDR_SIZE) < chmp->chm_ebh->eb_size) { 447 lnr, buf, ofs, CHFS_NODE_HDR_SIZE, &retlen); 469 ofs += CHFS_NODE_HDR_SIZE [all...] |
| /src/usr.bin/mkcsmapper/ |
| yacc.y | 221 put8(void *ptr, size_t ofs, u_int32_t val) 223 *((u_int8_t *)ptr + ofs) = val; 227 put16(void *ptr, size_t ofs, u_int32_t val) 230 memcpy((u_int16_t *)ptr + ofs, &oval, 2); 234 put32(void *ptr, size_t ofs, u_int32_t val) 237 memcpy((u_int32_t *)ptr + ofs, &oval, 4); 301 size_t ofs, i, len; 303 ofs = 0; 307 put32(ptr, ofs, rowcol_bits); ofs++ [all...] |
| /src/sys/dev/pci/ |
| btvmeivar.h | 78 #define write_mapmem(sc, ofs, val) \ 79 bus_space_write_4(sc->mapt, sc->maph, ofs, val) 80 #define read_mapmem(sc, ofs) \ 81 bus_space_read_4(sc->mapt, sc->maph, ofs)
|
| pci.c | 530 unsigned int ofs; local 541 ofs = PCI_CAPLISTPTR_REG; 544 ofs = PCI_CARDBUS_CAPLISTPTR_REG; 550 ofs = PCI_CAPLIST_PTR(pci_conf_read(pc, tag, ofs)); 551 while (ofs != 0) { 552 if ((ofs & 3) || (ofs < 0x40)) { 561 reg = pci_conf_read(pc, tag, ofs); 564 *offset = ofs; 580 unsigned int ofs; local 652 unsigned int ofs; local 870 int ofs, i, j; local 906 int ofs, i, j; local [all...] |
| /src/sys/external/bsd/drm/dist/shared-core/ |
| sis_ds.h | 87 int ofs, size; member in struct:mem_block_t 105 return b->ofs; 117 memHeap_t *mmInit(int ofs, int size);
|
| sis_ds.c | 161 memHeap_t *mmInit(int ofs, int size) 170 blocks->ofs = ofs; 203 if (startofs > p->ofs) { 206 newblock->ofs = startofs; 207 newblock->size = p->size - (startofs - p->ofs); 219 newblock->ofs = startofs + size; 247 startofs = (p->ofs + mask) & ~mask; 252 if (endofs <= (p->ofs + p->size))
|
| /src/sys/fs/v7fs/ |
| v7fs_inode.c | 223 v7fs_daddr_t blk, ofs; local 227 if (v7fs_inode_inquire_disk_location(fs, n, &blk, &ofs) != 0) 239 v7fs_inode_setup_memory_image(fs, p, di + ofs); 254 v7fs_daddr_t ofs; local 258 if (v7fs_inode_inquire_disk_location(fs, ino, &blk, &ofs) != 0) 269 di[ofs] = disk; /* structure copy; */ 284 v7fs_daddr_t ofs, blk; local 288 ofs = (n - 1/*inode start from 1*/) * 290 blk = ofs >> V7FS_BSHIFT; 293 *offset = (ofs - blk * V7FS_BSIZE) [all...] |
| /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dsc/ |
| rc_calc.h | 49 qp_set ofs; member in struct:rc_params
|
| /src/sys/arch/evbmips/include/ |
| yamon.h | 58 #define YAMON_FUNC(ofs) ((intptr_t)*(int32_t *)(MIPS_PHYS_TO_KSEG0(ofs)))
|
| /src/sys/dev/ic/ |
| bwivar.h | 804 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ 805 bwi_memobj_write_2((mac), (objid), (ofs), (val)) 806 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ 807 bwi_memobj_write_4((mac), (objid), (ofs), (val)) 808 #define MOBJ_READ_2(mac, objid, ofs) \ 809 bwi_memobj_read_2((mac), (objid), (ofs)) 810 #define MOBJ_READ_4(mac, objid, ofs) \ 811 bwi_memobj_read_4((mac), (objid), (ofs)) 813 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ 814 MOBJ_WRITE_4((mac), (objid), (ofs), \ [all...] |
| /src/sbin/gpt/ |
| migrate.c | 179 off_t ofs, rawofs; local 202 ofs = le32toh(dl->d_partitions[i].p_offset) * 204 if (ofs < rawofs) 224 ofs = (le32toh(dl->d_partitions[i].p_offset) * 226 ofs = (ofs > 0) ? ofs - rawofs : 0; 227 ent->ent_lba_start = htole64((uint64_t)ofs); 228 ent->ent_lba_end = htole64((uint64_t)(ofs +
|
| /src/sys/arch/hpcmips/tx/ |
| txcom.c | 310 int slot, ofs; local 315 ofs = TX39_UARTCTRL1_REG(slot); 323 tx_conf_write(tc, ofs, 0); 331 int slot, ofs, timeout; local 335 ofs = TX39_UARTCTRL1_REG(slot); 355 reg = tx_conf_read(tc, ofs); 357 tx_conf_write(tc, ofs, reg); 360 reg = tx_conf_read(tc, ofs); 363 tx_conf_write(tc, ofs, reg); 367 while(!(tx_conf_read(tc, ofs) & TX39_UARTCTRL1_UARTON) & 408 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot); local 424 int ofs; local 445 int ofs, c, s; local 495 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot); local 538 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot); local [all...] |
| tx39icu.c | 352 int ofs; local 357 ofs = TX39_INTRSTATUS_REG(i); 361 tx_conf_write(tc, ofs, reg); 442 int i, pri, ofs, set; local 466 ofs = TX39_INTRSTATUS_REG(set); 468 tx_conf_write(tc, ofs, he_mask); 554 int bit, set, highpri, ofs; local 572 ofs = TX39_INTRENABLE_REG(set); 573 reg = tx_conf_read(tc, ofs); 575 tx_conf_write(tc, ofs, reg) 586 int set, bit, highpri, ofs; local 726 int i, j, ofs; local [all...] |
| /src/sys/arch/hpcsh/dev/hd64465/ |
| hd64465uart.c | 202 hd64465uart_read_1(void *t, bus_space_handle_t h, bus_size_t ofs) 205 return *(volatile uint8_t *)(h + (ofs << 1)); 209 hd64465uart_write_1(void *t, bus_space_handle_t h, bus_size_t ofs, 213 *(volatile uint8_t *)(h + (ofs << 1)) = val;
|
| /src/sys/arch/mac68k/nubus/ |
| nubus.c | 334 u_long ofs, hdr; local 354 ofs = NBMEMSIZE; 358 ofs--; 360 if (!mac68k_bus_space_probe(bst, bsh, ofs, 1)) { 364 if (bus_space_read_1(bst, bsh, ofs) == 539 u_long ofs) 541 return bus_space_read_1(bst, bsh, ofs); 548 u_long ofs) 552 s = (nubus_read_1(bst, bsh, lanes, ofs) << 8); 553 ofs = nubus_adjust_ptr(lanes, ofs, 1) [all...] |