Lines Matching refs:msi64bit
107 static inline uint8_t msi_data_off(const PCIDevice* dev, bool msi64bit) in msi_data_off() argument
109 return dev->msi_cap + (msi64bit ? PCI_MSI_DATA_64 : PCI_MSI_DATA_32); in msi_data_off()
112 static inline uint8_t msi_mask_off(const PCIDevice* dev, bool msi64bit) in msi_mask_off() argument
114 return dev->msi_cap + (msi64bit ? PCI_MSI_MASK_64 : PCI_MSI_MASK_32); in msi_mask_off()
117 static inline uint8_t msi_pending_off(const PCIDevice* dev, bool msi64bit) in msi_pending_off() argument
119 return dev->msi_cap + (msi64bit ? PCI_MSI_PENDING_64 : PCI_MSI_PENDING_32); in msi_pending_off()
129 bool msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_set_message() local
131 if (msi64bit) { in msi_set_message()
136 pci_set_word(dev->config + msi_data_off(dev, msi64bit), msg.data); in msi_set_message()
142 bool msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_prepare_message() local
148 if (msi64bit) { in msi_prepare_message()
155 msg.data = pci_get_word(dev->config + msi_data_off(dev, msi64bit)); in msi_prepare_message()
193 unsigned int nr_vectors, bool msi64bit, in msi_init() argument
209 offset, nr_vectors, msi64bit, msi_per_vector_mask); in msi_init()
218 if (msi64bit) { in msi_init()
240 if (msi64bit) { in msi_init()
243 pci_set_word(dev->wmask + msi_data_off(dev, msi64bit), 0xffff); in msi_init()
247 pci_set_long(dev->wmask + msi_mask_off(dev, msi64bit), in msi_init()
276 bool msi64bit; in msi_reset() local
284 msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_reset()
288 if (msi64bit) { in msi_reset()
291 pci_set_word(dev->config + msi_data_off(dev, msi64bit), 0); in msi_reset()
293 pci_set_long(dev->config + msi_mask_off(dev, msi64bit), 0); in msi_reset()
294 pci_set_long(dev->config + msi_pending_off(dev, msi64bit), 0); in msi_reset()
303 bool msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_is_masked() local
310 data = pci_get_word(dev->config + msi_data_off(dev, msi64bit)); in msi_is_masked()
323 bool msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_set_mask() local
334 irq_state = pci_get_long(dev->config + msi_mask_off(dev, msi64bit)); in msi_set_mask()
342 pci_set_long(dev->config + msi_mask_off(dev, msi64bit), irq_state); in msi_set_mask()
344 pending = pci_get_long(dev->config + msi_pending_off(dev, msi64bit)); in msi_set_mask()
347 pci_set_long(dev->config + msi_pending_off(dev, msi64bit), pending); in msi_set_mask()
355 bool msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_notify() local
363 dev->config + msi_pending_off(dev, msi64bit), 1U << vector); in msi_notify()
386 bool msi64bit = flags & PCI_MSI_FLAGS_64BIT; in msi_write_config() local
405 if (msi64bit) { in msi_write_config()
410 pci_get_word(dev->config + msi_data_off(dev, msi64bit))); in msi_write_config()
413 pci_get_long(dev->config + msi_mask_off(dev, msi64bit)), in msi_write_config()
414 pci_get_long(dev->config + msi_pending_off(dev, msi64bit))); in msi_write_config()
469 pending = pci_get_long(dev->config + msi_pending_off(dev, msi64bit)); in msi_write_config()
471 pci_set_long(dev->config + msi_pending_off(dev, msi64bit), pending); in msi_write_config()
480 dev->config + msi_pending_off(dev, msi64bit), 1U << vector); in msi_write_config()