Searched refs:pdev (Results 1 – 3 of 3) sorted by relevance
/samples/vfio-mdev/ |
D | mdpy-fb.c | 98 static int mdpy_fb_probe(struct pci_dev *pdev, in mdpy_fb_probe() argument 106 ret = pci_enable_device(pdev); in mdpy_fb_probe() 110 ret = pci_request_regions(pdev, "mdpy-fb"); in mdpy_fb_probe() 114 pci_read_config_dword(pdev, MDPY_FORMAT_OFFSET, &format); in mdpy_fb_probe() 115 pci_read_config_dword(pdev, MDPY_WIDTH_OFFSET, &width); in mdpy_fb_probe() 116 pci_read_config_dword(pdev, MDPY_HEIGHT_OFFSET, &height); in mdpy_fb_probe() 118 pci_err(pdev, "format mismatch (0x%x != 0x%x)\n", in mdpy_fb_probe() 123 pci_err(pdev, "width (%d) out of range\n", width); in mdpy_fb_probe() 127 pci_err(pdev, "height (%d) out of range\n", height); in mdpy_fb_probe() 130 pci_info(pdev, "mdpy found: %dx%d framebuffer\n", in mdpy_fb_probe() [all …]
|
/samples/v4l/ |
D | v4l2-pci-skeleton.c | 65 struct pci_dev *pdev; member 202 dev_err(&skel->pdev->dev, "buffer too small (%lu < %lu)\n", in buffer_prepare() 309 pci_name(skel->pdev)); in skeleton_querycap() 754 static int skeleton_probe(struct pci_dev *pdev, const struct pci_device_id *ent) in skeleton_probe() argument 766 ret = pci_enable_device(pdev); in skeleton_probe() 769 ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); in skeleton_probe() 771 dev_err(&pdev->dev, "no suitable DMA available.\n"); in skeleton_probe() 776 skel = devm_kzalloc(&pdev->dev, sizeof(struct skeleton), GFP_KERNEL); in skeleton_probe() 783 ret = devm_request_irq(&pdev->dev, pdev->irq, in skeleton_probe() 786 dev_err(&pdev->dev, "request_irq failed\n"); in skeleton_probe() [all …]
|
/samples/qmi/ |
D | qmi_sample_client.c | 453 static int qmi_sample_probe(struct platform_device *pdev) in qmi_sample_probe() argument 460 sample = devm_kzalloc(&pdev->dev, sizeof(*sample), GFP_KERNEL); in qmi_sample_probe() 470 sq = dev_get_platdata(&pdev->dev); in qmi_sample_probe() 500 platform_set_drvdata(pdev, sample); in qmi_sample_probe() 514 static int qmi_sample_remove(struct platform_device *pdev) in qmi_sample_remove() argument 516 struct qmi_sample *sample = platform_get_drvdata(pdev); in qmi_sample_remove() 538 struct platform_device *pdev; in qmi_sample_new_server() local 542 pdev = platform_device_alloc("qmi_sample_client", PLATFORM_DEVID_AUTO); in qmi_sample_new_server() 543 if (!pdev) in qmi_sample_new_server() 546 ret = platform_device_add_data(pdev, &sq, sizeof(sq)); in qmi_sample_new_server() [all …]
|