Lines Matching refs:raw_mbox
195 u8 raw_mbox[sizeof(struct mbox_out)]; in mega_query_adapter() local
201 mbox = (mbox_t *)raw_mbox; in mega_query_adapter()
204 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in mega_query_adapter()
215 raw_mbox[0] = FC_NEW_CONFIG; /* i.e. mbox->cmd=0xA1 */ in mega_query_adapter()
216 raw_mbox[2] = NC_SUBOP_ENQUIRY3; /* i.e. 0x0F */ in mega_query_adapter()
217 raw_mbox[3] = ENQ3_GET_SOLICITED_FULL; /* i.e. 0x02 */ in mega_query_adapter()
220 if ((retval = issue_scb_block(adapter, raw_mbox))) { in mega_query_adapter()
240 issue_scb_block(adapter, raw_mbox); in mega_query_adapter()
267 raw_mbox[0] = FC_NEW_CONFIG; /* i.e. mbox->cmd=0xA1 */ in mega_query_adapter()
268 raw_mbox[2] = NC_SUBOP_PRODUCT_INFO; /* i.e. 0x0E */ in mega_query_adapter()
270 if ((retval = issue_scb_block(adapter, raw_mbox))) in mega_query_adapter()
649 scb->raw_mbox[0] = MEGA_CLUSTER_CMD; in mega_build_cmd()
650 scb->raw_mbox[2] = MEGA_RESERVATION_STATUS; in mega_build_cmd()
651 scb->raw_mbox[3] = ldrv_num; in mega_build_cmd()
698 mbox = (mbox_t *)scb->raw_mbox; in mega_build_cmd()
699 memset(mbox, 0, sizeof(scb->raw_mbox)); in mega_build_cmd()
738 mbox = (mbox_t *)scb->raw_mbox; in mega_build_cmd()
740 memset(mbox, 0, sizeof(scb->raw_mbox)); in mega_build_cmd()
879 scb->raw_mbox[0] = MEGA_CLUSTER_CMD; in mega_build_cmd()
880 scb->raw_mbox[2] = ( *cmd->cmnd == RESERVE ) ? in mega_build_cmd()
883 scb->raw_mbox[3] = ldrv_num; in mega_build_cmd()
907 mbox = (mbox_t *)scb->raw_mbox; in mega_build_cmd()
908 memset(mbox, 0, sizeof(scb->raw_mbox)); in mega_build_cmd()
1116 memcpy((char *)&mbox->m_out, (char *)scb->raw_mbox, in issue_scb()
1179 issue_scb_block(adapter_t *adapter, u_char *raw_mbox) in issue_scb_block() argument
1190 memcpy((char *) mbox, raw_mbox, sizeof(struct mbox_out)); in issue_scb_block()
1194 switch (raw_mbox[0]) { in issue_scb_block()
1507 mbox = (mbox_t *)scb->raw_mbox; in mega_cmd_done()
3582 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_is_bios_enabled() local
3585 mbox = (mbox_t *)raw_mbox; in mega_is_bios_enabled()
3587 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in mega_is_bios_enabled()
3593 raw_mbox[0] = IS_BIOS_ENABLED; in mega_is_bios_enabled()
3594 raw_mbox[2] = GET_BIOS; in mega_is_bios_enabled()
3596 issue_scb_block(adapter, raw_mbox); in mega_is_bios_enabled()
3613 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_enum_raid_scsi() local
3617 mbox = (mbox_t *)raw_mbox; in mega_enum_raid_scsi()
3619 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in mega_enum_raid_scsi()
3624 raw_mbox[0] = CHNL_CLASS; in mega_enum_raid_scsi()
3625 raw_mbox[2] = GET_CHNL_CLASS; in mega_enum_raid_scsi()
3637 if(!issue_scb_block(adapter, raw_mbox)) { in mega_enum_raid_scsi()
3668 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_get_boot_drv() local
3675 mbox = (mbox_t *)raw_mbox; in mega_get_boot_drv()
3677 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in mega_get_boot_drv()
3679 raw_mbox[0] = BIOS_PVT_DATA; in mega_get_boot_drv()
3680 raw_mbox[2] = GET_BIOS_PVT_DATA; in mega_get_boot_drv()
3693 if(issue_scb_block(adapter, raw_mbox) == 0) { in mega_get_boot_drv()
3734 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_support_random_del() local
3738 mbox = (mbox_t *)raw_mbox; in mega_support_random_del()
3740 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in mega_support_random_del()
3745 raw_mbox[0] = FC_DEL_LOGDRV; in mega_support_random_del()
3746 raw_mbox[2] = OP_SUP_DEL_LOGDRV; in mega_support_random_del()
3748 rval = issue_scb_block(adapter, raw_mbox); in mega_support_random_del()
3763 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_support_ext_cdb() local
3767 mbox = (mbox_t *)raw_mbox; in mega_support_ext_cdb()
3769 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in mega_support_ext_cdb()
3773 raw_mbox[0] = 0xA4; in mega_support_ext_cdb()
3774 raw_mbox[2] = 0x16; in mega_support_ext_cdb()
3776 rval = issue_scb_block(adapter, raw_mbox); in mega_support_ext_cdb()
3878 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_get_max_sgl() local
3881 mbox = (mbox_t *)raw_mbox; in mega_get_max_sgl()
3883 memset(mbox, 0, sizeof(raw_mbox)); in mega_get_max_sgl()
3889 raw_mbox[0] = MAIN_MISC_OPCODE; in mega_get_max_sgl()
3890 raw_mbox[2] = GET_MAX_SG_SUPPORT; in mega_get_max_sgl()
3893 if( issue_scb_block(adapter, raw_mbox) ) { in mega_get_max_sgl()
3923 unsigned char raw_mbox[sizeof(struct mbox_out)]; in mega_support_cluster() local
3926 mbox = (mbox_t *)raw_mbox; in mega_support_cluster()
3928 memset(mbox, 0, sizeof(raw_mbox)); in mega_support_cluster()
3938 raw_mbox[0] = MEGA_GET_TARGET_ID; in mega_support_cluster()
3940 if( issue_scb_block(adapter, raw_mbox) == 0 ) { in mega_support_cluster()
4095 memcpy(scb->raw_mbox, mc, sizeof(megacmd_t)); in mega_internal_command()
4512 u_char raw_mbox[sizeof(struct mbox_out)]; in __megaraid_shutdown() local
4513 mbox_t *mbox = (mbox_t *)raw_mbox; in __megaraid_shutdown()
4517 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in __megaraid_shutdown()
4518 raw_mbox[0] = FLUSH_ADAPTER; in __megaraid_shutdown()
4523 issue_scb_block(adapter, raw_mbox); in __megaraid_shutdown()
4526 memset(&mbox->m_out, 0, sizeof(raw_mbox)); in __megaraid_shutdown()
4527 raw_mbox[0] = FLUSH_SYSTEM; in __megaraid_shutdown()
4530 issue_scb_block(adapter, raw_mbox); in __megaraid_shutdown()