Lines Matching refs:cpu_to_le32

1003 	abort_fr->abort_context = cpu_to_le32(cmd_to_abort->index);  in megasas_issue_blocked_abort_cmd()
1005 cpu_to_le32(lower_32_bits(cmd_to_abort->frame_phys_addr)); in megasas_issue_blocked_abort_cmd()
1007 cpu_to_le32(upper_32_bits(cmd_to_abort->frame_phys_addr)); in megasas_issue_blocked_abort_cmd()
1054 mfi_sgl->sge32[i].length = cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl32()
1055 mfi_sgl->sge32[i].phys_addr = cpu_to_le32(sg_dma_address(os_sgl)); in megasas_make_sgl32()
1083 mfi_sgl->sge64[i].length = cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl64()
1112 cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl_skinny()
1115 mfi_sgl->sge_skinny[i].flag = cpu_to_le32(0); in megasas_make_sgl_skinny()
1225 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp)); in megasas_build_dcdb()
1266 cpu_to_le32(upper_32_bits(cmd->sense_phys_addr)); in megasas_build_dcdb()
1268 cpu_to_le32(lower_32_bits(cmd->sense_phys_addr)); in megasas_build_dcdb()
1327 ldio->lba_count = cpu_to_le32((u32) scp->cmnd[4]); in megasas_build_ldio()
1328 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[1] << 16) | in megasas_build_ldio()
1332 ldio->start_lba_lo &= cpu_to_le32(0x1FFFFF); in megasas_build_ldio()
1339 ldio->lba_count = cpu_to_le32((u32) scp->cmnd[8] | in megasas_build_ldio()
1341 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1351 ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[6] << 24) | in megasas_build_ldio()
1356 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1366 ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[10] << 24) | in megasas_build_ldio()
1371 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[6] << 24) | in megasas_build_ldio()
1376 ldio->start_lba_hi = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1407 ldio->sense_buf_phys_addr_lo = cpu_to_le32(cmd->sense_phys_addr); in megasas_build_ldio()
1824 *instance->consumer = cpu_to_le32(producer); in megasas_complete_cmd_dpc()
1864 *instance->consumer = cpu_to_le32(MEGASAS_ADPRESET_INPROG_SIGN); in megasas_do_ocr()
3289 cpu_to_le32(MEGASAS_ADPRESET_INPROG_SIGN); in megasas_deplete_reply_queue()
3671 cmd->frame->io.context = cpu_to_le32(cmd->index); in megasas_create_frame_pool()
3835 dcmd->data_xfer_len = cpu_to_le32(MEGASAS_MAX_PD * sizeof(struct MR_PD_LIST)); in megasas_get_pd_list()
3836 dcmd->opcode = cpu_to_le32(MR_DCMD_PD_LIST_QUERY); in megasas_get_pd_list()
3837 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_get_pd_list()
3838 dcmd->sgl.sge32[0].length = cpu_to_le32(MEGASAS_MAX_PD * sizeof(struct MR_PD_LIST)); in megasas_get_pd_list()
3934 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct MR_LD_LIST)); in megasas_get_ld_list()
3935 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_GET_LIST); in megasas_get_ld_list()
3936 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_get_ld_list()
3937 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct MR_LD_LIST)); in megasas_get_ld_list()
4027 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct MR_LD_TARGETID_LIST)); in megasas_ld_list_query()
4028 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_LIST_QUERY); in megasas_ld_list_query()
4029 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_ld_list_query()
4030 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct MR_LD_TARGETID_LIST)); in megasas_ld_list_query()
4166 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct megasas_ctrl_info)); in megasas_get_ctrl_info()
4167 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_GET_INFO); in megasas_get_ctrl_info()
4168 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_get_ctrl_info()
4169 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct megasas_ctrl_info)); in megasas_get_ctrl_info()
4237 dcmd->data_xfer_len = cpu_to_le32(CRASH_DMA_BUF_SIZE); in megasas_set_crash_dump_params()
4238 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_SET_CRASH_DUMP_PARAMS); in megasas_set_crash_dump_params()
4239 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(instance->crash_dump_h); in megasas_set_crash_dump_params()
4240 dcmd->sgl.sge32[0].length = cpu_to_le32(CRASH_DMA_BUF_SIZE); in megasas_set_crash_dump_params()
4296 initq_info->reply_queue_entries = cpu_to_le32(instance->max_fw_cmds + 1); in megasas_issue_init_mfi()
4297 initq_info->reply_queue_start_phys_addr_lo = cpu_to_le32(instance->reply_queue_h); in megasas_issue_init_mfi()
4299 initq_info->producer_index_phys_addr_lo = cpu_to_le32(instance->producer_h); in megasas_issue_init_mfi()
4300 initq_info->consumer_index_phys_addr_lo = cpu_to_le32(instance->consumer_h); in megasas_issue_init_mfi()
4305 cpu_to_le32(lower_32_bits(initq_info_h)); in megasas_issue_init_mfi()
4307 cpu_to_le32(upper_32_bits(initq_info_h)); in megasas_issue_init_mfi()
4309 init_frame->data_xfer_len = cpu_to_le32(sizeof(struct megasas_init_queue_info)); in megasas_issue_init_mfi()
4813 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct megasas_evt_log_info)); in megasas_get_seq_num()
4814 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_EVENT_GET_INFO); in megasas_get_seq_num()
4815 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(el_info_h); in megasas_get_seq_num()
4816 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct megasas_evt_log_info)); in megasas_get_seq_num()
4940 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct megasas_evt_detail)); in megasas_register_aen()
4941 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_EVENT_WAIT); in megasas_register_aen()
4942 dcmd->mbox.w[0] = cpu_to_le32(seq_num); in megasas_register_aen()
4944 dcmd->mbox.w[1] = cpu_to_le32(curr_aen.word); in megasas_register_aen()
4945 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(instance->evt_detail_h); in megasas_register_aen()
4946 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct megasas_evt_detail)); in megasas_register_aen()
5483 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_CACHE_FLUSH); in megasas_flush_cache()
5535 dcmd->opcode = cpu_to_le32(opcode); in megasas_shutdown_controller()
6075 cmd->frame->hdr.context = cpu_to_le32(cmd->index); in megasas_mgmt_fw_ioctl()
6119 kern_sge32[i].phys_addr = cpu_to_le32(buf_handle); in megasas_mgmt_fw_ioctl()
6120 kern_sge32[i].length = cpu_to_le32(ioc->sgl[i].iov_len); in megasas_mgmt_fw_ioctl()
6143 *sense_ptr = cpu_to_le32(sense_handle); in megasas_mgmt_fw_ioctl()