Lines Matching refs:pgid
405 static int cmp_pgid(struct pgid *p1, struct pgid *p2)
413 return memcmp(c1 + 1, c2 + 1, sizeof(struct pgid) - 1);
423 if (cdev->private->pgid[i].inf.ps.state1 == SNID_STATE1_RESET)
426 if (cdev->private->pgid[last].inf.ps.state1 ==
432 if (cmp_pgid(&cdev->private->pgid[i],
433 &cdev->private->pgid[last]) == 0)
438 CIO_MSG_EVENT(0, "SNID - pgid mismatch for device "
445 if (cdev->private->pgid[last].inf.ps.state1 ==
447 /* No previous pgid found */
448 memcpy(&cdev->private->pgid[0], &css[0]->global_pgid,
449 sizeof(struct pgid));
451 /* Use existing pgid */
452 memcpy(&cdev->private->pgid[0], &cdev->private->pgid[last],
453 sizeof(struct pgid));
510 * We used to start here with a sense pgid to find out whether a device
511 * is locked by someone else. Unfortunately, the sense pgid command
514 * timeout (or if sense pgid during path verification detects the device