• Home
  • Raw
  • Download

Lines Matching refs:peer_device

132 			struct drbd_peer_device *peer_device;  in remember_old_state()  local
134 peer_device = conn_peer_device(connection, device->vnr); in remember_old_state()
135 peer_device_state_change->peer_device = peer_device; in remember_old_state()
196 peer_device_state_change->peer_device->device; in remember_new_state()
296 struct drbd_peer_device *peer_device; in conn_all_vols_unconf() local
301 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_all_vols_unconf()
302 struct drbd_device *device = peer_device->device; in conn_all_vols_unconf()
338 struct drbd_peer_device *peer_device; in conn_highest_role() local
342 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_highest_role()
343 struct drbd_device *device = peer_device->device; in conn_highest_role()
354 struct drbd_peer_device *peer_device; in conn_highest_peer() local
358 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_highest_peer()
359 struct drbd_device *device = peer_device->device; in conn_highest_peer()
370 struct drbd_peer_device *peer_device; in conn_highest_disk() local
374 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_highest_disk()
375 struct drbd_device *device = peer_device->device; in conn_highest_disk()
386 struct drbd_peer_device *peer_device; in conn_lowest_disk() local
390 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_lowest_disk()
391 struct drbd_device *device = peer_device->device; in conn_lowest_disk()
402 struct drbd_peer_device *peer_device; in conn_highest_pdsk() local
406 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_highest_pdsk()
407 struct drbd_device *device = peer_device->device; in conn_highest_pdsk()
418 struct drbd_peer_device *peer_device; in conn_lowest_conn() local
422 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_lowest_conn()
423 struct drbd_device *device = peer_device->device; in conn_lowest_conn()
433 struct drbd_peer_device *peer_device; in no_peer_wf_report_params() local
438 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) in no_peer_wf_report_params()
439 if (peer_device->device->state.conn == C_WF_REPORT_PARAMS) { in no_peer_wf_report_params()
450 struct drbd_peer_device *peer_device; in wake_up_all_devices() local
454 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) in wake_up_all_devices()
455 wake_up(&peer_device->device->state_wait); in wake_up_all_devices()
1225 static void set_ov_position(struct drbd_peer_device *peer_device, enum drbd_conns cs) in set_ov_position() argument
1227 struct drbd_device *device = peer_device->device; in set_ov_position()
1229 if (peer_device->connection->agreed_pro_version < 90) in set_ov_position()
1266 struct drbd_peer_device *peer_device = first_peer_device(device); in _drbd_set_state() local
1267 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in _drbd_set_state()
1392 set_ov_position(peer_device, ns.conn); in _drbd_set_state()
1403 drbd_rs_controller_reset(peer_device); in _drbd_set_state()
1525 struct drbd_peer_device *peer_device) in drbd_bitmap_io_from_worker() argument
1535 rv = io_fn(device, peer_device); in drbd_bitmap_io_from_worker()
1591 struct drbd_peer_device *peer_device = p->peer_device; in notify_peer_device_state_change() local
1600 return notify_peer_device_state(skb, seq, peer_device, &peer_device_info, type); in notify_peer_device_state_change()
1709 struct drbd_peer_device *peer_device = first_peer_device(device); in after_state_ch() local
1710 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in after_state_ch()
1761 struct drbd_peer_device *peer_device; in after_state_ch() local
1765 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) in after_state_ch()
1766 clear_bit(NEW_CUR_UUID, &peer_device->device->flags); in after_state_ch()
1791 drbd_gen_and_send_sync_uuid(peer_device); in after_state_ch()
1805 drbd_send_uuids(peer_device); in after_state_ch()
1806 drbd_send_state(peer_device, ns); in after_state_ch()
1815 BM_LOCKED_TEST_ALLOWED, peer_device); in after_state_ch()
1826 drbd_send_uuids(peer_device); in after_state_ch()
1837 drbd_send_uuids(peer_device); in after_state_ch()
1845 "demote diskless peer", BM_LOCKED_SET_ALLOWED, peer_device); in after_state_ch()
1857 "demote", BM_LOCKED_TEST_ALLOWED, peer_device); in after_state_ch()
1864 drbd_send_sizes(peer_device, 0, 0); /* to start sync... */ in after_state_ch()
1865 drbd_send_uuids(peer_device); in after_state_ch()
1866 drbd_send_state(peer_device, ns); in after_state_ch()
1873 drbd_send_state(peer_device, ns); in after_state_ch()
1883 drbd_send_state(peer_device, ns); in after_state_ch()
1886 drbd_send_state(peer_device, ns); in after_state_ch()
1895 peer_device); in after_state_ch()
1945 drbd_send_state(peer_device, ns); in after_state_ch()
1969 drbd_send_state(peer_device, ns); in after_state_ch()
1977 drbd_send_state(peer_device, ns); in after_state_ch()
1995 drbd_send_state(peer_device, ns); in after_state_ch()
2002 drbd_send_state(peer_device, ns); in after_state_ch()
2019 peer_device); in after_state_ch()
2050 struct drbd_peer_device *peer_device; in w_after_conn_state_ch() local
2065 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) in w_after_conn_state_ch()
2066 notify_peer_device_state(NULL, 0, peer_device, NULL, in w_after_conn_state_ch()
2086 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in w_after_conn_state_ch()
2087 struct drbd_device *device = peer_device->device; in w_after_conn_state_ch()
2112 struct drbd_peer_device *peer_device; in conn_old_common_state() local
2123 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_old_common_state()
2124 struct drbd_device *device = peer_device->device; in conn_old_common_state()
2161 struct drbd_peer_device *peer_device; in conn_is_valid_transition() local
2165 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_is_valid_transition()
2166 struct drbd_device *device = peer_device->device; in conn_is_valid_transition()
2210 struct drbd_peer_device *peer_device; in conn_set_state() local
2225 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_set_state()
2226 struct drbd_device *device = peer_device->device; in conn_set_state()