Lines Matching full:nv

575 	struct nvram *nv;  in qla1280_read_nvram()  local
585 nv = &ha->nvram; in qla1280_read_nvram()
594 if (nv->id0 != 'I' || nv->id1 != 'S' || in qla1280_read_nvram()
595 nv->id2 != 'P' || nv->id3 != ' ' || nv->version < 1) { in qla1280_read_nvram()
608 " version %i\n", nv->id0, nv->id1, nv->id2, nv->id3, in qla1280_read_nvram()
609 nv->version); in qla1280_read_nvram()
637 nv->isp_parameter = cpu_to_le16(nv->isp_parameter); in qla1280_read_nvram()
638 nv->firmware_feature.w = cpu_to_le16(nv->firmware_feature.w); in qla1280_read_nvram()
640 nv->bus[i].selection_timeout = cpu_to_le16(nv->bus[i].selection_timeout); in qla1280_read_nvram()
641 nv->bus[i].max_queue_depth = cpu_to_le16(nv->bus[i].max_queue_depth); in qla1280_read_nvram()
1109 struct nvram *nv; in qla1280_set_target_parameters() local
1112 nv = &ha->nvram; in qla1280_set_target_parameters()
1119 mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; in qla1280_set_target_parameters()
1120 mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; in qla1280_set_target_parameters()
1121 mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; in qla1280_set_target_parameters()
1122 mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; in qla1280_set_target_parameters()
1123 mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; in qla1280_set_target_parameters()
1124 mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; in qla1280_set_target_parameters()
1125 mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; in qla1280_set_target_parameters()
1126 mb[2] |= nv->bus[bus].target[target].parameter.disconnect_allowed << 15; in qla1280_set_target_parameters()
1129 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla1280_set_target_parameters()
1130 mb[3] = (nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8); in qla1280_set_target_parameters()
1131 mb[6] = (nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8) | in qla1280_set_target_parameters()
1132 nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla1280_set_target_parameters()
1135 mb[3] = (nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8); in qla1280_set_target_parameters()
1137 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_set_target_parameters()
1146 mb[2] = nv->bus[bus].max_queue_depth; in qla1280_set_target_parameters()
1147 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_set_target_parameters()
1178 struct nvram *nv; in qla1280_slave_configure() local
1182 nv = &ha->nvram; in qla1280_slave_configure()
1194 nv->bus[bus].target[target].parameter.enable_sync = device->sdtr; in qla1280_slave_configure()
1195 nv->bus[bus].target[target].parameter.enable_wide = device->wdtr; in qla1280_slave_configure()
1196 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr; in qla1280_slave_configure()
1201 nv->bus[bus].target[target].parameter.enable_sync = 0; in qla1280_slave_configure()
1205 nv->bus[bus].target[target].parameter.enable_wide = 0; in qla1280_slave_configure()
1210 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; in qla1280_slave_configure()
1214 if (nv->bus[bus].target[target].parameter.enable_sync) in qla1280_slave_configure()
1925 qla1280_print_settings(struct nvram *nv) in qla1280_print_settings() argument
1928 nv->bus[0].config_1.initiator_id); in qla1280_print_settings()
1930 nv->bus[1].config_1.initiator_id); in qla1280_print_settings()
1933 nv->bus[0].bus_reset_delay); in qla1280_print_settings()
1935 nv->bus[1].bus_reset_delay); in qla1280_print_settings()
1937 dprintk(1, "qla1280 : retry count[0]=%d\n", nv->bus[0].retry_count); in qla1280_print_settings()
1938 dprintk(1, "qla1280 : retry delay[0]=%d\n", nv->bus[0].retry_delay); in qla1280_print_settings()
1939 dprintk(1, "qla1280 : retry count[1]=%d\n", nv->bus[1].retry_count); in qla1280_print_settings()
1940 dprintk(1, "qla1280 : retry delay[1]=%d\n", nv->bus[1].retry_delay); in qla1280_print_settings()
1943 nv->bus[0].config_2.async_data_setup_time); in qla1280_print_settings()
1945 nv->bus[1].config_2.async_data_setup_time); in qla1280_print_settings()
1948 nv->bus[0].config_2.req_ack_active_negation); in qla1280_print_settings()
1950 nv->bus[1].config_2.req_ack_active_negation); in qla1280_print_settings()
1953 nv->bus[0].config_2.data_line_active_negation); in qla1280_print_settings()
1955 nv->bus[1].config_2.data_line_active_negation); in qla1280_print_settings()
1958 nv->cntr_flags_1.disable_loading_risc_code); in qla1280_print_settings()
1961 nv->cntr_flags_1.enable_64bit_addressing); in qla1280_print_settings()
1964 nv->bus[0].selection_timeout); in qla1280_print_settings()
1966 nv->bus[1].selection_timeout); in qla1280_print_settings()
1969 nv->bus[0].max_queue_depth); in qla1280_print_settings()
1971 nv->bus[1].max_queue_depth); in qla1280_print_settings()
1977 struct nvram *nv = &ha->nvram; in qla1280_set_target_defaults() local
1979 nv->bus[bus].target[target].parameter.renegotiate_on_error = 1; in qla1280_set_target_defaults()
1980 nv->bus[bus].target[target].parameter.auto_request_sense = 1; in qla1280_set_target_defaults()
1981 nv->bus[bus].target[target].parameter.tag_queuing = 1; in qla1280_set_target_defaults()
1982 nv->bus[bus].target[target].parameter.enable_sync = 1; in qla1280_set_target_defaults()
1984 nv->bus[bus].target[target].parameter.enable_wide = 1; in qla1280_set_target_defaults()
1986 nv->bus[bus].target[target].execution_throttle = in qla1280_set_target_defaults()
1987 nv->bus[bus].max_queue_depth - 1; in qla1280_set_target_defaults()
1988 nv->bus[bus].target[target].parameter.parity_checking = 1; in qla1280_set_target_defaults()
1989 nv->bus[bus].target[target].parameter.disconnect_allowed = 1; in qla1280_set_target_defaults()
1992 nv->bus[bus].target[target].flags.flags1x160.device_enable = 1; in qla1280_set_target_defaults()
1993 nv->bus[bus].target[target].flags.flags1x160.sync_offset = 0x0e; in qla1280_set_target_defaults()
1994 nv->bus[bus].target[target].sync_period = 9; in qla1280_set_target_defaults()
1995 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 1; in qla1280_set_target_defaults()
1996 nv->bus[bus].target[target].ppr_1x160.flags.ppr_options = 2; in qla1280_set_target_defaults()
1997 nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width = 1; in qla1280_set_target_defaults()
1999 nv->bus[bus].target[target].flags.flags1x80.device_enable = 1; in qla1280_set_target_defaults()
2000 nv->bus[bus].target[target].flags.flags1x80.sync_offset = 12; in qla1280_set_target_defaults()
2001 nv->bus[bus].target[target].sync_period = 10; in qla1280_set_target_defaults()
2008 struct nvram *nv = &ha->nvram; in qla1280_set_defaults() local
2012 memset(nv, 0, sizeof(struct nvram)); in qla1280_set_defaults()
2014 /* nv->cntr_flags_1.disable_loading_risc_code = 1; */ in qla1280_set_defaults()
2015 nv->firmware_feature.f.enable_fast_posting = 1; in qla1280_set_defaults()
2016 nv->firmware_feature.f.disable_synchronous_backoff = 1; in qla1280_set_defaults()
2017 nv->termination.scsi_bus_0_control = 3; in qla1280_set_defaults()
2018 nv->termination.scsi_bus_1_control = 3; in qla1280_set_defaults()
2019 nv->termination.auto_term_support = 1; in qla1280_set_defaults()
2029 nv->isp_config.burst_enable = 1; in qla1280_set_defaults()
2031 nv->isp_config.fifo_threshold |= 3; in qla1280_set_defaults()
2033 nv->isp_config.fifo_threshold |= 4; in qla1280_set_defaults()
2036 nv->isp_parameter = 0x01; /* fast memory enable */ in qla1280_set_defaults()
2039 nv->bus[bus].config_1.initiator_id = 7; in qla1280_set_defaults()
2040 nv->bus[bus].config_2.req_ack_active_negation = 1; in qla1280_set_defaults()
2041 nv->bus[bus].config_2.data_line_active_negation = 1; in qla1280_set_defaults()
2042 nv->bus[bus].selection_timeout = 250; in qla1280_set_defaults()
2043 nv->bus[bus].max_queue_depth = 32; in qla1280_set_defaults()
2046 nv->bus[bus].bus_reset_delay = 3; in qla1280_set_defaults()
2047 nv->bus[bus].config_2.async_data_setup_time = 6; in qla1280_set_defaults()
2048 nv->bus[bus].retry_delay = 1; in qla1280_set_defaults()
2050 nv->bus[bus].bus_reset_delay = 5; in qla1280_set_defaults()
2051 nv->bus[bus].config_2.async_data_setup_time = 8; in qla1280_set_defaults()
2062 struct nvram *nv = &ha->nvram; in qla1280_config_target() local
2080 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla1280_config_target()
2082 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla1280_config_target()
2083 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_config_target()
2088 if (nv->bus[bus].target[target].parameter.tag_queuing) in qla1280_config_target()
2093 if (nv->bus[bus].target[target].flags.flags1x160.device_enable) in qla1280_config_target()
2097 if (nv->bus[bus].target[target].flags.flags1x80.device_enable) in qla1280_config_target()
2100 if (nv->bus[bus].target[target].flags.flags1x80.lun_disable) in qla1280_config_target()
2109 mb[2] = nv->bus[bus].max_queue_depth; in qla1280_config_target()
2110 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_config_target()
2120 struct nvram *nv = &ha->nvram; in qla1280_config_bus() local
2126 nv->bus[bus].config_1.scsi_reset_disable; in qla1280_config_bus()
2129 ha->bus_settings[bus].id = nv->bus[bus].config_1.initiator_id; in qla1280_config_bus()
2137 nv->bus[bus].bus_reset_delay; in qla1280_config_bus()
2140 ha->bus_settings[bus].hiwat = nv->bus[bus].max_queue_depth - 1; in qla1280_config_bus()
2153 struct nvram *nv = &ha->nvram; in qla1280_nvram_config() local
2163 nv->bus[bus].target[target].parameter. in qla1280_nvram_config()
2170 qla1280_print_settings(nv); in qla1280_nvram_config()
2174 nv->cntr_flags_1.disable_loading_risc_code; in qla1280_nvram_config()
2186 cfg1 |= nv->isp_config.fifo_threshold << 4; in qla1280_nvram_config()
2188 cfg1 |= nv->isp_config.burst_enable << 2; in qla1280_nvram_config()
2197 cfg1 = nv->isp_config.fifo_threshold << 4; in qla1280_nvram_config()
2198 cfg1 |= nv->isp_config.burst_enable << 2; in qla1280_nvram_config()
2207 term = nv->termination.scsi_bus_1_control; in qla1280_nvram_config()
2208 term |= nv->termination.scsi_bus_0_control << 2; in qla1280_nvram_config()
2209 term |= nv->termination.auto_term_support << 7; in qla1280_nvram_config()
2217 mb[1] = nv->isp_parameter; in qla1280_nvram_config()
2229 mb[1] = nv->firmware_feature.f.enable_fast_posting; in qla1280_nvram_config()
2230 mb[1] |= nv->firmware_feature.f.report_lvd_bus_transition << 1; in qla1280_nvram_config()
2231 mb[1] |= nv->firmware_feature.f.disable_synchronous_backoff << 5; in qla1280_nvram_config()
2236 mb[1] = nv->bus[0].retry_count; in qla1280_nvram_config()
2237 mb[2] = nv->bus[0].retry_delay; in qla1280_nvram_config()
2238 mb[6] = nv->bus[1].retry_count; in qla1280_nvram_config()
2239 mb[7] = nv->bus[1].retry_delay; in qla1280_nvram_config()
2245 mb[1] = nv->bus[0].config_2.async_data_setup_time; in qla1280_nvram_config()
2246 mb[2] = nv->bus[1].config_2.async_data_setup_time; in qla1280_nvram_config()
2252 if (nv->bus[0].config_2.req_ack_active_negation) in qla1280_nvram_config()
2254 if (nv->bus[0].config_2.data_line_active_negation) in qla1280_nvram_config()
2257 if (nv->bus[1].config_2.req_ack_active_negation) in qla1280_nvram_config()
2259 if (nv->bus[1].config_2.data_line_active_negation) in qla1280_nvram_config()
2279 mb[1] = nv->bus[0].selection_timeout; in qla1280_nvram_config()
2280 mb[2] = nv->bus[1].selection_timeout; in qla1280_nvram_config()