Searched refs:newSize (Results 76 - 100 of 110) sorted by relevance

12345

/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dwrite_support.cpp150 off_t newSize = *size; local
152 if (newSize == partition->size)
155 if (newSize < 0)
156 newSize = 0;
158 newSize = sector_align(newSize, partition->block_size);
161 if (newSize > partition->size) {
162 *size = newSize;
168 // TODO: shouldn't be just: off_t currentEnd = newSize; ??? probably not
170 off_t currentEnd = partition->offset + newSize;
[all...]
/haiku/src/apps/diskprobe/
H A DDataEditor.cpp1014 off_t newSize = fSize; local
1023 newSize = 0;
1025 newSize = info.size;
1029 if (fFile.GetSize(&newSize) != B_OK)
1033 if (fSize != newSize) {
1034 fSize = newSize;
1038 update.AddInt64("file_size", newSize);
/haiku/headers/private/net/
H A Dnet_buffer.h67 status_t (*trim)(net_buffer* buffer, size_t newSize);
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DNode.cpp108 Node::Resize(uint64 newSize, bool fillWithZeroes, Transaction& transaction) argument
H A DNode.h41 virtual status_t Resize(uint64 newSize, bool fillWithZeroes,
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DNode.h59 virtual status_t SetSize(off_t newSize) = 0;
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DIndex.cpp340 off_t newSize = inode->Size(); local
343 (uint8*)&oldSize, sizeof(int64), (uint8*)&newSize, sizeof(int64),
H A DInode.cpp104 Resize(Inode* inode, off_t oldSize, off_t newSize, bool trim) argument
109 fNewSize(newSize),
1669 Inode::FillGapWithZeros(off_t pos, off_t newSize) argument
1671 while (pos < newSize) {
1673 if (newSize > pos + 1024 * 1024 * 1024)
1676 size = newSize - pos;
H A DInode.h151 status_t FillGapWithZeros(off_t oldSize, off_t newSize);
/haiku/src/system/kernel/vm/
H A DVMCache.cpp1171 VMCache::Resize(off_t newSize, int priority) argument
1173 TRACE(("VMCache::Resize(cache %p, newSize %" B_PRIdOFF ") old size %"
1174 B_PRIdOFF "\n", this, newSize, this->virtual_end));
1177 T(Resize(this, newSize));
1179 status_t status = Commit(newSize - virtual_base, priority);
1185 page_num_t newPageCount = (page_num_t)((newSize + B_PAGE_SIZE - 1)
1195 virtual_end = newSize;
H A Dvm.cpp5328 vm_resize_area(area_id areaID, size_t newSize, bool kernel) argument
5330 // is newSize a multiple of B_PAGE_SIZE?
5331 if (newSize & (B_PAGE_SIZE - 1))
5367 if (newSize == oldSize)
5373 if (oldSize < newSize) {
5377 if (!current->address_space->CanResizeArea(current, newSize))
5391 current->Base() + newSize, oldSize - newSize, &locker,
5407 if (oldSize < newSize) {
5409 status = cache->Resize(cache->virtual_base + newSize, priorit
6340 resize_area(area_id areaID, size_t newSize) argument
6575 _user_resize_area(area_id area, size_t newSize) argument
[all...]
H A DVMAnonymousCache.cpp583 VMAnonymousCache::Resize(off_t newSize, int priority) argument
586 if (fNoSwapPages->Resize(PAGE_ALIGN(newSize) >> PAGE_SHIFT) != B_OK)
590 _FreeSwapPageRange(newSize + B_PAGE_SIZE - 1,
592 return VMCache::Resize(newSize, priority);
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_buffer.cpp159 static status_t trim_data(net_buffer* _buffer, size_t newSize);
1885 /*! Trims the buffer to the specified \a newSize by removing space from
1889 trim_data(net_buffer* _buffer, size_t newSize) argument
1892 TRACE(("%d: trim_data(buffer %p, newSize = %ld, buffer size = %" B_PRIu32 ")\n",
1893 find_thread(NULL), buffer, newSize, buffer->size));
1894 T(Trim(buffer, newSize));
1899 if (newSize > buffer->size)
1901 if (newSize == buffer->size)
1904 data_node* node = get_node_at_offset(buffer, newSize);
1910 int32 diff = node->used + node->offset - newSize;
[all...]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A Dext2.h642 void SetSize(off_t newSize) argument
644 size = B_HOST_TO_LENDIAN_INT32(newSize & 0xFFFFFFFF);
646 size_high = B_HOST_TO_LENDIAN_INT32(newSize >> 32);
666 void SetExtraInodeSize(uint16 newSize) argument
668 extra_inode_size = B_HOST_TO_LENDIAN_INT16(newSize);
/haiku/src/apps/serialconnect/
H A DTermView.cpp185 VTermRect newSize = _PixelsToGlyphs(BRect(0, 0, width - 2 * kBorderSpacing, local
187 vterm_set_size(fTerm, newSize.end_row, newSize.end_col);
/haiku/src/system/kernel/cache/
H A Dfile_cache.cpp1253 file_cache_set_size(void* _cacheRef, off_t newSize) argument
1257 TRACE(("file_cache_set_size(ref = %p, size = %lld)\n", ref, newSize));
1266 status_t status = cache->Resize(newSize, VM_PRIORITY_USER);
1269 if (status == B_OK && newSize < oldSize) {
1272 uint32 partialBytes = newSize % B_PAGE_SIZE;
1274 vm_page* page = cache->LookupPage(newSize - partialBytes);
/haiku/src/bin/rc/
H A Dparser.y688 resize_data(data_t data, size_t newSize)
690 if (newSize == 0) {
691 abort_compile(RDEF_COMPILE_ERR, "invalid size %lu", newSize);
692 } else if (data.size != newSize) {
693 void* newBuffer = alloc_mem(newSize);
695 memset(newBuffer, 0, newSize);
696 memcpy(newBuffer, data.ptr, min(data.size, newSize));
699 ((char*)newBuffer)[newSize - 1] = '\0';
703 data.size = newSize;
/haiku/headers/posix/
H A Dunistd.h360 extern int ftruncate(int fd, off_t newSize);
361 extern int truncate(const char *path, off_t newSize);
H A Dstdlib.h53 extern void *realloc(void *oldPointer, size_t newSize);
/haiku/headers/private/kernel/vm/
H A Dvm.h185 status_t _user_resize_area(area_id area, size_t newSize);
H A DVMCache.h133 virtual status_t Resize(off_t newSize, int priority);
/haiku/src/system/kernel/fs/
H A Dvfs.cpp3655 resize_monitor_table(struct io_context* context, const int newSize) argument
3659 if (newSize <= 0 || newSize > MAX_NODE_MONITORS)
3664 if ((size_t)newSize < context->num_monitors) {
3668 context->max_monitors = newSize;
5041 vfs_resize_fd_table(struct io_context* context, uint32 newSize) argument
5043 if (newSize == 0 || newSize > MAX_FD_TABLE_SIZE)
5046 TIOC(ResizeIOContext(context, newSize));
5052 int newCloseOnExitBitmapSize = (newSize
[all...]
/haiku/src/apps/mediaplayer/
H A DMainWin.cpp2067 int newSize = percent * (100 + percentDiff) / 100; local
2069 if (newSize < 25)
2070 newSize = 25;
2071 if (newSize > 400)
2072 newSize = 400;
2073 if (newSize != percent) {
2075 message.AddInt32("size", newSize);
/haiku/src/build/libroot/
H A Dfs.cpp1475 _haiku_build_ftruncate(int fd, off_t newSize) argument
1478 return ftruncate(fd, newSize);
1481 st.st_size = newSize;
/haiku/src/kits/interface/
H A DTextControl.cpp1208 BSize newSize(Bounds().Size());
1212 if (newSize != oldSize)

Completed in 571 milliseconds

12345