Lines Matching refs:MegasasState
75 struct MegasasState *state;
78 struct MegasasState { struct
123 typedef struct MegasasState MegasasState; argument
139 DECLARE_OBJ_CHECKERS(MegasasState, MegasasBaseClass, in DECLARE_OBJ_CHECKERS() argument
145 static bool megasas_intr_enabled(MegasasState *s) in DECLARE_OBJ_CHECKERS()
154 static bool megasas_use_queue64(MegasasState *s) in megasas_use_queue64()
159 static bool megasas_use_msix(MegasasState *s) in megasas_use_msix()
164 static bool megasas_is_jbod(MegasasState *s) in megasas_is_jbod()
169 static void megasas_frame_set_cmd_status(MegasasState *s, in megasas_frame_set_cmd_status()
177 static void megasas_frame_set_scsi_status(MegasasState *s, in megasas_frame_set_scsi_status()
203 static uint64_t megasas_frame_get_context(MegasasState *s, in megasas_frame_get_context()
279 static void megasas_soft_reset(MegasasState *s);
281 static int megasas_map_sgl(MegasasState *s, MegasasCmd *cmd, union mfi_sgl *sgl) in megasas_map_sgl()
439 static int megasas_next_index(MegasasState *s, int index, int limit) in megasas_next_index()
448 static MegasasCmd *megasas_lookup_frame(MegasasState *s, 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()
542 static void megasas_complete_frame(MegasasState *s, uint64_t context) in megasas_complete_frame()
610 static void megasas_reset_frames(MegasasState *s) in megasas_reset_frames()
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()
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()
1034 static int megasas_dcmd_pd_list_query(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_pd_list_query()
1134 static int megasas_dcmd_pd_get_info(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_pd_get_info()
1161 static int megasas_dcmd_ld_get_list(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_ld_get_list()
1206 static int megasas_dcmd_ld_list_query(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_ld_list_query()
1311 static int megasas_dcmd_ld_get_info(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_ld_get_info()
1343 static int megasas_dcmd_cfg_read(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_cfg_read()
1430 static int megasas_dcmd_get_properties(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_get_properties()
1463 static int megasas_cache_flush(MegasasState *s, MegasasCmd *cmd) in megasas_cache_flush()
1469 static int megasas_ctrl_shutdown(MegasasState *s, MegasasCmd *cmd) in megasas_ctrl_shutdown()
1476 static int megasas_cluster_reset_ld(MegasasState *s, MegasasCmd *cmd) in megasas_cluster_reset_ld()
1494 static int megasas_dcmd_set_properties(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_set_properties()
1509 static int megasas_dcmd_dummy(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_dummy()
1518 int (*func)(MegasasState *s, MegasasCmd *cmd);
1615 static int megasas_handle_dcmd(MegasasState *s, MegasasCmd *cmd) in megasas_handle_dcmd()
1702 static int megasas_handle_scsi(MegasasState *s, MegasasCmd *cmd, in megasas_handle_scsi()
1776 static int megasas_handle_io(MegasasState *s, MegasasCmd *cmd, int frame_cmd) in megasas_handle_io()
1938 static int megasas_handle_abort(MegasasState *s, MegasasCmd *cmd) in megasas_handle_abort()
1972 static void megasas_handle_frame(MegasasState *s, uint64_t frame_addr, in megasas_handle_frame()
2034 MegasasState *s = opaque; in megasas_mmio_read()
2087 MegasasState *s = opaque; in megasas_mmio_write()
2252 static void megasas_soft_reset(MegasasState *s) in megasas_soft_reset()
2293 MegasasState *s = MEGASAS(dev); in megasas_scsi_reset()
2303 VMSTATE_PCI_DEVICE(parent_obj, MegasasState),
2304 VMSTATE_MSIX(parent_obj, MegasasState),
2306 VMSTATE_UINT32(fw_state, MegasasState),
2307 VMSTATE_UINT32(intr_mask, MegasasState),
2308 VMSTATE_UINT32(doorbell, MegasasState),
2309 VMSTATE_UINT64(reply_queue_pa, MegasasState),
2310 VMSTATE_UINT64(consumer_pa, MegasasState),
2311 VMSTATE_UINT64(producer_pa, MegasasState),
2321 VMSTATE_PCI_DEVICE(parent_obj, MegasasState),
2322 VMSTATE_MSIX(parent_obj, MegasasState),
2324 VMSTATE_UINT32(fw_state, MegasasState),
2325 VMSTATE_UINT32(intr_mask, MegasasState),
2326 VMSTATE_UINT32(doorbell, MegasasState),
2327 VMSTATE_UINT64(reply_queue_pa, MegasasState),
2328 VMSTATE_UINT64(consumer_pa, MegasasState),
2329 VMSTATE_UINT64(producer_pa, MegasasState),
2336 MegasasState *s = MEGASAS(d); in megasas_scsi_uninit()
2357 MegasasState *s = MEGASAS(dev); in megasas_scsi_realize()
2462 DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge,
2464 DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds,
2466 DEFINE_PROP_STRING("hba_serial", MegasasState, hba_serial),
2467 DEFINE_PROP_UINT64("sas_address", MegasasState, sas_addr, 0),
2468 DEFINE_PROP_ON_OFF_AUTO("msi", MegasasState, msi, ON_OFF_AUTO_AUTO),
2469 DEFINE_PROP_ON_OFF_AUTO("msix", MegasasState, msix, ON_OFF_AUTO_AUTO),
2470 DEFINE_PROP_BIT("use_jbod", MegasasState, flags,
2476 DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge,
2478 DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds,
2480 DEFINE_PROP_STRING("hba_serial", MegasasState, hba_serial),
2481 DEFINE_PROP_UINT64("sas_address", MegasasState, sas_addr, 0),
2482 DEFINE_PROP_ON_OFF_AUTO("msi", MegasasState, msi, ON_OFF_AUTO_AUTO),
2483 DEFINE_PROP_ON_OFF_AUTO("msix", MegasasState, msix, ON_OFF_AUTO_AUTO),
2484 DEFINE_PROP_BIT("use_jbod", MegasasState, flags,
2569 .instance_size = sizeof(MegasasState),