Lines Matching refs:new_hba

366 	struct sun_sas_hba	*new_hba, *hba_ptr;
404 if ((new_hba = (struct sun_sas_hba *)calloc(1,
411 (void) strlcpy(new_hba->device_path, hbaDevpath,
412 sizeof (new_hba->device_path));
415 (void) snprintf(new_hba->adapter_attributes.HBASymbolicName,
416 sizeof (new_hba->adapter_attributes.HBASymbolicName),
417 "%s%s", DEVICES_DIR, new_hba->device_path);
422 (void) strlcpy(new_hba->adapter_attributes.Manufacturer,
424 sizeof (new_hba->adapter_attributes.Manufacturer));
426 (void) strlcpy(new_hba->adapter_attributes.Manufacturer,
428 sizeof (new_hba->adapter_attributes.Manufacturer));
434 new_hba->adapter_attributes.SerialNumber[0] = '\0';
436 (void) strlcpy(new_hba->adapter_attributes.SerialNumber,
438 sizeof (new_hba->adapter_attributes.SerialNumber));
444 new_hba->adapter_attributes.Model[0] = '\0';
446 (void) strlcpy(new_hba->adapter_attributes.Model,
448 sizeof (new_hba->adapter_attributes.Model));
456 "firmware-version", new_hba->device_path);
458 (void) strlcpy(new_hba->adapter_attributes.FirmwareVersion,
460 sizeof (new_hba->adapter_attributes.FirmwareVersion));
468 "hardware-version", new_hba->device_path);
470 (void) strlcpy(new_hba->adapter_attributes.HardwareVersion,
472 sizeof (new_hba->adapter_attributes.HardwareVersion));
480 "driver-version", new_hba->device_path);
482 (void) strlcpy(new_hba->adapter_attributes.DriverVersion,
484 sizeof (new_hba->adapter_attributes.DriverVersion));
496 new_hba->adapter_attributes.OptionROMVersion[0] = '\0';
497 new_hba->adapter_attributes.RedundantOptionROMVersion[0] = '\0';
498 new_hba->adapter_attributes.RedundantFirmwareVersion[0] = '\0';
499 new_hba->adapter_attributes.VendorSpecificID = 0;
502 (void) strlcpy(new_hba->adapter_attributes.DriverName,
504 sizeof (new_hba->adapter_attributes.DriverName));
508 new_hba->device_path);
516 (void) snprintf(new_hba->handle_name, HANDLE_NAME_LENGTH, "%s-%s-%d",
517 "SUNW", new_hba->adapter_attributes.DriverName, hba_instance);
522 new_hba->device_path);
524 new_hba->index = hba_count++;
535 new_hba->open_handles =
540 new_hba->next = global_hba_head;
541 global_hba_head = new_hba;
543 global_hba_head = new_hba;
557 if (add_hba_port_info(portNode, new_hba, protocol)
559 S_FREE(new_hba->first_port);
560 S_FREE(new_hba);
566 new_hba->index = hba_count++;
577 new_hba->open_handles = global_hba_head->open_handles;
581 new_hba->next = global_hba_head;
582 global_hba_head = new_hba;
584 global_hba_head = new_hba;