Lines Matching defs:device

144 	switch (pdev->device) {
163 switch (pdev->device) {
182 switch (pdev->device) {
202 switch (pdev->device) {
222 switch (pdev->device) {
241 return (pdev->device == PCI_DEVICE_ID_INTEL_IOAT_SKX) ? true : false;
252 switch (pdev->device) {
270 switch (pdev->device) {
298 * @ioat_dma: dma device to be tested
306 struct device *dev = &ioat_dma->pdev->dev;
401 * @ioat_dma: ioat dma device
407 struct device *dev = &pdev->dev;
498 struct device *dev = &pdev->dev;
562 * ioat_enumerate_channels - find and initialize the device's channels
563 * @ioat_dma: the ioat dma device to be enumerated
568 struct device *dev = &ioat_dma->pdev->dev;
774 ioat_chan->dma_chan.device = dma;
800 struct device *dev = &ioat_dma->pdev->dev;
914 if (!dma_has_cap(DMA_XOR_VAL, dma_chan->device->cap_mask))
1286 "Failed to enable PCIe device after reset.\n");
1323 static void release_ioatdma(struct dma_device *device)
1325 struct ioatdma_device *d = to_ioatdma_device(device);
1351 struct device *dev = &pdev->dev;
1352 struct ioatdma_device *device;
1378 device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]);
1379 if (!device)
1382 pci_set_drvdata(pdev, device);
1384 device->version = readb(device->reg_base + IOAT_VER_OFFSET);
1385 if (device->version >= IOAT_VER_3_4)
1387 if (device->version >= IOAT_VER_3_0) {
1389 device->version = IOAT_VER_3_2;
1390 err = ioat3_dma_probe(device, ioat_dca_enabled);
1392 if (device->version >= IOAT_VER_3_3)
1408 struct ioatdma_device *device = pci_get_drvdata(pdev);
1410 if (!device)
1416 if (device->dca) {
1417 unregister_dca_provider(device->dca, &pdev->dev);
1418 free_dca_provider(device->dca);
1419 device->dca = NULL;
1423 ioat_dma_remove(device);