Lines Matching defs:instance

543 #define	WR_IB_MSG_0(v, instance) 	ddi_put32((instance)->regmap_handle, \
544 (uint32_t *)((uintptr_t)(instance)->regmap + IB_MSG_0_OFF), (v))
546 #define RD_OB_MSG_0(instance) ddi_get32((instance)->regmap_handle, \
547 (uint32_t *)((uintptr_t)(instance)->regmap + OB_MSG_0_OFF))
549 #define WR_IB_DOORBELL(v, instance) ddi_put32((instance)->regmap_handle, \
550 (uint32_t *)((uintptr_t)(instance)->regmap + IB_DOORBELL_OFF), (v))
552 #define RD_IB_DOORBELL(instance) ddi_get32((instance)->regmap_handle, \
553 (uint32_t *)((uintptr_t)(instance)->regmap + IB_DOORBELL_OFF))
555 #define WR_OB_INTR_STATUS(v, instance) ddi_put32((instance)->regmap_handle, \
556 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_STATUS_OFF), (v))
558 #define RD_OB_INTR_STATUS(instance) ddi_get32((instance)->regmap_handle, \
559 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_STATUS_OFF))
561 #define WR_OB_INTR_MASK(v, instance) ddi_put32((instance)->regmap_handle, \
562 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF), (v))
564 #define RD_OB_INTR_MASK(instance) ddi_get32((instance)->regmap_handle, \
565 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF))
567 #define WR_IB_QPORT(v, instance) ddi_put32((instance)->regmap_handle, \
568 (uint32_t *)((uintptr_t)(instance)->regmap + IB_QPORT_OFF), (v))
570 #define WR_OB_DOORBELL_CLEAR(v, instance) ddi_put32((instance)->regmap_handle, \
571 (uint32_t *)((uintptr_t)(instance)->regmap + OB_DOORBELL_CLEAR_OFF), \
574 #define RD_OB_SCRATCH_PAD_0(instance) ddi_get32((instance)->regmap_handle, \
575 (uint32_t *)((uintptr_t)(instance)->regmap + OB_SCRATCH_PAD_0_OFF))
593 #define MFI_ENABLE_INTR(instance) ddi_put32((instance)->regmap_handle, \
594 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF), 1)
595 #define MFI_DISABLE_INTR(instance) \
598 uint32_t mask = ddi_get32((instance)->regmap_handle, \
599 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF));\
601 ddi_put32((instance)->regmap_handle, (uint32_t *) \
602 (uintptr_t)((instance)->regmap + OB_INTR_MASK_OFF), mask); \
1319 #define MEGADRV_IS_LOGICAL_SCSA(instance, acmd) \
1323 #define MAP_DEVICE_ID(instance, ap) \
1326 * #define MAP_DEVICE_ID(instance,ap) \
1412 struct megasas_instance *instance[MAX_MGMT_ADAPTERS];
1650 static void flush_cache(struct megasas_instance *instance);
1652 static int start_mfi_aen(struct megasas_instance *instance);
1653 static int handle_drv_ioctl(struct megasas_instance *instance,
1655 static int handle_mfi_ioctl(struct megasas_instance *instance,
1657 static int handle_mfi_aen(struct megasas_instance *instance,
1660 static struct megasas_cmd *build_cmd(struct megasas_instance *instance,
1663 static int wait_for_outstanding(struct megasas_instance *instance);
1664 static int register_mfi_aen(struct megasas_instance *instance,
1666 static int issue_mfi_pthru(struct megasas_instance *instance, struct
1668 static int issue_mfi_dcmd(struct megasas_instance *instance, struct
1670 static int issue_mfi_smp(struct megasas_instance *instance, struct
1672 static int issue_mfi_stp(struct megasas_instance *instance, struct
1674 static int abort_aen_cmd(struct megasas_instance *instance,
1677 static int megasas_common_check(struct megasas_instance *instance,
1679 static void megasas_fm_init(struct megasas_instance *instance);
1680 static void megasas_fm_fini(struct megasas_instance *instance);
1683 static void megasas_fm_ereport(struct megasas_instance *instance,