Lines Matching defs:mu
81 mlx_command(struct mlx_usercommand *mu, int bomb)
85 if ((rv = ioctl(mlxfd, MLX_COMMAND, mu)) != 0 && bomb)
87 mu->mu_command[0]);
95 struct mlx_usercommand mu;
98 memset(&mu, 0, sizeof(mu));
100 mu.mu_datasize = sizeof(*enq);
101 mu.mu_buf = enq;
102 mu.mu_bufptr = 8;
103 mu.mu_bufdir = MU_XFER_IN;
104 mu.mu_command[0] = MLX_CMD_ENQUIRY2;
106 mlx_command(&mu, 1);
114 memset(&mu, 0, sizeof(mu));
116 mu.mu_datasize = sizeof(meo);
117 mu.mu_buf = &meo;
118 mu.mu_bufptr = 8;
119 mu.mu_bufdir = MU_XFER_IN;
120 mu.mu_command[0] = MLX_CMD_ENQUIRY_OLD;
122 mlx_command(&mu, 1);
134 struct mlx_usercommand mu;
136 memset(&mu, 0, sizeof(mu));
138 mu.mu_datasize = sizeof(*cfg);
139 mu.mu_buf = cfg;
140 mu.mu_bufptr = 8;
141 mu.mu_bufdir = (wr ? MU_XFER_OUT : MU_XFER_IN);
142 mu.mu_command[0] = (wr ? MLX_CMD_WRITE_CONFIG : MLX_CMD_READ_CONFIG);
144 mlx_command(&mu, 1);
150 struct mlx_usercommand mu;
152 memset(&mu, 0, sizeof(mu));
154 mu.mu_datasize = sizeof(*pd);
155 mu.mu_buf = pd;
156 mu.mu_bufptr = 8;
157 mu.mu_bufdir = MU_XFER_IN;
158 mu.mu_command[0] = MLX_CMD_DEVICE_STATE;
159 mu.mu_command[2] = chan;
160 mu.mu_command[3] = targ;
162 return (mlx_command(&mu, 0));
169 struct mlx_usercommand mu;
179 memset(&mu, 0, sizeof(mu));
180 mu.mu_datasize = sizeof(dcdb_cmd);
181 mu.mu_buf = &dcdb_cmd;
182 mu.mu_command[0] = MLX_CMD_DIRECT_CDB;
183 mu.mu_bufdir = MU_XFER_IN | MU_XFER_OUT;
195 if ((rv = mlx_command(&mu, 0)) == 0) {