Searched refs:maxSize (Results 1 - 25 of 79) sorted by last modified time

1234

/haiku/src/system/kernel/vm/
H A Dvm.cpp5651 size_t maxSize = size;
5652 if ((addr_t)from + maxSize < (addr_t)from)
5653 maxSize -= (addr_t)from + maxSize;
5654 if (IS_USER_ADDRESS(from) && !IS_USER_ADDRESS((addr_t)from + maxSize))
5655 maxSize = USER_TOP - (addr_t)from;
5657 if (!validate_memory_range(to, maxSize))
5660 ssize_t result = arch_cpu_user_strlcpy(to, from, maxSize);
5665 if ((size_t)result >= maxSize && maxSize < siz
[all...]
/haiku/src/kits/locale/
H A DNumberFormat.cpp39 size_t maxSize, const double value);
160 size_t maxSize, const double value)
167 return strlcpy(string, fullString.String(), maxSize);
220 BNumberFormat::Format(char* string, size_t maxSize, const double value) argument
227 return strlcpy(string, fullString.String(), maxSize);
251 BNumberFormat::Format(char* string, size_t maxSize, const int32 value) argument
258 return strlcpy(string, fullString.String(), maxSize);
305 BNumberFormat::FormatMonetary(char* string, size_t maxSize, const double value) argument
308 fPrivateData->GetCurrency(&fConventions), string, maxSize, value);
321 BNumberFormat::FormatPercent(char* string, size_t maxSize, cons argument
159 ApplyFormatter(NumberFormat* formatter, char* string, size_t maxSize, const double value) argument
[all...]
/haiku/headers/os/locale/
H A DNumberFormat.h27 ssize_t Format(char* string, size_t maxSize, const double value);
29 ssize_t Format(char* string, size_t maxSize, const int32 value);
34 ssize_t FormatMonetary(char* string, size_t maxSize, const double value);
37 ssize_t FormatPercent(char* string, size_t maxSize, const double value);
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DBPlusTree.cpp2422 int32 maxSize; local
2427 maxSize = NUM_FRAGMENT_VALUES;
2431 maxSize = NUM_DUPLICATE_VALUES;
2435 if (arrayCount < minSize || arrayCount > maxSize) {
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DDirectoryIterator.cpp358 uint32 maxSize = _MaxSize(); local
366 if (fDisplacement == maxSize) {
370 } else if (fDisplacement > maxSize) {
457 uint32 maxSize = _MaxSize(); local
459 uint16 bestPos = maxSize;
460 uint16 bestLength = maxSize;
461 uint16 bestRealLength = maxSize;
464 while (pos < maxSize) {
492 if (bestPos == maxSize)
561 uint32 maxSize local
857 uint32 maxSize = fBlockSize; local
924 uint32 maxSize = fBlockSize; local
[all...]
/haiku/src/system/kernel/debug/
H A Ddebug.cpp1998 size_t maxSize = std::min((addr_t)size,
2007 debug_strlcpy_parameters parameters = {to, from, maxSize};
2013 if (parameters.result >= maxSize && maxSize < size)
2023 while (maxSize > 0) {
2025 size_t toCopy = std::min(maxSize, sizeof(buffer));
2046 maxSize -= length;
/haiku/src/system/kernel/cache/
H A Dfile_map.cpp531 off_t maxSize = -1; local
534 maxSize = parse_expression(argv[1]);
537 maxSize = parse_expression(argv[2]);
550 if (minSize > map->Size() || (maxSize != -1 && maxSize < map->Size()))
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp368 get_next_check_sum_offset(int32 index, off_t maxSize) argument
377 return (maxSize >> 10) + index * 2048;
380 return ((system_time() + index) % (maxSize >> 9)) * 512;
/haiku/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp318 get_next_check_sum_offset(int32 index, off_t maxSize) argument
327 return (maxSize >> 10) + index * 2048;
330 return ((system_time() + index) % (maxSize >> 9)) * 512;
/haiku/src/kits/media/
H A DMediaRoster.cpp3415 BMediaRoster::MediaFlags(media_flags cap, void* buffer, size_t maxSize) argument
/haiku/src/apps/cortex/addons/common/
H A DAudioFilterNode.cpp1429 size_t maxSize = max_c( local
1435 maxSize, 1);
1439 maxSize, -1);
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/
H A DVolume.cpp4698 off_t maxSize = std::min((off_t)size, local
4701 vecs[vecCount].length = maxSize;
4703 size -= maxSize;
/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dkernel_interface.cpp1700 off_t maxSize = inode->Size() + sizeof(wav_header);
1701 if (offset >= maxSize) {
1716 if (offset + (off_t)length > maxSize)
1717 length = maxSize - offset;
/haiku/src/kits/interface/
H A DLayoutUtils.cpp160 // to the available size specified by maxSize.
162 BLayoutUtils::AlignInFrame(BRect frame, BSize maxSize, BAlignment alignment) argument
165 if (maxSize.width < frame.Width()
167 frame.left += (int)((frame.Width() - maxSize.width)
169 frame.right = frame.left + maxSize.width;
171 if (maxSize.height < frame.Height()
173 frame.top += (int)((frame.Height() - maxSize.height)
175 frame.bottom = frame.top + maxSize.height;
186 BSize maxSize = view->MaxSize(); local
191 if (maxSize
[all...]
H A DWindow.cpp1439 BSize maxSize = fTopView->MaxSize(); local
1440 SetSizeLimits(minSize.width, maxSize.width,
1441 minSize.height, maxSize.height);
/haiku/src/system/kernel/
H A Dheap.cpp1816 size_t maxSize = 0; local
1820 maxSize = bin->element_size;
1827 maxSize = heap->page_size;
1836 maxSize += heap->page_size;
1847 if (newSize > minSize && newSize <= maxSize) {
1851 + maxSize - sizeof(heap_leak_check_info));
1875 memcpy(*newAddress, address, min_c(maxSize, newSize));
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_disk/
H A Dscsi_disk.cpp206 uint64 maxSize = device->capacity - blockRanges[i].lba; local
207 blockRanges[i].size = min_c(blockRanges[i].size, maxSize);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DClientConnection.cpp1327 int32 bufferSize = request->maxSize;
/haiku/src/kits/tracker/infowindow/
H A DFilePermissionsView.cpp125 BSize ownerRightLabelSize, groupRightLabelSize, maxSize; local
130 maxSize.width = std::max(ownerRightLabelSize.width,
132 maxSize.width = std::max(maxSize.width,
135 maxSize.height = std::max(ownerRightLabel->ExplicitSize().height,
137 maxSize.height = std::max(maxSize.height,
142 ownerRightLabel->SetExplicitSize(maxSize);
143 groupRightLabel->SetExplicitSize(maxSize);
144 otherRightLabel->SetExplicitSize(maxSize);
[all...]
/haiku/src/tools/fs_shell/
H A Dunistd.cpp73 get_partition_size(int fd, off_t maxSize) argument
77 off_t upper = maxSize;
/haiku/src/kits/shared/
H A DStatusView.cpp16 float maxSize = be_control_look->GetScrollBarWidth(); local
31 if (currentSize > maxSize)
/haiku/src/tests/apps/partitioner/
H A DPartitioner.cpp559 off_t maxSize = spaceOffset + spaceSize - start; local
562 get_size_string(maxSize, maxSizeString);
565 if (!_ReadSize(prompt.String(), maxSize, size))
/haiku/src/kits/network/libnetservices2/
H A DHttpBuffer.h31 std::optional<size_t> maxSize = std::nullopt);
33 std::optional<size_t> maxSize = std::nullopt);
35 std::optional<size_t> maxSize = std::nullopt);
H A DHttpBuffer.cpp44 HttpBuffer::ReadFrom(BDataIO* source, std::optional<size_t> maxSize) argument
52 if (maxSize && maxSize.value() < remainingBufferSize)
53 remainingBufferSize = maxSize.value();
87 HttpBuffer::WriteTo(HttpTransferFunction func, std::optional<size_t> maxSize) argument
93 if (maxSize.has_value() && *maxSize < size)
94 size = *maxSize;
/haiku/src/add-ons/kernel/drivers/input/hid_shared/
H A DHIDParser.cpp441 size_t maxSize = 0; local
450 if (report->ReportSize() > maxSize)
451 maxSize = report->ReportSize();
455 maxSize++;
457 return maxSize;

Completed in 188 milliseconds

1234