Home
last modified time | relevance | path

Searched refs:nr_servers (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/fs/afs/
Dserver_list.c17 for (i = 0; i < slist->nr_servers; i++) in afs_put_serverlist()
34 int ret = -ENOMEM, nr_servers = 0, i, j; in afs_alloc_server_list() local
36 for (i = 0; i < vldb->nr_servers; i++) in afs_alloc_server_list()
38 nr_servers++; in afs_alloc_server_list()
40 slist = kzalloc(struct_size(slist, servers, nr_servers), GFP_KERNEL); in afs_alloc_server_list()
51 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list()
66 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list()
71 if (j < slist->nr_servers) { in afs_alloc_server_list()
80 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list()
84 slist->nr_servers++; in afs_alloc_server_list()
[all …]
Dvl_list.c51 struct afs_vlserver_list *afs_alloc_vlserver_list(unsigned int nr_servers) in afs_alloc_vlserver_list() argument
55 vllist = kzalloc(struct_size(vllist, servers, nr_servers), GFP_KERNEL); in afs_alloc_vlserver_list()
73 for (i = 0; i < vllist->nr_servers; i++) { in afs_put_vlserverlist()
167 int ret = -ENOMEM, nr_servers, i, j; in afs_extract_vlserver_list() local
181 nr_servers = hdr->nr_servers; in afs_extract_vlserver_list()
183 vllist = afs_alloc_vlserver_list(nr_servers); in afs_extract_vlserver_list()
234 for (i = 0; i < previous->nr_servers; i++) { in afs_extract_vlserver_list()
263 if (vllist->nr_servers >= nr_servers) { in afs_extract_vlserver_list()
264 _debug("skip %u >= %u", vllist->nr_servers, nr_servers); in afs_extract_vlserver_list()
293 for (j = 0; j < vllist->nr_servers; j++) { in afs_extract_vlserver_list()
[all …]
Dvl_probe.c194 for (i = 0; i < vllist->nr_servers; i++) { in afs_send_vl_probes()
219 _enter("%u,%lx", vllist->nr_servers, untried); in afs_wait_for_vl_probes()
222 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
234 waits = kmalloc(array_size(vllist->nr_servers, sizeof(*waits)), GFP_KERNEL); in afs_wait_for_vl_probes()
238 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
250 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
268 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
Dvl_rotate.c72 if (!vc->server_list->nr_servers) in afs_start_vl_iteration()
75 vc->untried = (1UL << vc->server_list->nr_servers) - 1; in afs_start_vl_iteration()
192 for (i = 0; i < vc->server_list->nr_servers; i++) { in afs_select_vlserver()
263 for (i = 0; i < vc->server_list->nr_servers; i++) { in afs_select_vlserver()
303 sl->nr_servers, sl->index); in afs_vl_dump_edestaddrreq()
304 for (i = 0; i < sl->nr_servers; i++) { in afs_vl_dump_edestaddrreq()
Dvlclient.c22 u32 tmp, nr_servers, vlflags; in afs_deliver_vl_get_entry_by_name_u() local
35 nr_servers = ntohl(uvldb->nServers); in afs_deliver_vl_get_entry_by_name_u()
36 if (nr_servers > AFS_NMAXNSERVERS) in afs_deliver_vl_get_entry_by_name_u()
37 nr_servers = AFS_NMAXNSERVERS; in afs_deliver_vl_get_entry_by_name_u()
47 for (i = 0; i < nr_servers; i++) { in afs_deliver_vl_get_entry_by_name_u()
55 for (i = 0; i < nr_servers; i++) { in afs_deliver_vl_get_entry_by_name_u()
59 int n = entry->nr_servers; in afs_deliver_vl_get_entry_by_name_u()
86 entry->nr_servers++; in afs_deliver_vl_get_entry_by_name_u()
Dfs_probe.c236 _enter("%u,%lx", slist->nr_servers, untried); in afs_wait_for_fs_probes()
239 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
251 waits = kmalloc(array_size(slist->nr_servers, sizeof(*waits)), GFP_KERNEL); in afs_wait_for_fs_probes()
255 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
267 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
285 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes()
Drotate.c34 op->untried = (1UL << op->server_list->nr_servers) - 1; in afs_start_fs_iteration()
40 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_start_fs_iteration()
341 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_select_fileserver()
447 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_select_fileserver()
489 sl->nr_servers, sl->preferred, sl->vnovol_mask); in afs_dump_edestaddrreq()
490 for (i = 0; i < sl->nr_servers; i++) { in afs_dump_edestaddrreq()
Dvolume.c74 int ret = -ENOMEM, nr_servers = 0, i; in afs_alloc_volume() local
76 for (i = 0; i < vldb->nr_servers; i++) in afs_alloc_volume()
78 nr_servers++; in afs_alloc_volume()
Dvl_alias.c132 while (a < la->nr_servers && b < lb->nr_servers) { in afs_compare_volume_slists()
Dcell.c468 if (vllist->nr_servers > 0 || p->nr_servers == 0) { in afs_update_cell()
604 if (cell->vl_servers->nr_servers) in afs_unuse_cell()
900 if (vllist->nr_servers > 0) in afs_manage_cells()
Dproc.c53 vllist ? vllist->nr_servers : 0, in afs_proc_cells_show()
338 if (pos - 1 >= vllist->nr_servers) in afs_proc_cell_vlservers_start()
354 if (!vllist || pos - 1 >= vllist->nr_servers) in afs_proc_cell_vlservers_next()
Dinternal.h445 u8 nr_servers; member
476 u8 nr_servers; /* Number of server records */ member
551 unsigned char nr_servers; member
Daddr_list.c124 vllist->nr_servers = 1; in afs_parse_text_addrs()
Dinode.c587 for (i = 0; i < slist->nr_servers; i++) { in afs_get_s_break_rcu()
Ddir.c725 for (i = 0; i < slist->nr_servers; i++) { in afs_server_supports_ibulk()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_xive.c1219 return kvmppc_pack_vcpu_id(xive->kvm, cpu) < xive->nr_servers; in kvmppc_xive_vcpu_id_valid()
1232 xive->vp_base = xive_native_alloc_vp_block(xive->nr_servers); in kvmppc_xive_compute_vp_id()
1233 pr_devel("VP_Base=%x nr_servers=%d\n", xive->vp_base, xive->nr_servers); in kvmppc_xive_compute_vp_id()
1869 u32 nr_servers; in kvmppc_xive_set_nr_servers() local
1872 if (get_user(nr_servers, ubufp)) in kvmppc_xive_set_nr_servers()
1875 pr_devel("%s nr_servers=%u\n", __func__, nr_servers); in kvmppc_xive_set_nr_servers()
1877 if (!nr_servers || nr_servers > KVM_MAX_VCPU_ID) in kvmppc_xive_set_nr_servers()
1890 else if (nr_servers > KVM_MAX_VCPUS) in kvmppc_xive_set_nr_servers()
1894 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_set_nr_servers()
1896 xive->nr_servers = nr_servers; in kvmppc_xive_set_nr_servers()
[all …]
Dbook3s_xive.h139 u32 nr_servers; member
Dbook3s_xive_native.c1114 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_native_create()
/kernel/linux/linux-5.10/include/uapi/linux/
Ddns_resolver.h88 __u8 nr_servers; /* Number of server records following this */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Ddns_resolver.h63 __u8 nr_servers; member