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