pciefd 577 drivers/net/can/peak_canfd/peak_pciefd_main.c static int pciefd_can_probe(struct pciefd_board *pciefd) pciefd 585 drivers/net/can/peak_canfd/peak_pciefd_main.c ndev = alloc_peak_canfd_dev(sizeof(*priv), pciefd->can_count, pciefd 588 drivers/net/can/peak_canfd/peak_pciefd_main.c dev_err(&pciefd->pci_dev->dev, pciefd 609 drivers/net/can/peak_canfd/peak_pciefd_main.c priv->board = pciefd; pciefd 612 drivers/net/can/peak_canfd/peak_pciefd_main.c priv->reg_base = pciefd->reg_base + PCIEFD_CANX_OFF(priv->ucan.index); pciefd 615 drivers/net/can/peak_canfd/peak_pciefd_main.c priv->rx_dma_vaddr = dmam_alloc_coherent(&pciefd->pci_dev->dev, pciefd 620 drivers/net/can/peak_canfd/peak_pciefd_main.c dev_err(&pciefd->pci_dev->dev, pciefd 627 drivers/net/can/peak_canfd/peak_pciefd_main.c priv->tx_dma_vaddr = dmam_alloc_coherent(&pciefd->pci_dev->dev, pciefd 632 drivers/net/can/peak_canfd/peak_pciefd_main.c dev_err(&pciefd->pci_dev->dev, pciefd 669 drivers/net/can/peak_canfd/peak_pciefd_main.c ndev->irq = pciefd->pci_dev->irq; pciefd 671 drivers/net/can/peak_canfd/peak_pciefd_main.c SET_NETDEV_DEV(ndev, &pciefd->pci_dev->dev); pciefd 675 drivers/net/can/peak_canfd/peak_pciefd_main.c dev_err(&pciefd->pci_dev->dev, pciefd 683 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd->can[pciefd->can_count] = priv; pciefd 685 drivers/net/can/peak_canfd/peak_pciefd_main.c dev_info(&pciefd->pci_dev->dev, "%s at reg_base=0x%p irq=%d\n", pciefd 708 drivers/net/can/peak_canfd/peak_pciefd_main.c static void pciefd_can_remove_all(struct pciefd_board *pciefd) pciefd 710 drivers/net/can/peak_canfd/peak_pciefd_main.c while (pciefd->can_count > 0) pciefd 711 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_can_remove(pciefd->can[--pciefd->can_count]); pciefd 718 drivers/net/can/peak_canfd/peak_pciefd_main.c struct pciefd_board *pciefd; pciefd 751 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd = devm_kzalloc(&pdev->dev, struct_size(pciefd, can, can_count), pciefd 753 drivers/net/can/peak_canfd/peak_pciefd_main.c if (!pciefd) { pciefd 759 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd->pci_dev = pdev; pciefd 760 drivers/net/can/peak_canfd/peak_pciefd_main.c spin_lock_init(&pciefd->cmd_lock); pciefd 763 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd->reg_base = pci_iomap(pdev, 0, PCIEFD_BAR0_SIZE); pciefd 764 drivers/net/can/peak_canfd/peak_pciefd_main.c if (!pciefd->reg_base) { pciefd 771 drivers/net/can/peak_canfd/peak_pciefd_main.c v2 = pciefd_sys_readreg(pciefd, PCIEFD_REG_SYS_VER2); pciefd 797 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_sys_writereg(pciefd, PCIEFD_SYS_CTL_CLK_EN, pciefd 803 drivers/net/can/peak_canfd/peak_pciefd_main.c while (pciefd->can_count < can_count) { pciefd 804 drivers/net/can/peak_canfd/peak_pciefd_main.c err = pciefd_can_probe(pciefd); pciefd 808 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd->can_count++; pciefd 812 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_sys_writereg(pciefd, PCIEFD_SYS_CTL_TS_RST, pciefd 816 drivers/net/can/peak_canfd/peak_pciefd_main.c (void)pciefd_sys_readreg(pciefd, PCIEFD_REG_SYS_VER1); pciefd 819 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_sys_writereg(pciefd, PCIEFD_SYS_CTL_TS_RST, pciefd 823 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_sys_writereg(pciefd, PCIEFD_SYS_CTL_CLK_EN, pciefd 827 drivers/net/can/peak_canfd/peak_pciefd_main.c pci_set_drvdata(pdev, pciefd); pciefd 832 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_can_remove_all(pciefd); pciefd 834 drivers/net/can/peak_canfd/peak_pciefd_main.c pci_iounmap(pdev, pciefd->reg_base); pciefd 851 drivers/net/can/peak_canfd/peak_pciefd_main.c struct pciefd_board *pciefd = pci_get_drvdata(pdev); pciefd 854 drivers/net/can/peak_canfd/peak_pciefd_main.c pciefd_can_remove_all(pciefd); pciefd 856 drivers/net/can/peak_canfd/peak_pciefd_main.c pci_iounmap(pdev, pciefd->reg_base);