Lines Matching refs:R_PRIMARY
3017 if (device->state.peer != R_PRIMARY in receive_DataRequest()
3158 if (hg == 1 && device->state.role == R_PRIMARY) in drbd_asb_recover_1p()
3165 return device->state.role == R_PRIMARY ? 1 : -1; in drbd_asb_recover_1p()
3168 if (hg == -1 && device->state.role == R_PRIMARY) { in drbd_asb_recover_1p()
3358 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { in drbd_uuid_compare()
3364 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { in drbd_uuid_compare()
3371 if (device->state.role == R_PRIMARY) in drbd_uuid_compare()
3551 int pcount = (device->state.role == R_PRIMARY) in drbd_sync_handshake()
3552 + (peer_role == R_PRIMARY); in drbd_sync_handshake()
3606 device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) { in drbd_sync_handshake()
4225 } else if (new_size < cur_size && device->state.role == R_PRIMARY) { in receive_sizes()
4303 device->state.role == R_PRIMARY && in receive_uuids()
4331 device->state.role == R_PRIMARY) { in receive_uuids()
5196 if (conn_highest_role(connection) == R_PRIMARY && conn_highest_pdsk(connection) >= D_UNKNOWN) in conn_disconnect()