Home
last modified time | relevance | path

Searched refs:fmc_device (Results 1 – 13 of 13) sorted by relevance

/linux-4.4.14/include/linux/
Dfmc.h19 struct fmc_device;
78 int (*probe)(struct fmc_device *);
79 int (*remove)(struct fmc_device *);
132 uint32_t (*read32)(struct fmc_device *fmc, int offset);
133 void (*write32)(struct fmc_device *fmc, uint32_t value, int offset);
134 int (*validate)(struct fmc_device *fmc, struct fmc_driver *drv);
135 int (*reprogram)(struct fmc_device *f, struct fmc_driver *d, char *gw);
136 int (*irq_request)(struct fmc_device *fmc, irq_handler_t h,
138 void (*irq_ack)(struct fmc_device *fmc);
139 int (*irq_free)(struct fmc_device *fmc);
[all …]
Dfmc-sdb.h21 struct fmc_device;
28 struct fmc_device *fmc; /* the device that hosts it */
34 extern int fmc_scan_sdb_tree(struct fmc_device *fmc, unsigned long address);
35 extern void fmc_show_sdb_tree(const struct fmc_device *fmc);
38 extern int fmc_free_sdb_tree(struct fmc_device *fmc);
/linux-4.4.14/drivers/fmc/
Dfmc-core.c43 struct fmc_device *fdev = to_fmc_device(dev); in fmc_probe()
51 struct fmc_device *fdev = to_fmc_device(dev); in fmc_remove()
72 struct fmc_device *fmc = container_of(dev, struct fmc_device, dev); in fmc_release()
86 struct fmc_device *fmc; in fmc_read_eeprom()
90 fmc = container_of(dev, struct fmc_device, dev); in fmc_read_eeprom()
107 struct fmc_device *fmc; in fmc_write_eeprom()
110 fmc = container_of(dev, struct fmc_device, dev); in fmc_write_eeprom()
144 int fmc_device_register_n(struct fmc_device **devs, int n) in fmc_device_register_n()
146 struct fmc_device *fmc, **devarray; in fmc_device_register_n()
259 int fmc_device_register(struct fmc_device *fmc) in fmc_device_register()
[all …]
Dfmc-chardev.c25 struct fmc_device *fmc;
32 struct fmc_device *fmc; in fc_open()
51 struct fmc_device *fmc = f->private_data; in fc_release()
60 struct fmc_device *fmc = f->private_data; in fc_read()
81 struct fmc_device *fmc = f->private_data; in fc_write()
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) in fc_probe()
162 static int fc_remove(struct fmc_device *fmc) in fc_remove()
Dfmc-fakedev.c90 struct fmc_device *fmc[FF_MAX_MEZZANINES];
96 static int ff_reprogram(struct fmc_device *fmc, struct fmc_driver *drv, in ff_reprogram()
124 static int ff_irq_request(struct fmc_device *fmc, irq_handler_t handler, in ff_irq_request()
167 static int ff_eeprom_read(struct fmc_device *fmc, uint32_t offset, in ff_eeprom_read()
178 static int ff_eeprom_write(struct fmc_device *fmc, uint32_t offset, in ff_eeprom_write()
193 static int ff_read_ee(struct fmc_device *fmc, int pos, void *data, int len) in ff_read_ee()
200 static int ff_write_ee(struct fmc_device *fmc, int pos, in ff_write_ee()
209 static uint32_t ff_readl(struct fmc_device *fmc, int offset) in ff_readl()
214 static void ff_writel(struct fmc_device *fmc, uint32_t value, int offset) in ff_writel()
220 static int ff_validate(struct fmc_device *fmc, struct fmc_driver *drv) in ff_validate()
[all …]
Dfmc-write-eeprom.c32 static int fwe_run_tlv(struct fmc_device *fmc, const struct firmware *fw, in fwe_run_tlv()
68 static int fwe_run_bin(struct fmc_device *fmc, const struct firmware *fw) in fwe_run_bin()
82 static int fwe_run(struct fmc_device *fmc, const struct firmware *fw, char *s) in fwe_run()
106 static int fwe_probe(struct fmc_device *fmc) in fwe_probe()
147 static int fwe_remove(struct fmc_device *fmc) in fwe_remove()
Dfmc-sdb.c18 static uint32_t __sdb_rd(struct fmc_device *fmc, unsigned long address, in __sdb_rd()
27 static struct sdb_array *__fmc_scan_sdb_tree(struct fmc_device *fmc, in __fmc_scan_sdb_tree()
91 int fmc_scan_sdb_tree(struct fmc_device *fmc, unsigned long address) in fmc_scan_sdb_tree()
121 int fmc_free_sdb_tree(struct fmc_device *fmc) in fmc_free_sdb_tree()
130 int fmc_reprogram(struct fmc_device *fmc, struct fmc_driver *d, char *gw, in fmc_reprogram()
168 static void __fmc_show_sdb_tree(const struct fmc_device *fmc, in __fmc_show_sdb_tree()
245 void fmc_show_sdb_tree(const struct fmc_device *fmc) in fmc_show_sdb_tree()
Dfmc-trivial.c25 struct fmc_device *fmc = dev_id; in t_handler()
44 static int t_probe(struct fmc_device *fmc) in t_probe()
73 static int t_remove(struct fmc_device *fmc) in t_remove()
Dfmc-match.c25 struct fmc_device *fdev = to_fmc_device(dev); in fmc_match()
54 int fmc_fill_id_info(struct fmc_device *fmc) in fmc_fill_id_info()
109 void fmc_free_id_info(struct fmc_device *fmc) in fmc_free_id_info()
Dfmc-dump.c44 void fmc_dump_eeprom(const struct fmc_device *fmc) in fmc_dump_eeprom()
63 void fmc_dump_sdb(const struct fmc_device *fmc) in fmc_dump_sdb()
/linux-4.4.14/Documentation/fmc/
DAPI.txt9 int fmc_device_register(struct fmc_device *fmc);
10 void fmc_device_unregister(struct fmc_device *fmc);
12 int fmc_device_register_n(struct fmc_device **fmc, int n);
13 void fmc_device_unregister_n(struct fmc_device **fmc, int n);
15 uint32_t fmc_readl(struct fmc_device *fmc, int offset);
16 void fmc_writel(struct fmc_device *fmc, uint32_t val, int off);
17 void *fmc_get_drvdata(struct fmc_device *fmc);
18 void fmc_set_drvdata(struct fmc_device *fmc, void *data);
20 int fmc_reprogram(struct fmc_device *f, struct fmc_driver *d, char *gw,
25 Driver::. Please note that structures of type fmc_device must be
Dcarrier.txt30 struct fmc_device {
44 struct fmc_device **devarray; /* Allocated by the bus */
135 uint32_t (*readl)(struct fmc_device *fmc, int offset);
136 void (*writel)(struct fmc_device *fmc, uint32_t value, int offset);
137 int (*reprogram)(struct fmc_device *f, struct fmc_driver *d, char *gw);
138 int (*validate)(struct fmc_device *fmc, struct fmc_driver *drv);
139 int (*irq_request)(struct fmc_device *fmc, irq_handler_t h,
141 void (*irq_ack)(struct fmc_device *fmc);
142 int (*irq_free)(struct fmc_device *fmc);
143 int (*gpio_config)(struct fmc_device *fmc, struct fmc_gpio *gpio,
[all …]
DFMC-and-SDB.txt84 int fmc_scan_sdb_tree(struct fmc_device *fmc, unsigned long address);
85 void fmc_show_sdb_tree(struct fmc_device *fmc);
88 int fmc_free_sdb_tree(struct fmc_device *fmc);