Home | History | Annotate | Download | only in ic

Lines Matching refs:mu

1718 mlx_user_command(struct mlx_softc *mlx, struct mlx_usercommand *mu)
1725 if ((mu->mu_bufdir & ~MU_XFER_MASK) != 0)
1738 memcpy(mc->mc_mbox, mu->mu_command, sizeof(mc->mc_mbox));
1744 if (mu->mu_datasize > 0) {
1745 if (mu->mu_datasize > MAXPHYS)
1748 kbuf = malloc(mu->mu_datasize, M_DEVBUF, M_WAITOK);
1755 if ((mu->mu_bufdir & MU_XFER_OUT) != 0) {
1756 rv = copyin(mu->mu_buf, kbuf, mu->mu_datasize);
1765 rv = mlx_ccb_map(mlx, mc, kbuf, mu->mu_datasize, mu->mu_bufdir);
1785 mu->mu_bufptr = 8;
1793 if (mu->mu_datasize > 0) {
1795 if (mu->mu_bufptr < 0 ||
1796 mu->mu_bufptr > sizeof(mu->mu_command) - 4) {
1802 mc->mc_mbox[mu->mu_bufptr] = mc->mc_xfer_phys;
1803 mc->mc_mbox[mu->mu_bufptr+1] = mc->mc_xfer_phys >> 8;
1804 mc->mc_mbox[mu->mu_bufptr+2] = mc->mc_xfer_phys >> 16;
1805 mc->mc_mbox[mu->mu_bufptr+3] = mc->mc_xfer_phys >> 24;
1818 mu->mu_status = mc->mc_status;
1825 if (mu->mu_datasize > 0 && (mu->mu_bufdir & MU_XFER_IN) != 0) {
1826 rv = copyout(kbuf, mu->mu_buf, mu->mu_datasize);