| /src/external/bsd/nvi/dist/common/ |
| options.awk | 6 ofs = FS 10 FS=ofs
|
| /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...] |
| /src/external/bsd/nsd/dist/compat/ |
| b64_pton.c | 174 uint8_t ofs; local 182 ofs = b64rmap[ch]; 184 if (ofs >= b64rmap_special) { 186 if (ofs == b64rmap_space) 189 if (ofs == b64rmap_end) 199 target[tarindex] = ofs << 2; 205 target[tarindex] |= ofs >> 4; 206 target[tarindex+1] = (ofs & 0x0f) 214 target[tarindex] |= ofs >> 2; 215 target[tarindex+1] = (ofs & 0x03 291 uint8_t ofs; local [all...] |
| /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/external/bsd/nsd/dist/simdzone/src/generic/ |
| base32.h | 67 const uint8_t ofs = b32rmap[(uint8_t)*p]; local 69 if (ofs >= b32rmap_special) 74 *rdata->octets = (uint8_t)(ofs << 3); 78 *rdata->octets++ |= (uint8_t)(ofs >> 2); 79 *rdata->octets = (uint8_t)(ofs << 6); 83 *rdata->octets |= (uint8_t)(ofs << 1); 87 *rdata->octets++ |= (uint8_t)(ofs >> 4); 88 *rdata->octets = (uint8_t)(ofs << 4); 92 *rdata->octets++ |= (uint8_t)(ofs >> 1); 93 *rdata->octets = (uint8_t)(ofs << 7) [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/external/bsd/libpcap/dist/msdos/ |
| pktdrvr.c | 363 static char pktStr[9] = "PKT DRVR"; /* ASCIIZ string at ofs 3 */ 828 WORD ofs = _farpeekw (_dos_ds, realBase+rxOutOfs); local 830 if (ofs != _farpeekw (_dos_ds, realBase+rxInOfs)) 835 head.firstCount = _farpeekw (_dos_ds, realBase+ofs); 836 head.secondCount = _farpeekw (_dos_ds, realBase+ofs+2); 837 head.handle = _farpeekw (_dos_ds, realBase+ofs+4); 843 dosmemget (realBase+ofs+6, len, buf); 848 ofs += sizeof (RX_ELEMENT); 849 if (ofs > LAST_RX_BUF) 851 else _farpokew (_dos_ds, realBase+rxOutOfs, ofs); 859 WORD ofs; local 894 WORD ofs = *(WORD*) (realBase+rxOutOfs); local 925 WORD ofs; local 1246 unsigned sel, ofs; local [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...] |