• Home
  • Raw
  • Download

Lines Matching refs:rmh

160 static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh)  in vx_read_status()  argument
165 if (rmh->DspStat == RMH_SSIZE_FIXED && rmh->LgStat == 0) in vx_read_status()
181 switch (rmh->DspStat) { in vx_read_status()
184 rmh->Stat[0] = val & 0xffff00; in vx_read_status()
185 rmh->LgStat = size + 1; in vx_read_status()
189 rmh->Stat[0] = val; in vx_read_status()
196 rmh->LgStat = size + 1; in vx_read_status()
200 size = rmh->LgStat; in vx_read_status()
201 rmh->Stat[0] = val; /* Val is the status 1st word */ in vx_read_status()
220 rmh->Stat[i] = vx_inb(chip, RXH) << 16; in vx_read_status()
221 rmh->Stat[i] |= vx_inb(chip, RXM) << 8; in vx_read_status()
222 rmh->Stat[i] |= vx_inb(chip, RXL); in vx_read_status()
241 int vx_send_msg_nolock(struct vx_core *chip, struct vx_rmh *rmh) in vx_send_msg_nolock() argument
255 rmh->Cmd[0], rmh->LgCmd, rmh->DspStat); in vx_send_msg_nolock()
256 if (rmh->LgCmd > 1) { in vx_send_msg_nolock()
258 for (i = 1; i < rmh->LgCmd; i++) in vx_send_msg_nolock()
259 printk(KERN_CONT "0x%06x ", rmh->Cmd[i]); in vx_send_msg_nolock()
264 if (rmh->LgCmd > 1) in vx_send_msg_nolock()
265 rmh->Cmd[0] |= MASK_MORE_THAN_1_WORD_COMMAND; in vx_send_msg_nolock()
267 rmh->Cmd[0] &= MASK_1_WORD_COMMAND; in vx_send_msg_nolock()
276 vx_outb(chip, TXH, (rmh->Cmd[0] >> 16) & 0xff); in vx_send_msg_nolock()
277 vx_outb(chip, TXM, (rmh->Cmd[0] >> 8) & 0xff); in vx_send_msg_nolock()
278 vx_outb(chip, TXL, rmh->Cmd[0] & 0xff); in vx_send_msg_nolock()
305 if (rmh->LgCmd > 1) { in vx_send_msg_nolock()
306 for (i = 1; i < rmh->LgCmd; i++) { in vx_send_msg_nolock()
314 vx_outb(chip, TXH, (rmh->Cmd[i] >> 16) & 0xff); in vx_send_msg_nolock()
315 vx_outb(chip, TXM, (rmh->Cmd[i] >> 8) & 0xff); in vx_send_msg_nolock()
316 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()