Lines Matching refs:raw_mbox
1043 ccb->raw_mbox = (uint8_t *)ccb->mbox; in megaraid_alloc_cmd_packets()
1532 ccb->raw_mbox[0] = CLUSTER_CMD; in DEF_SCSI_QCMD()
1533 ccb->raw_mbox[2] = RESERVATION_STATUS; in DEF_SCSI_QCMD()
1534 ccb->raw_mbox[3] = target; in DEF_SCSI_QCMD()
1752 ccb->raw_mbox[0] = CLUSTER_CMD; in DEF_SCSI_QCMD()
1753 ccb->raw_mbox[2] = (scp->cmnd[0] == RESERVE) ? in DEF_SCSI_QCMD()
1756 ccb->raw_mbox[3] = target; in DEF_SCSI_QCMD()
2529 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_reset_handler() local
2638 raw_mbox[0] = CLUSTER_CMD; in megaraid_reset_handler()
2639 raw_mbox[2] = RESET_RESERVATIONS; in megaraid_reset_handler()
2642 if (mbox_post_sync_cmd_fast(adapter, raw_mbox) == 0) { in megaraid_reset_handler()
2673 mbox_post_sync_cmd(adapter_t *adapter, uint8_t raw_mbox[]) in mbox_post_sync_cmd() argument
2691 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); in mbox_post_sync_cmd()
2803 mbox_post_sync_cmd_fast(adapter_t *adapter, uint8_t raw_mbox[]) in mbox_post_sync_cmd_fast() argument
2816 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 14); in mbox_post_sync_cmd_fast()
2882 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_product_info() local
2889 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_product_info()
2890 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_product_info()
2909 raw_mbox[0] = FC_NEW_CONFIG; in megaraid_mbox_product_info()
2910 raw_mbox[2] = NC_SUBOP_ENQUIRY3; in megaraid_mbox_product_info()
2911 raw_mbox[3] = ENQ3_GET_SOLICITED_FULL; in megaraid_mbox_product_info()
2914 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_product_info()
2938 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_product_info()
2941 raw_mbox[0] = FC_NEW_CONFIG; in megaraid_mbox_product_info()
2942 raw_mbox[2] = NC_SUBOP_PRODUCT_INFO; in megaraid_mbox_product_info()
2944 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_product_info()
3004 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_extended_cdb() local
3007 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_extended_cdb()
3009 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_extended_cdb()
3014 raw_mbox[0] = MAIN_MISC_OPCODE; in megaraid_mbox_extended_cdb()
3015 raw_mbox[2] = SUPPORT_EXT_CDB; in megaraid_mbox_extended_cdb()
3021 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_extended_cdb()
3040 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_support_ha() local
3044 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_support_ha()
3046 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_support_ha()
3052 raw_mbox[0] = GET_TARGET_ID; in megaraid_mbox_support_ha()
3057 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_support_ha()
3082 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_support_random_del() local
3103 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_support_random_del()
3105 raw_mbox[0] = FC_DEL_LOGDRV; in megaraid_mbox_support_random_del()
3106 raw_mbox[2] = OP_SUP_DEL_LOGDRV; in megaraid_mbox_support_random_del()
3110 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_support_random_del()
3132 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_get_max_sg() local
3136 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_get_max_sg()
3138 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_get_max_sg()
3144 raw_mbox[0] = MAIN_MISC_OPCODE; in megaraid_mbox_get_max_sg()
3145 raw_mbox[2] = GET_MAX_SG_SUPPORT; in megaraid_mbox_get_max_sg()
3148 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_get_max_sg()
3173 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_enum_raid_scsi() local
3176 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_enum_raid_scsi()
3178 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_enum_raid_scsi()
3184 raw_mbox[0] = CHNL_CLASS; in megaraid_mbox_enum_raid_scsi()
3185 raw_mbox[2] = GET_CHNL_CLASS; in megaraid_mbox_enum_raid_scsi()
3190 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_enum_raid_scsi()
3207 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_flush_cache() local
3209 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_flush_cache()
3211 raw_mbox[0] = FLUSH_ADAPTER; in megaraid_mbox_flush_cache()
3213 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_flush_cache()
3217 raw_mbox[0] = FLUSH_SYSTEM; in megaraid_mbox_flush_cache()
3219 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_flush_cache()
3237 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_fire_sync_cmd() local
3243 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_fire_sync_cmd()
3245 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_fire_sync_cmd()
3247 raw_mbox[0] = 0xFF; in megaraid_mbox_fire_sync_cmd()
3258 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); in megaraid_mbox_fire_sync_cmd()
3443 ccb->raw_mbox = (uint8_t *)ccb->mbox; in megaraid_cmm_register()
3566 uint8_t *raw_mbox; in megaraid_mbox_mm_command() local
3595 raw_mbox = (uint8_t *)&mbox64->mbox32; in megaraid_mbox_mm_command()
3605 if (raw_mbox[0] == FC_DEL_LOGDRV && raw_mbox[2] == OP_DEL_LOGDRV) { in megaraid_mbox_mm_command()
3690 uint8_t *raw_mbox; in megaraid_mbox_mm_done() local
3696 raw_mbox = (uint8_t *)&mbox64->mbox32; in megaraid_mbox_mm_done()
3711 if (raw_mbox[0] == FC_DEL_LOGDRV && raw_mbox[2] == OP_DEL_LOGDRV) { in megaraid_mbox_mm_done()
3884 char *raw_mbox; in megaraid_sysfs_get_ldmap() local
3903 raw_mbox = (char *)mbox; in megaraid_sysfs_get_ldmap()
3915 raw_mbox[0] = FC_DEL_LOGDRV; in megaraid_sysfs_get_ldmap()
3916 raw_mbox[2] = OP_GET_LDID_MAP; in megaraid_sysfs_get_ldmap()