Lines Matching refs:nv

825 	struct nvram *nv;  in qla1280_read_nvram()  local
835 nv = &ha->nvram; in qla1280_read_nvram()
844 if (nv->id0 != 'I' || nv->id1 != 'S' || in qla1280_read_nvram()
845 nv->id2 != 'P' || nv->id3 != ' ' || nv->version < 1) { in qla1280_read_nvram()
858 " version %i\n", nv->id0, nv->id1, nv->id2, nv->id3, in qla1280_read_nvram()
859 nv->version); in qla1280_read_nvram()
1658 struct nvram *nv; in qla12160_set_target_parameters() local
1661 nv = &ha->nvram; in qla12160_set_target_parameters()
1676 mb[2] = (nv->bus[bus].target[target].parameter.c << 8); in qla12160_set_target_parameters()
1679 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla12160_set_target_parameters()
1681 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla12160_set_target_parameters()
1682 mb[3] |= nv->bus[bus].target[target].sync_period; in qla12160_set_target_parameters()
1685 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla12160_set_target_parameters()
1686 mb[6] = nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8; in qla12160_set_target_parameters()
1687 mb[6] |= nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla12160_set_target_parameters()
1720 struct nvram *nv; in qla1280_slave_configure() local
1724 nv = &ha->nvram; in qla1280_slave_configure()
1738 nv->bus[bus].target[target].parameter.f.enable_sync = device->sdtr; in qla1280_slave_configure()
1739 nv->bus[bus].target[target].parameter.f.enable_wide = device->wdtr; in qla1280_slave_configure()
1740 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr; in qla1280_slave_configure()
1746 nv->bus[bus].target[target].parameter.f.enable_sync = 0; in qla1280_slave_configure()
1750 nv->bus[bus].target[target].parameter.f.enable_wide = 0; in qla1280_slave_configure()
1756 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; in qla1280_slave_configure()
1760 if (nv->bus[bus].target[target].parameter.f.enable_sync) { in qla1280_slave_configure()
2235 struct nvram *nv = (struct nvram *) ha->response_ring; in qla1280_isp_firmware() local
2248 nv->cntr_flags_1.disable_loading_risc_code; in qla1280_isp_firmware()
2712 struct nvram *nv; in qla1280_nvram_config() local
2726 nv = &ha->nvram; in qla1280_nvram_config()
2729 memset(nv, 0, sizeof(struct nvram)); in qla1280_nvram_config()
2732 nv->firmware_feature.f.enable_fast_posting = 1; in qla1280_nvram_config()
2733 nv->firmware_feature.f.disable_synchronous_backoff = 1; in qla1280_nvram_config()
2735 nv->termination.f.scsi_bus_0_control = 3; in qla1280_nvram_config()
2736 nv->termination.f.scsi_bus_1_control = 3; in qla1280_nvram_config()
2737 nv->termination.f.auto_term_support = 1; in qla1280_nvram_config()
2747 nv->isp_config.c = 0x44; in qla1280_nvram_config()
2750 nv->isp_parameter = 0x01; in qla1280_nvram_config()
2753 nv->bus[bus].config_1.initiator_id = 7; in qla1280_nvram_config()
2754 nv->bus[bus].bus_reset_delay = 5; in qla1280_nvram_config()
2756 nv->bus[bus].config_2.async_data_setup_time = 8; in qla1280_nvram_config()
2757 nv->bus[bus].config_2.req_ack_active_negation = 1; in qla1280_nvram_config()
2758 nv->bus[bus].config_2.data_line_active_negation = 1; in qla1280_nvram_config()
2759 nv->bus[bus].selection_timeout = 250; in qla1280_nvram_config()
2760 nv->bus[bus].max_queue_depth = 256; in qla1280_nvram_config()
2763 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2765 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2767 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2769 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2772 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2775 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2777 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2779 nv->bus[bus].target[target].execution_throttle= in qla1280_nvram_config()
2780 nv->bus[bus].max_queue_depth - 1; in qla1280_nvram_config()
2782 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2784 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2786 nv->bus[bus].target[target]. in qla1280_nvram_config()
2788 nv->bus[bus].target[target]. in qla1280_nvram_config()
2790 nv->bus[bus].target[target].ppr_1x160. in qla1280_nvram_config()
2792 nv->bus[bus].target[target].ppr_1x160. in qla1280_nvram_config()
2795 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2797 nv->bus[bus].target[target].flags. in qla1280_nvram_config()
2799 nv->bus[bus].target[target]. in qla1280_nvram_config()
2808 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2813 nv->bus[0].config_1.initiator_id); in qla1280_nvram_config()
2815 nv->bus[1].config_1.initiator_id); in qla1280_nvram_config()
2818 nv->bus[0].bus_reset_delay); in qla1280_nvram_config()
2820 nv->bus[1].bus_reset_delay); in qla1280_nvram_config()
2822 dprintk(1, "qla1280 : retry count[0]=%d\n", nv->bus[0].retry_count); in qla1280_nvram_config()
2823 dprintk(1, "qla1280 : retry delay[0]=%d\n", nv->bus[0].retry_delay); in qla1280_nvram_config()
2824 dprintk(1, "qla1280 : retry count[1]=%d\n", nv->bus[1].retry_count); in qla1280_nvram_config()
2825 dprintk(1, "qla1280 : retry delay[1]=%d\n", nv->bus[1].retry_delay); in qla1280_nvram_config()
2828 nv->bus[0].config_2.async_data_setup_time); in qla1280_nvram_config()
2830 nv->bus[1].config_2.async_data_setup_time); in qla1280_nvram_config()
2833 nv->bus[0].config_2.req_ack_active_negation); in qla1280_nvram_config()
2835 nv->bus[1].config_2.req_ack_active_negation); in qla1280_nvram_config()
2838 nv->bus[0].config_2.data_line_active_negation); in qla1280_nvram_config()
2840 nv->bus[1].config_2.data_line_active_negation); in qla1280_nvram_config()
2843 nv->cntr_flags_1.disable_loading_risc_code); in qla1280_nvram_config()
2846 nv->cntr_flags_1.enable_64bit_addressing); in qla1280_nvram_config()
2849 nv->bus[0].selection_timeout); in qla1280_nvram_config()
2851 nv->bus[1].selection_timeout); in qla1280_nvram_config()
2854 nv->bus[0].max_queue_depth); in qla1280_nvram_config()
2856 nv->bus[1].max_queue_depth); in qla1280_nvram_config()
2860 nv->cntr_flags_1.disable_loading_risc_code; in qla1280_nvram_config()
2880 mb[0] = nv->isp_config.c; in qla1280_nvram_config()
2889 mb[0] = nv->termination.c & (BIT_3 + BIT_2 + BIT_1 + BIT_0); in qla1280_nvram_config()
2895 mb[1] = nv->isp_parameter; in qla1280_nvram_config()
2907 mb[1] = le16_to_cpu(nv->firmware_feature.w) & (mask); in qla1280_nvram_config()
2919 mb[1] = nv->bus[0].retry_count; in qla1280_nvram_config()
2920 mb[2] = nv->bus[0].retry_delay; in qla1280_nvram_config()
2921 mb[6] = nv->bus[1].retry_count; in qla1280_nvram_config()
2922 mb[7] = nv->bus[1].retry_delay; in qla1280_nvram_config()
2928 mb[1] = nv->bus[0].config_2.async_data_setup_time; in qla1280_nvram_config()
2929 mb[2] = nv->bus[1].config_2.async_data_setup_time; in qla1280_nvram_config()
2935 if (nv->bus[0].config_2.req_ack_active_negation) in qla1280_nvram_config()
2937 if (nv->bus[0].config_2.data_line_active_negation) in qla1280_nvram_config()
2940 if (nv->bus[1].config_2.req_ack_active_negation) in qla1280_nvram_config()
2942 if (nv->bus[1].config_2.data_line_active_negation) in qla1280_nvram_config()
2958 mb[1] = nv->bus[0].selection_timeout; in qla1280_nvram_config()
2959 mb[2] = nv->bus[1].selection_timeout; in qla1280_nvram_config()
2965 nv->bus[bus].config_1.scsi_reset_disable; in qla1280_nvram_config()
2968 ha->bus_settings[bus].id = nv->bus[bus].config_1.initiator_id; in qla1280_nvram_config()
2976 nv->bus[bus].bus_reset_delay; in qla1280_nvram_config()
2979 ha->bus_settings[bus].hiwat = nv->bus[bus].max_queue_depth - 1; in qla1280_nvram_config()
2994 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
2996 nv->bus[bus].target[target].parameter.f. in qla1280_nvram_config()
3000 nv->bus[bus].target[target].ppr_1x160. in qla1280_nvram_config()
3005 mb[2] = (nv->bus[bus].target[target].parameter.c << 8)& in qla1280_nvram_config()
3009 mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; in qla1280_nvram_config()
3011 mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; in qla1280_nvram_config()
3012 mb[3] |= nv->bus[bus].target[target].sync_period; in qla1280_nvram_config()
3021 mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; in qla1280_nvram_config()
3023 mb[6] = nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8; in qla1280_nvram_config()
3024 mb[6] |= nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; in qla1280_nvram_config()
3033 if (nv->bus[bus].target[target].parameter.f.tag_queuing) in qla1280_nvram_config()
3038 if (nv->bus[bus].target[target].flags.flags1x160.device_enable) in qla1280_nvram_config()
3042 if (nv->bus[bus].target[target].flags.flags1x80.device_enable) in qla1280_nvram_config()
3045 if (nv->bus[bus].target[target].flags.flags1x80.lun_disable) in qla1280_nvram_config()
3055 mb[2] = nv->bus[bus].max_queue_depth; in qla1280_nvram_config()
3056 mb[3] = nv->bus[bus].target[target].execution_throttle; in qla1280_nvram_config()