HomeSort by: relevance | last modified time | path
    Searched refs:ofs (Results 1 - 25 of 73) sorted by relevancy

1 2 3

  /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 in function:HttpFile::read
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 in function:opti82c700_get_intr
201 if (opti82c700_addr(clink, &addrofs, &ofs))
205 val = (reg >> ofs) & FIRESTAR_CFG_PIRQ_MASK;
217 int addrofs, ofs; local in function:opti82c700_set_intr
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 in function:opti82c700_get_trigger
284 int i, val, addrofs, ofs; local in function:opti82c700_set_trigger
    [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 in function:_citrus_db_factory_serialize
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 in function:tmp_node_compare_key
94 return (tdi->tmpnode->node->ofs - ofs);
112 return (frag1->ofs - frag2->ofs);
119 uint64_t ofs = *(const uint64_t *)key; local in function:frag_compare_key
121 return (frag->ofs - ofs);
147 uint64_t ofs; local in function:chfs_check_td_data
1102 off_t ofs; local in function:chfs_read_data
    [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 in function:chfs_scan_eraseblock
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 in function:pci_get_capability
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 in function:pci_get_ht_capability
652 unsigned int ofs; local in function:pci_get_ext_capability
870 int ofs, i, j; local in function:pci_vpd_read
906 int ofs, i, j; local in function:pci_vpd_write
    [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 in function:v7fs_inode_load
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 in function:v7fs_inode_writeback
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 in function:v7fs_inode_inquire_disk_location
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 801 #define MOBJ_WRITE_2(mac, objid, ofs, val) \
802 bwi_memobj_write_2((mac), (objid), (ofs), (val))
803 #define MOBJ_WRITE_4(mac, objid, ofs, val) \
804 bwi_memobj_write_4((mac), (objid), (ofs), (val))
805 #define MOBJ_READ_2(mac, objid, ofs) \
806 bwi_memobj_read_2((mac), (objid), (ofs))
807 #define MOBJ_READ_4(mac, objid, ofs) \
808 bwi_memobj_read_4((mac), (objid), (ofs))
810 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \
811 MOBJ_WRITE_4((mac), (objid), (ofs), \
    [all...]
  /src/sbin/gpt/
migrate.c 176 off_t ofs, rawofs; local in function:migrate_disklabel
199 ofs = le32toh(dl->d_partitions[i].p_offset) *
201 if (ofs < rawofs)
221 ofs = (le32toh(dl->d_partitions[i].p_offset) *
223 ofs = (ofs > 0) ? ofs - rawofs : 0;
224 ent->ent_lba_start = htole64((uint64_t)ofs);
225 ent->ent_lba_end = htole64((uint64_t)(ofs +
  /src/sys/arch/hpcmips/tx/
txcom.c 310 int slot, ofs; local in function:txcom_reset
315 ofs = TX39_UARTCTRL1_REG(slot);
323 tx_conf_write(tc, ofs, 0);
331 int slot, ofs, timeout; local in function:txcom_enable
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 in function:__txcom_txbufready
424 int ofs; local in function:txcom_pulse_mode
445 int ofs, c, s; local in function:txcom_cngetc
495 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot); local in function:txcom_setmode
538 int ofs = TX39_UARTCTRL1_REG(chip->sc_slot); local in function:txcom_setbaudrate
    [all...]
tx39icu.c 352 int ofs; local in function:TX_INTR
357 ofs = TX39_INTRSTATUS_REG(i);
361 tx_conf_write(tc, ofs, reg);
442 int i, pri, ofs, set; local in function:tx39_irqhigh_intr
466 ofs = TX39_INTRSTATUS_REG(set);
468 tx_conf_write(tc, ofs, he_mask);
554 int bit, set, highpri, ofs; local in function:tx_intr_establish
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 in function:tx_intr_disestablish
726 int i, j, ofs; local in function:tx39_intr_dump
    [all...]
  /src/sys/arch/mac68k/nubus/
nubus.c 334 u_long ofs, hdr; local in function:nubus_probe_slot
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...]
  /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;

Completed in 21 milliseconds

1 2 3