Home
last modified time | relevance | path

Searched refs:totalsize (Results 1 – 25 of 39) sorted by relevance

12

/external/dtc/
Dflattree.c335 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize); in make_fdt_header()
376 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
382 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
390 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) in dt_to_blob()
391 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
394 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
396 fdt.totalsize = cpu_to_fdt32(tsize); in dt_to_blob()
799 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys; in dt_from_blob() local
840 totalsize = fdt32_to_cpu(totalsize_buf); in dt_from_blob()
841 if (totalsize < FDT_V1_SIZE) in dt_from_blob()
[all …]
Dfdtdump.c59 uint32_t totalsize = fdt32_to_cpu(bph->totalsize); in dump_blob() local
72 totalsize, totalsize); in dump_blob()
Dutil.c294 int totalsize; in utilfdt_write_err() local
305 totalsize = fdt_totalsize(blob); in utilfdt_write_err()
308 while (offset < totalsize) { in utilfdt_write_err()
309 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
/external/dtc/libfdt/
Dfdt.c20 uint32_t totalsize = fdt_totalsize(fdt); in fdt_ro_probe_() local
23 return totalsize; in fdt_ro_probe_()
42 if (totalsize < INT32_MAX) in fdt_ro_probe_()
43 return totalsize; in fdt_ro_probe_()
48 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) in check_off_() argument
50 return (off >= hdrsize) && (off <= totalsize); in check_off_()
53 static int check_block_(uint32_t hdrsize, uint32_t totalsize, in check_block_() argument
56 if (!check_off_(hdrsize, totalsize, base)) in check_block_()
60 if (!check_off_(hdrsize, totalsize, base + size)) in check_block_()
Dfdt_ro.c36 int32_t totalsize; in fdt_get_string() local
49 totalsize = fdt_ro_probe_(fdt); in fdt_get_string()
50 err = totalsize; in fdt_get_string()
51 if (totalsize < 0) in fdt_get_string()
56 if (absoffset >= totalsize) in fdt_get_string()
58 len = totalsize - absoffset; in fdt_get_string()
Dfdt.h14 fdt32_t totalsize; /* total size of DT block */ member
Dlibfdt.h241 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize))
258 fdt_set_hdr_(totalsize);
/external/curl/lib/
Dcurl_range.c69 curl_off_t totalsize; in Curl_range() local
75 totalsize = to - from; in Curl_range()
76 if(totalsize == CURL_OFF_T_MAX) in Curl_range()
79 data->req.maxdownload = totalsize + 1; /* include last byte */ in Curl_range()
/external/curl/tests/libtest/
Dlib1533.c58 size_t totalsize = nitems * size; in read_callback() local
61 if(bytes_to_send > totalsize) { in read_callback()
62 bytes_to_send = totalsize; in read_callback()
81 size_t totalsize = nmemb * size; in write_callback() local
95 return totalsize; in write_callback()
/external/dtc/tests/
Dpylibfdt_tests.py287 self.assertEqual(self.fdt.totalsize(), len(self.fdt._fdt))
299 orig_size = self.fdt.totalsize()
302 self.assertEqual(orig_size, self.fdt.totalsize())
304 self.assertTrue(self.fdt.totalsize() < orig_size)
305 self.assertEqual(self.fdt.totalsize(), len(self.fdt.as_bytearray()))
397 self.assertEqual(128, fdt.totalsize())
402 self.assertEqual(128, fdt.totalsize())
404 self.assertEqual(256, fdt.totalsize())
406 self.assertTrue(fdt.totalsize() < 128)
423 self.fdt.resize(self.fdt.totalsize() + 50)
[all …]
/external/vboot_reference/utility/
Dchromeos-tpm-recovery-test62 totalsize=$(( $size + $space_overhead ))
65 if [ $totalsize -gt $free ]; then
75 echo $(( $free - $totalsize )) > nvram.freespace
/external/stressapptest/src/
Dos.cc450 int64 totalsize = pages * pagesize; in FindFreeMemSize() local
452 if (reserve_kb > totalsize) { in FindFreeMemSize()
454 "available %lld\n", reserve_kb, totalsize); in FindFreeMemSize()
455 } else if (reserve_kb > totalsize - minsize) { in FindFreeMemSize()
457 "current %lld\n", minsize, totalsize - reserve_kb); in FindFreeMemSize()
458 minsize = totalsize - reserve_kb; in FindFreeMemSize()
/external/igt-gpu-tools/tools/
Dintel_watermark.c917 int totalsize = IS_CRESTLINE(devid) ? 128 : 96; in gen4_wm_dump() local
954 wms[PRI_C].fifo = totalsize - wms[PRI_B].fifo - wms[PRI_A].fifo - 1; in gen4_wm_dump()
987 int totalsize = 96; /* FIXME? */ in pnv_wm_dump() local
1027 wms[PRI_C].fifo = totalsize - wms[PRI_B].fifo - wms[PRI_A].fifo - 1; in pnv_wm_dump()
1077 int totalsize = IS_945GM(devid) ? 128 : 96; /* FIXME? */ in gen3_wm_dump() local
1118 wms[PRI_C].fifo = totalsize - wms[PRI_B].fifo - wms[PRI_A].fifo - 1; in gen3_wm_dump()
1146 int totalsize; in gen2_wm_dump() local
1183 totalsize = 96; /* FIXME? */ in gen2_wm_dump()
1185 wms[PRI_C].fifo = totalsize - wms[PRI_A].fifo - 1; in gen2_wm_dump()
1192 totalsize = 288; in gen2_wm_dump()
[all …]
/external/curl/tests/server/
Drtspd.c125 static void storerequest(char *reqbuf, size_t totalsize);
595 static void storerequest(char *reqbuf, size_t totalsize) in storerequest() argument
605 if(totalsize == 0) in storerequest()
618 writeleft = totalsize; in storerequest()
620 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
629 logmsg("Wrote request (%zu bytes) input to " REQUEST_DUMP, totalsize); in storerequest()
634 totalsize-writeleft, totalsize, REQUEST_DUMP); in storerequest()
Dsws.c137 static void storerequest(const char *reqbuf, size_t totalsize);
787 static void storerequest(const char *reqbuf, size_t totalsize) in storerequest() argument
798 if(totalsize == 0) in storerequest()
811 writeleft = totalsize; in storerequest()
813 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
822 logmsg("Wrote request (%zu bytes) input to %s", totalsize, dumpfile); in storerequest()
827 totalsize-writeleft, totalsize, dumpfile); in storerequest()
/external/crosvm/arch/src/
Dfdt.rs315 let totalsize = self.data.len() + self.strings.len(); in finish() localVariable
317 let totalsize = totalsize.try_into().map_err(|_| Error::TotalSizeTooLarge)?; in finish() localVariable
331 self.update_u32(1 * 4, totalsize); in finish()
/external/lua/src/
Dlstrlib.c1490 static KOption getdetails (Header *h, size_t totalsize, in getdetails() argument
1505 *ntoalign = (align - (int)(totalsize & (align - 1))) & (align - 1); in getdetails()
1557 size_t totalsize = 0; /* accumulate total size of result */ in str_pack() local
1563 KOption opt = getdetails(&h, totalsize, &fmt, &size, &ntoalign); in str_pack()
1564 totalsize += ntoalign + size; in str_pack()
1616 totalsize += len; in str_pack()
1625 totalsize += len + 1; in str_pack()
1642 size_t totalsize = 0; /* accumulate total size of result */ in str_packsize() local
1646 KOption opt = getdetails(&h, totalsize, &fmt, &size, &ntoalign); in str_packsize()
1650 luaL_argcheck(L, totalsize <= MAXSIZE - size, 1, in str_packsize()
[all …]
Dlstring.c158 size_t totalsize; /* total size of TString object */ in createstrobj() local
159 totalsize = sizelstring(l); in createstrobj()
160 o = luaC_newobj(L, tag, totalsize); in createstrobj()
/external/python/cpython2/PC/
D_subprocess.c359 size_t ksize, vsize, totalsize; in getenvironment() local
382 totalsize = (p - PyString_AS_STRING(out)) + ksize + 1 + in getenvironment()
384 if (totalsize > (size_t)PyString_GET_SIZE(out)) { in getenvironment()
386 if (_PyString_Resize(&out, totalsize + 1024)) in getenvironment()
/external/python/cpython3/Modules/
D_winapi.c778 Py_ssize_t i, envsize, totalsize; in getenvironment() local
805 totalsize = 1; /* trailing null character */ in getenvironment()
833 if (totalsize > PY_SSIZE_T_MAX - size) { in getenvironment()
837 totalsize += size; /* including '=' */ in getenvironment()
841 if (totalsize > PY_SSIZE_T_MAX - size) { in getenvironment()
845 totalsize += size; /* including trailing '\0' */ in getenvironment()
848 buffer = PyMem_NEW(wchar_t, totalsize); in getenvironment()
854 end = buffer + totalsize; in getenvironment()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_mipmap_tree.h66 GLuint totalsize; /** total size of the miptree, in bytes */ member
Dradeon_mipmap_tree.c169 mt->totalsize = (curOffset + RADEON_OFFSET_MASK) & ~RADEON_OFFSET_MASK; in calculate_miptree_layout()
173 __func__, rmesa, mt, mt->totalsize); in calculate_miptree_layout()
203 0, mt->totalsize, 1024, in radeon_miptree_create()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_mipmap_tree.h66 GLuint totalsize; /** total size of the miptree, in bytes */ member
Dradeon_mipmap_tree.c169 mt->totalsize = (curOffset + RADEON_OFFSET_MASK) & ~RADEON_OFFSET_MASK; in calculate_miptree_layout()
173 __func__, rmesa, mt, mt->totalsize); in calculate_miptree_layout()
203 0, mt->totalsize, 1024, in radeon_miptree_create()
/external/python/cpython2/Lib/test/
Dtest_struct.py567 totalsize = support.calcobjsize('5P')
569 totalsize += struct.calcsize('3P') * (number_of_codes + 1)
570 support.check_sizeof(self, struct.Struct(format_str), totalsize)

12