Lines Matching refs:n_connections
43 unsigned int *n_connections) in count_objects() argument
50 *n_connections = 0; in count_objects()
55 (*n_connections)++; in count_objects()
58 …rbd_state_change *alloc_state_change(unsigned int n_devices, unsigned int n_connections, gfp_t gfp) in alloc_state_change() argument
65 n_connections * sizeof(struct drbd_connection_state_change) + in alloc_state_change()
66 n_devices * n_connections * sizeof(struct drbd_peer_device_state_change); in alloc_state_change()
71 state_change->n_connections = n_connections; in alloc_state_change()
74 state_change->peer_devices = (void *)&state_change->connections[n_connections]; in alloc_state_change()
78 for (n = 0; n < n_connections; n++) in alloc_state_change()
89 unsigned int n_connections; in remember_old_state() local
98 count_objects(resource, &n_devices, &n_connections); in remember_old_state()
99 state_change = alloc_state_change(n_devices, n_connections, gfp); in remember_old_state()
181 for (n = 0; n < state_change->n_connections; n++) { in remember_new_state()
192 for (n = 0; n < state_change->n_devices * state_change->n_connections; n++) { in remember_new_state()
224 for (n_connection = 0; n_connection < state_change->n_connections; n_connection++) { in copy_old_to_new_state_change()
239 n_peer_devices = state_change->n_devices * state_change->n_connections; in copy_old_to_new_state_change()
269 for (n = 0; n < state_change->n_connections; n++) { in forget_state_change()
1639 for (n_connection = 0; n_connection < state_change->n_connections; n_connection++) { in broadcast_state_change()
1658 n_peer_devices = state_change->n_devices * state_change->n_connections; in broadcast_state_change()