• Home
  • Raw
  • Download

Lines Matching full:nv

583 	struct nvram *nv;  in qla1280_read_nvram()  local
593 nv = &ha->nvram; in qla1280_read_nvram()
602 if (nv->id0 != 'I' || nv->id1 != 'S' || in qla1280_read_nvram()
603 nv->id2 != 'P' || nv->id3 != ' ' || nv->version < 1) { in qla1280_read_nvram()
616 " version %i\n", nv->id0, nv->id1, nv->id2, nv->id3, in qla1280_read_nvram()
617 nv->version); in qla1280_read_nvram()
645 nv->isp_parameter = cpu_to_le16(nv->isp_parameter); in qla1280_read_nvram()
646 nv->firmware_feature.w = cpu_to_le16(nv->firmware_feature.w); in qla1280_read_nvram()
648 nv->bus[i].selection_timeout = cpu_to_le16(nv->bus[i].selection_timeout); in qla1280_read_nvram()
649 nv->bus[i].max_queue_depth = cpu_to_le16(nv->bus[i].max_queue_depth); in qla1280_read_nvram()
1119 struct nvram *nv; in qla1280_set_target_parameters() local
1122 nv = &ha->nvram; in qla1280_set_target_parameters()
1129 mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; in qla1280_set_target_parameters()
1130 mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; in qla1280_set_target_parameters()
1131 mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; in qla1280_set_target_parameters()
1132 mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; in qla1280_set_target_parameters()
1133 mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; in qla1280_set_target_parameters()
1134 mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; in qla1280_set_target_parameters()
1135 mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; in qla1280_set_target_parameters()
1136 mb[2] |= nv->bus[bus].target[target].parameter.disconnect_allowed << 15; in qla1280_set_target_parameters()
1139 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla1280_set_target_parameters()
1140 mb[3] = (nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8); in qla1280_set_target_parameters()
1141 mb[6] = (nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8) | in qla1280_set_target_parameters()
1142 nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla1280_set_target_parameters()
1145 mb[3] = (nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8); in qla1280_set_target_parameters()
1147 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_set_target_parameters()
1156 mb[2] = nv->bus[bus].max_queue_depth; in qla1280_set_target_parameters()
1157 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_set_target_parameters()
1188 struct nvram *nv; in qla1280_slave_configure() local
1192 nv = &ha->nvram; in qla1280_slave_configure()
1204 nv->bus[bus].target[target].parameter.enable_sync = device->sdtr; in qla1280_slave_configure()
1205 nv->bus[bus].target[target].parameter.enable_wide = device->wdtr; in qla1280_slave_configure()
1206 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr; in qla1280_slave_configure()
1211 nv->bus[bus].target[target].parameter.enable_sync = 0; in qla1280_slave_configure()
1215 nv->bus[bus].target[target].parameter.enable_wide = 0; in qla1280_slave_configure()
1220 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; in qla1280_slave_configure()
1224 if (nv->bus[bus].target[target].parameter.enable_sync) in qla1280_slave_configure()
1935 qla1280_print_settings(struct nvram *nv) in qla1280_print_settings() argument
1938 nv->bus[0].config_1.initiator_id); in qla1280_print_settings()
1940 nv->bus[1].config_1.initiator_id); in qla1280_print_settings()
1943 nv->bus[0].bus_reset_delay); in qla1280_print_settings()
1945 nv->bus[1].bus_reset_delay); in qla1280_print_settings()
1947 dprintk(1, "qla1280 : retry count[0]=%d\n", nv->bus[0].retry_count); in qla1280_print_settings()
1948 dprintk(1, "qla1280 : retry delay[0]=%d\n", nv->bus[0].retry_delay); in qla1280_print_settings()
1949 dprintk(1, "qla1280 : retry count[1]=%d\n", nv->bus[1].retry_count); in qla1280_print_settings()
1950 dprintk(1, "qla1280 : retry delay[1]=%d\n", nv->bus[1].retry_delay); in qla1280_print_settings()
1953 nv->bus[0].config_2.async_data_setup_time); in qla1280_print_settings()
1955 nv->bus[1].config_2.async_data_setup_time); in qla1280_print_settings()
1958 nv->bus[0].config_2.req_ack_active_negation); in qla1280_print_settings()
1960 nv->bus[1].config_2.req_ack_active_negation); in qla1280_print_settings()
1963 nv->bus[0].config_2.data_line_active_negation); in qla1280_print_settings()
1965 nv->bus[1].config_2.data_line_active_negation); in qla1280_print_settings()
1968 nv->cntr_flags_1.disable_loading_risc_code); in qla1280_print_settings()
1971 nv->cntr_flags_1.enable_64bit_addressing); in qla1280_print_settings()
1974 nv->bus[0].selection_timeout); in qla1280_print_settings()
1976 nv->bus[1].selection_timeout); in qla1280_print_settings()
1979 nv->bus[0].max_queue_depth); in qla1280_print_settings()
1981 nv->bus[1].max_queue_depth); in qla1280_print_settings()
1987 struct nvram *nv = &ha->nvram; in qla1280_set_target_defaults() local
1989 nv->bus[bus].target[target].parameter.renegotiate_on_error = 1; in qla1280_set_target_defaults()
1990 nv->bus[bus].target[target].parameter.auto_request_sense = 1; in qla1280_set_target_defaults()
1991 nv->bus[bus].target[target].parameter.tag_queuing = 1; in qla1280_set_target_defaults()
1992 nv->bus[bus].target[target].parameter.enable_sync = 1; in qla1280_set_target_defaults()
1994 nv->bus[bus].target[target].parameter.enable_wide = 1; in qla1280_set_target_defaults()
1996 nv->bus[bus].target[target].execution_throttle = in qla1280_set_target_defaults()
1997 nv->bus[bus].max_queue_depth - 1; in qla1280_set_target_defaults()
1998 nv->bus[bus].target[target].parameter.parity_checking = 1; in qla1280_set_target_defaults()
1999 nv->bus[bus].target[target].parameter.disconnect_allowed = 1; in qla1280_set_target_defaults()
2002 nv->bus[bus].target[target].flags.flags1x160.device_enable = 1; in qla1280_set_target_defaults()
2003 nv->bus[bus].target[target].flags.flags1x160.sync_offset = 0x0e; in qla1280_set_target_defaults()
2004 nv->bus[bus].target[target].sync_period = 9; in qla1280_set_target_defaults()
2005 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 1; in qla1280_set_target_defaults()
2006 nv->bus[bus].target[target].ppr_1x160.flags.ppr_options = 2; in qla1280_set_target_defaults()
2007 nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width = 1; in qla1280_set_target_defaults()
2009 nv->bus[bus].target[target].flags.flags1x80.device_enable = 1; in qla1280_set_target_defaults()
2010 nv->bus[bus].target[target].flags.flags1x80.sync_offset = 12; in qla1280_set_target_defaults()
2011 nv->bus[bus].target[target].sync_period = 10; in qla1280_set_target_defaults()
2018 struct nvram *nv = &ha->nvram; in qla1280_set_defaults() local
2022 memset(nv, 0, sizeof(struct nvram)); in qla1280_set_defaults()
2024 /* nv->cntr_flags_1.disable_loading_risc_code = 1; */ in qla1280_set_defaults()
2025 nv->firmware_feature.f.enable_fast_posting = 1; in qla1280_set_defaults()
2026 nv->firmware_feature.f.disable_synchronous_backoff = 1; in qla1280_set_defaults()
2027 nv->termination.scsi_bus_0_control = 3; in qla1280_set_defaults()
2028 nv->termination.scsi_bus_1_control = 3; in qla1280_set_defaults()
2029 nv->termination.auto_term_support = 1; in qla1280_set_defaults()
2039 nv->isp_config.burst_enable = 1; in qla1280_set_defaults()
2041 nv->isp_config.fifo_threshold |= 3; in qla1280_set_defaults()
2043 nv->isp_config.fifo_threshold |= 4; in qla1280_set_defaults()
2046 nv->isp_parameter = 0x01; /* fast memory enable */ in qla1280_set_defaults()
2049 nv->bus[bus].config_1.initiator_id = 7; in qla1280_set_defaults()
2050 nv->bus[bus].config_2.req_ack_active_negation = 1; in qla1280_set_defaults()
2051 nv->bus[bus].config_2.data_line_active_negation = 1; in qla1280_set_defaults()
2052 nv->bus[bus].selection_timeout = 250; in qla1280_set_defaults()
2053 nv->bus[bus].max_queue_depth = 32; in qla1280_set_defaults()
2056 nv->bus[bus].bus_reset_delay = 3; in qla1280_set_defaults()
2057 nv->bus[bus].config_2.async_data_setup_time = 6; in qla1280_set_defaults()
2058 nv->bus[bus].retry_delay = 1; in qla1280_set_defaults()
2060 nv->bus[bus].bus_reset_delay = 5; in qla1280_set_defaults()
2061 nv->bus[bus].config_2.async_data_setup_time = 8; in qla1280_set_defaults()
2072 struct nvram *nv = &ha->nvram; in qla1280_config_target() local
2090 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla1280_config_target()
2092 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla1280_config_target()
2093 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_config_target()
2098 if (nv->bus[bus].target[target].parameter.tag_queuing) in qla1280_config_target()
2103 if (nv->bus[bus].target[target].flags.flags1x160.device_enable) in qla1280_config_target()
2107 if (nv->bus[bus].target[target].flags.flags1x80.device_enable) in qla1280_config_target()
2110 if (nv->bus[bus].target[target].flags.flags1x80.lun_disable) in qla1280_config_target()
2119 mb[2] = nv->bus[bus].max_queue_depth; in qla1280_config_target()
2120 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_config_target()
2130 struct nvram *nv = &ha->nvram; in qla1280_config_bus() local
2136 nv->bus[bus].config_1.scsi_reset_disable; in qla1280_config_bus()
2139 ha->bus_settings[bus].id = nv->bus[bus].config_1.initiator_id; in qla1280_config_bus()
2147 nv->bus[bus].bus_reset_delay; in qla1280_config_bus()
2150 ha->bus_settings[bus].hiwat = nv->bus[bus].max_queue_depth - 1; in qla1280_config_bus()
2163 struct nvram *nv = &ha->nvram; in qla1280_nvram_config() local
2173 nv->bus[bus].target[target].parameter. in qla1280_nvram_config()
2180 qla1280_print_settings(nv); in qla1280_nvram_config()
2184 nv->cntr_flags_1.disable_loading_risc_code; in qla1280_nvram_config()
2196 cfg1 |= nv->isp_config.fifo_threshold << 4; in qla1280_nvram_config()
2198 cfg1 |= nv->isp_config.burst_enable << 2; in qla1280_nvram_config()
2207 cfg1 = nv->isp_config.fifo_threshold << 4; in qla1280_nvram_config()
2208 cfg1 |= nv->isp_config.burst_enable << 2; in qla1280_nvram_config()
2217 term = nv->termination.scsi_bus_1_control; in qla1280_nvram_config()
2218 term |= nv->termination.scsi_bus_0_control << 2; in qla1280_nvram_config()
2219 term |= nv->termination.auto_term_support << 7; in qla1280_nvram_config()
2227 mb[1] = nv->isp_parameter; in qla1280_nvram_config()
2239 mb[1] = nv->firmware_feature.f.enable_fast_posting; in qla1280_nvram_config()
2240 mb[1] |= nv->firmware_feature.f.report_lvd_bus_transition << 1; in qla1280_nvram_config()
2241 mb[1] |= nv->firmware_feature.f.disable_synchronous_backoff << 5; in qla1280_nvram_config()
2246 mb[1] = nv->bus[0].retry_count; in qla1280_nvram_config()
2247 mb[2] = nv->bus[0].retry_delay; in qla1280_nvram_config()
2248 mb[6] = nv->bus[1].retry_count; in qla1280_nvram_config()
2249 mb[7] = nv->bus[1].retry_delay; in qla1280_nvram_config()
2255 mb[1] = nv->bus[0].config_2.async_data_setup_time; in qla1280_nvram_config()
2256 mb[2] = nv->bus[1].config_2.async_data_setup_time; in qla1280_nvram_config()
2262 if (nv->bus[0].config_2.req_ack_active_negation) in qla1280_nvram_config()
2264 if (nv->bus[0].config_2.data_line_active_negation) in qla1280_nvram_config()
2267 if (nv->bus[1].config_2.req_ack_active_negation) in qla1280_nvram_config()
2269 if (nv->bus[1].config_2.data_line_active_negation) in qla1280_nvram_config()
2289 mb[1] = nv->bus[0].selection_timeout; in qla1280_nvram_config()
2290 mb[2] = nv->bus[1].selection_timeout; in qla1280_nvram_config()