Lines Matching refs:altera_pcie
86 struct altera_pcie { struct
98 int (*tlp_read_pkt)(struct altera_pcie *pcie, u32 *value); argument
99 void (*tlp_write_pkt)(struct altera_pcie *pcie, u32 *headers,
101 bool (*get_link_status)(struct altera_pcie *pcie);
102 int (*rp_read_cfg)(struct altera_pcie *pcie, int where,
104 int (*rp_write_cfg)(struct altera_pcie *pcie, u8 busno,
124 static inline void cra_writel(struct altera_pcie *pcie, const u32 value, in cra_writel()
130 static inline u32 cra_readl(struct altera_pcie *pcie, const u32 reg) in cra_readl()
135 static bool altera_pcie_link_up(struct altera_pcie *pcie) in altera_pcie_link_up()
140 static bool s10_altera_pcie_link_up(struct altera_pcie *pcie) in s10_altera_pcie_link_up()
168 static void tlp_write_tx(struct altera_pcie *pcie, in tlp_write_tx()
176 static void s10_tlp_write_tx(struct altera_pcie *pcie, u32 reg0, u32 ctrl) in s10_tlp_write_tx()
182 static bool altera_pcie_valid_device(struct altera_pcie *pcie, in altera_pcie_valid_device()
198 static int tlp_read_packet(struct altera_pcie *pcie, u32 *value) in tlp_read_packet()
237 static int s10_tlp_read_packet(struct altera_pcie *pcie, u32 *value) in s10_tlp_read_packet()
284 static void tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in tlp_write_packet()
311 static void s10_tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in s10_tlp_write_packet()
320 static void get_tlp_header(struct altera_pcie *pcie, u8 bus, u32 devfn, in get_tlp_header()
338 static int tlp_cfg_dword_read(struct altera_pcie *pcie, u8 bus, u32 devfn, in tlp_cfg_dword_read()
351 static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, in tlp_cfg_dword_write()
382 static int s10_rp_read_cfg(struct altera_pcie *pcie, int where, in s10_rp_read_cfg()
402 static int s10_rp_write_cfg(struct altera_pcie *pcie, u8 busno, in s10_rp_write_cfg()
429 static int _altera_pcie_cfg_read(struct altera_pcie *pcie, u8 busno, in _altera_pcie_cfg_read()
473 static int _altera_pcie_cfg_write(struct altera_pcie *pcie, u8 busno, in _altera_pcie_cfg_write()
507 struct altera_pcie *pcie = bus->sysdata; in altera_pcie_cfg_read()
522 struct altera_pcie *pcie = bus->sysdata; in altera_pcie_cfg_write()
539 static int altera_read_cap_word(struct altera_pcie *pcie, u8 busno, in altera_read_cap_word()
553 static int altera_write_cap_word(struct altera_pcie *pcie, u8 busno, in altera_write_cap_word()
562 static void altera_wait_link_retrain(struct altera_pcie *pcie) in altera_wait_link_retrain()
597 static void altera_pcie_retrain(struct altera_pcie *pcie) in altera_pcie_retrain()
642 struct altera_pcie *pcie; in altera_pcie_isr()
667 static int altera_pcie_init_irq_domain(struct altera_pcie *pcie) in altera_pcie_init_irq_domain()
683 static void altera_pcie_irq_teardown(struct altera_pcie *pcie) in altera_pcie_irq_teardown()
690 static int altera_pcie_parse_dt(struct altera_pcie *pcie) in altera_pcie_parse_dt()
714 static void altera_pcie_host_init(struct altera_pcie *pcie) in altera_pcie_host_init()
764 struct altera_pcie *pcie; in altera_pcie_probe()
810 struct altera_pcie *pcie = platform_get_drvdata(pdev); in altera_pcie_remove()