Lines Matching refs:pci_epc

14 struct pci_epc;
44 int (*write_header)(struct pci_epc *epc, u8 func_no,
46 int (*set_bar)(struct pci_epc *epc, u8 func_no,
48 void (*clear_bar)(struct pci_epc *epc, u8 func_no,
50 int (*map_addr)(struct pci_epc *epc, u8 func_no,
52 void (*unmap_addr)(struct pci_epc *epc, u8 func_no,
54 int (*set_msi)(struct pci_epc *epc, u8 func_no, u8 interrupts);
55 int (*get_msi)(struct pci_epc *epc, u8 func_no);
56 int (*set_msix)(struct pci_epc *epc, u8 func_no, u16 interrupts,
58 int (*get_msix)(struct pci_epc *epc, u8 func_no);
59 int (*raise_irq)(struct pci_epc *epc, u8 func_no,
61 int (*start)(struct pci_epc *epc);
62 void (*stop)(struct pci_epc *epc);
63 const struct pci_epc_features* (*get_features)(struct pci_epc *epc,
111 struct pci_epc { struct
147 #define to_pci_epc(device) container_of((device), struct pci_epc, dev)
154 static inline void epc_set_drvdata(struct pci_epc *epc, void *data) in epc_set_drvdata()
159 static inline void *epc_get_drvdata(struct pci_epc *epc) in epc_get_drvdata()
165 pci_epc_register_notifier(struct pci_epc *epc, struct notifier_block *nb) in pci_epc_register_notifier()
170 struct pci_epc *
173 struct pci_epc *
176 void devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc);
177 void pci_epc_destroy(struct pci_epc *epc);
178 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf);
179 void pci_epc_linkup(struct pci_epc *epc);
180 void pci_epc_init_notify(struct pci_epc *epc);
181 void pci_epc_remove_epf(struct pci_epc *epc, struct pci_epf *epf);
182 int pci_epc_write_header(struct pci_epc *epc, u8 func_no,
184 int pci_epc_set_bar(struct pci_epc *epc, u8 func_no,
186 void pci_epc_clear_bar(struct pci_epc *epc, u8 func_no,
188 int pci_epc_map_addr(struct pci_epc *epc, u8 func_no,
191 void pci_epc_unmap_addr(struct pci_epc *epc, u8 func_no,
193 int pci_epc_set_msi(struct pci_epc *epc, u8 func_no, u8 interrupts);
194 int pci_epc_get_msi(struct pci_epc *epc, u8 func_no);
195 int pci_epc_set_msix(struct pci_epc *epc, u8 func_no, u16 interrupts,
197 int pci_epc_get_msix(struct pci_epc *epc, u8 func_no);
198 int pci_epc_raise_irq(struct pci_epc *epc, u8 func_no,
200 int pci_epc_start(struct pci_epc *epc);
201 void pci_epc_stop(struct pci_epc *epc);
202 const struct pci_epc_features *pci_epc_get_features(struct pci_epc *epc,
208 struct pci_epc *pci_epc_get(const char *epc_name);
209 void pci_epc_put(struct pci_epc *epc);
211 int pci_epc_mem_init(struct pci_epc *epc, phys_addr_t base,
213 int pci_epc_multi_mem_init(struct pci_epc *epc,
216 void pci_epc_mem_exit(struct pci_epc *epc);
217 void __iomem *pci_epc_mem_alloc_addr(struct pci_epc *epc,
219 void pci_epc_mem_free_addr(struct pci_epc *epc, phys_addr_t phys_addr,