Lines Matching refs:MegasasCmd
60 typedef struct MegasasCmd { struct
76 } MegasasCmd; argument
101 MegasasCmd *event_cmd;
119 MegasasCmd frames[MEGASAS_MAX_FRAMES];
215 static bool megasas_frame_is_ieee_sgl(MegasasCmd *cmd) in megasas_frame_is_ieee_sgl()
220 static bool megasas_frame_is_sgl64(MegasasCmd *cmd) in megasas_frame_is_sgl64()
225 static bool megasas_frame_is_sense64(MegasasCmd *cmd) in megasas_frame_is_sense64()
230 static uint64_t megasas_sgl_get_addr(MegasasCmd *cmd, in megasas_sgl_get_addr()
245 static uint32_t megasas_sgl_get_len(MegasasCmd *cmd, in megasas_sgl_get_len()
260 static union mfi_sgl *megasas_sgl_next(MegasasCmd *cmd, in megasas_sgl_next()
281 static int megasas_map_sgl(MegasasState *s, MegasasCmd *cmd, union mfi_sgl *sgl) in megasas_map_sgl()
329 static int megasas_build_sense(MegasasCmd *cmd, uint8_t *sense_ptr, in megasas_build_sense()
353 static void megasas_write_sense(MegasasCmd *cmd, SCSISense sense) in megasas_write_sense()
367 static void megasas_copy_sense(MegasasCmd *cmd) in megasas_copy_sense()
448 static MegasasCmd *megasas_lookup_frame(MegasasState *s, in megasas_lookup_frame()
451 MegasasCmd *cmd = NULL; in megasas_lookup_frame()
468 static void megasas_unmap_frame(MegasasState *s, MegasasCmd *cmd) in megasas_unmap_frame()
486 static MegasasCmd *megasas_enqueue_frame(MegasasState *s, in megasas_enqueue_frame()
490 MegasasCmd *cmd = NULL; in megasas_enqueue_frame()
597 static void megasas_complete_command(MegasasCmd *cmd) in megasas_complete_command()
613 MegasasCmd *cmd; in megasas_reset_frames()
624 static void megasas_abort_command(MegasasCmd *cmd) in megasas_abort_command()
635 static int megasas_init_firmware(MegasasState *s, MegasasCmd *cmd) in megasas_init_firmware()
696 static int megasas_map_dcmd(MegasasState *s, MegasasCmd *cmd) in megasas_map_dcmd()
720 static void megasas_finish_dcmd(MegasasCmd *cmd, uint32_t iov_size) in megasas_finish_dcmd()
735 static int megasas_ctrl_get_info(MegasasState *s, MegasasCmd *cmd) in megasas_ctrl_get_info()
861 static int megasas_mfc_get_defaults(MegasasState *s, MegasasCmd *cmd) in megasas_mfc_get_defaults()
894 static int megasas_dcmd_get_bios_info(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_get_bios_info()
918 static int megasas_dcmd_get_fw_time(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_get_fw_time()
932 static int megasas_dcmd_set_fw_time(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_set_fw_time()
944 static int megasas_event_info(MegasasState *s, MegasasCmd *cmd) in megasas_event_info()
962 static int megasas_event_wait(MegasasState *s, MegasasCmd *cmd) in megasas_event_wait()
982 static int megasas_dcmd_pd_get_list(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_pd_get_list()
1032 static int megasas_dcmd_pd_list_query(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_pd_list_query()
1048 MegasasCmd *cmd) in megasas_pd_get_info_submit()
1132 static int megasas_dcmd_pd_get_info(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_pd_get_info()
1159 static int megasas_dcmd_ld_get_list(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_ld_get_list()
1204 static int megasas_dcmd_ld_list_query(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_ld_list_query()
1256 MegasasCmd *cmd) in megasas_ld_get_info_submit()
1309 static int megasas_dcmd_ld_get_info(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_ld_get_info()
1341 static int megasas_dcmd_cfg_read(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_cfg_read()
1428 static int megasas_dcmd_get_properties(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_get_properties()
1460 static int megasas_cache_flush(MegasasState *s, MegasasCmd *cmd) in megasas_cache_flush()
1466 static int megasas_ctrl_shutdown(MegasasState *s, MegasasCmd *cmd) in megasas_ctrl_shutdown()
1473 static int megasas_cluster_reset_ld(MegasasState *s, MegasasCmd *cmd) in megasas_cluster_reset_ld()
1482 MegasasCmd *tmp_cmd = &s->frames[i]; in megasas_cluster_reset_ld()
1491 static int megasas_dcmd_set_properties(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_set_properties()
1506 static int megasas_dcmd_dummy(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_dummy()
1515 int (*func)(MegasasState *s, MegasasCmd *cmd);
1612 static int megasas_handle_dcmd(MegasasState *s, MegasasCmd *cmd) in megasas_handle_dcmd()
1640 static int megasas_finish_internal_dcmd(MegasasCmd *cmd, in megasas_finish_internal_dcmd()
1666 static int megasas_enqueue_req(MegasasCmd *cmd, bool is_write) in megasas_enqueue_req()
1699 static int megasas_handle_scsi(MegasasState *s, MegasasCmd *cmd, in megasas_handle_scsi()
1773 static int megasas_handle_io(MegasasState *s, MegasasCmd *cmd, int frame_cmd) in megasas_handle_io()
1836 MegasasCmd *cmd = req->hba_private; in megasas_get_sg_list()
1847 MegasasCmd *cmd = req->hba_private; in megasas_xfer_complete()
1881 MegasasCmd *cmd = req->hba_private; in megasas_command_complete()
1916 MegasasCmd *cmd = req->hba_private; in megasas_command_cancelled()
1925 static int megasas_handle_abort(MegasasState *s, MegasasCmd *cmd) in megasas_handle_abort()
1929 MegasasCmd *abort_cmd; in megasas_handle_abort()
1965 MegasasCmd *cmd; in megasas_handle_frame()
2241 MegasasCmd *cmd; in megasas_soft_reset()