Lines Matching refs:rmh

152 static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh)  in vx_read_status()  argument
157 if (rmh->DspStat == RMH_SSIZE_FIXED && rmh->LgStat == 0) in vx_read_status()
173 switch (rmh->DspStat) { in vx_read_status()
176 rmh->Stat[0] = val & 0xffff00; in vx_read_status()
177 rmh->LgStat = size + 1; in vx_read_status()
181 rmh->Stat[0] = val; in vx_read_status()
188 rmh->LgStat = size + 1; in vx_read_status()
192 size = rmh->LgStat; in vx_read_status()
193 rmh->Stat[0] = val; /* Val is the status 1st word */ in vx_read_status()
212 rmh->Stat[i] = vx_inb(chip, RXH) << 16; in vx_read_status()
213 rmh->Stat[i] |= vx_inb(chip, RXM) << 8; in vx_read_status()
214 rmh->Stat[i] |= vx_inb(chip, RXL); in vx_read_status()
233 int vx_send_msg_nolock(struct vx_core *chip, struct vx_rmh *rmh) in vx_send_msg_nolock() argument
248 rmh->Cmd[0], rmh->LgCmd, rmh->DspStat); in vx_send_msg_nolock()
249 if (rmh->LgCmd > 1) { in vx_send_msg_nolock()
251 for (i = 1; i < rmh->LgCmd; i++) in vx_send_msg_nolock()
252 printk(KERN_CONT "0x%06x ", rmh->Cmd[i]); in vx_send_msg_nolock()
257 if (rmh->LgCmd > 1) in vx_send_msg_nolock()
258 rmh->Cmd[0] |= MASK_MORE_THAN_1_WORD_COMMAND; in vx_send_msg_nolock()
260 rmh->Cmd[0] &= MASK_1_WORD_COMMAND; in vx_send_msg_nolock()
270 vx_outb(chip, TXH, (rmh->Cmd[0] >> 16) & 0xff); in vx_send_msg_nolock()
271 vx_outb(chip, TXM, (rmh->Cmd[0] >> 8) & 0xff); in vx_send_msg_nolock()
272 vx_outb(chip, TXL, rmh->Cmd[0] & 0xff); in vx_send_msg_nolock()
302 if (rmh->LgCmd > 1) { in vx_send_msg_nolock()
303 for (i = 1; i < rmh->LgCmd; i++) { in vx_send_msg_nolock()
312 vx_outb(chip, TXH, (rmh->Cmd[i] >> 16) & 0xff); in vx_send_msg_nolock()
313 vx_outb(chip, TXM, (rmh->Cmd[i] >> 8) & 0xff); in vx_send_msg_nolock()
314 vx_outb(chip, TXL, rmh->Cmd[i] & 0xff); in vx_send_msg_nolock()
335 return vx_read_status(chip, rmh); in vx_send_msg_nolock()
346 int vx_send_msg(struct vx_core *chip, struct vx_rmh *rmh) in vx_send_msg() argument
351 err = vx_send_msg_nolock(chip, rmh); in vx_send_msg()