Lines Matching refs:nvram

2031 	if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) &&
2032 (le16_to_cpu(ha->nvram->adapter_type) != 0))
2057 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) {
2058 if (ha->nvram->bios_low[3] == 0) {
2061 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2062 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2063 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2064 ha->nvram->bios_low[2]);
2069 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2070 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2071 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2072 ha->nvram->bios_low[2], ha->nvram->bios_low[3]);
2432 /* write nvram user page 5 */
4239 kfree(ha->nvram);
4240 ha->nvram = NULL;
5585 /* Write OS/Driver version to Page 5 of the nvram on the controller */
5602 if (le32_to_cpu(ha->nvram->signature) != IPS_NVRAM_P5_SIG) {
5605 ips_name, ha->host_num, ha->nvram->signature);
5606 ha->nvram->signature = IPS_NVRAM_P5_SIG;
5611 ips_name, ha->host_num, le16_to_cpu(ha->nvram->adapter_type),
5612 ha->nvram->adapter_slot, ha->nvram->bios_high[0],
5613 ha->nvram->bios_high[1], ha->nvram->bios_high[2],
5614 ha->nvram->bios_high[3], ha->nvram->bios_low[0],
5615 ha->nvram->bios_low[1], ha->nvram->bios_low[2],
5616 ha->nvram->bios_low[3]);
5621 ha->nvram->operating_system = IPS_OS_LINUX;
5622 ha->nvram->adapter_type = ha->ad_type;
5623 memcpy((char *) ha->nvram->driver_high, IPS_VERSION_HIGH, 4);
5624 memcpy((char *) ha->nvram->driver_low, IPS_VERSION_LOW, 4);
5625 memcpy((char *) ha->nvram->bios_high, ha->bios_version, 4);
5626 memcpy((char *) ha->nvram->bios_low, ha->bios_version + 4, 4);
5628 ha->nvram->versioning = 0; /* Indicate the Driver Does Not Support Versioning */
5639 ha->slot_num = ha->nvram->adapter_slot;
5795 /* Read nvram page 5 from the adapter */
5813 scb->cmd.nvram.op_code = IPS_CMD_RW_NVRAM_PAGE;
5814 scb->cmd.nvram.command_id = IPS_COMMAND_ID(ha, scb);
5815 scb->cmd.nvram.page = 5;
5816 scb->cmd.nvram.write = write;
5817 scb->cmd.nvram.reserved = 0;
5818 scb->cmd.nvram.reserved2 = 0;
5819 scb->data_len = sizeof (*ha->nvram);
5820 scb->cmd.nvram.buffer_addr = ha->ioctl_busaddr;
5822 memcpy(ha->ioctl_data, ha->nvram, sizeof(*ha->nvram));
5830 memset(ha->nvram, 0, sizeof (IPS_NVRAM_P5));
5835 memcpy(ha->nvram, ha->ioctl_data, sizeof(*ha->nvram));
6559 IPS_NVRAM_P5 *nvram;
6562 nvram = ips_ha[0]->nvram;
6564 if (nvram->adapter_order[0]) {
6565 for (i = 1; i <= nvram->adapter_order[0]; i++) {
6570 if (nvram->adapter_order[i] == 'M') {
6580 if (nvram->adapter_order[i] == 'N') {
6590 if (nvram->adapter_order[i] == 'S') {
6603 if (nvram->adapter_order[i] == 'A') {
6972 ha->nvram = kmalloc(sizeof (IPS_NVRAM_P5), GFP_KERNEL);
6974 if (!ha->nvram) {