Lines Matching refs:R_PRIMARY
2980 if (device->state.peer != R_PRIMARY in receive_DataRequest()
3120 if (hg == 1 && device->state.role == R_PRIMARY) in drbd_asb_recover_1p()
3127 return device->state.role == R_PRIMARY ? 1 : -1; in drbd_asb_recover_1p()
3130 if (hg == -1 && device->state.role == R_PRIMARY) { in drbd_asb_recover_1p()
3321 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { in drbd_uuid_compare()
3327 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { in drbd_uuid_compare()
3334 if (device->state.role == R_PRIMARY) in drbd_uuid_compare()
3514 int pcount = (device->state.role == R_PRIMARY) in drbd_sync_handshake()
3515 + (peer_role == R_PRIMARY); in drbd_sync_handshake()
3569 device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) { in drbd_sync_handshake()
4181 } else if (new_size < cur_size && device->state.role == R_PRIMARY) { in receive_sizes()
4257 device->state.role == R_PRIMARY && in receive_uuids()
4285 device->state.role == R_PRIMARY) { in receive_uuids()
5148 if (conn_highest_role(connection) == R_PRIMARY && conn_highest_pdsk(connection) >= D_UNKNOWN) in conn_disconnect()