Lines Matching defs:mvs_dispatch
89 struct mvs_dispatch { struct
90 char *name;
91 int (*chip_init)(struct mvs_info *mvi);
92 int (*spi_init)(struct mvs_info *mvi);
93 int (*chip_ioremap)(struct mvs_info *mvi);
94 void (*chip_iounmap)(struct mvs_info *mvi);
95 irqreturn_t (*isr)(struct mvs_info *mvi, int irq, u32 stat);
96 u32 (*isr_status)(struct mvs_info *mvi, int irq);
97 void (*interrupt_enable)(struct mvs_info *mvi);
98 void (*interrupt_disable)(struct mvs_info *mvi);
100 u32 (*read_phy_ctl)(struct mvs_info *mvi, u32 port);
101 void (*write_phy_ctl)(struct mvs_info *mvi, u32 port, u32 val);
103 u32 (*read_port_cfg_data)(struct mvs_info *mvi, u32 port);
104 void (*write_port_cfg_data)(struct mvs_info *mvi, u32 port, u32 val);
105 void (*write_port_cfg_addr)(struct mvs_info *mvi, u32 port, u32 addr);
107 u32 (*read_port_vsr_data)(struct mvs_info *mvi, u32 port);
108 void (*write_port_vsr_data)(struct mvs_info *mvi, u32 port, u32 val);
109 void (*write_port_vsr_addr)(struct mvs_info *mvi, u32 port, u32 addr);
111 u32 (*read_port_irq_stat)(struct mvs_info *mvi, u32 port);
112 void (*write_port_irq_stat)(struct mvs_info *mvi, u32 port, u32 val);
114 u32 (*read_port_irq_mask)(struct mvs_info *mvi, u32 port);
115 void (*write_port_irq_mask)(struct mvs_info *mvi, u32 port, u32 val);
117 void (*command_active)(struct mvs_info *mvi, u32 slot_idx);
118 void (*clear_srs_irq)(struct mvs_info *mvi, u8 reg_set, u8 clear_all);
119 void (*issue_stop)(struct mvs_info *mvi, enum mvs_port_type type,
121 void (*start_delivery)(struct mvs_info *mvi, u32 tx);
122 u32 (*rx_update)(struct mvs_info *mvi);
123 void (*int_full)(struct mvs_info *mvi);
124 u8 (*assign_reg_set)(struct mvs_info *mvi, u8 *tfs);
125 void (*free_reg_set)(struct mvs_info *mvi, u8 *tfs);
126 u32 (*prd_size)(void);
127 u32 (*prd_count)(void);
128 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
129 void (*detect_porttype)(struct mvs_info *mvi, int i);
130 int (*oob_done)(struct mvs_info *mvi, int i);
131 void (*fix_phy_info)(struct mvs_info *mvi, int i,
133 void (*phy_work_around)(struct mvs_info *mvi, int i);
134 void (*phy_set_link_rate)(struct mvs_info *mvi, u32 phy_id,
136 u32 (*phy_max_link_rate)(void);
137 void (*phy_disable)(struct mvs_info *mvi, u32 phy_id);
138 void (*phy_enable)(struct mvs_info *mvi, u32 phy_id);
139 void (*phy_reset)(struct mvs_info *mvi, u32 phy_id, int hard);
140 void (*stp_reset)(struct mvs_info *mvi, u32 phy_id);
141 void (*clear_active_cmds)(struct mvs_info *mvi);
142 u32 (*spi_read_data)(struct mvs_info *mvi);
143 void (*spi_write_data)(struct mvs_info *mvi, u32 data);
144 int (*spi_buildcmd)(struct mvs_info *mvi,
170 const struct mvs_dispatch *dispatch; argument