Lines Matching refs:sp_pci
36 struct sp_pci { struct
162 struct sp_pci *sp_pci = sp->dev_specific; in sp_get_msix_irqs() local
167 for (v = 0; v < ARRAY_SIZE(sp_pci->msix_entry); v++) in sp_get_msix_irqs()
168 sp_pci->msix_entry[v].entry = v; in sp_get_msix_irqs()
170 ret = pci_enable_msix_range(pdev, sp_pci->msix_entry, 1, v); in sp_get_msix_irqs()
174 sp_pci->msix_count = ret; in sp_get_msix_irqs()
177 sp->psp_irq = sp_pci->msix_entry[0].vector; in sp_get_msix_irqs()
178 sp->ccp_irq = (sp_pci->msix_count > 1) ? sp_pci->msix_entry[1].vector in sp_get_msix_irqs()
179 : sp_pci->msix_entry[0].vector; in sp_get_msix_irqs()
222 struct sp_pci *sp_pci = sp->dev_specific; in sp_free_irqs() local
226 if (sp_pci->msix_count) in sp_free_irqs()
285 struct sp_pci *sp_pci; in sp_pci_probe() local
296 sp_pci = devm_kzalloc(dev, sizeof(*sp_pci), GFP_KERNEL); in sp_pci_probe()
297 if (!sp_pci) in sp_pci_probe()
300 sp->dev_specific = sp_pci; in sp_pci_probe()