Lines Matching refs:nvram
2043 if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) && in ips_host_info()
2044 (le16_to_cpu(ha->nvram->adapter_type) != 0)) in ips_host_info()
2069 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) { in ips_host_info()
2070 if (ha->nvram->bios_low[3] == 0) { in ips_host_info()
2073 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info()
2074 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info()
2075 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info()
2076 ha->nvram->bios_low[2]); in ips_host_info()
2081 ha->nvram->bios_high[0], ha->nvram->bios_high[1], in ips_host_info()
2082 ha->nvram->bios_high[2], ha->nvram->bios_high[3], in ips_host_info()
2083 ha->nvram->bios_low[0], ha->nvram->bios_low[1], in ips_host_info()
2084 ha->nvram->bios_low[2], ha->nvram->bios_low[3]); in ips_host_info()
4258 kfree(ha->nvram); in ips_free()
4259 ha->nvram = NULL; in ips_free()
5623 if (le32_to_cpu(ha->nvram->signature) != IPS_NVRAM_P5_SIG) { in ips_write_driver_status()
5626 ips_name, ha->host_num, ha->nvram->signature); in ips_write_driver_status()
5627 ha->nvram->signature = IPS_NVRAM_P5_SIG; in ips_write_driver_status()
5632 ips_name, ha->host_num, le16_to_cpu(ha->nvram->adapter_type), in ips_write_driver_status()
5633 ha->nvram->adapter_slot, ha->nvram->bios_high[0], in ips_write_driver_status()
5634 ha->nvram->bios_high[1], ha->nvram->bios_high[2], in ips_write_driver_status()
5635 ha->nvram->bios_high[3], ha->nvram->bios_low[0], in ips_write_driver_status()
5636 ha->nvram->bios_low[1], ha->nvram->bios_low[2], in ips_write_driver_status()
5637 ha->nvram->bios_low[3]); in ips_write_driver_status()
5642 ha->nvram->operating_system = IPS_OS_LINUX; in ips_write_driver_status()
5643 ha->nvram->adapter_type = ha->ad_type; in ips_write_driver_status()
5644 strncpy((char *) ha->nvram->driver_high, IPS_VERSION_HIGH, 4); in ips_write_driver_status()
5645 strncpy((char *) ha->nvram->driver_low, IPS_VERSION_LOW, 4); in ips_write_driver_status()
5646 strncpy((char *) ha->nvram->bios_high, ha->bios_version, 4); in ips_write_driver_status()
5647 strncpy((char *) ha->nvram->bios_low, ha->bios_version + 4, 4); in ips_write_driver_status()
5649 ha->nvram->versioning = 0; /* Indicate the Driver Does Not Support Versioning */ in ips_write_driver_status()
5660 ha->slot_num = ha->nvram->adapter_slot; in ips_write_driver_status()
5834 scb->cmd.nvram.op_code = IPS_CMD_RW_NVRAM_PAGE; in ips_readwrite_page5()
5835 scb->cmd.nvram.command_id = IPS_COMMAND_ID(ha, scb); in ips_readwrite_page5()
5836 scb->cmd.nvram.page = 5; in ips_readwrite_page5()
5837 scb->cmd.nvram.write = write; in ips_readwrite_page5()
5838 scb->cmd.nvram.reserved = 0; in ips_readwrite_page5()
5839 scb->cmd.nvram.reserved2 = 0; in ips_readwrite_page5()
5840 scb->data_len = sizeof (*ha->nvram); in ips_readwrite_page5()
5841 scb->cmd.nvram.buffer_addr = ha->ioctl_busaddr; in ips_readwrite_page5()
5843 memcpy(ha->ioctl_data, ha->nvram, sizeof(*ha->nvram)); in ips_readwrite_page5()
5851 memset(ha->nvram, 0, sizeof (IPS_NVRAM_P5)); in ips_readwrite_page5()
5856 memcpy(ha->nvram, ha->ioctl_data, sizeof(*ha->nvram)); in ips_readwrite_page5()
6618 IPS_NVRAM_P5 *nvram; in ips_order_controllers() local
6621 nvram = ips_ha[0]->nvram; in ips_order_controllers()
6623 if (nvram->adapter_order[0]) { in ips_order_controllers()
6624 for (i = 1; i <= nvram->adapter_order[0]; i++) { in ips_order_controllers()
6629 if (nvram->adapter_order[i] == 'M') { in ips_order_controllers()
6639 if (nvram->adapter_order[i] == 'N') { in ips_order_controllers()
6649 if (nvram->adapter_order[i] == 'S') { in ips_order_controllers()
6662 if (nvram->adapter_order[i] == 'A') { in ips_order_controllers()
7031 ha->nvram = kmalloc(sizeof (IPS_NVRAM_P5), GFP_KERNEL); in ips_init_phase1()
7033 if (!ha->nvram) { in ips_init_phase1()