Searched refs:offset (Results 51 - 75 of 1236) sorted by relevance

1234567891011>>

/haiku/src/apps/debugger/user_interface/cli/commands/
H A DCliDumpStringCommand.cpp72 target_addr_t offset = address; local
74 while (block->Contains(offset)) {
75 c = *(block->Data() + offset - block->BaseAddress());
89 ++offset;
/haiku/src/kits/package/hpkg/
H A DPackageData.cpp31 BPackageData::SetData(uint64 size, uint64 offset) argument
34 fOffset = offset;
/haiku/headers/libs/libfdt/
H A Dlibfdt_internal.h21 int fdt_check_node_offset_(const void *fdt, int offset);
22 int fdt_check_prop_offset_(const void *fdt, int offset);
26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) argument
28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset;
31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) argument
33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset);
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A De1000_osdep.c77 u32 offset; local
79 pci_find_cap(dev, PCIY_EXPRESS, &offset);
80 *value = pci_read_config(dev, offset + reg, 2);
91 u32 offset; local
93 pci_find_cap(dev, PCIY_EXPRESS, &offset);
94 pci_write_config(dev, offset + reg, *value, 2);
/haiku/src/system/kernel/cache/
H A Dvnode_store.h21 virtual bool HasPage(off_t offset);
23 virtual status_t Read(off_t offset, const generic_io_vec* vecs,
26 virtual status_t Write(off_t offset, const generic_io_vec* vecs,
29 virtual status_t WriteAsync(off_t offset,
33 virtual bool CanWritePage(off_t offset);
36 off_t offset);
H A Dfile_map.cpp54 off_t offset; member in struct:file_extent
72 void Invalidate(off_t offset, off_t size);
75 status_t Translate(off_t offset, size_t size,
88 file_extent* _FindExtent(off_t offset, uint32* _index);
92 status_t _Cache(off_t offset, off_t size);
93 void _InvalidateAfter(off_t offset);
157 FileMap::_FindExtent(off_t offset, uint32 *_index) argument
166 if (extent->offset > offset) {
169 } else if (extent->offset
238 off_t offset = 0; local
292 _InvalidateAfter(off_t offset) argument
313 Invalidate(off_t offset, off_t size) argument
350 _Cache(off_t offset, off_t size) argument
407 Translate(off_t offset, size_t size, file_io_vec* vecs, size_t* _count, size_t align) argument
642 file_map_invalidate(void* _map, off_t offset, off_t size) argument
664 file_map_translate(void* _map, off_t offset, size_t size, file_io_vec* vecs, size_t* _count, size_t align) argument
[all...]
H A Dvnode_store.cpp38 VMVnodeCache::HasPage(off_t offset) argument
40 return ROUNDUP(offset, B_PAGE_SIZE) >= virtual_base
41 && offset < virtual_end;
46 VMVnodeCache::Read(off_t offset, const generic_io_vec* vecs, size_t count, argument
51 status_t status = vfs_read_pages(fVnode, NULL, offset, vecs, count,
56 if (offset + (off_t)bytesEnd > virtual_end)
57 bytesEnd = virtual_end - offset;
86 VMVnodeCache::Write(off_t offset, const generic_io_vec* vecs, size_t count, argument
89 return vfs_write_pages(fVnode, NULL, offset, vecs, count, flags, _numBytes);
94 VMVnodeCache::WriteAsync(off_t offset, cons argument
103 Fault(struct VMAddressSpace* aspace, off_t offset) argument
114 CanWritePage(off_t offset) argument
[all...]
/haiku/src/bin/debug/strace/
H A DContext.cpp47 int offset = len - min_c(len, bytes * 2); local
50 if (offset <= 2) {
51 offset = 0;
53 tmp[--offset] = 'x';
54 tmp[--offset] = '0';
57 return tmp + offset;
/haiku/src/tools/fs_shell/
H A Dfile_cache.cpp60 fssh_off_t offset, int32_t pageOffset, fssh_addr_t buffer,
83 read_from_file(file_cache_ref *ref, void *cookie, fssh_off_t offset, argument
93 offset + pageOffset, &vec, 1, &bufferSize);
102 write_to_file(file_cache_ref *ref, void *cookie, fssh_off_t offset, argument
112 offset + pageOffset, &vec, 1, &bufferSize);
122 fssh_off_t offset, fssh_addr_t buffer, int32_t &pageOffset,
136 lastOffset = offset;
145 cache_io(void *_cacheRef, void *cookie, fssh_off_t offset, fssh_addr_t buffer, argument
154 TRACE(("cache_io(ref = %p, offset = %lld, buffer = %p, size = %u, %s)\n",
155 ref, offset, (voi
121 satisfy_cache_io(file_cache_ref *ref, void *cookie, cache_func function, fssh_off_t offset, fssh_addr_t buffer, int32_t &pageOffset, fssh_size_t bytesLeft, fssh_off_t &lastOffset, fssh_addr_t &lastBuffer, int32_t &lastPageOffset, fssh_size_t &lastLeft) argument
337 fssh_file_cache_read(void *_cacheRef, void *cookie, fssh_off_t offset, void *bufferBase, fssh_size_t *_size) argument
350 fssh_file_cache_write(void *_cacheRef, void *cookie, fssh_off_t offset, const void *buffer, fssh_size_t *_size) argument
[all...]
/haiku/src/tools/remote_disk_server/
H A Dremote_disk_server.cpp183 reply.offset = htonll(fImageSize);
195 uint64_t offset = ntohll(fRequest->offset); local
199 printf("READ request: offset: %" PRIu64 ", %hd bytes\n", offset, size);
201 if (offset < (uint64_t)fImageSize && size > 0) {
204 if (offset + size > (uint64_t)fImageSize)
205 size = fImageSize - offset;
207 // seek to the offset
208 off_t oldOffset = lseek(fImageFD, offset, SEEK_SE
238 uint64_t offset = ntohll(fRequest->offset); local
[all...]
/haiku/src/tests/system/kernel/cache/
H A Dpages_io_test.cpp36 off_t offset; member in struct:file_extent
110 off_t offset = 0; local
127 offset = extent->offset + extent->disk.length;
137 extent->offset = offset;
140 offset += extent->disk.length;
146 dprintf(" [%ld] extend offset %lld, disk offset %lld, length %lld\n",
147 i, extent->offset, exten
209 off_t offset = va_arg(args, int32); local
227 find_map_base(off_t offset, off_t &diskOffset, off_t &diskLength, off_t &fileOffset) argument
251 vfs_get_file_map(void *vnode, off_t offset, size_t size, file_io_vec *vecs, size_t *_count) argument
296 vfs_read_pages(void *device, void *cookie, off_t offset, const iovec *vecs, size_t count, size_t *bytes, bool kernel) argument
309 vfs_write_pages(void *device, void *cookie, off_t offset, const iovec *vecs, size_t count, size_t *bytes, bool kernel) argument
325 find_file_extent(file_cache_ref *ref, off_t offset, uint32 *_index) argument
345 get_file_map(file_cache_ref *ref, off_t offset, size_t size, file_io_vec *vecs, size_t *_count) argument
445 pages_io(file_cache_ref *ref, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes, bool doWrite) argument
654 off_t offset = 4999; local
[all...]
/haiku/src/add-ons/kernel/busses/pci/x86/
H A DX86PCIController.cpp20 #define PCI_MECH1_REQ_DATA(bus, device, func, offset) \
21 (0x80000000 | (bus << 16) | (device << 11) | (func << 8) | (offset & ~3))
25 #define PCI_MECH2_CONFIG_PORT(dev, offset) \
26 (uint16)(0xC00 | (dev << 8) | offset)
190 uint16 offset, uint8 size, uint32 &value)
192 if (offset > 0xff)
196 out32(PCI_MECH1_REQ_DATA(bus, device, function, offset), PCI_MECH1_REQ_PORT);
199 value = in8(PCI_MECH1_DATA_PORT + (offset & 3));
202 value = in16(PCI_MECH1_DATA_PORT + (offset & 3));
218 uint16 offset, uint
188 ReadConfig( uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 &value) argument
216 WriteConfig( uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 value) argument
271 ReadConfig( uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 &value) argument
301 WriteConfig( uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 value) argument
367 ReadConfig( uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 &value) argument
382 WriteConfig( uint8 bus, uint8 device, uint8 function, uint16 offset, uint8 size, uint32 value) argument
[all...]
/haiku/src/add-ons/print/drivers/lpstyl/
H A DLpstyl.cpp40 LpstylDriver::NextBand(BBitmap* bitmap, BPoint* offset) argument
42 fprintf(stderr, "Next band at %f %f\n", offset->x, offset->y);
47 offset->y += bitmap->Bounds().Height();
50 if (offset->y >= page_height)
52 offset->y = -1;
53 offset->x = -1;
/haiku/src/apps/mediaplayer/interface/
H A DPlayPauseButton.cpp60 BPoint offset; local
62 offset.x = (bounds.left + bounds.right) / 2;
63 offset.y = (bounds.top + bounds.bottom) / 2;
64 offset.x -= (pauseBounds.Width() + playBounds.Width() + spacing) / 2;
65 offset.y -= pauseBounds.Height() / 2;
66 offset.x = floorf(offset.x - playBounds.left + 0.5);
67 offset.y = ceilf(offset.y - pauseBounds.top);
69 offset
[all...]
/haiku/src/add-ons/accelerants/radeon_hd/
H A Daccelerant.h222 _read32(uint32 offset) argument
224 return *(volatile uint32*)(gInfo->regs + offset);
229 _write32(uint32 offset, uint32 value) argument
231 *(volatile uint32 *)(gInfo->regs + offset) = value;
237 Read32Cail(uint32 offset) argument
239 return _read32(offset * 4);
244 Write32Cail(uint32 offset, uint32 value) argument
246 _write32(offset * 4, value);
251 Read32(uint32 subsystem, uint32 offset) argument
259 return _read32(offset);
267 Write32(uint32 subsystem, uint32 offset, uint32 value) argument
285 Write32Mask(uint32 subsystem, uint32 offset, uint32 value, uint32 mask) argument
[all...]
/haiku/src/kits/shared/
H A DJson.cpp785 size_t offset = 0; local
787 while (offset < expectedStringLength) {
791 if (c != expectedString[offset]) {
795 leadingChar, expectedString, c, offset);
801 offset++;
817 int32 offset = 0; local
820 if (offset < len && value[offset] == '-')
821 offset++;
823 if (offset >
[all...]
/haiku/src/kits/package/hpkg/v1/
H A DPackageDataReaderV1.cpp36 // maximum number of entries in the zlib offset table buffer
85 virtual status_t ReadData(off_t offset, void* buffer, size_t size) argument
90 if (offset < 0)
93 if ((uint64)offset > fSize || size > fSize - offset)
96 return fDataReader->ReadData(fOffset + offset, buffer, size);
99 virtual status_t ReadDataToOutput(off_t offset, size_t size, argument
105 if (offset < 0)
108 if ((uint64)offset > fSize || size > fSize - offset)
206 ReadDataToOutput(off_t offset, size_t size, BDataIO* output) argument
319 uint64 offset; local
[all...]
/haiku/src/system/boot/loader/
H A Dpager.cpp29 next_line(const PagerTextSource& textSource, size_t width, size_t offset, argument
32 size_t bytesRead = textSource.Read(offset, buffer, bufferSize - 1);
69 size_t offset = 0; local
72 size_t bytesRead = next_line(textSource, width, offset, buffer,
77 offset += bytesRead;
90 size_t offset = 0; local
94 return offset;
96 size_t bytesRead = next_line(textSource, width, offset, buffer,
101 offset += bytesRead;
105 return offset;
129 size_t offset = offset_of_line(textSource, width, lineBuffer, local
[all...]
/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.h47 virtual status_t Adopt(VMCache* source, off_t offset,
50 virtual status_t Discard(off_t offset, off_t size);
53 virtual bool HasPage(off_t offset);
54 virtual bool DebugHasPage(off_t offset);
60 virtual status_t Read(off_t offset, const generic_io_vec* vecs,
63 virtual status_t Write(off_t offset, const generic_io_vec* vecs,
66 virtual status_t WriteAsync(off_t offset,
70 virtual bool CanWritePage(off_t offset);
75 off_t offset);
/haiku/src/apps/mail/
H A DKUndoBuffer.h19 int32 offset, undo_type history,
50 int32 offset, undo_type history,
55 status_t Undo(char** text, int32* length, int32* offset,
58 status_t Redo(char** text, int32* length, int32* offset,
72 int32 offset, undo_type history,
/haiku/src/tests/kits/support/bmemoryio/
H A DMallocBufferLengthTest.cpp25 off_t offset; local
48 offset = mem.Seek(0, SEEK_END);
51 CPPUNIT_ASSERT(offset == 200);
54 offset = mem.Seek(0, SEEK_END);
58 CPPUNIT_ASSERT(mem.Position() == offset);
/haiku/src/system/kernel/arch/ppc/
H A Darch_real_time_clock.cpp59 arch_rtc_set_system_time_offset(struct real_time_data *data, bigtime_t offset) argument
65 data->arch_data.data[version % 2].system_time_offset = offset;
77 bigtime_t offset; local
80 offset = data->arch_data.data[version % 2].system_time_offset;
83 return offset;
/haiku/src/tests/kits/media/
H A DAreaTest.cpp31 ptrdiff_t offset; local
37 offset = (ptrdiff_t)ptr - (ptrdiff_t)adr;
52 ptrclone1 = (int *)(adrclone1 + offset);
53 ptrclone2 = (int *)(adrclone2 + offset);
56 CPPUNIT_ASSERT(offset >= 0);
/haiku/src/libs/libfdt/
H A Dfdt_check.c17 int offset, nextoffset = 0; local
39 offset = nextoffset;
40 tag = fdt_next_tag(fdt, offset, &nextoffset);
68 name = fdt_get_name(fdt, offset, &len);
83 prop = fdt_getprop_by_offset(fdt, offset, &propname,
H A Dfdt_wip.c73 int fdt_node_end_offset_(void *fdt, int offset) argument
77 while ((offset >= 0) && (depth >= 0))
78 offset = fdt_next_node(fdt, offset, &depth);
80 return offset;

Completed in 114 milliseconds

1234567891011>>