Home
last modified time | relevance | path

Searched refs:maxsize (Results 1 – 25 of 310) sorted by relevance

12345678910>>...13

/external/u-boot/cmd/
Dlegacy-mtd-utils.c11 loff_t *maxsize, int devtype) in get_part() argument
34 *maxsize = part->size; in get_part()
45 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() argument
48 return get_part(arg, idx, off, size, maxsize, devtype); in mtd_arg_off()
55 *maxsize = chipsize - *off; in mtd_arg_off()
56 *size = *maxsize; in mtd_arg_off()
61 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size() argument
69 *maxsize = *size; in mtd_arg_off_size()
73 ret = mtd_arg_off(argv[0], idx, off, size, maxsize, devtype, in mtd_arg_off_size()
86 if (*size > *maxsize) { in mtd_arg_off_size()
/external/linux-kselftest/tools/testing/selftests/kvm/s390x/
Dmemop.c37 int rv, i, maxsize; in main() local
41 maxsize = kvm_check_cap(KVM_CAP_S390_MEM_OP); in main()
42 if (!maxsize) { in main()
46 if (maxsize > sizeof(mem1)) in main()
47 maxsize = sizeof(mem1); in main()
59 ksmo.size = maxsize; in main()
77 ksmo.size = maxsize; in main()
83 TEST_ASSERT(!memcmp(mem1, mem2, maxsize), in main()
110 ksmo.size = maxsize; in main()
120 ksmo.size = maxsize; in main()
[all …]
/external/python/cpython2/Lib/
DQueue.py26 def __init__(self, maxsize=0): argument
27 self.maxsize = maxsize
28 self._init(maxsize)
103 n = 0 < self.maxsize == self._qsize()
120 if self.maxsize > 0:
122 if self._qsize() == self.maxsize:
125 while self._qsize() == self.maxsize:
131 while self._qsize() == self.maxsize:
197 def _init(self, maxsize): argument
218 def _init(self, maxsize): argument
[all …]
/external/python/cpython3/Lib/
Dqueue.py33 def __init__(self, maxsize=0): argument
34 self.maxsize = maxsize
35 self._init(maxsize)
119 return 0 < self.maxsize <= self._qsize()
133 if self.maxsize > 0:
135 if self._qsize() >= self.maxsize:
138 while self._qsize() >= self.maxsize:
144 while self._qsize() >= self.maxsize:
205 def _init(self, maxsize): argument
226 def _init(self, maxsize): argument
[all …]
Dfunctools.py486 def lru_cache(maxsize=128, typed=False): argument
511 if isinstance(maxsize, int):
513 if maxsize < 0:
514 maxsize = 0
515 elif callable(maxsize) and isinstance(typed, bool):
517 user_function, maxsize = maxsize, 128
518 wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
520 elif maxsize is not None:
525 wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
530 def _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo): argument
[all …]
/external/elfutils/libelf/
Delf_begin.c52 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, in file_read_ar() argument
58 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_ar()
75 int64_t offset, size_t maxsize) in get_shnum() argument
146 if (unlikely (ehdr.e32->e_shoff >= maxsize) in get_shnum()
147 || unlikely (maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr))) in get_shnum()
193 if (ehdr.e32->e_shoff > maxsize in get_shnum()
194 || maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr) * result) in get_shnum()
204 if (unlikely (ehdr.e64->e_shoff >= maxsize) in get_shnum()
205 || unlikely (ehdr.e64->e_shoff + sizeof (Elf64_Shdr) > maxsize)) in get_shnum()
260 if (ehdr.e64->e_shoff > maxsize in get_shnum()
[all …]
/external/pcre/dist2/src/
Dpcre2_jit_misc.c124 pcre2_jit_stack_create(size_t startsize, size_t maxsize, in pcre2_jit_stack_create() argument
131 (void)maxsize; in pcre2_jit_stack_create()
138 if (startsize < 1 || maxsize < 1) in pcre2_jit_stack_create()
140 if (startsize > maxsize) in pcre2_jit_stack_create()
141 startsize = maxsize; in pcre2_jit_stack_create()
143 maxsize = (maxsize + STACK_GROWTH_RATE - 1) & ~(STACK_GROWTH_RATE - 1); in pcre2_jit_stack_create()
147 jit_stack->stack = sljit_allocate_stack(startsize, maxsize, &jit_stack->memctl); in pcre2_jit_stack_create()
/external/eigen/test/
Dredux.cpp152 int maxsize = (std::min)(100,EIGEN_TEST_MAX_SIZE); in test_redux() local
153 TEST_SET_BUT_UNUSED_VARIABLE(maxsize); in test_redux()
163 …UBTEST_4( matrixRedux(MatrixXcf(internal::random<int>(1,maxsize), internal::random<int>(1,maxsize)… in test_redux()
164 …UBTEST_4( matrixRedux(ArrayXXcf(internal::random<int>(1,maxsize), internal::random<int>(1,maxsize)… in test_redux()
165 …UBTEST_5( matrixRedux(MatrixXd (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize)… in test_redux()
166 …UBTEST_5( matrixRedux(ArrayXXd (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize)… in test_redux()
167 …UBTEST_6( matrixRedux(MatrixXi (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize)… in test_redux()
168 …UBTEST_6( matrixRedux(ArrayXXi (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize)… in test_redux()
173 CALL_SUBTEST_5( vectorRedux(VectorXd(internal::random<int>(1,maxsize))) ); in test_redux()
174 CALL_SUBTEST_5( vectorRedux(ArrayXd(internal::random<int>(1,maxsize))) ); in test_redux()
[all …]
/external/u-boot/common/
Dmemsize.c26 long get_ram_size(long *base, long maxsize) in get_ram_size() argument
36 for (cnt = (maxsize / sizeof(long)) >> 1; cnt > 0; cnt >>= 1) { in get_ram_size()
55 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size()
63 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size()
74 cnt < maxsize / sizeof(long); in get_ram_size()
90 return (maxsize); in get_ram_size()
/external/libcups/cups/
Dtestppd.c157 maxsize, /* Maximum size */ in main() local
401 if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) in main()
404 fabs(maxsize.width - 1080.0) > 0.001 || fabs(maxsize.length - 86400.0) > 0.001) in main()
408 minsize.length, maxsize.width, maxsize.length); in main()
780 if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) in main()
783 fabs(maxsize.width - 1080.0) > 0.001 || fabs(maxsize.length - 86400.0) > 0.001) in main()
787 minsize.length, maxsize.width, maxsize.length); in main()
802 if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) in main()
805 fabs(maxsize.width - 1000.0) > 0.001 || fabs(maxsize.length - 1000.0) > 0.001) in main()
809 minsize.length, maxsize.width, maxsize.length); in main()
[all …]
/external/virglrenderer/src/gallium/auxiliary/tgsi/
Dtgsi_build.c398 unsigned maxsize ) in tgsi_build_full_declaration() argument
404 if( maxsize <= size ) in tgsi_build_full_declaration()
422 if (maxsize <= size) in tgsi_build_full_declaration()
436 if (maxsize <= size) { in tgsi_build_full_declaration()
450 if (maxsize <= size) { in tgsi_build_full_declaration()
466 if( maxsize <= size ) in tgsi_build_full_declaration()
485 if (maxsize <= size) { in tgsi_build_full_declaration()
502 if (maxsize <= size) { in tgsi_build_full_declaration()
521 if (maxsize <= size) { in tgsi_build_full_declaration()
597 unsigned maxsize ) in tgsi_build_full_immediate() argument
[all …]
Dtgsi_build.h64 unsigned maxsize );
78 unsigned maxsize );
92 unsigned maxsize );
109 unsigned maxsize );
/external/python/cpython3/Lib/test/
Dtest_range.py88 self.assertEqual(len(range(0, sys.maxsize, sys.maxsize-1)), 2)
90 r = range(-sys.maxsize, sys.maxsize, 2)
91 self.assertEqual(len(r), sys.maxsize)
120 a = int(10 * sys.maxsize)
121 b = int(100 * sys.maxsize)
122 c = int(50 * sys.maxsize)
160 a = -sys.maxsize
161 b = sys.maxsize
170 idx = sys.maxsize+1
179 b = 2 * sys.maxsize
[all …]
Dstring_tests.py119 self.checkequal(0, '', 'count', '', sys.maxsize, 0)
123 self.checkequal(0, '', 'count', 'xx', sys.maxsize, 0)
184 self.checkequal(-1, '', 'find', '', sys.maxsize, 0)
188 self.checkequal(-1, '', 'find', 'xx', sys.maxsize, 0)
191 self.checkequal(-1, 'ab', 'find', 'xxx', sys.maxsize + 1, 0)
264 self.checkequal(-1, 'ab', 'rfind', 'xxx', sys.maxsize + 1, 0)
355 if sys.maxsize < (1 << 32) and struct.calcsize('P') == 4:
357 '\ta\n\tb', 'expandtabs', sys.maxsize)
368 sys.maxsize-2)
389 sys.maxsize-10)
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_build.h62 unsigned maxsize );
76 unsigned maxsize );
90 unsigned maxsize );
107 unsigned maxsize );
Dtgsi_build.c410 unsigned maxsize ) in tgsi_build_full_declaration() argument
416 if( maxsize <= size ) in tgsi_build_full_declaration()
434 if (maxsize <= size) in tgsi_build_full_declaration()
448 if (maxsize <= size) { in tgsi_build_full_declaration()
462 if (maxsize <= size) { in tgsi_build_full_declaration()
478 if( maxsize <= size ) in tgsi_build_full_declaration()
497 if (maxsize <= size) { in tgsi_build_full_declaration()
514 if (maxsize <= size) { in tgsi_build_full_declaration()
533 if (maxsize <= size) { in tgsi_build_full_declaration()
609 unsigned maxsize ) in tgsi_build_full_immediate() argument
[all …]
/external/python/cpython3/Lib/asyncio/
Dqueues.py33 def __init__(self, maxsize=0, *, loop=None): argument
41 self._maxsize = maxsize
50 self._init(maxsize)
54 def _init(self, maxsize): argument
96 def maxsize(self): member in Queue
229 def _init(self, maxsize): argument
242 def _init(self, maxsize): argument
/external/python/cpython3/Lib/ctypes/test/
Dtest_arrays.py74 a[3::sys.maxsize] = (1,)
75 self.assertListEqual(a[3::sys.maxsize], [1])
77 a[3::sys.maxsize] = b"A"
78 self.assertEqual(a[3::sys.maxsize], b"A")
80 a[3::sys.maxsize] = u"X"
81 self.assertEqual(a[3::sys.maxsize], u"X")
191 _length_ = - sys.maxsize * 2
203 _length_ = sys.maxsize * 2
230 c_char * sys.maxsize * 2
232 @unittest.skipUnless(sys.maxsize > 2**32, 'requires 64bit platform')
/external/vboot_reference/utility/
Dchromeos-tpm-recovery-test105 maxsize=$(cat space.$index.size)
106 if [ $(($size > $maxsize)) -eq 1 ]; then
107 echo "size $size too large for space (max is $maxsize)"
118 maxsize=$(cat space.$index.size)
119 if [ $(($size > $maxsize)) -eq 1 ]; then
120 echo "size $size too large for space (max is $(($maxsize)))"
/external/boringssl/src/crypto/asn1/
Da_strnid.c144 tbl->minsize, tbl->maxsize); in ASN1_STRING_set_by_NID()
234 long minsize, long maxsize, unsigned long mask, in ASN1_STRING_TABLE_add() argument
254 tmp->minsize = tmp->maxsize = -1; in ASN1_STRING_TABLE_add()
260 if (maxsize != -1) in ASN1_STRING_TABLE_add()
261 tmp->maxsize = maxsize; in ASN1_STRING_TABLE_add()
/external/u-boot/fs/sandbox/
Dsandboxfs.c20 loff_t maxsize, loff_t *actread) in sandbox_fs_read_at() argument
33 if (!maxsize) { in sandbox_fs_read_at()
40 maxsize = size; in sandbox_fs_read_at()
43 size = os_read(fd, buffer, maxsize); in sandbox_fs_read_at()
/external/eigen/bench/
Dbenchmark-blocking-sizes.cpp49 const size_t maxsize = 2048; variable
56 static_assert((maxsize & (maxsize - 1)) == 0, "maxsize must be a power of two");
58 static_assert(maxsize > minsize, "maxsize must be larger than minsize");
59 static_assert(maxsize < (minsize << 16), "maxsize must be less than (minsize<<16)");
572 for (size_t ksize = minsize; ksize <= maxsize; ksize *= 2) { in run()
573 for (size_t msize = minsize; msize <= maxsize; msize *= 2) { in run()
574 for (size_t nsize = minsize; nsize <= maxsize; nsize *= 2) { in run()
603 for (size_t ksize = minsize; ksize <= maxsize; ksize *= 2) { in run()
604 for (size_t msize = minsize; msize <= maxsize; msize *= 2) { in run()
605 for (size_t nsize = minsize; nsize <= maxsize; nsize *= 2) { in run()
[all …]
/external/python/cpython2/Lib/multiprocessing/
D__init__.py213 def Queue(maxsize=0): argument
218 return Queue(maxsize)
220 def JoinableQueue(maxsize=0): argument
225 return JoinableQueue(maxsize)
Dqueues.py58 def __init__(self, maxsize=0): argument
59 if maxsize <= 0:
60 maxsize = _multiprocessing.SemLock.SEM_VALUE_MAX
61 self._maxsize = maxsize
69 self._sem = BoundedSemaphore(maxsize)
297 def __init__(self, maxsize=0): argument
298 Queue.__init__(self, maxsize)
/external/python/cpython3/Tools/demo/
Dss1.py82 self.clearcells(0, y1, sys.maxsize, y2)
85 self.clearcells(x1, 0, x2, sys.maxsize)
116 self.movecells(0, y, sys.maxsize, sys.maxsize, 0, n)
122 self.movecells(0, y2+1, sys.maxsize, sys.maxsize, 0, y1-y2-1)
126 self.movecells(x, 0, sys.maxsize, sys.maxsize, n, 0)
132 self.movecells(x2+1, 0, sys.maxsize, sys.maxsize, x1-x2-1, 0)
613 self.setcorner(sys.maxsize, sys.maxsize)
618 self.setcorner(x, sys.maxsize)
624 self.setcorner(x, sys.maxsize)
629 self.setcorner(sys.maxsize, y)
[all …]

12345678910>>...13