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