• Home
  • Raw
  • Download

Lines Matching refs:cnt

325 	uint32_t cnt;  in qla24xx_soft_reset()  local
335 for (cnt = 0; cnt < 30000; cnt++) { in qla24xx_soft_reset()
351 for (cnt = 0; cnt < 30000; cnt++) { in qla24xx_soft_reset()
364 for (cnt = 10000; rd_reg_word(&reg->mailbox0) != 0 && in qla24xx_soft_reset()
365 rval == QLA_SUCCESS; cnt--) { in qla24xx_soft_reset()
366 if (cnt) in qla24xx_soft_reset()
382 uint32_t cnt, stat, timer, words, idx; in qla2xxx_dump_ram() local
395 for (cnt = 0; cnt < ram_words && rval == QLA_SUCCESS; in qla2xxx_dump_ram()
396 cnt += words, addr += words) { in qla2xxx_dump_ram()
397 if (cnt + words > ram_words) in qla2xxx_dump_ram()
398 words = ram_words - cnt; in qla2xxx_dump_ram()
451 ram[cnt + idx] = in qla2xxx_dump_ram()
458 *nxt = rval == QLA_SUCCESS ? &ram[cnt] : NULL; in qla2xxx_dump_ram()
485 uint32_t cnt; in qla25xx_copy_fce() local
501 for (cnt = 0; cnt < 8; cnt++) in qla25xx_copy_fce()
502 *iter_reg++ = htonl(ha->fce_mb[cnt]); in qla25xx_copy_fce()
675 uint32_t cnt, que_idx; in qla25xx_copy_mq() local
692 for (cnt = 0; cnt < que_cnt; cnt++) { in qla25xx_copy_mq()
693 reg = ISP_QUE_REG(ha, cnt); in qla25xx_copy_mq()
694 que_idx = cnt * 4; in qla25xx_copy_mq()
744 uint32_t cnt; in qla2300_fw_dump() local
776 for (cnt = 30000; in qla2300_fw_dump()
778 rval == QLA_SUCCESS; cnt--) { in qla2300_fw_dump()
779 if (cnt) in qla2300_fw_dump()
791 for (cnt = 0; cnt < ARRAY_SIZE(fw->pbiu_reg); cnt++, dmp_reg++) in qla2300_fw_dump()
792 fw->pbiu_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2300_fw_dump()
795 for (cnt = 0; cnt < ARRAY_SIZE(fw->risc_host_reg); in qla2300_fw_dump()
796 cnt++, dmp_reg++) in qla2300_fw_dump()
797 fw->risc_host_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2300_fw_dump()
800 for (cnt = 0; cnt < ARRAY_SIZE(fw->mailbox_reg); in qla2300_fw_dump()
801 cnt++, dmp_reg++) in qla2300_fw_dump()
802 fw->mailbox_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2300_fw_dump()
812 for (cnt = 0; cnt < ARRAY_SIZE(fw->risc_hdw_reg); in qla2300_fw_dump()
813 cnt++, dmp_reg++) in qla2300_fw_dump()
814 fw->risc_hdw_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2300_fw_dump()
851 for (cnt = 0; cnt < 30000; cnt++) { in qla2300_fw_dump()
861 for (cnt = 30000; RD_MAILBOX_REG(ha, reg, 0) != 0 && in qla2300_fw_dump()
862 rval == QLA_SUCCESS; cnt--) { in qla2300_fw_dump()
863 if (cnt) in qla2300_fw_dump()
899 uint32_t cnt, timer; in qla2100_fw_dump() local
931 for (cnt = 30000; (rd_reg_word(&reg->hccr) & HCCR_RISC_PAUSE) == 0 && in qla2100_fw_dump()
932 rval == QLA_SUCCESS; cnt--) { in qla2100_fw_dump()
933 if (cnt) in qla2100_fw_dump()
940 for (cnt = 0; cnt < ARRAY_SIZE(fw->pbiu_reg); cnt++, dmp_reg++) in qla2100_fw_dump()
941 fw->pbiu_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2100_fw_dump()
944 for (cnt = 0; cnt < ha->mbx_count; cnt++, dmp_reg++) { in qla2100_fw_dump()
945 if (cnt == 8) in qla2100_fw_dump()
948 fw->mailbox_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2100_fw_dump()
952 for (cnt = 0; cnt < ARRAY_SIZE(fw->dma_reg); cnt++, dmp_reg++) in qla2100_fw_dump()
953 fw->dma_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2100_fw_dump()
957 for (cnt = 0; cnt < ARRAY_SIZE(fw->risc_hdw_reg); cnt++, dmp_reg++) in qla2100_fw_dump()
958 fw->risc_hdw_reg[cnt] = htons(rd_reg_word(dmp_reg)); in qla2100_fw_dump()
997 for (cnt = 30000; RD_MAILBOX_REG(ha, reg, 0) != 0 && in qla2100_fw_dump()
998 rval == QLA_SUCCESS; cnt--) { in qla2100_fw_dump()
999 if (cnt) in qla2100_fw_dump()
1010 for (cnt = 30000; in qla2100_fw_dump()
1012 rval == QLA_SUCCESS; cnt--) { in qla2100_fw_dump()
1013 if (cnt) in qla2100_fw_dump()
1037 for (cnt = 0; cnt < ARRAY_SIZE(fw->risc_ram) && rval == QLA_SUCCESS; in qla2100_fw_dump()
1038 cnt++, risc_address++) { in qla2100_fw_dump()
1066 fw->risc_ram[cnt] = htons(mb2); in qla2100_fw_dump()
1082 uint32_t cnt; in qla24xx_fw_dump() local
1128 for (cnt = 0; cnt < ARRAY_SIZE(fw->host_reg); cnt++, dmp_reg++) in qla24xx_fw_dump()
1129 fw->host_reg[cnt] = htonl(rd_reg_dword(dmp_reg)); in qla24xx_fw_dump()
1161 for (cnt = 0; cnt < ARRAY_SIZE(fw->mailbox_reg); cnt++, mbx_reg++) in qla24xx_fw_dump()
1162 fw->mailbox_reg[cnt] = htons(rd_reg_word(mbx_reg)); in qla24xx_fw_dump()
1200 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla24xx_fw_dump()
1206 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla24xx_fw_dump()
1212 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla24xx_fw_dump()
1328 uint32_t cnt; in qla25xx_fw_dump() local
1391 for (cnt = 0; cnt < ARRAY_SIZE(fw->host_reg); cnt++, dmp_reg++) in qla25xx_fw_dump()
1392 fw->host_reg[cnt] = htonl(rd_reg_dword(dmp_reg)); in qla25xx_fw_dump()
1440 for (cnt = 0; cnt < ARRAY_SIZE(fw->mailbox_reg); cnt++, mbx_reg++) in qla25xx_fw_dump()
1441 fw->mailbox_reg[cnt] = htons(rd_reg_word(mbx_reg)); in qla25xx_fw_dump()
1504 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla25xx_fw_dump()
1510 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla25xx_fw_dump()
1516 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla25xx_fw_dump()
1641 uint32_t cnt; in qla81xx_fw_dump() local
1702 for (cnt = 0; cnt < ARRAY_SIZE(fw->host_reg); cnt++, dmp_reg++) in qla81xx_fw_dump()
1703 fw->host_reg[cnt] = htonl(rd_reg_dword(dmp_reg)); in qla81xx_fw_dump()
1751 for (cnt = 0; cnt < ARRAY_SIZE(fw->mailbox_reg); cnt++, mbx_reg++) in qla81xx_fw_dump()
1752 fw->mailbox_reg[cnt] = htons(rd_reg_word(mbx_reg)); in qla81xx_fw_dump()
1815 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla81xx_fw_dump()
1821 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla81xx_fw_dump()
1827 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla81xx_fw_dump()
1956 uint32_t cnt; in qla83xx_fw_dump() local
2037 for (cnt = 0; cnt < ARRAY_SIZE(fw->host_reg); cnt++, dmp_reg++) in qla83xx_fw_dump()
2038 fw->host_reg[cnt] = htonl(rd_reg_dword(dmp_reg)); in qla83xx_fw_dump()
2086 for (cnt = 0; cnt < ARRAY_SIZE(fw->mailbox_reg); cnt++, mbx_reg++) in qla83xx_fw_dump()
2087 fw->mailbox_reg[cnt] = htons(rd_reg_word(mbx_reg)); in qla83xx_fw_dump()
2182 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla83xx_fw_dump()
2188 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla83xx_fw_dump()
2194 for (cnt = 0; cnt < 7; cnt++, dmp_reg++) in qla83xx_fw_dump()
2410 for (cnt = 30000; cnt && (rd_reg_word(&reg->mailbox0)); cnt--) in qla83xx_fw_dump()
2413 if (!cnt) { in qla83xx_fw_dump()
2679 uint cnt; in ql_dump_buffer() local
2688 for (cnt = 0; cnt < size; cnt += 16) { in ql_dump_buffer()
2689 ql_dbg(level, vha, id, "%04x: ", cnt); in ql_dump_buffer()
2691 buf + cnt, min(16U, size - cnt), false); in ql_dump_buffer()