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()
1032 static int megasas_dcmd_pd_list_query(MegasasState *s, MegasasCmd *cmd) in megasas_dcmd_pd_list_query()
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()
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()
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()
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()
1925 static int megasas_handle_abort(MegasasState *s, MegasasCmd *cmd) in megasas_handle_abort()
1959 static void megasas_handle_frame(MegasasState *s, uint64_t frame_addr, in megasas_handle_frame()
2021 MegasasState *s = opaque; in megasas_mmio_read()
2074 MegasasState *s = opaque; in megasas_mmio_write()
2238 static void megasas_soft_reset(MegasasState *s) in megasas_soft_reset()
2279 MegasasState *s = MEGASAS(dev); in megasas_scsi_reset()
2289 VMSTATE_PCI_DEVICE(parent_obj, MegasasState),
2290 VMSTATE_MSIX(parent_obj, MegasasState),
2292 VMSTATE_UINT32(fw_state, MegasasState),
2293 VMSTATE_UINT32(intr_mask, MegasasState),
2294 VMSTATE_UINT32(doorbell, MegasasState),
2295 VMSTATE_UINT64(reply_queue_pa, MegasasState),
2296 VMSTATE_UINT64(consumer_pa, MegasasState),
2297 VMSTATE_UINT64(producer_pa, MegasasState),
2307 VMSTATE_PCI_DEVICE(parent_obj, MegasasState),
2308 VMSTATE_MSIX(parent_obj, MegasasState),
2310 VMSTATE_UINT32(fw_state, MegasasState),
2311 VMSTATE_UINT32(intr_mask, MegasasState),
2312 VMSTATE_UINT32(doorbell, MegasasState),
2313 VMSTATE_UINT64(reply_queue_pa, MegasasState),
2314 VMSTATE_UINT64(consumer_pa, MegasasState),
2315 VMSTATE_UINT64(producer_pa, MegasasState),
2322 MegasasState *s = MEGASAS(d); in megasas_scsi_uninit()
2343 MegasasState *s = MEGASAS(dev); in megasas_scsi_realize()
2448 DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge,
2450 DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds,
2452 DEFINE_PROP_STRING("hba_serial", MegasasState, hba_serial),
2453 DEFINE_PROP_UINT64("sas_address", MegasasState, sas_addr, 0),
2454 DEFINE_PROP_ON_OFF_AUTO("msi", MegasasState, msi, ON_OFF_AUTO_AUTO),
2455 DEFINE_PROP_ON_OFF_AUTO("msix", MegasasState, msix, ON_OFF_AUTO_AUTO),
2456 DEFINE_PROP_BIT("use_jbod", MegasasState, flags,
2461 DEFINE_PROP_UINT32("max_sge", MegasasState, fw_sge,
2463 DEFINE_PROP_UINT32("max_cmds", MegasasState, fw_cmds,
2465 DEFINE_PROP_STRING("hba_serial", MegasasState, hba_serial),
2466 DEFINE_PROP_UINT64("sas_address", MegasasState, sas_addr, 0),
2467 DEFINE_PROP_ON_OFF_AUTO("msi", MegasasState, msi, ON_OFF_AUTO_AUTO),
2468 DEFINE_PROP_ON_OFF_AUTO("msix", MegasasState, msix, ON_OFF_AUTO_AUTO),
2469 DEFINE_PROP_BIT("use_jbod", MegasasState, flags,
2556 .instance_size = sizeof(MegasasState),