Lines Matching refs:bdata
66 struct ctucan_pci_board_data *bdata = ctucan_pci_get_bdata(pdev); in ctucan_pci_set_drvdata() local
68 list_add(&priv->peers_on_pdev, &bdata->ndev_list_head); in ctucan_pci_set_drvdata()
87 struct ctucan_pci_board_data *bdata; in ctucan_pci_probe() local
156 bdata = kzalloc(sizeof(*bdata), GFP_KERNEL); in ctucan_pci_probe()
157 if (!bdata) { in ctucan_pci_probe()
162 INIT_LIST_HEAD(&bdata->ndev_list_head); in ctucan_pci_probe()
163 bdata->bar0_base = bar0_base; in ctucan_pci_probe()
164 bdata->cra_base = cra_addr; in ctucan_pci_probe()
165 bdata->bar1_base = addr; in ctucan_pci_probe()
166 bdata->use_msi = msi_ok; in ctucan_pci_probe()
168 pci_set_drvdata(pdev, bdata); in ctucan_pci_probe()
203 kfree(bdata); in ctucan_pci_probe()
231 struct ctucan_pci_board_data *bdata = ctucan_pci_get_bdata(pdev); in ctucan_pci_remove() local
235 if (!bdata) { in ctucan_pci_remove()
243 if (bdata->cra_base) in ctucan_pci_remove()
244 iowrite32(0, bdata->cra_base + CYCLONE_IV_CRA_A2P_IE); in ctucan_pci_remove()
246 while ((priv = list_first_entry_or_null(&bdata->ndev_list_head, struct ctucan_priv, in ctucan_pci_remove()
258 pci_iounmap(pdev, bdata->bar1_base); in ctucan_pci_remove()
260 if (bdata->use_msi) { in ctucan_pci_remove()
268 pci_iounmap(pdev, bdata->bar0_base); in ctucan_pci_remove()
271 kfree(bdata); in ctucan_pci_remove()