Lines Matching refs:cpu_to_le32

1071 	abort_fr->abort_context = cpu_to_le32(cmd_to_abort->index);  in megasas_issue_blocked_abort_cmd()
1073 cpu_to_le32(lower_32_bits(cmd_to_abort->frame_phys_addr)); in megasas_issue_blocked_abort_cmd()
1075 cpu_to_le32(upper_32_bits(cmd_to_abort->frame_phys_addr)); in megasas_issue_blocked_abort_cmd()
1122 mfi_sgl->sge32[i].length = cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl32()
1123 mfi_sgl->sge32[i].phys_addr = cpu_to_le32(sg_dma_address(os_sgl)); in megasas_make_sgl32()
1151 mfi_sgl->sge64[i].length = cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl64()
1180 cpu_to_le32(sg_dma_len(os_sgl)); in megasas_make_sgl_skinny()
1183 mfi_sgl->sge_skinny[i].flag = cpu_to_le32(0); in megasas_make_sgl_skinny()
1293 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp)); in megasas_build_dcdb()
1334 cpu_to_le32(upper_32_bits(cmd->sense_phys_addr)); in megasas_build_dcdb()
1336 cpu_to_le32(lower_32_bits(cmd->sense_phys_addr)); in megasas_build_dcdb()
1395 ldio->lba_count = cpu_to_le32((u32) scp->cmnd[4]); in megasas_build_ldio()
1396 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[1] << 16) | in megasas_build_ldio()
1400 ldio->start_lba_lo &= cpu_to_le32(0x1FFFFF); in megasas_build_ldio()
1407 ldio->lba_count = cpu_to_le32((u32) scp->cmnd[8] | in megasas_build_ldio()
1409 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1419 ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[6] << 24) | in megasas_build_ldio()
1424 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1434 ldio->lba_count = cpu_to_le32(((u32) scp->cmnd[10] << 24) | in megasas_build_ldio()
1439 ldio->start_lba_lo = cpu_to_le32(((u32) scp->cmnd[6] << 24) | in megasas_build_ldio()
1444 ldio->start_lba_hi = cpu_to_le32(((u32) scp->cmnd[2] << 24) | in megasas_build_ldio()
1475 ldio->sense_buf_phys_addr_lo = cpu_to_le32(cmd->sense_phys_addr); in megasas_build_ldio()
1934 *instance->consumer = cpu_to_le32(producer); in megasas_complete_cmd_dpc()
1974 *instance->consumer = cpu_to_le32(MEGASAS_ADPRESET_INPROG_SIGN); in megasas_do_ocr()
2041 cpu_to_le32(sizeof(struct MR_LD_VF_AFFILIATION_111)); in megasas_get_ld_vf_affiliation_111()
2042 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_VF_MAP_GET_ALL_LDS_111); in megasas_get_ld_vf_affiliation_111()
2046 cpu_to_le32(instance->vf_affiliation_111_h); in megasas_get_ld_vf_affiliation_111()
2049 cpu_to_le32(new_affiliation_111_h); in megasas_get_ld_vf_affiliation_111()
2051 dcmd->sgl.sge32[0].length = cpu_to_le32( in megasas_get_ld_vf_affiliation_111()
2152 dcmd->data_xfer_len = cpu_to_le32((MAX_LOGICAL_DRIVES + 1) * in megasas_get_ld_vf_affiliation_12()
2154 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_VF_MAP_GET_ALL_LDS); in megasas_get_ld_vf_affiliation_12()
2158 cpu_to_le32(instance->vf_affiliation_h); in megasas_get_ld_vf_affiliation_12()
2161 cpu_to_le32(new_affiliation_h); in megasas_get_ld_vf_affiliation_12()
2163 dcmd->sgl.sge32[0].length = cpu_to_le32((MAX_LOGICAL_DRIVES + 1) * in megasas_get_ld_vf_affiliation_12()
2319 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct MR_CTRL_HB_HOST_MEM)); in megasas_sriov_start_heartbeat()
2320 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_SHARED_HOST_MEM_ALLOC); in megasas_sriov_start_heartbeat()
2321 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(instance->hb_host_mem_h); in megasas_sriov_start_heartbeat()
2322 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct MR_CTRL_HB_HOST_MEM)); in megasas_sriov_start_heartbeat()
3389 cpu_to_le32(MEGASAS_ADPRESET_INPROG_SIGN); in megasas_deplete_reply_queue()
3742 cmd->frame->io.context = cpu_to_le32(cmd->index); in megasas_create_frame_pool()
3902 dcmd->data_xfer_len = cpu_to_le32(MEGASAS_MAX_PD * sizeof(struct MR_PD_LIST)); in megasas_get_pd_list()
3903 dcmd->opcode = cpu_to_le32(MR_DCMD_PD_LIST_QUERY); in megasas_get_pd_list()
3904 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_get_pd_list()
3905 dcmd->sgl.sge32[0].length = cpu_to_le32(MEGASAS_MAX_PD * sizeof(struct MR_PD_LIST)); in megasas_get_pd_list()
3997 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct MR_LD_LIST)); in megasas_get_ld_list()
3998 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_GET_LIST); in megasas_get_ld_list()
3999 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_get_ld_list()
4000 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct MR_LD_LIST)); in megasas_get_ld_list()
4086 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct MR_LD_TARGETID_LIST)); in megasas_ld_list_query()
4087 dcmd->opcode = cpu_to_le32(MR_DCMD_LD_LIST_QUERY); in megasas_ld_list_query()
4088 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_ld_list_query()
4089 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct MR_LD_TARGETID_LIST)); in megasas_ld_list_query()
4219 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct megasas_ctrl_info)); in megasas_get_ctrl_info()
4220 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_GET_INFO); in megasas_get_ctrl_info()
4221 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(ci_h); in megasas_get_ctrl_info()
4222 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct megasas_ctrl_info)); in megasas_get_ctrl_info()
4301 dcmd->data_xfer_len = cpu_to_le32(CRASH_DMA_BUF_SIZE); in megasas_set_crash_dump_params()
4302 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_SET_CRASH_DUMP_PARAMS); in megasas_set_crash_dump_params()
4303 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(instance->crash_dump_h); in megasas_set_crash_dump_params()
4304 dcmd->sgl.sge32[0].length = cpu_to_le32(CRASH_DMA_BUF_SIZE); in megasas_set_crash_dump_params()
4354 initq_info->reply_queue_entries = cpu_to_le32(instance->max_fw_cmds + 1); in megasas_issue_init_mfi()
4355 initq_info->reply_queue_start_phys_addr_lo = cpu_to_le32(instance->reply_queue_h); in megasas_issue_init_mfi()
4357 initq_info->producer_index_phys_addr_lo = cpu_to_le32(instance->producer_h); in megasas_issue_init_mfi()
4358 initq_info->consumer_index_phys_addr_lo = cpu_to_le32(instance->consumer_h); in megasas_issue_init_mfi()
4363 cpu_to_le32(lower_32_bits(initq_info_h)); in megasas_issue_init_mfi()
4365 cpu_to_le32(upper_32_bits(initq_info_h)); in megasas_issue_init_mfi()
4367 init_frame->data_xfer_len = cpu_to_le32(sizeof(struct megasas_init_queue_info)); in megasas_issue_init_mfi()
5033 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct megasas_evt_log_info)); in megasas_get_seq_num()
5034 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_EVENT_GET_INFO); in megasas_get_seq_num()
5035 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(el_info_h); in megasas_get_seq_num()
5036 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct megasas_evt_log_info)); in megasas_get_seq_num()
5156 dcmd->data_xfer_len = cpu_to_le32(sizeof(struct megasas_evt_detail)); in megasas_register_aen()
5157 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_EVENT_WAIT); in megasas_register_aen()
5158 dcmd->mbox.w[0] = cpu_to_le32(seq_num); in megasas_register_aen()
5160 dcmd->mbox.w[1] = cpu_to_le32(curr_aen.word); in megasas_register_aen()
5161 dcmd->sgl.sge32[0].phys_addr = cpu_to_le32(instance->evt_detail_h); in megasas_register_aen()
5162 dcmd->sgl.sge32[0].length = cpu_to_le32(sizeof(struct megasas_evt_detail)); in megasas_register_aen()
5638 dcmd->opcode = cpu_to_le32(MR_DCMD_CTRL_CACHE_FLUSH); in megasas_flush_cache()
5688 dcmd->opcode = cpu_to_le32(opcode); in megasas_shutdown_controller()
6154 cmd->frame->hdr.context = cpu_to_le32(cmd->index); in megasas_mgmt_fw_ioctl()
6198 kern_sge32[i].phys_addr = cpu_to_le32(buf_handle); in megasas_mgmt_fw_ioctl()
6199 kern_sge32[i].length = cpu_to_le32(ioc->sgl[i].iov_len); in megasas_mgmt_fw_ioctl()
6222 *sense_ptr = cpu_to_le32(sense_handle); in megasas_mgmt_fw_ioctl()