Lines Matching refs:drbd_disk_state
367 enum drbd_disk_state conn_highest_disk(struct drbd_connection *connection) in conn_highest_disk()
369 enum drbd_disk_state disk_state = D_DISKLESS; in conn_highest_disk()
376 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.disk); in conn_highest_disk()
383 enum drbd_disk_state conn_lowest_disk(struct drbd_connection *connection) in conn_lowest_disk()
385 enum drbd_disk_state disk_state = D_MASK; in conn_lowest_disk()
392 disk_state = min_t(enum drbd_disk_state, disk_state, device->state.disk); in conn_lowest_disk()
399 enum drbd_disk_state conn_highest_pdsk(struct drbd_connection *connection) in conn_highest_pdsk()
401 enum drbd_disk_state disk_state = D_DISKLESS; in conn_highest_pdsk()
408 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.pdsk); in conn_highest_pdsk()
1056 enum drbd_disk_state disk_min, disk_max, pdsk_min, pdsk_max; in sanitize_state()
1681 static bool lost_contact_to_peer_data(enum drbd_disk_state os, enum drbd_disk_state ns) in lost_contact_to_peer_data()
2245 ns_max.disk = max_t(enum drbd_disk_state, ns.disk, ns_max.disk); in conn_set_state()
2246 ns_max.pdsk = max_t(enum drbd_disk_state, ns.pdsk, ns_max.pdsk); in conn_set_state()
2251 ns_min.disk = min_t(enum drbd_disk_state, ns.disk, ns_min.disk); in conn_set_state()
2252 ns_min.pdsk = min_t(enum drbd_disk_state, ns.pdsk, ns_min.pdsk); in conn_set_state()