Lines Matching +full:max +full:- +full:len
11 * See the COPYING file in the top-level directory.
14 #include "boot-sector.h"
58 /* 7c0e: jmp 0x7c07=0x7c0f-3 */
60 [0x0e] = LOW(-3),
74 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 /* in the s390-ccw bios */
91 size_t len; in boot_sector_init() local
103 len = MAX(0x7e000, sizeof(x86_boot_sector)); in boot_sector_init()
104 boot_code = g_malloc0(len); in boot_sector_init()
111 len = strlen(boot_code); in boot_sector_init()
113 len = 0x10000 + sizeof(s390x_code); in boot_sector_init()
114 boot_code = g_malloc0(len); in boot_sector_init()
121 ret = write(fd, boot_code, len); in boot_sector_init()
126 if (ret != len) { in boot_sector_init()
143 /* Wait at most 600 seconds (test is slow with TCI and --enable-debug) */ in boot_sector_test()
145 #define TEST_CYCLES MAX((600 * G_USEC_PER_SEC / TEST_DELAY), 1) in boot_sector_test()
162 qrsp = qtest_qmp(qts, "{ 'execute': 'query-status' }"); in boot_sector_test()