Home
last modified time | relevance | path

Searched refs:mvi (Results 1 – 12 of 12) sorted by relevance

/linux-4.4.14/drivers/scsi/mvsas/
Dmv_init.c89 static void mvs_phy_init(struct mvs_info *mvi, int phy_id) in mvs_phy_init() argument
91 struct mvs_phy *phy = &mvi->phy[phy_id]; in mvs_phy_init()
94 phy->mvi = mvi; in mvs_phy_init()
97 sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0; in mvs_phy_init()
107 sas_phy->sas_addr = &mvi->sas_addr[0]; in mvs_phy_init()
109 sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; in mvs_phy_init()
113 static void mvs_free(struct mvs_info *mvi) in mvs_free() argument
118 if (!mvi) in mvs_free()
121 if (mvi->flags & MVF_FLAG_SOC) in mvs_free()
126 if (mvi->dma_pool) in mvs_free()
[all …]
Dmv_94xx.c30 static void mvs_94xx_detect_porttype(struct mvs_info *mvi, int i) in mvs_94xx_detect_porttype() argument
33 struct mvs_phy *phy = &mvi->phy[i]; in mvs_94xx_detect_porttype()
36 mvs_write_port_vsr_addr(mvi, i, VSR_PHY_MODE3); in mvs_94xx_detect_porttype()
37 reg = mvs_read_port_vsr_data(mvi, i); in mvs_94xx_detect_porttype()
51 void set_phy_tuning(struct mvs_info *mvi, int phy_id, in set_phy_tuning() argument
70 if (mvi->pdev->revision == VANIR_A0_REV) in set_phy_tuning()
96 mvs_write_port_vsr_addr(mvi, phy_id, setting_0); in set_phy_tuning()
97 tmp = mvs_read_port_vsr_data(mvi, phy_id); in set_phy_tuning()
102 mvs_write_port_vsr_data(mvi, phy_id, tmp); in set_phy_tuning()
105 mvs_write_port_vsr_addr(mvi, phy_id, setting_1); in set_phy_tuning()
[all …]
Dmv_64xx.c30 static void mvs_64xx_detect_porttype(struct mvs_info *mvi, int i) in mvs_64xx_detect_porttype() argument
32 void __iomem *regs = mvi->regs; in mvs_64xx_detect_porttype()
34 struct mvs_phy *phy = &mvi->phy[i]; in mvs_64xx_detect_porttype()
44 static void mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) in mvs_64xx_enable_xmt() argument
46 void __iomem *regs = mvi->regs; in mvs_64xx_enable_xmt()
50 if (mvi->chip->n_phy <= MVS_SOC_PORTS) in mvs_64xx_enable_xmt()
57 static void mvs_64xx_phy_hacks(struct mvs_info *mvi) in mvs_64xx_phy_hacks() argument
59 void __iomem *regs = mvi->regs; in mvs_64xx_phy_hacks()
62 mvs_phy_hacks(mvi); in mvs_64xx_phy_hacks()
64 if (!(mvi->flags & MVF_FLAG_SOC)) { in mvs_64xx_phy_hacks()
[all …]
Dmv_chips.h44 static inline u32 mvs_cr32(struct mvs_info *mvi, u32 addr) in mvs_cr32() argument
46 void __iomem *regs = mvi->regs; in mvs_cr32()
51 static inline void mvs_cw32(struct mvs_info *mvi, u32 addr, u32 val) in mvs_cw32() argument
53 void __iomem *regs = mvi->regs; in mvs_cw32()
58 static inline u32 mvs_read_phy_ctl(struct mvs_info *mvi, u32 port) in mvs_read_phy_ctl() argument
60 void __iomem *regs = mvi->regs; in mvs_read_phy_ctl()
65 static inline void mvs_write_phy_ctl(struct mvs_info *mvi, u32 port, u32 val) in mvs_write_phy_ctl() argument
67 void __iomem *regs = mvi->regs; in mvs_write_phy_ctl()
74 static inline u32 mvs_read_port(struct mvs_info *mvi, u32 off, in mvs_read_port() argument
77 void __iomem *regs = mvi->regs + off; in mvs_read_port()
[all …]
Dmv_sas.c28 static int mvs_find_tag(struct mvs_info *mvi, struct sas_task *task, u32 *tag) in mvs_find_tag() argument
39 void mvs_tag_clear(struct mvs_info *mvi, u32 tag) in mvs_tag_clear() argument
41 void *bitmap = mvi->tags; in mvs_tag_clear()
45 void mvs_tag_free(struct mvs_info *mvi, u32 tag) in mvs_tag_free() argument
47 mvs_tag_clear(mvi, tag); in mvs_tag_free()
50 void mvs_tag_set(struct mvs_info *mvi, unsigned int tag) in mvs_tag_set() argument
52 void *bitmap = mvi->tags; in mvs_tag_set()
56 inline int mvs_tag_alloc(struct mvs_info *mvi, u32 *tag_out) in mvs_tag_alloc() argument
59 void *bitmap = mvi->tags; in mvs_tag_alloc()
61 index = find_first_zero_bit(bitmap, mvi->tags_num); in mvs_tag_alloc()
[all …]
Dmv_sas.h82 ((void *) mvi->rx_fis + 0x100 * id)
84 ((void *) mvi->rx_fis + mvi->chip->fis_offs + 0x100 * reg_set)
109 int (*chip_init)(struct mvs_info *mvi);
110 int (*spi_init)(struct mvs_info *mvi);
111 int (*chip_ioremap)(struct mvs_info *mvi);
112 void (*chip_iounmap)(struct mvs_info *mvi);
113 irqreturn_t (*isr)(struct mvs_info *mvi, int irq, u32 stat);
114 u32 (*isr_status)(struct mvs_info *mvi, int irq);
115 void (*interrupt_enable)(struct mvs_info *mvi);
116 void (*interrupt_disable)(struct mvs_info *mvi);
[all …]
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic7xxx.seq120 mvi DMAPARAMS, HDMAEN|DIRECTION|FIFORESET;
133 mvi SCB_MISMATCH call set_seqint;
166 mvi CLRSINT1,CLRBUSFREE;
183 mvi CLRSINT0, CLRSELDI;
190 mvi SCSISIGO, P_MESGOUT|BSYO;
196 mvi SEQ_FLAGS, CMDPHASE_PENDING;
200 mvi DINDEX, CCHADDR;
201 mvi SHARED_DATA_ADDR call set_32byte_addr;
202 mvi CCSCBCTL, CCSCBRESET;
204 mvi DINDEX, HADDR;
[all …]
Daic79xx.seq104 mvi COMPLETE_ON_QFREEZE_HEAD[1], SCB_LIST_NULL;
230 mvi COMPLETE_DMA_SCB_TAIL[1], SCB_LIST_NULL;
240 mvi COMPLETE_SCB_DMAINPROG_HEAD[1], SCB_LIST_NULL;
281 mvi CLRSEQINTSTAT, CLRSEQ_SWTMRTO;
286 mvi INTSTAT, CMDCMPLT;
320 mvi SCB_NEXT[1], SCB_LIST_NULL;
321 mvi SCB_NEXT2[1], SCB_LIST_NULL;
341 mvi SINDEX[1], (WAITING_SCB_TAILS >> 8);
436 mvi CCSCBCTL, CCSCBRESET;
467 mvi CCSCBCTL, CCSCBEN|CCSCBRESET;
[all …]
Daic79xx.reg63 mvi MK_MODE(src, dst) call set_mode_work_around; \
65 mvi MODE_PTR, MK_MODE(src, dst); \
77 mvi code call set_seqint_work_around; \
79 mvi SEQINTCODE, code; \
3494 * mvi 0xFF call some_routine;
/linux-4.4.14/arch/s390/kernel/
Dhead64.S22 mvi __LC_LPP,0x80 # and set LPP_MAGIC
Dhead.S150 mvi __LC_AR_MODE_ID,1 # set esame flag
290 mvi __LC_AR_MODE_ID,1 # set esame flag
Dentry.S1103 mvi __PT_FLAGS+7(%r9),_PIF_SYSCALL