Lines Matching refs:nv

454 	nvram_t		*nv = (nvram_t *)ha->req_q[0]->req_ring.bp;  in ql_nvram_config()  local
484 if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' || in ql_nvram_config()
485 nv->id[1] != 'S' || nv->id[2] != 'P' || nv->id[3] != ' ' || in ql_nvram_config()
486 nv->nvram_version < 1) { in ql_nvram_config()
490 "nvram_version=%x\n", rval, chksum, nv->id[0], nv->id[1], in ql_nvram_config()
491 nv->id[2], nv->id[3], ha->xioctl->fdesc.flash_size, in ql_nvram_config()
492 ha->subven_id, nv->nvram_version); in ql_nvram_config()
502 bzero((void *)nv, sizeof (nvram_t)); in ql_nvram_config()
507 nv->parameter_block_version = ICB_VERSION; in ql_nvram_config()
508 nv->firmware_options[0] = BIT_4 | BIT_3 | BIT_2 | BIT_1; in ql_nvram_config()
509 nv->firmware_options[1] = BIT_7 | BIT_5 | BIT_2; in ql_nvram_config()
511 nv->max_frame_length[1] = 4; in ql_nvram_config()
517 nv->max_frame_length[1] = 8; in ql_nvram_config()
519 nv->max_iocb_allocation[1] = 1; in ql_nvram_config()
520 nv->execution_throttle[0] = 16; in ql_nvram_config()
521 nv->login_retry_count = 8; in ql_nvram_config()
535 nv->port_name[2] = 33; in ql_nvram_config()
536 nv->port_name[3] = 224; in ql_nvram_config()
537 nv->port_name[4] = 139; in ql_nvram_config()
538 nv->port_name[7] = (uint8_t) in ql_nvram_config()
542 nv->port_name[2] = idprombuf[2]; in ql_nvram_config()
543 nv->port_name[3] = idprombuf[3]; in ql_nvram_config()
544 nv->port_name[4] = idprombuf[4]; in ql_nvram_config()
545 nv->port_name[5] = idprombuf[5]; in ql_nvram_config()
546 nv->port_name[6] = idprombuf[6]; in ql_nvram_config()
547 nv->port_name[7] = idprombuf[7]; in ql_nvram_config()
548 nv->port_name[0] = (uint8_t) in ql_nvram_config()
558 ha->instance, nv->port_name[0], nv->port_name[1], in ql_nvram_config()
559 nv->port_name[2], nv->port_name[3], in ql_nvram_config()
560 nv->port_name[4], nv->port_name[5], in ql_nvram_config()
561 nv->port_name[6], nv->port_name[7]); in ql_nvram_config()
564 nv->login_timeout = 4; in ql_nvram_config()
568 nv->add_fw_opt[0] = (uint8_t)(nv->add_fw_opt[0] | in ql_nvram_config()
575 nv->host_p[0] = BIT_1; in ql_nvram_config()
576 nv->host_p[1] = BIT_2; in ql_nvram_config()
577 nv->reset_delay = 5; in ql_nvram_config()
578 nv->port_down_retry_count = 8; in ql_nvram_config()
579 nv->maximum_luns_per_target[0] = 8; in ql_nvram_config()
593 dptr2 = (caddr_t)&nv->parameter_block_version; in ql_nvram_config()
608 ha->execution_throttle = CHAR_TO_SHORT(nv->execution_throttle[0], in ql_nvram_config()
609 nv->execution_throttle[1]); in ql_nvram_config()
610 ha->loop_reset_delay = nv->reset_delay; in ql_nvram_config()
611 ha->port_down_retry_count = nv->port_down_retry_count; in ql_nvram_config()
613 nv->maximum_luns_per_target[0], nv->maximum_luns_per_target[1]); in ql_nvram_config()
617 ha->adapter_features = CHAR_TO_SHORT(nv->adapter_features[0], in ql_nvram_config()
618 nv->adapter_features[1]); in ql_nvram_config()
641 if (nv->host_p[0] & BIT_4) { in ql_nvram_config()
644 if (nv->host_p[0] & BIT_5) { in ql_nvram_config()
647 if (nv->host_p[1] & BIT_2) { in ql_nvram_config()
650 if (nv->host_p[1] & BIT_3) { in ql_nvram_config()
653 nv->adapter_features[0] & BIT_3 ? in ql_nvram_config()
713 if (CFG_IST(ha, CFG_CTRL_23XX) && nv->adapInfo[0] != 0) { in ql_nvram_config()
715 nv->adapInfo); in ql_nvram_config()
947 nvram_24xx_t *nv = (nvram_24xx_t *)&nvram; in ql_nvram_24xx_config() local
958 longptr = (uint32_t *)nv; in ql_nvram_24xx_config()
976 if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' || in ql_nvram_24xx_config()
977 nv->id[1] != 'S' || nv->id[2] != 'P' || nv->id[3] != ' ' || in ql_nvram_24xx_config()
978 (nv->nvram_version[0] | nv->nvram_version[1]) == 0) { in ql_nvram_24xx_config()
983 "nvram_version=%x\n", rval, chksum, nv->id[0], nv->id[1], in ql_nvram_24xx_config()
984 nv->id[2], nv->id[3], CHAR_TO_SHORT(nv->nvram_version[0], in ql_nvram_24xx_config()
985 nv->nvram_version[1])); in ql_nvram_24xx_config()
993 bzero((void *)nv, sizeof (nvram_24xx_t)); in ql_nvram_24xx_config()
998 nv->nvram_version[0] = LSB(ICB_24XX_VERSION); in ql_nvram_24xx_config()
999 nv->nvram_version[1] = MSB(ICB_24XX_VERSION); in ql_nvram_24xx_config()
1001 nv->version[0] = 1; in ql_nvram_24xx_config()
1002 nv->max_frame_length[1] = 8; in ql_nvram_24xx_config()
1003 nv->execution_throttle[0] = 16; in ql_nvram_24xx_config()
1004 nv->exchange_count[0] = 128; in ql_nvram_24xx_config()
1005 nv->max_luns_per_target[0] = 8; in ql_nvram_24xx_config()
1017 nv->port_name[0] = 33; in ql_nvram_24xx_config()
1018 nv->port_name[3] = 224; in ql_nvram_24xx_config()
1019 nv->port_name[4] = 139; in ql_nvram_24xx_config()
1020 nv->port_name[7] = (uint8_t) in ql_nvram_24xx_config()
1023 nv->port_name[2] = idprombuf[2]; in ql_nvram_24xx_config()
1024 nv->port_name[3] = idprombuf[3]; in ql_nvram_24xx_config()
1025 nv->port_name[4] = idprombuf[4]; in ql_nvram_24xx_config()
1026 nv->port_name[5] = idprombuf[5]; in ql_nvram_24xx_config()
1027 nv->port_name[6] = idprombuf[6]; in ql_nvram_24xx_config()
1028 nv->port_name[7] = idprombuf[7]; in ql_nvram_24xx_config()
1029 nv->port_name[0] = (uint8_t) in ql_nvram_24xx_config()
1036 ha->instance, nv->port_name[0], nv->port_name[1], in ql_nvram_24xx_config()
1037 nv->port_name[2], nv->port_name[3], nv->port_name[4], in ql_nvram_24xx_config()
1038 nv->port_name[5], nv->port_name[6], nv->port_name[7]); in ql_nvram_24xx_config()
1040 nv->login_retry_count[0] = 8; in ql_nvram_24xx_config()
1042 nv->firmware_options_1[0] = BIT_2 | BIT_1; in ql_nvram_24xx_config()
1043 nv->firmware_options_1[1] = BIT_5; in ql_nvram_24xx_config()
1044 nv->firmware_options_2[0] = BIT_5; in ql_nvram_24xx_config()
1045 nv->firmware_options_2[1] = BIT_4; in ql_nvram_24xx_config()
1046 nv->firmware_options_3[1] = BIT_6; in ql_nvram_24xx_config()
1051 nv->host_p[0] = BIT_4 | BIT_1; in ql_nvram_24xx_config()
1052 nv->host_p[1] = BIT_3 | BIT_2; in ql_nvram_24xx_config()
1053 nv->reset_delay = 5; in ql_nvram_24xx_config()
1054 nv->max_luns_per_target[0] = 128; in ql_nvram_24xx_config()
1055 nv->port_down_retry_count[0] = 30; in ql_nvram_24xx_config()
1056 nv->link_down_timeout[0] = 30; in ql_nvram_24xx_config()
1059 nv->firmware_options_3[2] = BIT_4; in ql_nvram_24xx_config()
1060 nv->feature_mask_l[0] = 9; in ql_nvram_24xx_config()
1061 nv->ext_blk.version[0] = 1; in ql_nvram_24xx_config()
1062 nv->ext_blk.fcf_vlan_match = 1; in ql_nvram_24xx_config()
1063 nv->ext_blk.fcf_vlan_id[0] = LSB(1002); in ql_nvram_24xx_config()
1064 nv->ext_blk.fcf_vlan_id[1] = MSB(1002); in ql_nvram_24xx_config()
1065 nv->fw.isp8001.e_node_mac_addr[1] = 2; in ql_nvram_24xx_config()
1066 nv->fw.isp8001.e_node_mac_addr[2] = 3; in ql_nvram_24xx_config()
1067 nv->fw.isp8001.e_node_mac_addr[3] = 4; in ql_nvram_24xx_config()
1068 nv->fw.isp8001.e_node_mac_addr[4] = MSB(ha->instance); in ql_nvram_24xx_config()
1069 nv->fw.isp8001.e_node_mac_addr[5] = LSB(ha->instance); in ql_nvram_24xx_config()
1082 src = (caddr_t)&nv->version; in ql_nvram_24xx_config()
1088 icb->login_retry_count[0] = nv->login_retry_count[0]; in ql_nvram_24xx_config()
1089 icb->login_retry_count[1] = nv->login_retry_count[1]; in ql_nvram_24xx_config()
1090 icb->link_down_on_nos[0] = nv->link_down_on_nos[0]; in ql_nvram_24xx_config()
1091 icb->link_down_on_nos[1] = nv->link_down_on_nos[1]; in ql_nvram_24xx_config()
1095 src = (caddr_t)&nv->interrupt_delay_timer; in ql_nvram_24xx_config()
1103 ha->loop_reset_delay = nv->reset_delay; in ql_nvram_24xx_config()
1104 ha->port_down_retry_count = CHAR_TO_SHORT(nv->port_down_retry_count[0], in ql_nvram_24xx_config()
1105 nv->port_down_retry_count[1]); in ql_nvram_24xx_config()
1107 nv->max_luns_per_target[0], nv->max_luns_per_target[1]); in ql_nvram_24xx_config()
1113 src = (caddr_t)nv->fw.isp8001.e_node_mac_addr; in ql_nvram_24xx_config()
1114 index = sizeof (nv->fw.isp8001.e_node_mac_addr); in ql_nvram_24xx_config()
1119 src = (caddr_t)&nv->ext_blk; in ql_nvram_24xx_config()
1151 if (nv->host_p[1] & BIT_2) { in ql_nvram_24xx_config()
1154 if (nv->host_p[1] & BIT_3) { in ql_nvram_24xx_config()
1198 if (CFG_IST(ha, CFG_CTRL_81XX) && nv->enhanced_features[0] & BIT_0) { in ql_nvram_24xx_config()
1214 ha->serdes_param[0] = CHAR_TO_SHORT(nv->fw.isp2400.swing_opt[0], in ql_nvram_24xx_config()
1215 nv->fw.isp2400.swing_opt[1]); in ql_nvram_24xx_config()
1216 ha->serdes_param[1] = CHAR_TO_SHORT(nv->fw.isp2400.swing_1g[0], in ql_nvram_24xx_config()
1217 nv->fw.isp2400.swing_1g[1]); in ql_nvram_24xx_config()
1218 ha->serdes_param[2] = CHAR_TO_SHORT(nv->fw.isp2400.swing_2g[0], in ql_nvram_24xx_config()
1219 nv->fw.isp2400.swing_2g[1]); in ql_nvram_24xx_config()
1220 ha->serdes_param[3] = CHAR_TO_SHORT(nv->fw.isp2400.swing_4g[0], in ql_nvram_24xx_config()
1221 nv->fw.isp2400.swing_4g[1]); in ql_nvram_24xx_config()