Lines Matching refs:newDevice
2180 discoveredDevice *discoveredLU, *newDevice;
2316 newDevice = (discoveredDevice *)calloc(1,
2319 if (newDevice == NULL) {
2323 newDevice->next = LUList; /* insert at head */
2324 LUList = newDevice; /* set new head */
2327 (void *) strlcpy(newDevice->OSDeviceName,
2329 sizeof (newDevice->OSDeviceName));
2337 newDevice->HBAPortList = (portList *)calloc(1,
2339 if (newDevice->HBAPortList == NULL) {
2343 (void) strlcpy(newDevice->HBAPortList->portName,
2344 portName, sizeof (newDevice->HBAPortList->portName));
2346 newDevice->HBAPortList->tgtPortWWN =
2348 if (newDevice->HBAPortList->tgtPortWWN == NULL) {
2353 (void *) memcpy((void *)&(newDevice->HBAPortList->\
2357 newDevice->HBAPortList->tgtPortWWN->scsiOSLun =
2384 newDevice->VID[0] = '\0';
2385 newDevice->PID[0] = '\0';
2386 newDevice->dType = DTYPE_UNKNOWN;
2388 newDevice->inquiryFailed = B_TRUE;
2391 (void *) memcpy(newDevice->VID, inq.inq_vid,
2392 sizeof (newDevice->VID));
2393 (void *) memcpy(newDevice->PID, inq.inq_pid,
2394 sizeof (newDevice->PID));
2395 newDevice->dType = inq.inq_dtype;
2397 newDevice->inquiryFailed = B_FALSE;