Lines Matching refs:nvram
2151 if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) &&
2152 (le16_to_cpu(ha->nvram->adapter_type) != 0))
2178 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) {
2179 if (ha->nvram->bios_low[3] == 0) {
2182 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2183 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2184 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2185 ha->nvram->bios_low[2]);
2190 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2191 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2192 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2193 ha->nvram->bios_low[2], ha->nvram->bios_low[3]);
4505 if (ha->nvram) {
4506 kfree(ha->nvram);
4507 ha->nvram = NULL;
5786 if (le32_to_cpu(ha->nvram->signature) != IPS_NVRAM_P5_SIG) {
5789 ips_name, ha->host_num, ha->nvram->signature);
5790 ha->nvram->signature = IPS_NVRAM_P5_SIG;
5795 ips_name, ha->host_num, le16_to_cpu(ha->nvram->adapter_type),
5796 ha->nvram->adapter_slot, ha->nvram->bios_high[0],
5797 ha->nvram->bios_high[1], ha->nvram->bios_high[2],
5798 ha->nvram->bios_high[3], ha->nvram->bios_low[0],
5799 ha->nvram->bios_low[1], ha->nvram->bios_low[2],
5800 ha->nvram->bios_low[3]);
5805 ha->nvram->operating_system = IPS_OS_LINUX;
5806 ha->nvram->adapter_type = ha->ad_type;
5807 strncpy((char *) ha->nvram->driver_high, IPS_VERSION_HIGH, 4);
5808 strncpy((char *) ha->nvram->driver_low, IPS_VERSION_LOW, 4);
5809 strncpy((char *) ha->nvram->bios_high, ha->bios_version, 4);
5810 strncpy((char *) ha->nvram->bios_low, ha->bios_version + 4, 4);
5823 ha->slot_num = ha->nvram->adapter_slot;
5997 scb->cmd.nvram.op_code = IPS_CMD_RW_NVRAM_PAGE;
5998 scb->cmd.nvram.command_id = IPS_COMMAND_ID(ha, scb);
5999 scb->cmd.nvram.page = 5;
6000 scb->cmd.nvram.write = write;
6001 scb->cmd.nvram.reserved = 0;
6002 scb->cmd.nvram.reserved2 = 0;
6003 scb->data_len = sizeof (*ha->nvram);
6004 scb->cmd.nvram.buffer_addr = ha->ioctl_busaddr;
6006 memcpy(ha->ioctl_data, ha->nvram, sizeof(*ha->nvram));
6014 memset(ha->nvram, 0, sizeof (IPS_NVRAM_P5));
6019 memcpy(ha->nvram, ha->ioctl_data, sizeof(*ha->nvram));
6758 memcpy(BiosVersion, ha->nvram->BiosCompatibilityID,
6785 (FirmwareVersion, Compatable[ha->nvram->adapter_type],
6792 ha->nvram->versioning = 1; /* Indicate the Driver Supports Versioning */
6795 ha->nvram->version_mismatch = 1;
6797 strncpy(&BiosString[0], ha->nvram->bios_high, 4);
6798 strncpy(&BiosString[4], ha->nvram->bios_low, 4);
6814 ha->nvram->version_mismatch = 0;
6910 IPS_NVRAM_P5 *nvram; local
6913 nvram = ips_ha[0]->nvram;
6915 if (nvram->adapter_order[0]) {
6916 for (i = 1; i <= nvram->adapter_order[0]; i++) {
6921 if (nvram->adapter_order[i] == 'M') {
6931 if (nvram->adapter_order[i] == 'N') {
6941 if (nvram->adapter_order[i] == 'S') {
6954 if (nvram->adapter_order[i] == 'A') {
7343 ha->nvram = kmalloc(sizeof (IPS_NVRAM_P5), GFP_KERNEL);
7345 if (!ha->nvram) {