Searched refs:raw_mbox (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_mbox.c1057 ccb->raw_mbox = (uint8_t *)ccb->mbox; megaraid_alloc_cmd_packets()
1555 ccb->raw_mbox[0] = CLUSTER_CMD; megaraid_mbox_build_cmd()
1556 ccb->raw_mbox[2] = RESERVATION_STATUS; megaraid_mbox_build_cmd()
1557 ccb->raw_mbox[3] = target; megaraid_mbox_build_cmd()
1775 ccb->raw_mbox[0] = CLUSTER_CMD; megaraid_mbox_build_cmd()
1776 ccb->raw_mbox[2] = (scp->cmnd[0] == RESERVE) ? megaraid_mbox_build_cmd()
1779 ccb->raw_mbox[3] = target; megaraid_mbox_build_cmd()
2579 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_reset_handler() local
2692 raw_mbox[0] = CLUSTER_CMD; megaraid_reset_handler()
2693 raw_mbox[2] = RESET_RESERVATIONS; megaraid_reset_handler()
2696 if (mbox_post_sync_cmd_fast(adapter, raw_mbox) == 0) { megaraid_reset_handler()
2721 * @raw_mbox : the mailbox
2727 mbox_post_sync_cmd(adapter_t *adapter, uint8_t raw_mbox[]) mbox_post_sync_cmd() argument
2748 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); mbox_post_sync_cmd()
2853 * @raw_mbox : the mailbox
2860 mbox_post_sync_cmd_fast(adapter_t *adapter, uint8_t raw_mbox[]) mbox_post_sync_cmd_fast() argument
2873 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 14); mbox_post_sync_cmd_fast()
2939 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_product_info() local
2946 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); megaraid_mbox_product_info()
2947 mbox = (mbox_t *)raw_mbox; megaraid_mbox_product_info()
2967 raw_mbox[0] = FC_NEW_CONFIG; megaraid_mbox_product_info()
2968 raw_mbox[2] = NC_SUBOP_ENQUIRY3; megaraid_mbox_product_info()
2969 raw_mbox[3] = ENQ3_GET_SOLICITED_FULL; megaraid_mbox_product_info()
2972 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { megaraid_mbox_product_info()
2996 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); megaraid_mbox_product_info()
2999 raw_mbox[0] = FC_NEW_CONFIG; megaraid_mbox_product_info()
3000 raw_mbox[2] = NC_SUBOP_PRODUCT_INFO; megaraid_mbox_product_info()
3002 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { megaraid_mbox_product_info()
3062 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_extended_cdb() local
3065 mbox = (mbox_t *)raw_mbox; megaraid_mbox_extended_cdb()
3067 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); megaraid_mbox_extended_cdb()
3072 raw_mbox[0] = MAIN_MISC_OPCODE; megaraid_mbox_extended_cdb()
3073 raw_mbox[2] = SUPPORT_EXT_CDB; megaraid_mbox_extended_cdb()
3079 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { megaraid_mbox_extended_cdb()
3098 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_support_ha() local
3102 mbox = (mbox_t *)raw_mbox; megaraid_mbox_support_ha()
3104 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); megaraid_mbox_support_ha()
3110 raw_mbox[0] = GET_TARGET_ID; megaraid_mbox_support_ha()
3115 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { megaraid_mbox_support_ha()
3141 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_support_random_del() local
3162 mbox = (mbox_t *)raw_mbox; megaraid_mbox_support_random_del()
3164 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); megaraid_mbox_support_random_del()
3166 raw_mbox[0] = FC_DEL_LOGDRV; megaraid_mbox_support_random_del()
3167 raw_mbox[2] = OP_SUP_DEL_LOGDRV; megaraid_mbox_support_random_del()
3171 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { megaraid_mbox_support_random_del()
3193 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_get_max_sg() local
3197 mbox = (mbox_t *)raw_mbox; megaraid_mbox_get_max_sg()
3199 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); megaraid_mbox_get_max_sg()
3205 raw_mbox[0] = MAIN_MISC_OPCODE; megaraid_mbox_get_max_sg()
3206 raw_mbox[2] = GET_MAX_SG_SUPPORT; megaraid_mbox_get_max_sg()
3209 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { megaraid_mbox_get_max_sg()
3234 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_enum_raid_scsi() local
3237 mbox = (mbox_t *)raw_mbox; megaraid_mbox_enum_raid_scsi()
3239 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); megaraid_mbox_enum_raid_scsi()
3245 raw_mbox[0] = CHNL_CLASS; megaraid_mbox_enum_raid_scsi()
3246 raw_mbox[2] = GET_CHNL_CLASS; megaraid_mbox_enum_raid_scsi()
3251 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { megaraid_mbox_enum_raid_scsi()
3269 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_flush_cache() local
3272 mbox = (mbox_t *)raw_mbox; megaraid_mbox_flush_cache()
3274 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); megaraid_mbox_flush_cache()
3276 raw_mbox[0] = FLUSH_ADAPTER; megaraid_mbox_flush_cache()
3278 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { megaraid_mbox_flush_cache()
3282 raw_mbox[0] = FLUSH_SYSTEM; megaraid_mbox_flush_cache()
3284 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { megaraid_mbox_flush_cache()
3302 uint8_t raw_mbox[sizeof(mbox_t)]; megaraid_mbox_fire_sync_cmd() local
3309 mbox = (mbox_t *)raw_mbox; megaraid_mbox_fire_sync_cmd()
3311 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); megaraid_mbox_fire_sync_cmd()
3313 raw_mbox[0] = 0xFF; megaraid_mbox_fire_sync_cmd()
3325 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); megaraid_mbox_fire_sync_cmd()
3510 ccb->raw_mbox = (uint8_t *)ccb->mbox; megaraid_cmm_register()
3633 uint8_t *raw_mbox; megaraid_mbox_mm_command() local
3662 raw_mbox = (uint8_t *)&mbox64->mbox32; megaraid_mbox_mm_command()
3672 if (raw_mbox[0] == FC_DEL_LOGDRV && raw_mbox[2] == OP_DEL_LOGDRV) { megaraid_mbox_mm_command()
3757 uint8_t *raw_mbox; megaraid_mbox_mm_done() local
3763 raw_mbox = (uint8_t *)&mbox64->mbox32; megaraid_mbox_mm_done()
3778 if (raw_mbox[0] == FC_DEL_LOGDRV && raw_mbox[2] == OP_DEL_LOGDRV) { megaraid_mbox_mm_done()
3955 char *raw_mbox; megaraid_sysfs_get_ldmap() local
3975 raw_mbox = (char *)mbox; megaraid_sysfs_get_ldmap()
3987 raw_mbox[0] = FC_DEL_LOGDRV; megaraid_sysfs_get_ldmap()
3988 raw_mbox[2] = OP_GET_LDID_MAP; megaraid_sysfs_get_ldmap()
H A Dmegaraid_mbox.h117 * @raw_mbox : raw mailbox pointer
133 uint8_t *raw_mbox; member in struct:__anon9274
/linux-4.1.27/drivers/scsi/
H A Dmegaraid.c198 u8 raw_mbox[sizeof(struct mbox_out)]; mega_query_adapter() local
204 mbox = (mbox_t *)raw_mbox; mega_query_adapter()
207 memset(&mbox->m_out, 0, sizeof(raw_mbox)); mega_query_adapter()
218 raw_mbox[0] = FC_NEW_CONFIG; /* i.e. mbox->cmd=0xA1 */ mega_query_adapter()
219 raw_mbox[2] = NC_SUBOP_ENQUIRY3; /* i.e. 0x0F */ mega_query_adapter()
220 raw_mbox[3] = ENQ3_GET_SOLICITED_FULL; /* i.e. 0x02 */ mega_query_adapter()
223 if ((retval = issue_scb_block(adapter, raw_mbox))) { mega_query_adapter()
242 issue_scb_block(adapter, raw_mbox); mega_query_adapter()
267 raw_mbox[0] = FC_NEW_CONFIG; /* i.e. mbox->cmd=0xA1 */ mega_query_adapter()
268 raw_mbox[2] = NC_SUBOP_PRODUCT_INFO; /* i.e. 0x0E */ mega_query_adapter()
270 if ((retval = issue_scb_block(adapter, raw_mbox))) mega_query_adapter()
648 scb->raw_mbox[0] = MEGA_CLUSTER_CMD; mega_build_cmd()
649 scb->raw_mbox[2] = MEGA_RESERVATION_STATUS; mega_build_cmd()
650 scb->raw_mbox[3] = ldrv_num; mega_build_cmd()
697 mbox = (mbox_t *)scb->raw_mbox; mega_build_cmd()
698 memset(mbox, 0, sizeof(scb->raw_mbox)); mega_build_cmd()
737 mbox = (mbox_t *)scb->raw_mbox; mega_build_cmd()
739 memset(mbox, 0, sizeof(scb->raw_mbox)); mega_build_cmd()
878 scb->raw_mbox[0] = MEGA_CLUSTER_CMD; mega_build_cmd()
879 scb->raw_mbox[2] = ( *cmd->cmnd == RESERVE ) ? mega_build_cmd()
882 scb->raw_mbox[3] = ldrv_num; mega_build_cmd()
906 mbox = (mbox_t *)scb->raw_mbox; mega_build_cmd()
907 memset(mbox, 0, sizeof(scb->raw_mbox)); mega_build_cmd()
1114 memcpy((char *)&mbox->m_out, (char *)scb->raw_mbox, issue_scb()
1172 * @raw_mbox - the mailbox
1177 issue_scb_block(adapter_t *adapter, u_char *raw_mbox) issue_scb_block() argument
1188 memcpy((char *) mbox, raw_mbox, sizeof(struct mbox_out)); issue_scb_block()
1192 switch (raw_mbox[0]) { issue_scb_block()
1506 mbox = (mbox_t *)scb->raw_mbox; mega_cmd_done()
3622 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_is_bios_enabled() local
3626 mbox = (mbox_t *)raw_mbox; mega_is_bios_enabled()
3628 memset(&mbox->m_out, 0, sizeof(raw_mbox)); mega_is_bios_enabled()
3634 raw_mbox[0] = IS_BIOS_ENABLED; mega_is_bios_enabled()
3635 raw_mbox[2] = GET_BIOS; mega_is_bios_enabled()
3638 ret = issue_scb_block(adapter, raw_mbox); mega_is_bios_enabled()
3655 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_enum_raid_scsi() local
3659 mbox = (mbox_t *)raw_mbox; mega_enum_raid_scsi()
3661 memset(&mbox->m_out, 0, sizeof(raw_mbox)); mega_enum_raid_scsi()
3666 raw_mbox[0] = CHNL_CLASS; mega_enum_raid_scsi()
3667 raw_mbox[2] = GET_CHNL_CLASS; mega_enum_raid_scsi()
3679 if(!issue_scb_block(adapter, raw_mbox)) { mega_enum_raid_scsi()
3710 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_get_boot_drv() local
3717 mbox = (mbox_t *)raw_mbox; mega_get_boot_drv()
3719 memset(&mbox->m_out, 0, sizeof(raw_mbox)); mega_get_boot_drv()
3721 raw_mbox[0] = BIOS_PVT_DATA; mega_get_boot_drv()
3722 raw_mbox[2] = GET_BIOS_PVT_DATA; mega_get_boot_drv()
3735 if(issue_scb_block(adapter, raw_mbox) == 0) { mega_get_boot_drv()
3776 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_support_random_del() local
3780 mbox = (mbox_t *)raw_mbox; mega_support_random_del()
3782 memset(&mbox->m_out, 0, sizeof(raw_mbox)); mega_support_random_del()
3787 raw_mbox[0] = FC_DEL_LOGDRV; mega_support_random_del()
3788 raw_mbox[2] = OP_SUP_DEL_LOGDRV; mega_support_random_del()
3790 rval = issue_scb_block(adapter, raw_mbox); mega_support_random_del()
3805 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_support_ext_cdb() local
3809 mbox = (mbox_t *)raw_mbox; mega_support_ext_cdb()
3811 memset(&mbox->m_out, 0, sizeof(raw_mbox)); mega_support_ext_cdb()
3815 raw_mbox[0] = 0xA4; mega_support_ext_cdb()
3816 raw_mbox[2] = 0x16; mega_support_ext_cdb()
3818 rval = issue_scb_block(adapter, raw_mbox); mega_support_ext_cdb()
3920 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_get_max_sgl() local
3923 mbox = (mbox_t *)raw_mbox; mega_get_max_sgl()
3925 memset(mbox, 0, sizeof(raw_mbox)); mega_get_max_sgl()
3931 raw_mbox[0] = MAIN_MISC_OPCODE; mega_get_max_sgl()
3932 raw_mbox[2] = GET_MAX_SG_SUPPORT; mega_get_max_sgl()
3935 if( issue_scb_block(adapter, raw_mbox) ) { mega_get_max_sgl()
3965 unsigned char raw_mbox[sizeof(struct mbox_out)]; mega_support_cluster() local
3968 mbox = (mbox_t *)raw_mbox; mega_support_cluster()
3970 memset(mbox, 0, sizeof(raw_mbox)); mega_support_cluster()
3980 raw_mbox[0] = MEGA_GET_TARGET_ID; mega_support_cluster()
3982 if( issue_scb_block(adapter, raw_mbox) == 0 ) { mega_support_cluster()
4136 memcpy(scb->raw_mbox, mc, sizeof(megacmd_t)); mega_internal_command()
4553 u_char raw_mbox[sizeof(struct mbox_out)]; __megaraid_shutdown() local
4554 mbox_t *mbox = (mbox_t *)raw_mbox; __megaraid_shutdown()
4558 memset(&mbox->m_out, 0, sizeof(raw_mbox)); __megaraid_shutdown()
4559 raw_mbox[0] = FLUSH_ADAPTER; __megaraid_shutdown()
4564 issue_scb_block(adapter, raw_mbox); __megaraid_shutdown()
4567 memset(&mbox->m_out, 0, sizeof(raw_mbox)); __megaraid_shutdown()
4568 raw_mbox[0] = FLUSH_SYSTEM; __megaraid_shutdown()
4571 issue_scb_block(adapter, raw_mbox); __megaraid_shutdown()
H A Dmegaraid.h189 u8 raw_mbox[66]; member in struct:__anon9351

Completed in 103 milliseconds