Searched refs:DWORD_BYTE (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/hw/pci/ |
H A D | pcie_doe.c | 21 #define DWORD_BYTE 4 macro 45 DIV_ROUND_UP(sizeof(DoeDiscoveryReq), DWORD_BYTE)) { in pcie_doe_discovery() 52 .length = DIV_ROUND_UP(sizeof(DoeDiscoveryRsp), DWORD_BYTE), in pcie_doe_discovery() 87 memset(st->read_mbox, 0, PCI_DOE_DW_SIZE_MAX * DWORD_BYTE); in pcie_doe_reset_mbox() 88 memset(st->write_mbox, 0, PCI_DOE_DW_SIZE_MAX * DWORD_BYTE); in pcie_doe_reset_mbox() 105 doe_cap->write_mbox = g_malloc0(PCI_DOE_DW_SIZE_MAX * DWORD_BYTE); in pcie_doe_init() 106 doe_cap->read_mbox = g_malloc0(PCI_DOE_DW_SIZE_MAX * DWORD_BYTE); in pcie_doe_init() 146 memcpy(doe_cap->read_mbox + doe_cap->read_mbox_len, rsp, len * DWORD_BYTE); in pcie_doe_set_rsp() 263 if (range_covers_byte(PCI_EXP_DOE_CAP, DWORD_BYTE, addr)) { in pcie_doe_read_config() 268 } else if (range_covers_byte(PCI_EXP_DOE_CTRL, DWORD_BYTE, addr)) { in pcie_doe_read_config() [all …]
|
/openbmc/qemu/hw/mem/ |
H A D | cxl_type3.c | 33 #define DWORD_BYTE 4 macro 261 DIV_ROUND_UP(sizeof(CDATReq), DWORD_BYTE)) { in cxl_doe_cdat_rsp() 274 .length = DIV_ROUND_UP((sizeof(rsp) + len), DWORD_BYTE), in cxl_doe_cdat_rsp() 283 memcpy(doe_cap->read_mbox + DIV_ROUND_UP(sizeof(rsp), DWORD_BYTE), in cxl_doe_cdat_rsp()
|