Home
last modified time | relevance | path

Searched refs:n_connections (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/block/drbd/
Ddrbd_state.c55 unsigned int *n_connections) in count_objects() argument
62 *n_connections = 0; in count_objects()
67 (*n_connections)++; in count_objects()
70 …rbd_state_change *alloc_state_change(unsigned int n_devices, unsigned int n_connections, gfp_t gfp) in alloc_state_change() argument
77 n_connections * sizeof(struct drbd_connection_state_change) + in alloc_state_change()
78 n_devices * n_connections * sizeof(struct drbd_peer_device_state_change); in alloc_state_change()
83 state_change->n_connections = n_connections; in alloc_state_change()
86 state_change->peer_devices = (void *)&state_change->connections[n_connections]; in alloc_state_change()
90 for (n = 0; n < n_connections; n++) in alloc_state_change()
101 unsigned int n_connections; in remember_old_state() local
[all …]
Ddrbd_state_change.h36 unsigned int n_connections; member
Ddrbd_nl.c4860 state_change->n_connections + in notifications_for_state_change()
4862 state_change->n_devices * state_change->n_connections; in notifications_for_state_change()
4891 if (n < state_change->n_connections) { in get_initial_state()
4896 n -= state_change->n_connections; in get_initial_state()
4903 if (n < state_change->n_devices * state_change->n_connections) { in get_initial_state()