Lines Matching refs:fmc
17 #include <linux/fmc.h>
25 struct fmc_device *fmc;
32 struct fmc_device *fmc;
41 fmc = fc->fmc;
42 if (try_module_get(fmc->owner) == 0)
45 f->private_data = fmc;
51 struct fmc_device *fmc = f->private_data;
52 module_put(fmc->owner);
60 struct fmc_device *fmc = f->private_data;
69 if (addr > fmc->memlen)
71 val = fmc_readl(fmc, addr);
81 struct fmc_device *fmc = f->private_data;
90 if (addr > fmc->memlen)
94 fmc_writel(fmc, val, addr);
110 static int fc_probe(struct fmc_device *fmc);
111 static int fc_remove(struct fmc_device *fmc);
125 static int fc_probe(struct fmc_device *fmc)
132 if (fmc->op->validate)
133 index = fmc->op->validate(fmc, &fc_drv);
141 fc->fmc = fmc;
144 fc->misc.name = kstrdup(dev_name(&fmc->dev), GFP_KERNEL);
152 dev_info(&fc->fmc->dev, "Created misc device \"%s\"\n",
162 static int fc_remove(struct fmc_device *fmc)
167 if (fc->fmc == fmc)
169 if (fc->fmc != fmc) {
170 dev_err(&fmc->dev, "remove called but not found\n");