Lines Matching refs:nb_peers
111 int nb_peers; /* space in @peers[] */ member
195 if (dest >= s->nb_peers) { in ivshmem_io_write()
387 assert(posn >= 0 && posn < s->nb_peers); in close_peer_eventfds()
406 static void resize_peers(IVShmemState *s, int nb_peers) in resize_peers() argument
408 int old_nb_peers = s->nb_peers; in resize_peers()
411 assert(nb_peers > old_nb_peers); in resize_peers()
412 IVSHMEM_DPRINTF("bumping storage to %d peers\n", nb_peers); in resize_peers()
414 s->peers = g_renew(Peer, s->peers, nb_peers); in resize_peers()
415 s->nb_peers = nb_peers; in resize_peers()
417 for (i = old_nb_peers; i < nb_peers; i++) { in resize_peers()
511 if (posn >= s->nb_peers || posn == s->vm_id) { in process_msg_disconnect()
565 if (msg >= s->nb_peers) { in process_msg()
947 for (i = 0; i < s->nb_peers; i++) { in ivshmem_exit()