Lines Matching refs:mbi_pdev
29 static struct pci_dev *mbi_pdev; variable
43 if (!mbi_pdev) in iosf_mbi_pci_read_mdr()
47 result = pci_write_config_dword(mbi_pdev, MBI_MCRX_OFFSET, in iosf_mbi_pci_read_mdr()
53 result = pci_write_config_dword(mbi_pdev, MBI_MCR_OFFSET, mcr); in iosf_mbi_pci_read_mdr()
57 result = pci_read_config_dword(mbi_pdev, MBI_MDR_OFFSET, mdr); in iosf_mbi_pci_read_mdr()
64 dev_err(&mbi_pdev->dev, "PCI config access failed with %d\n", result); in iosf_mbi_pci_read_mdr()
72 if (!mbi_pdev) in iosf_mbi_pci_write_mdr()
75 result = pci_write_config_dword(mbi_pdev, MBI_MDR_OFFSET, mdr); in iosf_mbi_pci_write_mdr()
80 result = pci_write_config_dword(mbi_pdev, MBI_MCRX_OFFSET, in iosf_mbi_pci_write_mdr()
86 result = pci_write_config_dword(mbi_pdev, MBI_MCR_OFFSET, mcr); in iosf_mbi_pci_write_mdr()
93 dev_err(&mbi_pdev->dev, "PCI config access failed with %d\n", result); in iosf_mbi_pci_write_mdr()
185 return mbi_pdev; in iosf_mbi_available()
254 dev_err(&mbi_pdev->dev, "Error P-Unit semaphore read failed\n"); in iosf_mbi_get_sem()
266 dev_err(&mbi_pdev->dev, "Error P-Unit semaphore reset failed\n"); in iosf_mbi_reset_semaphore()
318 if (WARN_ON(!mbi_pdev || !iosf_mbi_sem_address)) in iosf_mbi_block_punit_i2c_access()
347 dev_err(&mbi_pdev->dev, "Error P-Unit semaphore request failed\n"); in iosf_mbi_block_punit_i2c_access()
358 dev_dbg(&mbi_pdev->dev, "P-Unit semaphore acquired after %ums\n", in iosf_mbi_block_punit_i2c_access()
367 dev_err(&mbi_pdev->dev, "Error P-Unit semaphore timed out, resetting\n"); in iosf_mbi_block_punit_i2c_access()
371 dev_err(&mbi_pdev->dev, "P-Unit semaphore: %d\n", sem); in iosf_mbi_block_punit_i2c_access()
390 dev_dbg(&mbi_pdev->dev, "punit semaphore held for %ums\n", in iosf_mbi_unblock_punit_i2c_access()
525 mbi_pdev = pci_dev_get(pdev); in iosf_mbi_probe()
560 pci_dev_put(mbi_pdev); in iosf_mbi_exit()
561 mbi_pdev = NULL; in iosf_mbi_exit()