Lines Matching full:mvi
28 static inline u32 mvs_cr32(struct mvs_info *mvi, u32 addr) in mvs_cr32() argument
30 void __iomem *regs = mvi->regs; in mvs_cr32()
35 static inline void mvs_cw32(struct mvs_info *mvi, u32 addr, u32 val) in mvs_cw32() argument
37 void __iomem *regs = mvi->regs; in mvs_cw32()
42 static inline u32 mvs_read_phy_ctl(struct mvs_info *mvi, u32 port) in mvs_read_phy_ctl() argument
44 void __iomem *regs = mvi->regs; in mvs_read_phy_ctl()
49 static inline void mvs_write_phy_ctl(struct mvs_info *mvi, u32 port, u32 val) in mvs_write_phy_ctl() argument
51 void __iomem *regs = mvi->regs; in mvs_write_phy_ctl()
58 static inline u32 mvs_read_port(struct mvs_info *mvi, u32 off, in mvs_read_port() argument
61 void __iomem *regs = mvi->regs + off; in mvs_read_port()
62 void __iomem *regs2 = mvi->regs + off2; in mvs_read_port()
67 static inline void mvs_write_port(struct mvs_info *mvi, u32 off, u32 off2, in mvs_write_port() argument
70 void __iomem *regs = mvi->regs + off; in mvs_write_port()
71 void __iomem *regs2 = mvi->regs + off2; in mvs_write_port()
78 static inline u32 mvs_read_port_cfg_data(struct mvs_info *mvi, u32 port) in mvs_read_port_cfg_data() argument
80 return mvs_read_port(mvi, MVS_P0_CFG_DATA, in mvs_read_port_cfg_data()
84 static inline void mvs_write_port_cfg_data(struct mvs_info *mvi, in mvs_write_port_cfg_data() argument
87 mvs_write_port(mvi, MVS_P0_CFG_DATA, in mvs_write_port_cfg_data()
91 static inline void mvs_write_port_cfg_addr(struct mvs_info *mvi, in mvs_write_port_cfg_addr() argument
94 mvs_write_port(mvi, MVS_P0_CFG_ADDR, in mvs_write_port_cfg_addr()
99 static inline u32 mvs_read_port_vsr_data(struct mvs_info *mvi, u32 port) in mvs_read_port_vsr_data() argument
101 return mvs_read_port(mvi, MVS_P0_VSR_DATA, in mvs_read_port_vsr_data()
105 static inline void mvs_write_port_vsr_data(struct mvs_info *mvi, in mvs_write_port_vsr_data() argument
108 mvs_write_port(mvi, MVS_P0_VSR_DATA, in mvs_write_port_vsr_data()
112 static inline void mvs_write_port_vsr_addr(struct mvs_info *mvi, in mvs_write_port_vsr_addr() argument
115 mvs_write_port(mvi, MVS_P0_VSR_ADDR, in mvs_write_port_vsr_addr()
120 static inline u32 mvs_read_port_irq_stat(struct mvs_info *mvi, u32 port) in mvs_read_port_irq_stat() argument
122 return mvs_read_port(mvi, MVS_P0_INT_STAT, in mvs_read_port_irq_stat()
126 static inline void mvs_write_port_irq_stat(struct mvs_info *mvi, in mvs_write_port_irq_stat() argument
129 mvs_write_port(mvi, MVS_P0_INT_STAT, in mvs_write_port_irq_stat()
133 static inline u32 mvs_read_port_irq_mask(struct mvs_info *mvi, u32 port) in mvs_read_port_irq_mask() argument
135 return mvs_read_port(mvi, MVS_P0_INT_MASK, in mvs_read_port_irq_mask()
140 static inline void mvs_write_port_irq_mask(struct mvs_info *mvi, in mvs_write_port_irq_mask() argument
143 mvs_write_port(mvi, MVS_P0_INT_MASK, in mvs_write_port_irq_mask()
147 static inline void mvs_phy_hacks(struct mvs_info *mvi) in mvs_phy_hacks() argument
151 tmp = mvs_cr32(mvi, CMD_PHY_TIMER); in mvs_phy_hacks()
154 mvs_cw32(mvi, CMD_PHY_TIMER, tmp); in mvs_phy_hacks()
157 mvs_cw32(mvi, CMD_SAS_CTL1, 0x7f7f); in mvs_phy_hacks()
160 tmp = mvs_cr32(mvi, CMD_SAS_CTL0); in mvs_phy_hacks()
163 mvs_cw32(mvi, CMD_SAS_CTL0, tmp); in mvs_phy_hacks()
165 mvs_cw32(mvi, CMD_WD_TIMER, 0x7a0000); in mvs_phy_hacks()
168 mvs_cw32(mvi, CMD_APP_ERR_CONFIG, 0xffefbf7d); in mvs_phy_hacks()
171 static inline void mvs_int_sata(struct mvs_info *mvi) in mvs_int_sata() argument
174 void __iomem *regs = mvi->regs; in mvs_int_sata()
178 MVS_CHIP_DISP->clear_active_cmds(mvi); in mvs_int_sata()
181 static inline void mvs_int_full(struct mvs_info *mvi) in mvs_int_full() argument
183 void __iomem *regs = mvi->regs; in mvs_int_full()
188 mvs_int_rx(mvi, false); in mvs_int_full()
190 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_int_full()
193 mvs_int_port(mvi, i, tmp); in mvs_int_full()
197 MVS_CHIP_DISP->non_spec_ncq_error(mvi); in mvs_int_full()
200 mvs_int_sata(mvi); in mvs_int_full()
205 static inline void mvs_start_delivery(struct mvs_info *mvi, u32 tx) in mvs_start_delivery() argument
207 void __iomem *regs = mvi->regs; in mvs_start_delivery()
211 static inline u32 mvs_rx_update(struct mvs_info *mvi) in mvs_rx_update() argument
213 void __iomem *regs = mvi->regs; in mvs_rx_update()
227 static inline void mvs_show_pcie_usage(struct mvs_info *mvi) in mvs_show_pcie_usage() argument
235 if (mvi->flags & MVF_FLAG_SOC || mvi->id > 0) in mvs_show_pcie_usage()
238 pci_read_config_word(mvi->pdev, PCR_LINK_STAT, &link_stat); in mvs_show_pcie_usage()
242 dev_printk(KERN_INFO, mvi->dev, in mvs_show_pcie_usage()