xcv
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
if (!xcv) {
cfg = readq_relaxed(xcv->reg_base + XCV_CTL);
writeq_relaxed(cfg, xcv->reg_base + XCV_CTL);
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
writeq_relaxed(0x01, xcv->reg_base + XCV_BATCH_CRD_RET);
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
readq_relaxed(xcv->reg_base + XCV_RESET);
xcv = devm_kzalloc(dev, sizeof(struct xcv), GFP_KERNEL);
if (!xcv)
xcv->pdev = pdev;
pci_set_drvdata(pdev, xcv);
xcv->reg_base = pcim_iomap(pdev, PCI_CFG_REG_BAR_NUM, 0);
if (!xcv->reg_base) {
devm_kfree(dev, xcv);
xcv = NULL;
if (xcv) {
devm_kfree(dev, xcv);
xcv = NULL;
static struct xcv *xcv;
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL);
writeq_relaxed(cfg, xcv->reg_base + XCV_DLL_CTL);
cfg = readq_relaxed(xcv->reg_base + XCV_RESET);
writeq_relaxed(cfg, xcv->reg_base + XCV_RESET);
readq_relaxed(xcv->reg_base + XCV_RESET);