Home
last modified time | relevance | path

Searched refs:n_connections (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/block/drbd/
H A Ddrbd_state.c43 unsigned int *n_connections) in count_objects()
50 *n_connections = 0; in count_objects()
55 (*n_connections)++; in count_objects()
58 static struct drbd_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; in alloc_state_change()
41 count_objects(struct drbd_resource *resource, unsigned int *n_devices, unsigned int *n_connections) count_objects() argument
89 unsigned int n_connections; remember_old_state() local
[all...]
H A Ddrbd_state_change.h36 unsigned int n_connections; member
H A Ddrbd_nl.c4906 state_change->n_connections + in notifications_for_state_change()
4908 state_change->n_devices * state_change->n_connections; in notifications_for_state_change()
4938 if (n < state_change->n_connections) { in get_initial_state()
4943 n -= state_change->n_connections; in get_initial_state()
4950 if (n < state_change->n_devices * state_change->n_connections) { in get_initial_state()
/kernel/linux/linux-6.6/drivers/block/drbd/
H A Ddrbd_state.c43 unsigned int *n_connections) in count_objects()
50 *n_connections = 0; in count_objects()
55 (*n_connections)++; in count_objects()
58 static struct drbd_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; in alloc_state_change()
41 count_objects(struct drbd_resource *resource, unsigned int *n_devices, unsigned int *n_connections) count_objects() argument
89 unsigned int n_connections; remember_old_state() local
[all...]
H A Ddrbd_state_change.h36 unsigned int n_connections; member
H A Ddrbd_nl.c4850 state_change->n_connections + in notifications_for_state_change()
4852 state_change->n_devices * state_change->n_connections; in notifications_for_state_change()
4882 if (n < state_change->n_connections) { in get_initial_state()
4887 n -= state_change->n_connections; in get_initial_state()
4894 if (n < state_change->n_devices * state_change->n_connections) { in get_initial_state()

Completed in 16 milliseconds