Lines Matching refs:raw_mbox

1045 		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()
1750 ccb->raw_mbox[0] = CLUSTER_CMD; in DEF_SCSI_QCMD()
1751 ccb->raw_mbox[2] = (scp->cmnd[0] == RESERVE) ? in DEF_SCSI_QCMD()
1754 ccb->raw_mbox[3] = target; in DEF_SCSI_QCMD()
2522 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_reset_handler() local
2631 raw_mbox[0] = CLUSTER_CMD; in megaraid_reset_handler()
2632 raw_mbox[2] = RESET_RESERVATIONS; in megaraid_reset_handler()
2635 if (mbox_post_sync_cmd_fast(adapter, raw_mbox) == 0) { in megaraid_reset_handler()
2666 mbox_post_sync_cmd(adapter_t *adapter, uint8_t raw_mbox[]) in mbox_post_sync_cmd() argument
2684 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); in mbox_post_sync_cmd()
2796 mbox_post_sync_cmd_fast(adapter_t *adapter, uint8_t raw_mbox[]) in mbox_post_sync_cmd_fast() argument
2809 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 14); in mbox_post_sync_cmd_fast()
2875 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_product_info() local
2882 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_product_info()
2883 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_product_info()
2902 raw_mbox[0] = FC_NEW_CONFIG; in megaraid_mbox_product_info()
2903 raw_mbox[2] = NC_SUBOP_ENQUIRY3; in megaraid_mbox_product_info()
2904 raw_mbox[3] = ENQ3_GET_SOLICITED_FULL; in megaraid_mbox_product_info()
2907 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_product_info()
2931 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_product_info()
2934 raw_mbox[0] = FC_NEW_CONFIG; in megaraid_mbox_product_info()
2935 raw_mbox[2] = NC_SUBOP_PRODUCT_INFO; in megaraid_mbox_product_info()
2937 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_product_info()
2997 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_extended_cdb() local
3000 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_extended_cdb()
3002 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_extended_cdb()
3007 raw_mbox[0] = MAIN_MISC_OPCODE; in megaraid_mbox_extended_cdb()
3008 raw_mbox[2] = SUPPORT_EXT_CDB; in megaraid_mbox_extended_cdb()
3014 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_extended_cdb()
3033 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_support_ha() local
3037 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_support_ha()
3039 memset((caddr_t)raw_mbox, 0, sizeof(raw_mbox)); in megaraid_mbox_support_ha()
3045 raw_mbox[0] = GET_TARGET_ID; in megaraid_mbox_support_ha()
3050 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_support_ha()
3075 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_support_random_del() local
3096 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_support_random_del()
3098 raw_mbox[0] = FC_DEL_LOGDRV; in megaraid_mbox_support_random_del()
3099 raw_mbox[2] = OP_SUP_DEL_LOGDRV; in megaraid_mbox_support_random_del()
3103 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_support_random_del()
3125 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_get_max_sg() local
3129 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_get_max_sg()
3131 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_get_max_sg()
3137 raw_mbox[0] = MAIN_MISC_OPCODE; in megaraid_mbox_get_max_sg()
3138 raw_mbox[2] = GET_MAX_SG_SUPPORT; in megaraid_mbox_get_max_sg()
3141 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_get_max_sg()
3166 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_enum_raid_scsi() local
3169 mbox = (mbox_t *)raw_mbox; in megaraid_mbox_enum_raid_scsi()
3171 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_enum_raid_scsi()
3177 raw_mbox[0] = CHNL_CLASS; in megaraid_mbox_enum_raid_scsi()
3178 raw_mbox[2] = GET_CHNL_CLASS; in megaraid_mbox_enum_raid_scsi()
3183 if (mbox_post_sync_cmd(adapter, raw_mbox) == 0) { in megaraid_mbox_enum_raid_scsi()
3200 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_flush_cache() local
3202 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_flush_cache()
3204 raw_mbox[0] = FLUSH_ADAPTER; in megaraid_mbox_flush_cache()
3206 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_flush_cache()
3210 raw_mbox[0] = FLUSH_SYSTEM; in megaraid_mbox_flush_cache()
3212 if (mbox_post_sync_cmd(adapter, raw_mbox) != 0) { in megaraid_mbox_flush_cache()
3230 uint8_t raw_mbox[sizeof(mbox_t)]; in megaraid_mbox_fire_sync_cmd() local
3236 memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); in megaraid_mbox_fire_sync_cmd()
3238 raw_mbox[0] = 0xFF; in megaraid_mbox_fire_sync_cmd()
3249 memcpy((caddr_t)mbox, (caddr_t)raw_mbox, 16); in megaraid_mbox_fire_sync_cmd()
3433 ccb->raw_mbox = (uint8_t *)ccb->mbox; in megaraid_cmm_register()
3556 uint8_t *raw_mbox; in megaraid_mbox_mm_command() local
3585 raw_mbox = (uint8_t *)&mbox64->mbox32; in megaraid_mbox_mm_command()
3595 if (raw_mbox[0] == FC_DEL_LOGDRV && raw_mbox[2] == OP_DEL_LOGDRV) { in megaraid_mbox_mm_command()
3680 uint8_t *raw_mbox; in megaraid_mbox_mm_done() local
3686 raw_mbox = (uint8_t *)&mbox64->mbox32; in megaraid_mbox_mm_done()
3701 if (raw_mbox[0] == FC_DEL_LOGDRV && raw_mbox[2] == OP_DEL_LOGDRV) { in megaraid_mbox_mm_done()
3874 char *raw_mbox; in megaraid_sysfs_get_ldmap() local
3893 raw_mbox = (char *)mbox; in megaraid_sysfs_get_ldmap()
3905 raw_mbox[0] = FC_DEL_LOGDRV; in megaraid_sysfs_get_ldmap()
3906 raw_mbox[2] = OP_GET_LDID_MAP; in megaraid_sysfs_get_ldmap()