• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:nvram

2167 	if ((le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) &&
2168 (le16_to_cpu(ha->nvram->adapter_type) != 0))
2194 if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) {
2195 if (ha->nvram->bios_low[3] == 0) {
2198 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2199 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2200 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2201 ha->nvram->bios_low[2]);
2206 ha->nvram->bios_high[0], ha->nvram->bios_high[1],
2207 ha->nvram->bios_high[2], ha->nvram->bios_high[3],
2208 ha->nvram->bios_low[0], ha->nvram->bios_low[1],
2209 ha->nvram->bios_low[2], ha->nvram->bios_low[3]);
2636 /* write nvram user page 5 */
4529 kfree(ha->nvram);
4530 ha->nvram = NULL;
5880 /* Write OS/Driver version to Page 5 of the nvram on the controller */
5897 if (le32_to_cpu(ha->nvram->signature) != IPS_NVRAM_P5_SIG) {
5900 ips_name, ha->host_num, ha->nvram->signature);
5901 ha->nvram->signature = IPS_NVRAM_P5_SIG;
5906 ips_name, ha->host_num, le16_to_cpu(ha->nvram->adapter_type),
5907 ha->nvram->adapter_slot, ha->nvram->bios_high[0],
5908 ha->nvram->bios_high[1], ha->nvram->bios_high[2],
5909 ha->nvram->bios_high[3], ha->nvram->bios_low[0],
5910 ha->nvram->bios_low[1], ha->nvram->bios_low[2],
5911 ha->nvram->bios_low[3]);
5916 ha->nvram->operating_system = IPS_OS_LINUX;
5917 ha->nvram->adapter_type = ha->ad_type;
5918 strncpy((char *) ha->nvram->driver_high, IPS_VERSION_HIGH, 4);
5919 strncpy((char *) ha->nvram->driver_low, IPS_VERSION_LOW, 4);
5920 strncpy((char *) ha->nvram->bios_high, ha->bios_version, 4);
5921 strncpy((char *) ha->nvram->bios_low, ha->bios_version + 4, 4);
5923 ha->nvram->versioning = 0; /* Indicate the Driver Does Not Support Versioning */
5934 ha->slot_num = ha->nvram->adapter_slot;
6090 /* Read nvram page 5 from the adapter */
6108 scb->cmd.nvram.op_code = IPS_CMD_RW_NVRAM_PAGE;
6109 scb->cmd.nvram.command_id = IPS_COMMAND_ID(ha, scb);
6110 scb->cmd.nvram.page = 5;
6111 scb->cmd.nvram.write = write;
6112 scb->cmd.nvram.reserved = 0;
6113 scb->cmd.nvram.reserved2 = 0;
6114 scb->data_len = sizeof (*ha->nvram);
6115 scb->cmd.nvram.buffer_addr = ha->ioctl_busaddr;
6117 memcpy(ha->ioctl_data, ha->nvram, sizeof(*ha->nvram));
6125 memset(ha->nvram, 0, sizeof (IPS_NVRAM_P5));
6130 memcpy(ha->nvram, ha->ioctl_data, sizeof(*ha->nvram));
6892 IPS_NVRAM_P5 *nvram;
6895 nvram = ips_ha[0]->nvram;
6897 if (nvram->adapter_order[0]) {
6898 for (i = 1; i <= nvram->adapter_order[0]; i++) {
6903 if (nvram->adapter_order[i] == 'M') {
6913 if (nvram->adapter_order[i] == 'N') {
6923 if (nvram->adapter_order[i] == 'S') {
6936 if (nvram->adapter_order[i] == 'A') {
7325 ha->nvram = kmalloc(sizeof (IPS_NVRAM_P5), GFP_KERNEL);
7327 if (!ha->nvram) {