Searched refs:fmc (Results 1 - 11 of 11) sorted by relevance

/drivers/fmc/
H A DMakefile2 obj-$(CONFIG_FMC) += fmc.o
4 fmc-y = fmc-core.o
5 fmc-y += fmc-match.o
6 fmc-y += fmc-sdb.o
7 fmc-y += fru-parse.o
8 fmc-y += fmc
[all...]
H A Dfmc-trivial.c14 /* A trivial fmc driver that can load a gateware file and reports interrupts */
19 #include <linux/fmc.h>
25 struct fmc_device *fmc = dev_id; local
27 fmc->op->irq_ack(fmc);
28 dev_info(&fmc->dev, "received irq %i\n", irq);
44 static int t_probe(struct fmc_device *fmc) argument
49 if (fmc->op->validate)
50 index = fmc->op->validate(fmc,
73 t_remove(struct fmc_device *fmc) argument
[all...]
H A Dfmc-dump.c13 #include <linux/fmc.h>
14 #include <linux/fmc-sdb.h>
44 void fmc_dump_eeprom(const struct fmc_device *fmc) argument
52 pr_info("FMC: %s (%s), slot %i, device %s\n", dev_name(fmc->hwdev),
53 fmc->carrier_name, fmc->slot_id, dev_name(&fmc->dev));
54 pr_info("FMC: dumping eeprom 0x%x (%i) bytes\n", fmc->eeprom_len,
55 fmc->eeprom_len);
57 line = fmc
63 fmc_dump_sdb(const struct fmc_device *fmc) argument
[all...]
H A Dfmc-match.c12 #include <linux/fmc.h>
54 int fmc_fill_id_info(struct fmc_device *fmc) argument
61 if (fmc->eeprom_len && !fmc->eeprom) {
62 fmc->eeprom = kzalloc(fmc->eeprom_len, GFP_KERNEL);
63 if (!fmc->eeprom)
66 ret = fmc->op->read_ee(fmc, 0, fmc
109 fmc_free_id_info(struct fmc_device *fmc) argument
[all...]
H A Dfmc-core.c15 #include <linux/fmc.h>
36 add_uevent_var(env, "MODALIAS=%s", "fmc");
62 .name = "fmc",
72 struct fmc_device *fmc = container_of(dev, struct fmc_device, dev); local
74 kfree(fmc);
86 struct fmc_device *fmc; local
90 fmc = container_of(dev, struct fmc_device, dev);
91 eelen = fmc->eeprom_len;
98 memcpy(buf, fmc->eeprom + off, count);
107 struct fmc_device *fmc; local
146 struct fmc_device *fmc, **devarray; local
259 fmc_device_register(struct fmc_device *fmc) argument
284 fmc_device_unregister(struct fmc_device *fmc) argument
[all...]
H A Dfmc-chardev.c17 #include <linux/fmc.h>
25 struct fmc_device *fmc; member in struct:fc_instance
32 struct fmc_device *fmc; local
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; local
52 module_put(fmc->owner);
60 struct fmc_device *fmc local
81 struct fmc_device *fmc = f->private_data; local
125 fc_probe(struct fmc_device *fmc) argument
162 fc_remove(struct fmc_device *fmc) argument
[all...]
H A Dfmc-write-eeprom.c14 #include <linux/fmc.h>
32 static int fwe_run_tlv(struct fmc_device *fmc, const struct firmware *fw, argument
45 dev_err(&fmc->dev, "invalid tlv at offset %ti\n",
51 dev_info(&fmc->dev, "write %i bytes at 0x%04x\n",
53 err = fmc->op->write_ee(fmc, thisaddr, p + 5, thislen);
56 dev_err(&fmc->dev, "write failure @0x%04x\n",
64 dev_info(&fmc->dev, "write_eeprom: success\n");
68 static int fwe_run_bin(struct fmc_device *fmc, const struct firmware *fw) argument
72 dev_info(&fmc
82 fwe_run(struct fmc_device *fmc, const struct firmware *fw, char *s) argument
106 fwe_probe(struct fmc_device *fmc) argument
147 fwe_remove(struct fmc_device *fmc) argument
[all...]
H A Dfmc-sdb.c12 #include <linux/fmc.h>
15 #include <linux/fmc-sdb.h>
18 static uint32_t __sdb_rd(struct fmc_device *fmc, unsigned long address, argument
21 uint32_t res = fmc_readl(fmc, address);
27 static struct sdb_array *__fmc_scan_sdb_tree(struct fmc_device *fmc, argument
35 onew = fmc_readl(fmc, sdb_addr);
46 onew = __sdb_rd(fmc, sdb_addr + 4, convert);
62 arr->fmc = fmc;
68 __sdb_rd(fmc, sdb_add
91 fmc_scan_sdb_tree(struct fmc_device *fmc, unsigned long address) argument
121 fmc_free_sdb_tree(struct fmc_device *fmc) argument
130 fmc_reprogram(struct fmc_device *fmc, struct fmc_driver *d, char *gw, int sdb_entry) argument
168 __fmc_show_sdb_tree(const struct fmc_device *fmc, const struct sdb_array *arr) argument
245 fmc_show_sdb_tree(const struct fmc_device *fmc) argument
[all...]
H A Dfmc-fakedev.c21 #include <linux/fmc.h>
90 struct fmc_device *fmc[FF_MAX_MEZZANINES]; member in struct:ff_dev
96 static int ff_reprogram(struct fmc_device *fmc, struct fmc_driver *drv, argument
104 fmc->flags &= ~FMC_DEVICE_HAS_CUSTOM;
105 fmc->flags |= FMC_DEVICE_HAS_GOLDEN;
109 dev_info(&fmc->dev, "reprogramming with %s\n", gw);
110 ret = request_firmware(&fw, gw, &fmc->dev);
112 dev_warn(&fmc->dev, "request firmware \"%s\": error %i\n",
116 fmc->flags &= ~FMC_DEVICE_HAS_GOLDEN;
117 fmc
124 ff_irq_request(struct fmc_device *fmc, irq_handler_t handler, char *name, int flags) argument
167 ff_eeprom_read(struct fmc_device *fmc, uint32_t offset, void *buf, size_t size) argument
178 ff_eeprom_write(struct fmc_device *fmc, uint32_t offset, const void *buf, size_t size) argument
193 ff_read_ee(struct fmc_device *fmc, int pos, void *data, int len) argument
200 ff_write_ee(struct fmc_device *fmc, int pos, const void *data, int len) argument
209 ff_readl(struct fmc_device *fmc, int offset) argument
214 ff_writel(struct fmc_device *fmc, uint32_t value, int offset) argument
220 ff_validate(struct fmc_device *fmc, struct fmc_driver *drv) argument
266 struct fmc_device *fmc; local
[all...]
H A DKconfig17 is at git://ohwr.org/fmc-projects/fmc-bus.git .
/drivers/
H A DMakefile160 obj-$(CONFIG_FMC) += fmc/

Completed in 83 milliseconds