Home
last modified time | relevance | path

Searched refs:host_lpc_buf (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-ipmi-flash/tools/
H A Dlpc.cpp35 LpcRegion host_lpc_buf; in sendContents() local
36 host_lpc_buf.address = address; in sendContents()
37 host_lpc_buf.length = length; in sendContents()
39 std::vector<std::uint8_t> payload(sizeof(host_lpc_buf)); in sendContents()
48 std::memcpy(payload.data(), &host_lpc_buf, sizeof(host_lpc_buf)); in sendContents()
89 host_lpc_buf.length = bytes.length; in sendContents()
90 host_lpc_buf.address += bytes.offset; in sendContents()
109 auto readBuffer = std::make_unique<std::uint8_t[]>(host_lpc_buf.length); in sendContents()
129 sys->read(inputFd, readBuffer.get(), host_lpc_buf.length); in sendContents()
132 if (!io->write(host_lpc_buf.address, bytesRead, in sendContents()
/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_lpc_unittest.cpp42 LpcRegion host_lpc_buf; in TEST() local
43 host_lpc_buf.address = address; in TEST()
44 host_lpc_buf.length = length; in TEST()
46 std::vector<std::uint8_t> bytes(sizeof(host_lpc_buf)); in TEST()
47 std::memcpy(bytes.data(), &host_lpc_buf, sizeof(host_lpc_buf)); in TEST()