Lines Matching refs:nvram

2017 	if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) &&  in ips_host_info()
2018 (le16_to_cpu(ha->nvram->adapter_type) != 0)) in ips_host_info()
2043 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) { in ips_host_info()
2044 if (ha->nvram->bios_low[3] == 0) { in ips_host_info()
2047 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info()
2048 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info()
2049 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info()
2050 ha->nvram->bios_low[2]); in ips_host_info()
2055 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info()
2056 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info()
2057 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info()
2058 ha->nvram->bios_low[2], ha->nvram->bios_low[3]); in ips_host_info()
4225 kfree(ha->nvram); in ips_free()
4226 ha->nvram = NULL; in ips_free()
5588 if (le32_to_cpu(ha->nvram->signature) != IPS_NVRAM_P5_SIG) { in ips_write_driver_status()
5591 ips_name, ha->host_num, ha->nvram->signature); in ips_write_driver_status()
5592 ha->nvram->signature = IPS_NVRAM_P5_SIG; in ips_write_driver_status()
5597 ips_name, ha->host_num, le16_to_cpu(ha->nvram->adapter_type), in ips_write_driver_status()
5598 ha->nvram->adapter_slot, ha->nvram->bios_high[0], in ips_write_driver_status()
5599 ha->nvram->bios_high[1], ha->nvram->bios_high[2], in ips_write_driver_status()
5600 ha->nvram->bios_high[3], ha->nvram->bios_low[0], in ips_write_driver_status()
5601 ha->nvram->bios_low[1], ha->nvram->bios_low[2], in ips_write_driver_status()
5602 ha->nvram->bios_low[3]); in ips_write_driver_status()
5607 ha->nvram->operating_system = IPS_OS_LINUX; in ips_write_driver_status()
5608 ha->nvram->adapter_type = ha->ad_type; in ips_write_driver_status()
5609 memcpy((char *) ha->nvram->driver_high, IPS_VERSION_HIGH, 4); in ips_write_driver_status()
5610 memcpy((char *) ha->nvram->driver_low, IPS_VERSION_LOW, 4); in ips_write_driver_status()
5611 memcpy((char *) ha->nvram->bios_high, ha->bios_version, 4); in ips_write_driver_status()
5612 memcpy((char *) ha->nvram->bios_low, ha->bios_version + 4, 4); in ips_write_driver_status()
5614 ha->nvram->versioning = 0; /* Indicate the Driver Does Not Support Versioning */ in ips_write_driver_status()
5625 ha->slot_num = ha->nvram->adapter_slot; in ips_write_driver_status()
5799 scb->cmd.nvram.op_code = IPS_CMD_RW_NVRAM_PAGE; in ips_readwrite_page5()
5800 scb->cmd.nvram.command_id = IPS_COMMAND_ID(ha, scb); in ips_readwrite_page5()
5801 scb->cmd.nvram.page = 5; in ips_readwrite_page5()
5802 scb->cmd.nvram.write = write; in ips_readwrite_page5()
5803 scb->cmd.nvram.reserved = 0; in ips_readwrite_page5()
5804 scb->cmd.nvram.reserved2 = 0; in ips_readwrite_page5()
5805 scb->data_len = sizeof (*ha->nvram); in ips_readwrite_page5()
5806 scb->cmd.nvram.buffer_addr = ha->ioctl_busaddr; in ips_readwrite_page5()
5808 memcpy(ha->ioctl_data, ha->nvram, sizeof(*ha->nvram)); in ips_readwrite_page5()
5816 memset(ha->nvram, 0, sizeof (IPS_NVRAM_P5)); in ips_readwrite_page5()
5821 memcpy(ha->nvram, ha->ioctl_data, sizeof(*ha->nvram)); in ips_readwrite_page5()
6545 IPS_NVRAM_P5 *nvram; in ips_order_controllers() local
6548 nvram = ips_ha[0]->nvram; in ips_order_controllers()
6550 if (nvram->adapter_order[0]) { in ips_order_controllers()
6551 for (i = 1; i <= nvram->adapter_order[0]; i++) { in ips_order_controllers()
6556 if (nvram->adapter_order[i] == 'M') { in ips_order_controllers()
6566 if (nvram->adapter_order[i] == 'N') { in ips_order_controllers()
6576 if (nvram->adapter_order[i] == 'S') { in ips_order_controllers()
6589 if (nvram->adapter_order[i] == 'A') { in ips_order_controllers()
6958 ha->nvram = kmalloc_obj(IPS_NVRAM_P5); in ips_init_phase1()
6960 if (!ha->nvram) { in ips_init_phase1()