Lines Matching +full:0 +full:x8014

32 			      "ispControlStatus = 0x%x\n", ha->host_no,  in ql4xxx_set_mac_number()
69 for (cnt = 0; cnt < RESPONSE_QUEUE_DEPTH; cnt++) { in qla4xxx_init_response_q_entries()
80 * The QLA4010 requires us to restart the queues at index 0.
85 unsigned long flags = 0; in qla4xxx_init_rings()
90 ha->request_out = 0; in qla4xxx_init_rings()
91 ha->request_in = 0; in qla4xxx_init_rings()
96 ha->response_in = 0; in qla4xxx_init_rings()
97 ha->response_out = 0; in qla4xxx_init_rings()
101 writel(0, in qla4xxx_init_rings()
103 writel(0, in qla4xxx_init_rings()
105 writel(0, in qla4xxx_init_rings()
108 writel(0, in qla4xxx_init_rings()
110 writel(0, in qla4xxx_init_rings()
112 writel(0, in qla4xxx_init_rings()
122 ha->shadow_regs->req_q_out = cpu_to_le32(0); in qla4xxx_init_rings()
123 ha->shadow_regs->rsp_q_in = cpu_to_le32(0); in qla4xxx_init_rings()
126 writel(0, &ha->reg->req_q_in); in qla4xxx_init_rings()
127 writel(0, &ha->reg->rsp_q_out); in qla4xxx_init_rings()
134 for (i = 0; i < MAX_MRB; i++) in qla4xxx_init_rings()
172 memcpy(ha->my_mac, &sys_info->physAddr[0].address[0], in qla4xxx_get_sys_info()
174 sizeof(sys_info->physAddr[0].address))); in qla4xxx_get_sys_info()
203 uint8_t ipv4_wait = 0; in qla4xxx_wait_for_ip_config()
204 uint8_t ipv6_wait = 0; in qla4xxx_wait_for_ip_config()
205 int8_t ip_address[IPv6_ADDR_LEN] = {0} ; in qla4xxx_wait_for_ip_config()
211 if (((ha->addl_fw_state & FW_ADDSTATE_DHCPv4_ENABLED) != 0) && in qla4xxx_wait_for_ip_config()
213 FW_ADDSTATE_DHCPv4_LEASE_ACQUIRED) == 0)) { in qla4xxx_wait_for_ip_config()
217 IPV6_ADDOPT_NEIGHBOR_DISCOVERY_ADDR_ENABLE) != 0) && in qla4xxx_wait_for_ip_config()
237 ipv6_wait = 0; in qla4xxx_wait_for_ip_config()
240 ip_address, IPv6_ADDR_LEN) == 0) { in qla4xxx_wait_for_ip_config()
245 ipv6_wait = 0; in qla4xxx_wait_for_ip_config()
253 0)) { in qla4xxx_wait_for_ip_config()
257 ipv6_wait = 0; in qla4xxx_wait_for_ip_config()
294 rval = 0; in qla4_80xx_is_minidump_dma_capable()
356 if ((ql4xmdcapmask >= 0x3 && ql4xmdcapmask <= 0x7F) || in qla4xxx_alloc_fw_dump()
357 (ql4xmdcapmask == 0xFF && dma_capable)) { in qla4xxx_alloc_fw_dump()
360 if (ql4xmdcapmask == 0xFF) in qla4xxx_alloc_fw_dump()
371 DEBUG2(ql4_printk(KERN_INFO, ha, "Selected Capture mask =0x%x\n", in qla4xxx_alloc_fw_dump()
375 for (hdr_entry_bit = 0x2, k = 1; (hdr_entry_bit & 0xFF); in qla4xxx_alloc_fw_dump()
388 "Minidump Template Size = 0x%x KB\n", in qla4xxx_alloc_fw_dump()
391 "Total Minidump size = 0x%x KB\n", ha->fw_dump_size)); in qla4xxx_alloc_fw_dump()
404 int ready = 0; in qla4xxx_fw_ready()
407 for (timeout_count = ADAPTER_INIT_TOV; timeout_count > 0; in qla4xxx_fw_ready()
487 != 0 ? "OPTICAL" : "COPPER")); in qla4xxx_fw_ready()
492 FW_ADDSTATE_DHCPv4_ENABLED) != 0 ? in qla4xxx_fw_ready()
498 FW_ADDSTATE_LINK_UP) != 0 ? in qla4xxx_fw_ready()
505 FW_ADDSTATE_ISNS_SVC_ENABLED) != 0 ? in qla4xxx_fw_ready()
525 if (timeout_count <= 0) in qla4xxx_fw_ready()
586 for (i = 0; i < (size / 2) ; i++) { in qla4xxx_set_model_info()
623 extHwConfig.Asuint32_t = 0x1912; in qla4xxx_config_nvram()
625 extHwConfig.Asuint32_t = 0x0023; in qla4xxx_config_nvram()
635 DEBUG(printk("scsi%ld: %s: Setting extHwConfig to 0xFFFF%04x\n", in qla4xxx_config_nvram()
639 writel((0xFFFF << 16) | extHwConfig.Asuint32_t, isp_ext_hw_conf(ha)); in qla4xxx_config_nvram()
725 mbox_status = readw(&ha->reg->mailbox[0]); in qla4xxx_start_firmware_from_flash()
734 "firmware to complete... ctrl_sts=0x%x, remaining=%ld\n", in qla4xxx_start_firmware_from_flash()
753 "- mbox status 0x%x\n", ha->host_no, __func__, in qla4xxx_start_firmware_from_flash()
767 if (ql4xxx_lock_drvr(a) == 0) { in ql4xxx_lock_drvr_wait()
792 unsigned long flags = 0; in qla4xxx_start_firmware()
796 int config_chip = 0; in qla4xxx_start_firmware()
806 DEBUG2(printk("scsi%ld: %s: port_ctrl = 0x%08X\n", ha->host_no, in qla4xxx_start_firmware()
808 DEBUG(printk("scsi%ld: %s: port_status = 0x%08X\n", ha->host_no, in qla4xxx_start_firmware()
812 if ((readw(isp_port_ctrl(ha)) & 0x8000) != 0) { in qla4xxx_start_firmware()
817 mbox_status = readw(&ha->reg->mailbox[0]); in qla4xxx_start_firmware()
819 DEBUG2(printk("scsi%ld: %s: H/W Config complete - mbox[0]= " in qla4xxx_start_firmware()
820 "0x%x\n", ha->host_no, __func__, mbox_status)); in qla4xxx_start_firmware()
823 if (mbox_status == 0) { in qla4xxx_start_firmware()
826 soft_reset = 0; in qla4xxx_start_firmware()
837 "state -- state = 0x%x\n", in qla4xxx_start_firmware()
846 "boot, state = 0x%x\n", in qla4xxx_start_firmware()
850 soft_reset = 0; in qla4xxx_start_firmware()
856 "0x%x\n", ha->host_no, __func__, in qla4xxx_start_firmware()
916 uint32_t idx = 0, next_idx = 0; in qla4xxx_free_ddb_index()
917 uint32_t state = 0, conn_err = 0; in qla4xxx_free_ddb_index()
922 for (idx = 0; idx < max_ddbs; idx = next_idx) { in qla4xxx_free_ddb_index()
923 ret = qla4xxx_get_fwddb_entry(ha, idx, NULL, 0, NULL, in qla4xxx_free_ddb_index()
933 "Freeing DDB index = 0x%x\n", idx)); in qla4xxx_free_ddb_index()
938 "0x%x\n", idx); in qla4xxx_free_ddb_index()
940 if (next_idx == 0) in qla4xxx_free_ddb_index()
957 ha->eeprom_cmd_data = 0; in qla4xxx_initialize_adapter()
1009 "%s: DDB - old state = 0x%x, new state = 0x%x for " in qla4xxx_ddb_change()
1079 * minimum amount of time since receiving an 0x8014 AEN in qla4xxx_arm_relogin_timer()
1086 * set_ddb() mbx cmd with 0x4005 since it still in qla4xxx_arm_relogin_timer()
1089 atomic_set(&ddb_entry->relogin_timer, 0); in qla4xxx_arm_relogin_timer()
1103 "%s: DDB - old state = 0x%x, new state = 0x%x for " in qla4xxx_flash_ddb_change()
1210 uint32_t mbx_sts = 0; in qla4xxx_login_flash_ddb()