Lines Matching refs:disk_state
127 device_state_change->disk_state[OLD] = device->state.disk; in remember_old_state()
136 peer_device_state_change->disk_state[OLD] = in remember_old_state()
178 device_state_change->disk_state[NEW] = device->state.disk; in remember_new_state()
199 peer_device_state_change->disk_state[NEW] = state.pdsk; in remember_new_state()
236 OLD_TO_NEW(device_state_change->disk_state); in copy_old_to_new_state_change()
244 OLD_TO_NEW(p->disk_state); in copy_old_to_new_state_change()
369 enum drbd_disk_state disk_state = D_DISKLESS; in conn_highest_disk() local
376 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.disk); in conn_highest_disk()
380 return disk_state; in conn_highest_disk()
385 enum drbd_disk_state disk_state = D_MASK; in conn_lowest_disk() local
392 disk_state = min_t(enum drbd_disk_state, disk_state, device->state.disk); in conn_lowest_disk()
396 return disk_state; in conn_lowest_disk()
401 enum drbd_disk_state disk_state = D_DISKLESS; in conn_highest_pdsk() local
408 disk_state = max_t(enum drbd_disk_state, disk_state, device->state.pdsk); in conn_highest_pdsk()
412 return disk_state; in conn_highest_pdsk()
1577 .dev_disk_state = device_state_change->disk_state[NEW], in notify_device_state_change()
1591 .peer_disk_state = p->disk_state[NEW], in notify_peer_device_state_change()
1646 if (HAS_CHANGED(device_state_change->disk_state)) in broadcast_state_change()
1656 if (HAS_CHANGED(p->disk_state) || in broadcast_state_change()