Lines Matching refs:p_uuid
3021 peer = device->p_uuid[UI_BITMAP] & 1; in drbd_asb_recover_0p()
3023 ch_peer = device->p_uuid[UI_SIZE]; in drbd_asb_recover_0p()
3239 peer = device->p_uuid[UI_CURRENT] & ~((u64)1); in drbd_uuid_compare()
3258 if (device->p_uuid[UI_BITMAP] == (u64)0 && device->ldev->md.uuid[UI_BITMAP] != (u64)0) { in drbd_uuid_compare()
3263 …if ((device->ldev->md.uuid[UI_BITMAP] & ~((u64)1)) == (device->p_uuid[UI_HISTORY_START] & ~((u64)1… in drbd_uuid_compare()
3264 …(device->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1)) == (device->p_uuid[UI_HISTORY_START + 1] & ~… in drbd_uuid_compare()
3281 if (device->ldev->md.uuid[UI_BITMAP] == (u64)0 && device->p_uuid[UI_BITMAP] != (u64)0) { in drbd_uuid_compare()
3286 …if ((device->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1)) == (device->p_uuid[UI_BITMAP] & ~((u64)1… in drbd_uuid_compare()
3287 …(device->ldev->md.uuid[UI_HISTORY_START + 1] & ~((u64)1)) == (device->p_uuid[UI_HISTORY_START] & ~… in drbd_uuid_compare()
3290 device->p_uuid[UI_HISTORY_START + 1] = device->p_uuid[UI_HISTORY_START]; in drbd_uuid_compare()
3291 device->p_uuid[UI_HISTORY_START] = device->p_uuid[UI_BITMAP]; in drbd_uuid_compare()
3292 device->p_uuid[UI_BITMAP] = 0UL; in drbd_uuid_compare()
3294 … drbd_uuid_dump(device, "peer", device->p_uuid, device->p_uuid[UI_SIZE], device->p_uuid[UI_FLAGS]); in drbd_uuid_compare()
3306 (device->p_uuid[UI_FLAGS] & 2); in drbd_uuid_compare()
3353 peer = device->p_uuid[UI_BITMAP] & ~((u64)1); in drbd_uuid_compare()
3358 peer = device->p_uuid[UI_HISTORY_START] & ~((u64)1); in drbd_uuid_compare()
3362 (device->p_uuid[UI_HISTORY_START + 1] & ~((u64)1)) : in drbd_uuid_compare()
3363 peer + UUID_NEW_BM_OFFSET == (device->p_uuid[UI_BITMAP] & ~((u64)1))) { in drbd_uuid_compare()
3370 device->p_uuid[UI_BITMAP] = device->p_uuid[UI_HISTORY_START]; in drbd_uuid_compare()
3371 device->p_uuid[UI_HISTORY_START] = device->p_uuid[UI_HISTORY_START + 1]; in drbd_uuid_compare()
3374 … drbd_uuid_dump(device, "peer", device->p_uuid, device->p_uuid[UI_SIZE], device->p_uuid[UI_FLAGS]); in drbd_uuid_compare()
3383 peer = device->p_uuid[i] & ~((u64)1); in drbd_uuid_compare()
3390 peer = device->p_uuid[UI_CURRENT] & ~((u64)1); in drbd_uuid_compare()
3399 (device->p_uuid[UI_HISTORY_START] & ~((u64)1)) : in drbd_uuid_compare()
3420 peer = device->p_uuid[UI_CURRENT] & ~((u64)1); in drbd_uuid_compare()
3429 peer = device->p_uuid[UI_BITMAP] & ~((u64)1); in drbd_uuid_compare()
3437 peer = device->p_uuid[j] & ~((u64)1); in drbd_uuid_compare()
3467 drbd_uuid_dump(device, "peer", device->p_uuid, in drbd_sync_handshake()
3468 device->p_uuid[UI_SIZE], device->p_uuid[UI_FLAGS]); in drbd_sync_handshake()
3542 if (test_bit(DISCARD_MY_DATA, &device->flags) && !(device->p_uuid[UI_FLAGS]&1)) in drbd_sync_handshake()
3544 if (!test_bit(DISCARD_MY_DATA, &device->flags) && (device->p_uuid[UI_FLAGS]&1)) in drbd_sync_handshake()
4237 u64 *p_uuid; in receive_uuids() local
4245 p_uuid = kmalloc_array(UI_EXTENDED_SIZE, sizeof(*p_uuid), GFP_NOIO); in receive_uuids()
4246 if (!p_uuid) in receive_uuids()
4250 p_uuid[i] = be64_to_cpu(p->uuid[i]); in receive_uuids()
4252 kfree(device->p_uuid); in receive_uuids()
4253 device->p_uuid = p_uuid; in receive_uuids()
4258 (device->ed_uuid & ~((u64)1)) != (p_uuid[UI_CURRENT] & ~((u64)1))) { in receive_uuids()
4270 (p_uuid[UI_FLAGS] & 8); in receive_uuids()
4276 _drbd_uuid_set(device, UI_CURRENT, p_uuid[UI_CURRENT]); in receive_uuids()
4288 updated_uuids = drbd_set_ed_uuid(device, p_uuid[UI_CURRENT]); in receive_uuids()
4298 updated_uuids |= drbd_set_ed_uuid(device, p_uuid[UI_CURRENT]); in receive_uuids()
4413 real_peer_disk = device->p_uuid[UI_FLAGS] & 4 ? D_INCONSISTENT : D_CONSISTENT; in receive_state()
4500 if (device->p_uuid && peer_state.disk >= D_NEGOTIATING && in receive_state()
5209 kfree(device->p_uuid); in drbd_disconnected()
5210 device->p_uuid = NULL; in drbd_disconnected()