Lines Matching refs:pcie
48 n_vectors = pcie_msi_vectors_allocate(data->pcie->bdf, in ivshmem_configure_msi_x_interrupts()
64 if (!pcie_msi_vector_connect(data->pcie->bdf, in ivshmem_configure_msi_x_interrupts()
75 if (!pcie_msi_enable(data->pcie->bdf, data->vectors, n_vectors, 0)) { in ivshmem_configure_msi_x_interrupts()
98 uint32_t cfg_int = pcie_conf_read(data->pcie->bdf, PCIE_CONF_INTR); in ivshmem_configure_int_x_interrupts()
107 pcie_set_cmd(data->pcie->bdf, PCIE_CONF_CMDSTAT_INTX_DISABLE, false); in ivshmem_configure_int_x_interrupts()
117 data->pcie->bdf, intx->irq, intx->priority, in ivshmem_configure_int_x_interrupts()
125 pcie_irq_enable(data->pcie->bdf, intx->irq); in ivshmem_configure_int_x_interrupts()
163 if (!pcie_get_mbar(data->pcie->bdf, IVSHMEM_PCIE_REG_BAR_IDX, &mbar_regs)) { in ivshmem_configure()
173 pcie_set_cmd(data->pcie->bdf, PCIE_CONF_CMDSTAT_MEM | in ivshmem_configure()
181 data->pcie->bdf, IVSHMEM_PCIE_MSI_X_BAR_IDX, &mbar_msi_x); in ivshmem_configure()
183 data->pcie->bdf, IVSHMEM_PCIE_SHMEM_BAR_IDX, &mbar_shmem); in ivshmem_configure()
206 uint32_t vendor_cap = pcie_get_cap(data->pcie->bdf, PCI_CAP_ID_VNDR); in ivshmem_configure()
211 shmem_phys_addr = pcie_conf_read_u64(data->pcie->bdf, cap_pos); in ivshmem_configure()
216 size_t state_table_size = pcie_conf_read(data->pcie->bdf, cap_pos); in ivshmem_configure()
228 data->rw_section_size = pcie_conf_read_u64(data->pcie->bdf, cap_pos); in ivshmem_configure()
240 data->output_section_size = pcie_conf_read_u64(data->pcie->bdf, cap_pos); in ivshmem_configure()
262 uint32_t cfg_priv_cntl = pcie_conf_read(data->pcie->bdf, cap_pos); in ivshmem_configure()
266 pcie_conf_write(data->pcie->bdf, cap_pos, cfg_priv_cntl); in ivshmem_configure()
499 uint16_t protocol = (data->pcie->class_rev >> 8) & 0xFFFF; in ivshmem_api_get_protocol()
544 if (data->pcie->bdf == PCIE_BDF_NONE) { in ivshmem_init()
550 data->pcie->id, data->pcie->bdf, data->pcie->class_rev); in ivshmem_init()
579 DEVICE_PCIE_INST_INIT(n, pcie), \