Lines Matching refs:peer_device
412 struct drbd_peer_device *peer_device; in highest_fencing_policy() local
416 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in highest_fencing_policy()
417 struct drbd_device *device = peer_device->device; in highest_fencing_policy()
420 rcu_dereference(peer_device->device->ldev->disk_conf); in highest_fencing_policy()
431 peer_device = idr_get_next(&connection->peer_devices, &vnr); in highest_fencing_policy()
432 drbd_change_state(peer_device->device, CS_VERBOSE | CS_HARD, NS(susp_fen, 0)); in highest_fencing_policy()
565 struct drbd_peer_device *const peer_device = first_peer_device(device); in drbd_set_role() local
566 struct drbd_connection *const connection = peer_device ? peer_device->connection : NULL; in drbd_set_role()
694 drbd_send_uuids(peer_device); in drbd_set_role()
695 drbd_send_current_state(peer_device); in drbd_set_role()
1426 struct drbd_peer_device *peer_device; in drbd_adm_disk_opts() local
1428 for_each_peer_device(peer_device, device) in drbd_adm_disk_opts()
1429 drbd_send_sync_param(peer_device); in drbd_adm_disk_opts()
1456 struct drbd_peer_device *peer_device; in drbd_adm_attach() local
1480 peer_device = first_peer_device(device); in drbd_adm_attach()
1481 connection = peer_device ? peer_device->connection : NULL; in drbd_adm_attach()
1960 struct drbd_peer_device *peer_device; in conn_resync_running() local
1965 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_resync_running()
1966 struct drbd_device *device = peer_device->device; in conn_resync_running()
1982 struct drbd_peer_device *peer_device; in conn_ov_running() local
1987 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_ov_running()
1988 struct drbd_device *device = peer_device->device; in conn_ov_running()
2003 struct drbd_peer_device *peer_device; in _check_net_options() local
2026 idr_for_each_entry(&connection->peer_devices, peer_device, i) { in _check_net_options()
2027 struct drbd_device *device = peer_device->device; in _check_net_options()
2048 struct drbd_peer_device *peer_device; in check_net_options() local
2056 idr_for_each_entry(&connection->peer_devices, peer_device, i) { in check_net_options()
2057 struct drbd_device *device = peer_device->device; in check_net_options()
2225 struct drbd_peer_device *peer_device; in drbd_adm_net_opts() local
2228 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) in drbd_adm_net_opts()
2229 drbd_send_sync_param(peer_device); in drbd_adm_net_opts()
2251 struct drbd_peer_device *peer_device; in drbd_adm_connect() local
2353 idr_for_each_entry(&connection->peer_devices, peer_device, i) { in drbd_adm_connect()
2354 struct drbd_device *device = peer_device->device; in drbd_adm_connect()
3573 struct drbd_peer_device *peer_device; in drbd_adm_down() local
3575 idr_for_each_entry(&connection->peer_devices, peer_device, i) { in drbd_adm_down()
3576 retcode = drbd_set_role(peer_device->device, R_SECONDARY, 0); in drbd_adm_down()