Lines Matching defs:instance

410 	struct mrsas_instance	*instance;
544 int instance;
727 #define MRDRV_IS_LOGICAL_SCSA(instance, acmd) \
731 #define MAP_DEVICE_ID(instance, ap) \
837 struct mrsas_instance *instance[MAX_MGMT_ADAPTERS];
1104 #define WR_IB_WRITE_SEQ(v, instance) ddi_put32((instance)->regmap_handle, \
1105 (uint32_t *)((uintptr_t)(instance)->regmap + WRITE_SEQ_OFF), (v))
1107 #define RD_OB_DRWE(instance) ddi_get32((instance)->regmap_handle, \
1108 (uint32_t *)((uintptr_t)(instance)->regmap + HOST_DIAG_OFF))
1110 #define WR_IB_DRWE(v, instance) ddi_put32((instance)->regmap_handle, \
1111 (uint32_t *)((uintptr_t)(instance)->regmap + HOST_DIAG_OFF), (v))
1120 #define WR_IB_MSG_0(v, instance) ddi_put32((instance)->regmap_handle, \
1121 (uint32_t *)((uintptr_t)(instance)->regmap + IB_MSG_0_OFF), (v))
1123 #define RD_OB_MSG_0(instance) ddi_get32((instance)->regmap_handle, \
1124 (uint32_t *)((uintptr_t)(instance)->regmap + OB_MSG_0_OFF))
1126 #define WR_IB_DOORBELL(v, instance) ddi_put32((instance)->regmap_handle, \
1127 (uint32_t *)((uintptr_t)(instance)->regmap + IB_DOORBELL_OFF), (v))
1129 #define RD_IB_DOORBELL(instance) ddi_get32((instance)->regmap_handle, \
1130 (uint32_t *)((uintptr_t)(instance)->regmap + IB_DOORBELL_OFF))
1132 #define WR_OB_INTR_STATUS(v, instance) ddi_put32((instance)->regmap_handle, \
1133 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_STATUS_OFF), (v))
1135 #define RD_OB_INTR_STATUS(instance) ddi_get32((instance)->regmap_handle, \
1136 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_STATUS_OFF))
1138 #define WR_OB_INTR_MASK(v, instance) ddi_put32((instance)->regmap_handle, \
1139 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF), (v))
1141 #define RD_OB_INTR_MASK(instance) ddi_get32((instance)->regmap_handle, \
1142 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF))
1144 #define WR_IB_QPORT(v, instance) ddi_put32((instance)->regmap_handle, \
1145 (uint32_t *)((uintptr_t)(instance)->regmap + IB_QPORT_OFF), (v))
1147 #define WR_OB_DOORBELL_CLEAR(v, instance) ddi_put32((instance)->regmap_handle, \
1148 (uint32_t *)((uintptr_t)(instance)->regmap + OB_DOORBELL_CLEAR_OFF), \
1151 #define RD_OB_SCRATCH_PAD_0(instance) ddi_get32((instance)->regmap_handle, \
1152 (uint32_t *)((uintptr_t)(instance)->regmap + OB_SCRATCH_PAD_0_OFF))
1155 #define RD_OB_SCRATCH_PAD_2(instance) ddi_get32((instance)->regmap_handle, \
1156 (uint32_t *)((uintptr_t)(instance)->regmap + OB_SCRATCH_PAD_2_OFF))
1158 #define WR_TBOLT_IB_WRITE_SEQ(v, instance) \
1159 ddi_put32((instance)->regmap_handle, \
1160 (uint32_t *)((uintptr_t)(instance)->regmap + WRITE_TBOLT_SEQ_OFF), (v))
1162 #define RD_TBOLT_HOST_DIAG(instance) ddi_get32((instance)->regmap_handle, \
1163 (uint32_t *)((uintptr_t)(instance)->regmap + HOST_TBOLT_DIAG_OFF))
1165 #define WR_TBOLT_HOST_DIAG(v, instance) ddi_put32((instance)->regmap_handle, \
1166 (uint32_t *)((uintptr_t)(instance)->regmap + HOST_TBOLT_DIAG_OFF), (v))
1168 #define RD_TBOLT_RESET_STAT(instance) ddi_get32((instance)->regmap_handle, \
1169 (uint32_t *)((uintptr_t)(instance)->regmap + RESET_TBOLT_STATUS_OFF))
1172 #define WR_MPI2_REPLY_POST_INDEX(v, instance)\
1173 ddi_put32((instance)->regmap_handle,\
1175 ((uintptr_t)(instance)->regmap + MPI2_REPLY_POST_HOST_INDEX_OFFSET),\
1179 #define RD_MPI2_REPLY_POST_INDEX(instance)\
1180 ddi_get32((instance)->regmap_handle,\
1182 ((uintptr_t)(instance)->regmap + MPI2_REPLY_POST_HOST_INDEX_OFFSET))
1184 #define WR_IB_LOW_QPORT(v, instance) ddi_put32((instance)->regmap_handle, \
1185 (uint32_t *)((uintptr_t)(instance)->regmap + IB_LOW_QPORT), (v))
1187 #define WR_IB_HIGH_QPORT(v, instance) ddi_put32((instance)->regmap_handle, \
1188 (uint32_t *)((uintptr_t)(instance)->regmap + IB_HIGH_QPORT), (v))
1190 #define WR_OB_DOORBELL_REGISTER_CLEAR(v, instance)\
1191 ddi_put32((instance)->regmap_handle,\
1192 (uint32_t *)((uintptr_t)(instance)->regmap + OB_DOORBELL_REGISTER), \
1195 #define WR_RESERVED0_REGISTER(v, instance) ddi_put32((instance)->regmap_handle,\
1196 (uint32_t *)((uintptr_t)(instance)->regmap + RESERVED0_REGISTER), \
1199 #define RD_RESERVED0_REGISTER(instance) ddi_get32((instance)->regmap_handle, \
1200 (uint32_t *)((uintptr_t)(instance)->regmap + RESERVED0_REGISTER))
1224 #define MFI_ENABLE_INTR(instance) ddi_put32((instance)->regmap_handle, \
1225 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF), 1)
1226 #define MFI_DISABLE_INTR(instance) \
1229 uint32_t mask = ddi_get32((instance)->regmap_handle, \
1230 (uint32_t *)((uintptr_t)(instance)->regmap + OB_INTR_MASK_OFF));\
1232 ddi_put32((instance)->regmap_handle, (uint32_t *) \
1233 (uintptr_t)((instance)->regmap + OB_INTR_MASK_OFF), mask); \
2036 int mrsas_tbolt_reset_ppc(struct mrsas_instance *instance);
2037 void mrsas_tbolt_kill_adapter(struct mrsas_instance *instance);
2039 void mrsas_tbolt_prepare_cdb(struct mrsas_instance *instance, U8 cdb[],
2043 int mrsas_init_adapter_ppc(struct mrsas_instance *instance);
2044 int mrsas_init_adapter_tbolt(struct mrsas_instance *instance);
2045 int mrsas_init_adapter(struct mrsas_instance *instance);
2047 int mrsas_alloc_cmd_pool(struct mrsas_instance *instance);
2048 void mrsas_free_cmd_pool(struct mrsas_instance *instance);