Lines Matching refs:dev
202 * @dev: the iSMT device
205 static void __ismt_desc_dump(struct device *dev, const struct ismt_desc *desc)
208 dev_dbg(dev, "Descriptor struct: %p\n", desc);
209 dev_dbg(dev, "\ttgtaddr_rw=0x%02X\n", desc->tgtaddr_rw);
210 dev_dbg(dev, "\twr_len_cmd=0x%02X\n", desc->wr_len_cmd);
211 dev_dbg(dev, "\trd_len= 0x%02X\n", desc->rd_len);
212 dev_dbg(dev, "\tcontrol= 0x%02X\n", desc->control);
213 dev_dbg(dev, "\tstatus= 0x%02X\n", desc->status);
214 dev_dbg(dev, "\tretry= 0x%02X\n", desc->retry);
215 dev_dbg(dev, "\trxbytes= 0x%02X\n", desc->rxbytes);
216 dev_dbg(dev, "\ttxbytes= 0x%02X\n", desc->txbytes);
217 dev_dbg(dev, "\tdptr_low= 0x%08X\n", desc->dptr_low);
218 dev_dbg(dev, "\tdptr_high= 0x%08X\n", desc->dptr_high);
226 struct device *dev = &priv->pci_dev->dev;
229 dev_dbg(dev, "Dump of the descriptor struct: 0x%X\n", priv->head);
230 __ismt_desc_dump(dev, desc);
239 struct device *dev = &priv->pci_dev->dev;
241 dev_dbg(dev, "Dump of the iSMT General Registers\n");
242 dev_dbg(dev, " GCTRL.... : (0x%p)=0x%X\n",
245 dev_dbg(dev, " SMTICL... : (0x%p)=0x%016llX\n",
248 dev_dbg(dev, " ERRINTMSK : (0x%p)=0x%X\n",
251 dev_dbg(dev, " ERRAERMSK : (0x%p)=0x%X\n",
254 dev_dbg(dev, " ERRSTS... : (0x%p)=0x%X\n",
257 dev_dbg(dev, " ERRINFO.. : (0x%p)=0x%X\n",
268 struct device *dev = &priv->pci_dev->dev;
270 dev_dbg(dev, "Dump of the iSMT Master Registers\n");
271 dev_dbg(dev, " MDBA..... : (0x%p)=0x%016llX\n",
274 dev_dbg(dev, " MCTRL.... : (0x%p)=0x%X\n",
277 dev_dbg(dev, " MSTS..... : (0x%p)=0x%X\n",
280 dev_dbg(dev, " MDS...... : (0x%p)=0x%X\n",
283 dev_dbg(dev, " RPOLICY.. : (0x%p)=0x%X\n",
286 dev_dbg(dev, " SPGT..... : (0x%p)=0x%X\n",
331 dev_dbg(&priv->pci_dev->dev, "Processing completed descriptor\n");
332 __ismt_desc_dump(&priv->pci_dev->dev, desc);
405 struct device *dev = &priv->pci_dev->dev;
432 dev_dbg(dev, "I2C_SMBUS_QUICK\n");
441 dev_dbg(dev, "I2C_SMBUS_BYTE: WRITE\n");
446 dev_dbg(dev, "I2C_SMBUS_BYTE: READ\n");
459 dev_dbg(dev, "I2C_SMBUS_BYTE_DATA: WRITE\n");
467 dev_dbg(dev, "I2C_SMBUS_BYTE_DATA: READ\n");
479 dev_dbg(dev, "I2C_SMBUS_WORD_DATA: WRITE\n");
488 dev_dbg(dev, "I2C_SMBUS_WORD_DATA: READ\n");
498 dev_dbg(dev, "I2C_SMBUS_PROC_CALL\n");
511 dev_dbg(dev, "I2C_SMBUS_BLOCK_DATA: WRITE\n");
523 dev_dbg(dev, "I2C_SMBUS_BLOCK_DATA: READ\n");
533 dev_dbg(dev, "I2C_SMBUS_BLOCK_PROC_CALL\n");
557 dev_dbg(dev, "I2C_SMBUS_I2C_BLOCK_DATA: WRITE\n");
566 dev_dbg(dev, "I2C_SMBUS_I2C_BLOCK_DATA: READ\n");
583 dev_err(dev, "Unsupported transaction %d\n",
590 dev_dbg(dev, " dev=%p\n", dev);
591 dev_dbg(dev, " data=%p\n", data);
592 dev_dbg(dev, " dma_buffer=%p\n", dma_buffer);
593 dev_dbg(dev, " dma_size=%d\n", dma_size);
594 dev_dbg(dev, " dma_direction=%d\n", dma_direction);
596 dma_addr = dma_map_single(dev,
601 if (dma_mapping_error(dev, dma_addr)) {
602 dev_err(dev, "Error in mapping dma buffer %p\n",
607 dev_dbg(dev, " dma_addr = %pad\n", &dma_addr);
623 dma_unmap_single(dev, dma_addr, dma_size, dma_direction);
626 dev_err(dev, "completion wait timed out\n");
718 struct device *dev = &priv->pci_dev->dev;
747 dev_dbg(dev, "Setting SMBus clock to 80 kHz\n");
753 dev_dbg(dev, "Setting SMBus clock to 100 kHz\n");
759 dev_dbg(dev, "Setting SMBus clock to 400 kHz\n");
765 dev_dbg(dev, "Setting SMBus clock to 1000 kHz\n");
771 dev_warn(dev, "Invalid SMBus clock speed, only 0, 80, 100, 400, and 1000 are valid\n");
791 dev_dbg(dev, "SMBus clock is running at %d kHz\n", bus_speed);
801 priv->hw = dmam_alloc_coherent(&priv->pci_dev->dev,
812 priv->log = dmam_alloc_coherent(&priv->pci_dev->dev,
834 err = devm_request_irq(&priv->pci_dev->dev,
849 dev_warn(&priv->pci_dev->dev,
852 err = devm_request_irq(&priv->pci_dev->dev,
859 dev_err(&priv->pci_dev->dev, "no usable interrupts\n");
880 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
890 priv->adapter.dev.parent = &pdev->dev;
891 ACPI_COMPANION_SET(&priv->adapter.dev, ACPI_COMPANION(&pdev->dev));
898 dev_err(&pdev->dev, "Failed to enable SMBus PCI device (%d)\n",
910 dev_err(&pdev->dev,
918 dev_dbg(&priv->pci_dev->dev, " start=0x%lX\n", start);
919 dev_dbg(&priv->pci_dev->dev, " len=0x%lX\n", len);
923 dev_err(&pdev->dev, "ACPI resource conflict!\n");
929 dev_err(&pdev->dev,
937 dev_err(&pdev->dev, "Unable to ioremap SMBus BAR\n");
941 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
943 dev_err(&pdev->dev, "dma_set_mask fail\n");