Home
last modified time | relevance | path

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

/drivers/scsi/mvsas/
Dmv_init.c99 static void __devinit mvs_phy_init(struct mvs_info *mvi, int phy_id) in mvs_phy_init() argument
101 struct mvs_phy *phy = &mvi->phy[phy_id]; in mvs_phy_init()
104 phy->mvi = mvi; in mvs_phy_init()
107 sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0; in mvs_phy_init()
117 sas_phy->sas_addr = &mvi->sas_addr[0]; in mvs_phy_init()
119 sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; in mvs_phy_init()
123 static void mvs_free(struct mvs_info *mvi) in mvs_free() argument
128 if (!mvi) in mvs_free()
131 if (mvi->flags & MVF_FLAG_SOC) in mvs_free()
136 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 __devinit 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 __devinit 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.h81 ((void *) mvi->rx_fis + 0x100 * id)
83 ((void *) mvi->rx_fis + mvi->chip->fis_offs + 0x100 * reg_set)
108 int (*chip_init)(struct mvs_info *mvi);
109 int (*spi_init)(struct mvs_info *mvi);
110 int (*chip_ioremap)(struct mvs_info *mvi);
111 void (*chip_iounmap)(struct mvs_info *mvi);
112 irqreturn_t (*isr)(struct mvs_info *mvi, int irq, u32 stat);
113 u32 (*isr_status)(struct mvs_info *mvi, int irq);
114 void (*interrupt_enable)(struct mvs_info *mvi);
115 void (*interrupt_disable)(struct mvs_info *mvi);
[all …]
/drivers/scsi/aic7xxx_old/
Daic7xxx.seq63 mvi SCSISEQ, ENRSELI|ENAUTOATNP;
121 mvi QINFIFO_OFFSET call fetch_byte;
131 mvi DMAPARAMS, HDMAEN|DIRECTION|FIFORESET;
190 mvi SCSISEQ, ENSELO|ENAUTOATNO|ENRSELI|ENAUTOATNP ret;
201 mvi SINDEX, ULTRA_ENB+1;
240 mvi CLRSINT0, CLRSELDI;
243 mvi CLRSINT1,CLRBUSFREE;
250 mvi SPIOEN call initialize_channel;
251 mvi MSG_OUT, MSG_NOOP; /* No message to send */
262 mvi SCSISEQ, ENRSELI|ENAUTOATNP; /*
[all …]
/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;