_ha 16 drivers/scsi/aic94xx/aic94xx_dev.c #define FIND_FREE_DDB(_ha) find_first_zero_bit((_ha)->hw_prof.ddb_bitmap, \ _ha 17 drivers/scsi/aic94xx/aic94xx_dev.c (_ha)->hw_prof.max_ddbs) _ha 18 drivers/scsi/aic94xx/aic94xx_dev.c #define SET_DDB(_ddb, _ha) set_bit(_ddb, (_ha)->hw_prof.ddb_bitmap) _ha 19 drivers/scsi/aic94xx/aic94xx_dev.c #define CLEAR_DDB(_ddb, _ha) clear_bit(_ddb, (_ha)->hw_prof.ddb_bitmap) _ha 202 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_REG_8bit(_ha, _n, _r) asd_printk(STR_8BIT, #_n, _n, \ _ha 203 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, _r)) _ha 204 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_REG_16bit(_ha, _n, _r) asd_printk(STR_16BIT, #_n, _n, \ _ha 205 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, _r)) _ha 206 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_REG_32bit(_ha, _n, _r) asd_printk(STR_32BIT, #_n, _n, \ _ha 207 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_dword(_ha, _r)) _ha 209 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_CREG_8bit(_ha, _n) asd_printk(STR_8BIT, #_n, _n, \ _ha 210 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, C##_n)) _ha 211 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_CREG_16bit(_ha, _n) asd_printk(STR_16BIT, #_n, _n, \ _ha 212 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, C##_n)) _ha 213 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_CREG_32bit(_ha, _n) asd_printk(STR_32BIT, #_n, _n, \ _ha 214 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_dword(_ha, C##_n)) _ha 220 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MREG_8bit(_ha, _m, _n, _r) asd_printk(MSTR_8BIT, _m, #_n, _n, \ _ha 221 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, _r)) _ha 222 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MREG_16bit(_ha, _m, _n, _r) asd_printk(MSTR_16BIT, _m, #_n, _n, \ _ha 223 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, _r)) _ha 224 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MREG_32bit(_ha, _m, _n, _r) asd_printk(MSTR_32BIT, _m, #_n, _n, \ _ha 225 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_dword(_ha, _r)) _ha 228 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MIS_byte(_ha, _n) asd_printk(STR_8BIT, #_n,CSEQ_##_n-CMAPPEDSCR,\ _ha 229 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CSEQ_##_n)) _ha 230 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MIS_word(_ha, _n) asd_printk(STR_16BIT,#_n,CSEQ_##_n-CMAPPEDSCR,\ _ha 231 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CSEQ_##_n)) _ha 232 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MIS_dword(_ha, _n) \ _ha 234 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_dword(_ha, CSEQ_##_n)) _ha 235 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_MIS_qword(_ha, _n) \ _ha 237 drivers/scsi/aic94xx/aic94xx_dump.c (unsigned long long)(((u64)asd_read_reg_dword(_ha, CSEQ_##_n)) \ _ha 238 drivers/scsi/aic94xx/aic94xx_dump.c | (((u64)asd_read_reg_dword(_ha, (CSEQ_##_n)+4))<<32))) _ha 241 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_CMDP_word(_ha, _n) \ _ha 244 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 0)), \ _ha 245 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 1)), \ _ha 246 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 2)), \ _ha 247 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 3)), \ _ha 248 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 4)), \ _ha 249 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 5)), \ _ha 250 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 6)), \ _ha 251 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_word(_ha, CMDP_REG(_n, 7))) _ha 253 drivers/scsi/aic94xx/aic94xx_dump.c #define PRINT_CMDP_byte(_ha, _n) \ _ha 256 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 0)), \ _ha 257 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 1)), \ _ha 258 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 2)), \ _ha 259 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 3)), \ _ha 260 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 4)), \ _ha 261 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 5)), \ _ha 262 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 6)), \ _ha 263 drivers/scsi/aic94xx/aic94xx_dump.c asd_read_reg_byte(_ha, CMDP_REG(_n, 7))) _ha 4572 drivers/scsi/qla2xxx/qla_def.h #define QLA_FW_STARTED(_ha) { \ _ha 4574 drivers/scsi/qla2xxx/qla_def.h _ha->flags.fw_started = 1; \ _ha 4575 drivers/scsi/qla2xxx/qla_def.h _ha->base_qpair->fw_started = 1; \ _ha 4576 drivers/scsi/qla2xxx/qla_def.h for (i = 0; i < _ha->max_qpairs; i++) { \ _ha 4577 drivers/scsi/qla2xxx/qla_def.h if (_ha->queue_pair_map[i]) \ _ha 4578 drivers/scsi/qla2xxx/qla_def.h _ha->queue_pair_map[i]->fw_started = 1; \ _ha 4582 drivers/scsi/qla2xxx/qla_def.h #define QLA_FW_STOPPED(_ha) { \ _ha 4584 drivers/scsi/qla2xxx/qla_def.h _ha->flags.fw_started = 0; \ _ha 4585 drivers/scsi/qla2xxx/qla_def.h _ha->base_qpair->fw_started = 0; \ _ha 4586 drivers/scsi/qla2xxx/qla_def.h for (i = 0; i < _ha->max_qpairs; i++) { \ _ha 4587 drivers/scsi/qla2xxx/qla_def.h if (_ha->queue_pair_map[i]) \ _ha 4588 drivers/scsi/qla2xxx/qla_def.h _ha->queue_pair_map[i]->fw_started = 0; \ _ha 4654 drivers/scsi/qla2xxx/qla_def.h #define QLA_ENA_CONF(_ha) {\ _ha 4656 drivers/scsi/qla2xxx/qla_def.h _ha->base_qpair->enable_explicit_conf = 1; \ _ha 4657 drivers/scsi/qla2xxx/qla_def.h for (i = 0; i < _ha->max_qpairs; i++) { \ _ha 4658 drivers/scsi/qla2xxx/qla_def.h if (_ha->queue_pair_map[i]) \ _ha 4659 drivers/scsi/qla2xxx/qla_def.h _ha->queue_pair_map[i]->enable_explicit_conf = 1; \ _ha 4663 drivers/scsi/qla2xxx/qla_def.h #define QLA_DIS_CONF(_ha) {\ _ha 4665 drivers/scsi/qla2xxx/qla_def.h _ha->base_qpair->enable_explicit_conf = 0; \ _ha 4666 drivers/scsi/qla2xxx/qla_def.h for (i = 0; i < _ha->max_qpairs; i++) { \ _ha 4667 drivers/scsi/qla2xxx/qla_def.h if (_ha->queue_pair_map[i]) \ _ha 4668 drivers/scsi/qla2xxx/qla_def.h _ha->queue_pair_map[i]->enable_explicit_conf = 0; \ _ha 4813 drivers/scsi/qla2xxx/qla_def.h #define USER_CTRL_IRQ(_ha) (ql2xuctrlirq && QLA_TGT_MODE_ENABLED() && \ _ha 4814 drivers/scsi/qla2xxx/qla_def.h (IS_QLA27XX(_ha) || IS_QLA28XX(_ha) || IS_QLA83XX(_ha))) _ha 4816 drivers/scsi/qla2xxx/qla_def.h #define SAVE_TOPO(_ha) { \ _ha 4817 drivers/scsi/qla2xxx/qla_def.h if (_ha->current_topology) \ _ha 4818 drivers/scsi/qla2xxx/qla_def.h _ha->prev_topology = _ha->current_topology; \