Lines Matching refs:xcv

46 struct xcv {  struct
51 static struct xcv *xcv; argument
70 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
72 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
75 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
77 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
84 cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw()
87 writeq_relaxed(cfg, xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw()
92 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
94 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
95 readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
100 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
102 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
104 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
106 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
115 if (!xcv) { in xcv_setup_link()
127 cfg = readq_relaxed(xcv->reg_base + XCV_CTL); in xcv_setup_link()
130 writeq_relaxed(cfg, xcv->reg_base + XCV_CTL); in xcv_setup_link()
133 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
135 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_setup_link()
138 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
140 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_setup_link()
143 writeq_relaxed(0x01, xcv->reg_base + XCV_BATCH_CRD_RET); in xcv_setup_link()
146 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
148 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_setup_link()
149 readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_setup_link()
159 xcv = devm_kzalloc(dev, sizeof(struct xcv), GFP_KERNEL); in xcv_probe()
160 if (!xcv) in xcv_probe()
162 xcv->pdev = pdev; in xcv_probe()
164 pci_set_drvdata(pdev, xcv); in xcv_probe()
179 xcv->reg_base = pcim_iomap(pdev, PCI_CFG_REG_BAR_NUM, 0); in xcv_probe()
180 if (!xcv->reg_base) { in xcv_probe()
193 devm_kfree(dev, xcv); in xcv_probe()
194 xcv = NULL; in xcv_probe()
202 if (xcv) { in xcv_remove()
203 devm_kfree(dev, xcv); in xcv_remove()
204 xcv = NULL; in xcv_remove()