Lines Matching refs:ownership
489 /* If we took ownership, release ownership */
491 if (vdc->ownership & VDC_OWNERSHIP_GRANTED) {
561 if (vdc->ownership & VDC_OWNERSHIP_WANTED) {
563 vdc->ownership = VDC_OWNERSHIP_NONE;
4777 /* ownership is lost during reset */
4778 if (vdcp->ownership & VDC_OWNERSHIP_WANTED)
4779 vdcp->ownership |= VDC_OWNERSHIP_RESET;
6996 * When we have taken the ownership of a disk, this thread waits to be
6998 * ownership.
7001 * can not be used to do the ownership recovery because it has to be
7002 * running to handle the reply message to the ownership operation.
7014 while (vdc->ownership & VDC_OWNERSHIP_WANTED) {
7016 if ((vdc->ownership & VDC_OWNERSHIP_RESET) ||
7017 !(vdc->ownership & VDC_OWNERSHIP_GRANTED)) {
7019 * There was a reset so the ownership has been lost,
7021 * option so that we don't steal the ownership from
7027 vdc->ownership &= ~(VDC_OWNERSHIP_RESET |
7040 vdc->ownership |= VDC_OWNERSHIP_GRANTED;
7042 DMSG(vdc, 0, "[%d] Fail to recover ownership",
7049 * If we have the ownership then we just wait for an event
7053 if (vdc->ownership & VDC_OWNERSHIP_GRANTED)
7086 vdc->ownership = ownership_flags;
7087 if ((vdc->ownership & VDC_OWNERSHIP_WANTED) &&
7089 /* start ownership thread */
7094 /* notify the ownership thread */
7405 * We have to set VDC_OWNERSHIP_WANTED now so that the ownership