Lines Matching refs:msg

206     struct i2o_exec_iop_reset_message *msg;  in iop_reset()  local
211 msg = (struct i2o_exec_iop_reset_message *)(sc->ibase + mfa); in iop_reset()
212 bzero(msg, sizeof(struct i2o_exec_iop_reset_message)); in iop_reset()
213 msg->version_offset = 0x1; in iop_reset()
214 msg->message_flags = 0x0; in iop_reset()
215 msg->message_size = sizeof(struct i2o_exec_iop_reset_message) >> 2; in iop_reset()
216 msg->target_address = I2O_TID_IOP; in iop_reset()
217 msg->initiator_address = I2O_TID_HOST; in iop_reset()
218 msg->function = I2O_EXEC_IOP_RESET; in iop_reset()
219 msg->status_word_low_addr = vtophys(&reply); in iop_reset()
220 msg->status_word_high_addr = 0; in iop_reset()
239 struct i2o_exec_init_outqueue_message *msg; in iop_init_outqueue() local
253 msg = (struct i2o_exec_init_outqueue_message *)(sc->ibase + mfa); in iop_init_outqueue()
254 bzero(msg, sizeof(struct i2o_exec_init_outqueue_message)); in iop_init_outqueue()
255 msg->version_offset = 0x61; in iop_init_outqueue()
256 msg->message_flags = 0x0; in iop_init_outqueue()
257 msg->message_size = sizeof(struct i2o_exec_init_outqueue_message) >> 2; in iop_init_outqueue()
258 msg->target_address = I2O_TID_IOP; in iop_init_outqueue()
259 msg->initiator_address = I2O_TID_HOST; in iop_init_outqueue()
260 msg->function = I2O_EXEC_OUTBOUND_INIT; in iop_init_outqueue()
261 msg->host_pagesize = PAGE_SIZE; in iop_init_outqueue()
262 msg->init_code = 0x00; /* SOS XXX should be 0x80 == OS */ in iop_init_outqueue()
263 msg->queue_framesize = I2O_IOP_OUTBOUND_FRAME_SIZE / sizeof(u_int32_t); in iop_init_outqueue()
264 msg->sgl[0].flags = I2O_SGL_SIMPLE | I2O_SGL_END | I2O_SGL_EOB; in iop_init_outqueue()
265 msg->sgl[0].count = sizeof(reply); in iop_init_outqueue()
266 msg->sgl[0].phys_addr[0] = vtophys(&reply); in iop_init_outqueue()
267 msg->sgl[1].flags = I2O_SGL_END | I2O_SGL_EOB; in iop_init_outqueue()
268 msg->sgl[1].count = 1; in iop_init_outqueue()
269 msg->sgl[1].phys_addr[0] = 0; in iop_init_outqueue()
295 struct i2o_exec_get_lct_message *msg; in iop_get_lct() local
305 msg = (struct i2o_exec_get_lct_message *)(sc->ibase + mfa); in iop_get_lct()
306 bzero(msg, sizeof(struct i2o_exec_get_lct_message)); in iop_get_lct()
307 msg->version_offset = 0x61; in iop_get_lct()
308 msg->message_flags = 0x0; in iop_get_lct()
309 msg->message_size = sizeof(struct i2o_exec_get_lct_message) >> 2; in iop_get_lct()
310 msg->target_address = I2O_TID_IOP; in iop_get_lct()
311 msg->initiator_address = I2O_TID_HOST; in iop_get_lct()
312 msg->function = I2O_EXEC_LCT_NOTIFY; in iop_get_lct()
313 msg->class = I2O_CLASS_MATCH_ANYCLASS; in iop_get_lct()
314 msg->last_change_id = 0; in iop_get_lct()
316 msg->sgl.flags = I2O_SGL_SIMPLE | I2O_SGL_END | I2O_SGL_EOB; in iop_get_lct()
317 msg->sgl.count = ALLOCSIZE; in iop_get_lct()
318 msg->sgl.phys_addr[0] = vtophys(reply); in iop_get_lct()
320 if (iop_queue_wait_msg(sc, mfa, (struct i2o_basic_message *)msg)) { in iop_get_lct()
339 struct i2o_util_get_param_message *msg; in iop_get_util_params() local
353 msg = (struct i2o_util_get_param_message *)(sc->ibase + mfa); in iop_get_util_params()
354 bzero(msg, sizeof(struct i2o_util_get_param_message)); in iop_get_util_params()
355 msg->version_offset = 0x51; in iop_get_util_params()
356 msg->message_flags = 0x0; in iop_get_util_params()
357 msg->message_size = sizeof(struct i2o_util_get_param_message) >> 2; in iop_get_util_params()
358 msg->target_address = target; in iop_get_util_params()
359 msg->initiator_address = I2O_TID_HOST; in iop_get_util_params()
360 msg->function = I2O_UTIL_PARAMS_GET; in iop_get_util_params()
361 msg->operation_flags = 0; in iop_get_util_params()
368 msg->sgl[0].flags = I2O_SGL_SIMPLE | I2O_SGL_DIR | I2O_SGL_EOB; in iop_get_util_params()
369 msg->sgl[0].count = sizeof(struct i2o_get_param_operation); in iop_get_util_params()
370 msg->sgl[0].phys_addr[0] = vtophys(param); in iop_get_util_params()
372 msg->sgl[1].flags = I2O_SGL_SIMPLE | I2O_SGL_END | I2O_SGL_EOB; in iop_get_util_params()
373 msg->sgl[1].count = PAGE_SIZE; in iop_get_util_params()
374 msg->sgl[1].phys_addr[0] = vtophys(reply); in iop_get_util_params()
376 if (iop_queue_wait_msg(sc, mfa, (struct i2o_basic_message *)msg) || in iop_get_util_params()
403 struct i2o_basic_message *msg = (struct i2o_basic_message *)(sc->ibase+mfa); in iop_free_mfa() local
405 bzero(msg, sizeof(struct i2o_basic_message)); in iop_free_mfa()
406 msg->version = 0x01; in iop_free_mfa()
407 msg->message_flags = 0x0; in iop_free_mfa()
408 msg->message_size = sizeof(struct i2o_basic_message) >> 2; in iop_free_mfa()
409 msg->target_address = I2O_TID_IOP; in iop_free_mfa()
410 msg->initiator_address = I2O_TID_HOST; in iop_free_mfa()
411 msg->function = I2O_UTIL_NOP; in iop_free_mfa()
427 iop_queue_wait_msg(struct iop_softc *sc, int mfa, struct i2o_basic_message *msg) in iop_queue_wait_msg() argument
436 msg->transaction_context = (u_int32_t)&request; in iop_queue_wait_msg()
437 msg->initiator_context = (u_int32_t)iop_done; in iop_queue_wait_msg()
467 iop_create_sgl(struct i2o_basic_message *msg, caddr_t data, int count, int dir) in iop_create_sgl() argument
469 struct i2o_sgl *sgl = (struct i2o_sgl *)((int32_t *)msg + msg->offset); in iop_create_sgl()
500 msg->message_size += i; in iop_create_sgl()