Lines Matching defs:mu
114 struct mlx_usercommand *mu);
1990 struct mlx_usercommand *mu;
2000 mu = (struct mlx_usercommand *)mc->mc_private;
2012 mu->mu_bufptr = 8;
2018 if (mu->mu_datasize > 0) {
2019 mc->mc_mailbox[mu->mu_bufptr ] = mc->mc_dataphys & 0xff;
2020 mc->mc_mailbox[mu->mu_bufptr + 1] = (mc->mc_dataphys >> 8) & 0xff;
2021 mc->mc_mailbox[mu->mu_bufptr + 2] = (mc->mc_dataphys >> 16) & 0xff;
2022 mc->mc_mailbox[mu->mu_bufptr + 3] = (mc->mc_dataphys >> 24) & 0xff;
2040 mlx_user_command(struct mlx_softc *sc, struct mlx_usercommand *mu)
2058 bcopy(mu->mu_command, mc->mc_mailbox, sizeof(mc->mc_mailbox));
2065 if (mu->mu_datasize > 0) {
2066 if (mu->mu_datasize > MLX_MAXPHYS) {
2071 kbuf = malloc(mu->mu_datasize, M_DEVBUF, M_WAITOK);
2072 if ((error = copyin(mu->mu_buf, kbuf, mu->mu_datasize))) {
2085 if (mu->mu_datasize > 0) {
2088 if ((mu->mu_bufptr < 0) || (mu->mu_bufptr > (sizeof(mu->mu_command) -
2097 mc->mc_length = mu->mu_datasize;
2098 mc->mc_private = mu;
2105 mu->mu_status = mc->mc_status;
2106 if (mu->mu_datasize > 0) {
2108 error = copyout(kbuf, mu->mu_buf, mu->mu_datasize);