Lines Matching refs:nvram
2034 if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) &&
2035 (le16_to_cpu(ha->nvram->adapter_type) != 0))
2060 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) {
2061 if (ha->nvram->bios_low[3] == 0) {
2064 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2065 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2066 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2067 ha->nvram->bios_low[2]);
2072 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2073 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2074 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2075 ha->nvram->bios_low[2], ha->nvram->bios_low[3]);
2435 /* write nvram user page 5 */
4242 kfree(ha->nvram);
4243 ha->nvram = NULL;
5588 /* Write OS/Driver version to Page 5 of the nvram on the controller */
5605 if (le32_to_cpu(ha->nvram->signature) != IPS_NVRAM_P5_SIG) {
5608 ips_name, ha->host_num, ha->nvram->signature);
5609 ha->nvram->signature = IPS_NVRAM_P5_SIG;
5614 ips_name, ha->host_num, le16_to_cpu(ha->nvram->adapter_type),
5615 ha->nvram->adapter_slot, ha->nvram->bios_high[0],
5616 ha->nvram->bios_high[1], ha->nvram->bios_high[2],
5617 ha->nvram->bios_high[3], ha->nvram->bios_low[0],
5618 ha->nvram->bios_low[1], ha->nvram->bios_low[2],
5619 ha->nvram->bios_low[3]);
5624 ha->nvram->operating_system = IPS_OS_LINUX;
5625 ha->nvram->adapter_type = ha->ad_type;
5626 memcpy((char *) ha->nvram->driver_high, IPS_VERSION_HIGH, 4);
5627 memcpy((char *) ha->nvram->driver_low, IPS_VERSION_LOW, 4);
5628 memcpy((char *) ha->nvram->bios_high, ha->bios_version, 4);
5629 memcpy((char *) ha->nvram->bios_low, ha->bios_version + 4, 4);
5631 ha->nvram->versioning = 0; /* Indicate the Driver Does Not Support Versioning */
5642 ha->slot_num = ha->nvram->adapter_slot;
5798 /* Read nvram page 5 from the adapter */
5816 scb->cmd.nvram.op_code = IPS_CMD_RW_NVRAM_PAGE;
5817 scb->cmd.nvram.command_id = IPS_COMMAND_ID(ha, scb);
5818 scb->cmd.nvram.page = 5;
5819 scb->cmd.nvram.write = write;
5820 scb->cmd.nvram.reserved = 0;
5821 scb->cmd.nvram.reserved2 = 0;
5822 scb->data_len = sizeof (*ha->nvram);
5823 scb->cmd.nvram.buffer_addr = ha->ioctl_busaddr;
5825 memcpy(ha->ioctl_data, ha->nvram, sizeof(*ha->nvram));
5833 memset(ha->nvram, 0, sizeof (IPS_NVRAM_P5));
5838 memcpy(ha->nvram, ha->ioctl_data, sizeof(*ha->nvram));
6562 IPS_NVRAM_P5 *nvram;
6565 nvram = ips_ha[0]->nvram;
6567 if (nvram->adapter_order[0]) {
6568 for (i = 1; i <= nvram->adapter_order[0]; i++) {
6573 if (nvram->adapter_order[i] == 'M') {
6583 if (nvram->adapter_order[i] == 'N') {
6593 if (nvram->adapter_order[i] == 'S') {
6606 if (nvram->adapter_order[i] == 'A') {
6975 ha->nvram = kmalloc(sizeof (IPS_NVRAM_P5), GFP_KERNEL);
6977 if (!ha->nvram) {