Lines Matching refs:datalen
964 int datalen = 0; in libxl__load_hvm_firmware_module() local
969 r = libxl_read_file_contents(CTX, filename, &data, &datalen); in libxl__load_hvm_firmware_module()
981 if (datalen) { in libxl__load_hvm_firmware_module()
984 m->length = datalen; in libxl__load_hvm_firmware_module()
1003 int datalen = 0; in libxl__domain_firmware() local
1133 &data, &datalen); in libxl__domain_firmware()
1141 if (datalen) { in libxl__domain_firmware()
1144 dom->smbios_module.length = (uint32_t)datalen; in libxl__domain_firmware()
1152 &data, &datalen); in libxl__domain_firmware()
1160 if (datalen) { in libxl__domain_firmware()
1163 dom->acpi_modules[0].length = (uint32_t)datalen; in libxl__domain_firmware()
1416 const uint8_t *data, int datalen) in libxl__userdata_store() argument
1429 if (!datalen) { in libxl__userdata_store()
1446 if (libxl_write_exactly(CTX, fd, data, datalen, "userdata", newfilename)) in libxl__userdata_store()
1475 const uint8_t *data, int datalen) in libxl_userdata_store() argument
1489 data, datalen); in libxl_userdata_store()
1505 int datalen = 0; in libxl__userdata_retrieve() local
1514 e = libxl_read_file_contents(CTX, filename, data_r ? &data : 0, &datalen); in libxl__userdata_retrieve()
1519 if (!e && !datalen) { in libxl__userdata_retrieve()
1527 if (datalen_r) *datalen_r = datalen; in libxl__userdata_retrieve()