Lines Matching full:msg

205     struct i2o_exec_iop_reset_message *msg;
210 msg = (struct i2o_exec_iop_reset_message *)(sc->ibase + mfa);
211 bzero(msg, sizeof(struct i2o_exec_iop_reset_message));
212 msg->version_offset = 0x1;
213 msg->message_flags = 0x0;
214 msg->message_size = sizeof(struct i2o_exec_iop_reset_message) >> 2;
215 msg->target_address = I2O_TID_IOP;
216 msg->initiator_address = I2O_TID_HOST;
217 msg->function = I2O_EXEC_IOP_RESET;
218 msg->status_word_low_addr = vtophys(&reply);
219 msg->status_word_high_addr = 0;
238 struct i2o_exec_init_outqueue_message *msg;
252 msg = (struct i2o_exec_init_outqueue_message *)(sc->ibase + mfa);
253 bzero(msg, sizeof(struct i2o_exec_init_outqueue_message));
254 msg->version_offset = 0x61;
255 msg->message_flags = 0x0;
256 msg->message_size = sizeof(struct i2o_exec_init_outqueue_message) >> 2;
257 msg->target_address = I2O_TID_IOP;
258 msg->initiator_address = I2O_TID_HOST;
259 msg->function = I2O_EXEC_OUTBOUND_INIT;
260 msg->host_pagesize = PAGE_SIZE;
261 msg->init_code = 0x00; /* SOS XXX should be 0x80 == OS */
262 msg->queue_framesize = I2O_IOP_OUTBOUND_FRAME_SIZE / sizeof(u_int32_t);
263 msg->sgl[0].flags = I2O_SGL_SIMPLE | I2O_SGL_END | I2O_SGL_EOB;
264 msg->sgl[0].count = sizeof(reply);
265 msg->sgl[0].phys_addr[0] = vtophys(&reply);
266 msg->sgl[1].flags = I2O_SGL_END | I2O_SGL_EOB;
267 msg->sgl[1].count = 1;
268 msg->sgl[1].phys_addr[0] = 0;
294 struct i2o_exec_get_lct_message *msg;
304 msg = (struct i2o_exec_get_lct_message *)(sc->ibase + mfa);
305 bzero(msg, sizeof(struct i2o_exec_get_lct_message));
306 msg->version_offset = 0x61;
307 msg->message_flags = 0x0;
308 msg->message_size = sizeof(struct i2o_exec_get_lct_message) >> 2;
309 msg->target_address = I2O_TID_IOP;
310 msg->initiator_address = I2O_TID_HOST;
311 msg->function = I2O_EXEC_LCT_NOTIFY;
312 msg->class = I2O_CLASS_MATCH_ANYCLASS;
313 msg->last_change_id = 0;
315 msg->sgl.flags = I2O_SGL_SIMPLE | I2O_SGL_END | I2O_SGL_EOB;
316 msg->sgl.count = ALLOCSIZE;
317 msg->sgl.phys_addr[0] = vtophys(reply);
319 if (iop_queue_wait_msg(sc, mfa, (struct i2o_basic_message *)msg)) {
338 struct i2o_util_get_param_message *msg;
352 msg = (struct i2o_util_get_param_message *)(sc->ibase + mfa);
353 bzero(msg, sizeof(struct i2o_util_get_param_message));
354 msg->version_offset = 0x51;
355 msg->message_flags = 0x0;
356 msg->message_size = sizeof(struct i2o_util_get_param_message) >> 2;
357 msg->target_address = target;
358 msg->initiator_address = I2O_TID_HOST;
359 msg->function = I2O_UTIL_PARAMS_GET;
360 msg->operation_flags = 0;
367 msg->sgl[0].flags = I2O_SGL_SIMPLE | I2O_SGL_DIR | I2O_SGL_EOB;
368 msg->sgl[0].count = sizeof(struct i2o_get_param_operation);
369 msg->sgl[0].phys_addr[0] = vtophys(param);
371 msg->sgl[1].flags = I2O_SGL_SIMPLE | I2O_SGL_END | I2O_SGL_EOB;
372 msg->sgl[1].count = PAGE_SIZE;
373 msg->sgl[1].phys_addr[0] = vtophys(reply);
375 if (iop_queue_wait_msg(sc, mfa, (struct i2o_basic_message *)msg) ||
402 struct i2o_basic_message *msg = (struct i2o_basic_message *)(sc->ibase+mfa);
404 bzero(msg, sizeof(struct i2o_basic_message));
405 msg->version = 0x01;
406 msg->message_flags = 0x0;
407 msg->message_size = sizeof(struct i2o_basic_message) >> 2;
408 msg->target_address = I2O_TID_IOP;
409 msg->initiator_address = I2O_TID_HOST;
410 msg->function = I2O_UTIL_NOP;
426 iop_queue_wait_msg(struct iop_softc *sc, int mfa, struct i2o_basic_message *msg)
435 msg->transaction_context = (u_int32_t)&request;
436 msg->initiator_context = (u_int32_t)iop_done;
466 iop_create_sgl(struct i2o_basic_message *msg, caddr_t data, int count, int dir)
468 struct i2o_sgl *sgl = (struct i2o_sgl *)((int32_t *)msg + msg->offset);
499 msg->message_size += i;