Lines Matching +full:0 +full:x0fffff
26 int rval = 0; in qla2x00_sysfs_read_fw_dump()
30 return 0; in qla2x00_sysfs_read_fw_dump()
53 rval = 0; in qla2x00_sysfs_read_fw_dump()
69 if (off != 0) in qla2x00_sysfs_write_fw_dump()
70 return (0); in qla2x00_sysfs_write_fw_dump()
74 case 0: in qla2x00_sysfs_write_fw_dump()
78 ql_log(ql_log_info, vha, 0x705d, in qla2x00_sysfs_write_fw_dump()
85 ha->fw_dump_reading = 0; in qla2x00_sysfs_write_fw_dump()
92 ql_log(ql_log_info, vha, 0x705e, in qla2x00_sysfs_write_fw_dump()
116 ql_dbg(ql_dbg_user, vha, 0x705b, in qla2x00_sysfs_write_fw_dump()
119 ql_dbg(ql_dbg_user, vha, 0x709d, in qla2x00_sysfs_write_fw_dump()
130 ql_log(ql_log_info, vha, 0x70c1, in qla2x00_sysfs_write_fw_dump()
132 ha->mctp_dump_reading = 0; in qla2x00_sysfs_write_fw_dump()
133 ha->mctp_dumped = 0; in qla2x00_sysfs_write_fw_dump()
138 ql_log(ql_log_info, vha, 0x70c2, in qla2x00_sysfs_write_fw_dump()
146 ql_log(ql_log_info, vha, 0x70e7, in qla2x00_sysfs_write_fw_dump()
148 ha->mpi_fw_dump_reading = 0; in qla2x00_sysfs_write_fw_dump()
149 ha->mpi_fw_dumped = 0; in qla2x00_sysfs_write_fw_dump()
154 ql_log(ql_log_info, vha, 0x70e8, in qla2x00_sysfs_write_fw_dump()
161 ql_log(ql_log_info, vha, 0x70e9, in qla2x00_sysfs_write_fw_dump()
164 ha->isp_ops->mpi_fw_dump(vha, 0); in qla2x00_sysfs_write_fw_dump()
176 .size = 0,
193 return 0; in qla2x00_sysfs_read_nvram()
231 if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size || in qla2x00_sysfs_write_nvram()
240 chksum = 0; in qla2x00_sysfs_write_nvram()
241 for (cnt = 0; cnt < ((count >> 2) - 1); cnt++, iter++) in qla2x00_sysfs_write_nvram()
250 chksum = 0; in qla2x00_sysfs_write_nvram()
251 for (cnt = 0; cnt < count - 1; cnt++) in qla2x00_sysfs_write_nvram()
258 ql_log(ql_log_warn, vha, 0x705f, in qla2x00_sysfs_write_nvram()
275 ql_dbg(ql_dbg_user, vha, 0x7060, in qla2x00_sysfs_write_nvram()
303 ssize_t rval = 0; in qla2x00_sysfs_read_optrom()
352 .size = 0,
365 uint32_t start = 0; in qla2x00_sysfs_write_optrom_ctl()
389 case 0: in qla2x00_sysfs_write_optrom_ctl()
397 ql_dbg(ql_dbg_user, vha, 0x7061, in qla2x00_sysfs_write_optrom_ctl()
398 "Freeing flash region allocation -- 0x%x bytes.\n", in qla2x00_sysfs_write_optrom_ctl()
416 ql_log(ql_log_warn, vha, 0x7062, in qla2x00_sysfs_write_optrom_ctl()
426 ql_log(ql_log_warn, vha, 0x7063, in qla2x00_sysfs_write_optrom_ctl()
432 ql_dbg(ql_dbg_user, vha, 0x7064, in qla2x00_sysfs_write_optrom_ctl()
433 "Reading flash region -- 0x%x/0x%x.\n", in qla2x00_sysfs_write_optrom_ctl()
452 * 0x000000 -> 0x020000 -- Boot code. in qla2x00_sysfs_write_optrom_ctl()
456 * 0x000000 -> 0x07ffff -- Boot code. in qla2x00_sysfs_write_optrom_ctl()
457 * 0x080000 -> 0x0fffff -- Firmware. in qla2x00_sysfs_write_optrom_ctl()
461 * 0x000000 -> 0x07ffff -- Boot code. in qla2x00_sysfs_write_optrom_ctl()
462 * 0x080000 -> 0x0fffff -- Firmware. in qla2x00_sysfs_write_optrom_ctl()
463 * 0x120000 -> 0x12ffff -- VPD and HBA parameters. in qla2x00_sysfs_write_optrom_ctl()
469 valid = 0; in qla2x00_sysfs_write_optrom_ctl()
470 if (ha->optrom_size == OPTROM_SIZE_2300 && start == 0) in qla2x00_sysfs_write_optrom_ctl()
475 ql_log(ql_log_warn, vha, 0x7065, in qla2x00_sysfs_write_optrom_ctl()
476 "Invalid start region 0x%x/0x%x.\n", start, size); in qla2x00_sysfs_write_optrom_ctl()
487 ql_log(ql_log_warn, vha, 0x7066, in qla2x00_sysfs_write_optrom_ctl()
496 ql_dbg(ql_dbg_user, vha, 0x7067, in qla2x00_sysfs_write_optrom_ctl()
497 "Staging flash region write -- 0x%x/0x%x.\n", in qla2x00_sysfs_write_optrom_ctl()
508 ql_log(ql_log_warn, vha, 0x7068, in qla2x00_sysfs_write_optrom_ctl()
514 ql_dbg(ql_dbg_user, vha, 0x7069, in qla2x00_sysfs_write_optrom_ctl()
515 "Writing flash region -- 0x%x/0x%x.\n", in qla2x00_sysfs_write_optrom_ctl()
537 .size = 0,
568 ql_dbg(ql_dbg_init, vha, 0x7070, in qla2x00_sysfs_read_vpd()
599 return 0; in qla2x00_sysfs_write_vpd()
602 return 0; in qla2x00_sysfs_write_vpd()
604 if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->vpd_size || in qla2x00_sysfs_write_vpd()
606 return 0; in qla2x00_sysfs_write_vpd()
609 ql_log(ql_log_warn, vha, 0x706a, in qla2x00_sysfs_write_vpd()
633 ql_log(ql_log_warn, vha, 0x706b, in qla2x00_sysfs_write_vpd()
650 .size = 0,
664 if (!capable(CAP_SYS_ADMIN) || off != 0 || count < SFP_DEV_SIZE) in qla2x00_sysfs_read_sfp()
665 return 0; in qla2x00_sysfs_read_sfp()
670 return 0; in qla2x00_sysfs_read_sfp()
704 if (off != 0) in qla2x00_sysfs_write_reset()
709 case 0x2025c: in qla2x00_sysfs_write_reset()
710 ql_log(ql_log_info, vha, 0x706e, in qla2x00_sysfs_write_reset()
714 ql_log(ql_log_info, vha, 0x706e, in qla2x00_sysfs_write_reset()
740 case 0x2025d: in qla2x00_sysfs_write_reset()
745 ql_log(ql_log_info, vha, 0x706f, in qla2x00_sysfs_write_reset()
751 qla83xx_idc_lock(vha, 0); in qla2x00_sysfs_write_reset()
758 qla83xx_idc_unlock(vha, 0); in qla2x00_sysfs_write_reset()
768 ql_log(ql_log_warn, vha, 0x7070, in qla2x00_sysfs_write_reset()
774 case 0x2025e: in qla2x00_sysfs_write_reset()
776 ql_log(ql_log_info, vha, 0x7071, in qla2x00_sysfs_write_reset()
781 ql_log(ql_log_info, vha, 0x7072, in qla2x00_sysfs_write_reset()
787 case 0x2025f: in qla2x00_sysfs_write_reset()
790 ql_log(ql_log_info, vha, 0x70bc, in qla2x00_sysfs_write_reset()
792 qla83xx_idc_lock(vha, 0); in qla2x00_sysfs_write_reset()
796 qla83xx_idc_unlock(vha, 0); in qla2x00_sysfs_write_reset()
798 case 0x20260: in qla2x00_sysfs_write_reset()
801 ql_log(ql_log_info, vha, 0x70bd, in qla2x00_sysfs_write_reset()
803 qla83xx_idc_lock(vha, 0); in qla2x00_sysfs_write_reset()
807 qla83xx_idc_unlock(vha, 0); in qla2x00_sysfs_write_reset()
809 case 0x20261: in qla2x00_sysfs_write_reset()
810 ql_dbg(ql_dbg_user, vha, 0x70e0, in qla2x00_sysfs_write_reset()
815 ql_log(ql_log_warn, vha, 0x70e1, in qla2x00_sysfs_write_reset()
831 .size = 0,
846 return 0; in qla2x00_issue_logo()
849 return 0; in qla2x00_issue_logo()
852 return 0; in qla2x00_issue_logo()
856 did.b.domain = (type & 0x00ff0000) >> 16; in qla2x00_issue_logo()
857 did.b.area = (type & 0x0000ff00) >> 8; in qla2x00_issue_logo()
858 did.b.al_pa = (type & 0x000000ff); in qla2x00_issue_logo()
860 ql_log(ql_log_info, vha, 0xd04d, "portid=%02x%02x%02x done\n", in qla2x00_issue_logo()
863 ql_log(ql_log_info, vha, 0x70e4, "%s: %d\n", __func__, type); in qla2x00_issue_logo()
874 .size = 0,
889 if (!capable(CAP_SYS_ADMIN) || off != 0 || count > XGMAC_DATA_SIZE) in qla2x00_sysfs_read_xgmac_stats()
890 return 0; in qla2x00_sysfs_read_xgmac_stats()
893 return 0; in qla2x00_sysfs_read_xgmac_stats()
897 return 0; in qla2x00_sysfs_read_xgmac_stats()
907 ql_log(ql_log_warn, vha, 0x7076, in qla2x00_sysfs_read_xgmac_stats()
909 return 0; in qla2x00_sysfs_read_xgmac_stats()
913 actual_size = 0; in qla2x00_sysfs_read_xgmac_stats()
914 memset(ha->xgmac_data, 0, XGMAC_DATA_SIZE); in qla2x00_sysfs_read_xgmac_stats()
921 ql_log(ql_log_warn, vha, 0x7077, in qla2x00_sysfs_read_xgmac_stats()
923 count = 0; in qla2x00_sysfs_read_xgmac_stats()
937 .size = 0,
951 if (!capable(CAP_SYS_ADMIN) || off != 0 || count > DCBX_TLV_DATA_SIZE) in qla2x00_sysfs_read_dcbx_tlv()
952 return 0; in qla2x00_sysfs_read_dcbx_tlv()
959 return 0; in qla2x00_sysfs_read_dcbx_tlv()
966 ql_log(ql_log_warn, vha, 0x7078, in qla2x00_sysfs_read_dcbx_tlv()
972 memset(ha->dcbx_tlv, 0, DCBX_TLV_DATA_SIZE); in qla2x00_sysfs_read_dcbx_tlv()
980 ql_log(ql_log_warn, vha, 0x7079, in qla2x00_sysfs_read_dcbx_tlv()
995 .size = 0,
1035 ql_log(ql_log_warn, vha, 0x00f3, in qla2x00_alloc_sysfs_attr()
1039 ql_dbg(ql_dbg_init, vha, 0x00f4, in qla2x00_alloc_sysfs_attr()
1098 sn = ((ha->serial0 & 0x1f) << 16) | (ha->serial2 << 8) | ha->serial1; in qla2x00_serial_num_show()
1124 ha->product_id[0], ha->product_id[1], ha->product_id[2], in qla2x00_isp_id_show()
1164 int len = 0; in qla2x00_link_state_show()
1203 int len = 0; in qla2x00_zio_show()
1222 int val = 0; in qla2x00_zio_store()
1258 int val = 0; in qla2x00_zio_timer_store()
1287 int val = 0; in qla_zio_threshold_store()
1293 if (val < 0 || val > 256) in qla_zio_threshold_store()
1305 int len = 0; in qla2x00_beacon_show()
1320 int val = 0; in qla2x00_beacon_store()
1332 ql_log(ql_log_warn, vha, 0x707a, in qla2x00_beacon_store()
1343 count = 0; in qla2x00_beacon_store()
1356 uint16_t led[3] = { 0 }; in qla2x00_beacon_config_show()
1361 if (ql26xx_led_config(vha, 0, led)) in qla2x00_beacon_config_show()
1365 led[0], led[1], led[2]); in qla2x00_beacon_config_show()
1375 uint16_t led[3] = { 0 }; in qla2x00_beacon_config_store()
1382 n = sscanf(buf, "%hx %hx %hx %hx", word+0, word+1, word+2, word+3); in qla2x00_beacon_config_store()
1384 if (word[0] == 3) { in qla2x00_beacon_config_store()
1386 led[0] = word[1]; in qla2x00_beacon_config_store()
1396 if (word[0] == 0) { in qla2x00_beacon_config_store()
1398 led[0] = word[1]; in qla2x00_beacon_config_store()
1401 if (word[0] == 1) { in qla2x00_beacon_config_store()
1406 if (word[0] == 2) { in qla2x00_beacon_config_store()
1431 ha->bios_revision[0]); in qla2x00_optrom_bios_version_show()
1442 ha->efi_revision[0]); in qla2x00_optrom_efi_version_show()
1453 ha->fcode_revision[0]); in qla2x00_optrom_fcode_version_show()
1464 ha->fw_revision[0], ha->fw_revision[1], ha->fw_revision[2], in qla2x00_optrom_fw_version_show()
1480 ha->gold_fw_version[0], ha->gold_fw_version[1], in qla2x00_optrom_gold_fw_version_show()
1499 uint16_t status[2] = { 0 }; in qla24xx_84xx_fw_version_show()
1509 if (!rval && !status[0]) in qla24xx_84xx_fw_version_show()
1528 ha->serdes_version[0], ha->serdes_version[1], in qla2x00_serdes_version_show()
1544 ha->mpi_version[0], ha->mpi_version[1], ha->mpi_version[2], in qla2x00_mpi_version_show()
1559 ha->phy_version[0], ha->phy_version[1], ha->phy_version[2]); in qla2x00_phy_version_show()
1569 return scnprintf(buf, PAGE_SIZE, "0x%x\n", ha->fdt_block_size); in qla2x00_flash_block_size_show()
1610 uint16_t temp = 0; in qla2x00_thermal_temp_show()
1616 ql_log(ql_log_warn, vha, 0x70dc, "ISP reset active.\n"); in qla2x00_thermal_temp_show()
1622 ql_log(ql_log_warn, vha, 0x70dd, "PCI EEH busy.\n"); in qla2x00_thermal_temp_show()
1646 return scnprintf(buf, PAGE_SIZE, "0x%x\n", pstate); in qla2x00_fw_state_show()
1652 ql_log(ql_log_warn, vha, 0x707c, in qla2x00_fw_state_show()
1668 return scnprintf(buf, PAGE_SIZE, "0x%x 0x%x 0x%x 0x%x 0x%x 0x%x\n", in qla2x00_fw_state_show()
1669 state[0], state[1], state[2], state[3], state[4], state[5]); in qla2x00_fw_state_show()
1706 size = 0; in qla2x00_fw_dump_size_show()
1733 int val = 0; in qla2x00_allow_cna_fw_dump_store()
1741 vha->hw->allow_cna_fw_dump = val != 0; in qla2x00_allow_cna_fw_dump_store()
1757 ha->pep_version[0], ha->pep_version[1], ha->pep_version[2]); in qla2x00_pep_version_show()
1776 ha->min_supported_speed != 0 ? "unknown" : ""); in qla2x00_min_supported_speed_show()
1792 ha->max_supported_speed == 0 ? "16Gps" : "unknown"); in qla2x00_max_supported_speed_show()
1806 ql_log(ql_log_warn, vha, 0x70d8, in qla2x00_port_speed_store()
1817 ql_dbg(ql_dbg_user, vha, 0x70d9, in qla2x00_port_speed_store()
1826 case 0: in qla2x00_port_speed_store()
1842 ql_log(ql_log_warn, vha, 0x1199, in qla2x00_port_speed_store()
1851 ql_log(ql_log_info, vha, 0x70da, in qla2x00_port_speed_store()
1885 ql_log(ql_log_warn, vha, 0x70db, in qla2x00_port_speed_show()
1890 for (i = 0; i < ARRAY_SIZE(port_speed_str); i++) { in qla2x00_port_speed_show()
1905 int rval = 0; in qla2x00_mpi_pause_store()
1910 ql_log(ql_log_warn, vha, 0x7089, "Pausing MPI...\n"); in qla2x00_mpi_pause_store()
1912 rval = qla83xx_wr_reg(vha, 0x002012d4, 0x30000001); in qla2x00_mpi_pause_store()
1915 ql_log(ql_log_warn, vha, 0x708a, "Unable to pause MPI.\n"); in qla2x00_mpi_pause_store()
1916 count = 0; in qla2x00_mpi_pause_store()
1930 int len = 0; in qlini_mode_show()
1978 int set_mode = 0; in qla_set_ini_mode()
1979 u8 eo_toggle = 0; /* exchange offload flipped */ in qla_set_ini_mode()
2204 ql_log(ql_log_warn, vha, 0xffff, in qla_set_ini_mode()
2220 ql_log(ql_log_warn, vha, 0xffff, in qla_set_ini_mode()
2231 ql_log(ql_log_warn, vha, 0xffff, in qla_set_ini_mode()
2237 ql_log(ql_log_warn, vha, 0xffff, in qla_set_ini_mode()
2256 strlen(QLA2XXX_INI_MODE_STR_EXCLUSIVE)) == 0) in qlini_mode_store()
2259 strlen(QLA2XXX_INI_MODE_STR_DISABLED)) == 0) in qlini_mode_store()
2262 strlen(QLA2XXX_INI_MODE_STR_ENABLED)) == 0) in qlini_mode_store()
2265 strlen(QLA2XXX_INI_MODE_STR_DUAL)) == 0) in qlini_mode_store()
2279 int len = 0; in ql2xexchoffld_show()
2297 int val = 0; in ql2xexchoffld_store()
2304 else if (val < 0) in ql2xexchoffld_store()
2305 val = 0; in ql2xexchoffld_store()
2316 int len = 0; in ql2xiniexchg_show()
2334 int val = 0; in ql2xiniexchg_store()
2341 else if (val < 0) in ql2xiniexchg_store()
2342 val = 0; in ql2xiniexchg_store()
2374 (uint64_t)ha->fw_attributes_ext[0] << 32 | in qla2x00_fw_attr_show()
2402 vha->dport_data[0], vha->dport_data[1], in qla2x00_dport_diagnostics_show()
2530 return 0; in qla_host_attr_is_visible()
2636 u64 node_name = 0; in qla2x00_get_starget_node_name()
2655 u64 port_name = 0; in qla2x00_get_starget_port_name()
2674 uint32_t port_id = ~0U; in qla2x00_get_starget_port_id()
2710 ql_dbg(ql_dbg_async, fcport->vha, 0x5101, in qla2x00_dev_loss_tmo_callbk()
2738 ql_dbg(ql_dbg_aer, fcport->vha, 0x900c, in qla2x00_dev_loss_tmo_callbk()
2743 0, WAIT_TARGET); in qla2x00_dev_loss_tmo_callbk()
2766 ql_dbg(ql_dbg_aer, fcport->vha, 0x900b, in qla2x00_terminate_rport_io()
2771 0, WAIT_TARGET); in qla2x00_terminate_rport_io()
2787 ql_dbg(ql_dbg_disc, fcport->vha, 0x911e, in qla2x00_terminate_rport_io()
2798 if (qla2x00_eh_wait_for_pending_commands(fcport->vha, fcport->d_id.b24, 0, WAIT_TARGET)) { in qla2x00_terminate_rport_io()
2799 ql_log(ql_log_warn, vha, 0x300b, in qla2x00_terminate_rport_io()
2813 return 0; in qla2x00_issue_lip()
2816 return 0; in qla2x00_issue_lip()
2819 return 0; in qla2x00_issue_lip()
2834 u64 ib = 0, ob = 0, ir = 0, or = 0; in qla2x00_get_fc_host_stats()
2853 ql_log(ql_log_warn, vha, 0x707d, in qla2x00_get_fc_host_stats()
2860 rval = qla24xx_get_isp_stats(base_vha, stats, stats_dma, 0); in qla2x00_get_fc_host_stats()
2872 for (i = 0; i < vha->hw->max_qpairs; i++) { in qla2x00_get_fc_host_stats()
2943 memset(&vha->qla_stats, 0, sizeof(vha->qla_stats)); in qla2x00_reset_host_stats()
2944 memset(&vha->fc_host_stat, 0, sizeof(vha->fc_host_stat)); in qla2x00_reset_host_stats()
2945 for (i = 0; i < vha->hw->max_qpairs; i++) { in qla2x00_reset_host_stats()
2949 memset(&qpair->counters, 0, sizeof(qpair->counters)); in qla2x00_reset_host_stats()
2951 memset(&ha->base_qpair->counters, 0, sizeof(qpair->counters)); in qla2x00_reset_host_stats()
2961 ql_log(ql_log_warn, vha, 0x70d7, in qla2x00_reset_host_stats()
2969 ql_log(ql_log_warn, vha, 0x70de, in qla2x00_reset_host_stats()
3000 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF in qla2x00_get_host_fabric_name()
3046 int ret = 0; in qla24xx_vport_create()
3047 uint8_t qos = 0; in qla24xx_vport_create()
3052 struct req_que *req = ha->req_q_map[0]; in qla24xx_vport_create()
3057 ql_log(ql_log_warn, vha, 0x707e, in qla24xx_vport_create()
3064 ql_log(ql_log_warn, vha, 0x707f, "Vport create host failed.\n"); in qla24xx_vport_create()
3074 ql_log(ql_log_info, vha, 0x7080, in qla24xx_vport_create()
3085 ql_dbg(ql_dbg_user, vha, 0x7081, in qla24xx_vport_create()
3094 int prot = 0, guard; in qla24xx_vport_create()
3097 ql_dbg(ql_dbg_user, vha, 0x7082, in qla24xx_vport_create()
3115 vha->flags.difdix_supported = 0; in qla24xx_vport_create()
3120 ql_dbg(ql_dbg_user, vha, 0x7083, in qla24xx_vport_create()
3141 for (cnt = 0; cnt < ha->nvram_npiv_size; cnt++) { in qla24xx_vport_create()
3142 if (memcmp(ha->npiv_info[cnt].port_name, vha->port_name, 8) == 0 in qla24xx_vport_create()
3144 8) == 0) { in qla24xx_vport_create()
3153 ql_log(ql_log_warn, vha, 0x7084, in qla24xx_vport_create()
3157 ql_dbg(ql_dbg_multiq, vha, 0xc001, in qla24xx_vport_create()
3160 ql_dbg(ql_dbg_user, vha, 0x7085, in qla24xx_vport_create()
3170 return 0; in qla24xx_vport_create()
3212 ql_dbg(ql_dbg_user, vha, 0x7086, in qla24xx_vport_delete()
3232 ql_log(ql_log_warn, vha, 0x7087, in qla24xx_vport_delete()
3236 ql_log(ql_log_info, vha, 0x7088, "VP[%d] deleted.\n", id); in qla24xx_vport_delete()
3238 return 0; in qla24xx_vport_delete()
3251 return 0; in qla24xx_vport_disable()
3374 u32 speeds = 0, fdmi_speed = 0; in qla2x00_init_host_attr()