/linux/fs/afs/ |
H A D | server_list.c | 17 for (i = 0; i < slist->nr_servers; i++) in afs_put_serverlist() 35 int ret = -ENOMEM, nr_servers = 0, newrep = 0, i, j, usable = 0; in afs_alloc_server_list() local 43 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list() 46 nr_servers++; in afs_alloc_server_list() 54 slist = kzalloc(struct_size(slist, servers, nr_servers), GFP_KERNEL); in afs_alloc_server_list() 71 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list() 93 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list() 98 if (j < slist->nr_servers) { in afs_alloc_server_list() 107 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list() 114 slist->nr_servers++; in afs_alloc_server_list() [all …]
|
H A D | vl_list.c | 51 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() 70 for (i = 0; i < vllist->nr_servers; i++) { in afs_put_vlserverlist() 169 int ret = -ENOMEM, nr_servers, i, j; in afs_extract_vlserver_list() local 183 nr_servers = hdr->nr_servers; in afs_extract_vlserver_list() 185 vllist = afs_alloc_vlserver_list(nr_servers); in afs_extract_vlserver_list() 236 for (i = 0; i < previous->nr_servers; i++) { in afs_extract_vlserver_list() 265 if (vllist->nr_servers >= nr_servers) { in afs_extract_vlserver_list() 266 _debug("skip %u >= %u", vllist->nr_servers, nr_servers); in afs_extract_vlserver_list() 295 for (j = 0; j < vllist->nr_servers; j++) { in afs_extract_vlserver_list() [all …]
|
H A D | vl_probe.c | 212 for (i = 0; i < vllist->nr_servers; i++) { in afs_send_vl_probes() 237 _enter("%u,%lx", vllist->nr_servers, untried); in afs_wait_for_vl_probes() 240 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes() 252 waits = kmalloc(array_size(vllist->nr_servers, sizeof(*waits)), GFP_KERNEL); in afs_wait_for_vl_probes() 256 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() 286 for (i = 0; i < vllist->nr_servers; i++) { in afs_wait_for_vl_probes()
|
H A D | rotate.c | 23 for (i = 0; i < op->server_list->nr_servers; i++) in afs_clear_server_states() 49 op->server_states = kcalloc(op->server_list->nr_servers, sizeof(op->server_states[0]), in afs_start_fs_iteration() 58 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_start_fs_iteration() 74 op->untried_servers = (1UL << op->server_list->nr_servers) - 1; in afs_start_fs_iteration() 80 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_start_fs_iteration() 534 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_select_fileserver() 683 for (i = 0; i < op->server_list->nr_servers; i++) { in afs_select_fileserver() 728 sl->nr_servers, sl->vnovol_mask); in afs_dump_edestaddrreq() 729 for (i = 0; i < sl->nr_servers; i++) { in afs_dump_edestaddrreq()
|
H A D | vl_rotate.c | 81 if (!vc->server_list->nr_servers) in afs_start_vl_iteration() 84 vc->untried_servers = (1UL << vc->server_list->nr_servers) - 1; in afs_start_vl_iteration() 216 for (i = 0; i < vc->server_list->nr_servers; i++) { in afs_select_vlserver() 298 for (i = 0; i < vc->server_list->nr_servers; i++) { in afs_select_vlserver() 348 sl->nr_servers, sl->index); in afs_vl_dump_edestaddrreq() 349 for (i = 0; i < sl->nr_servers; i++) { in afs_vl_dump_edestaddrreq()
|
H A D | vlclient.c | 21 u32 nr_servers, vlflags; in afs_deliver_vl_get_entry_by_name_u() local 34 nr_servers = ntohl(uvldb->nServers); in afs_deliver_vl_get_entry_by_name_u() 35 if (nr_servers > AFS_NMAXNSERVERS) in afs_deliver_vl_get_entry_by_name_u() 36 nr_servers = AFS_NMAXNSERVERS; in afs_deliver_vl_get_entry_by_name_u() 44 for (i = 0; i < nr_servers; i++) { in afs_deliver_vl_get_entry_by_name_u() 49 int n = entry->nr_servers; in afs_deliver_vl_get_entry_by_name_u() 73 entry->nr_servers++; in afs_deliver_vl_get_entry_by_name_u()
|
H A D | fs_probe.c | 309 _enter("%u", slist->nr_servers); in afs_wait_for_fs_probes() 311 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes() 323 for (i = 0; i < slist->nr_servers; i++) in afs_wait_for_fs_probes() 330 for (i = 0; i < slist->nr_servers; i++) { in afs_wait_for_fs_probes() 352 for (i = 0; i < slist->nr_servers; i++) in afs_wait_for_fs_probes()
|
H A D | vl_alias.c | 83 while (a < la->nr_servers && b < lb->nr_servers) { in afs_compare_volume_slists()
|
H A D | cell.c | 471 if (vllist->nr_servers > 0 || p->nr_servers == 0) { in afs_update_cell() 604 if (cell->vl_servers->nr_servers) in afs_unuse_cell() 888 if (vllist->nr_servers > 0) in afs_manage_cells()
|
H A D | proc.c | 53 vllist ? vllist->nr_servers : 0, in afs_proc_cells_show() 388 if (pos - 1 >= vllist->nr_servers) in afs_proc_cell_vlservers_start() 404 if (!vllist || pos - 1 >= vllist->nr_servers) in afs_proc_cell_vlservers_next()
|
H A D | callback.c | 167 for (i = 0; i < slist->nr_servers; i++) in afs_break_volume_callback()
|
H A D | addr_list.c | 144 vllist->nr_servers = 1; in afs_parse_text_addrs()
|
H A D | validation.c | 154 for (i = 0; i < slist->nr_servers; i++) { in __afs_is_server_excluded()
|
H A D | internal.h | 486 u8 nr_servers; member 518 u8 nr_servers; /* Number of server records */ member 624 unsigned char nr_servers; member
|
H A D | dir.c | 773 for (i = 0; i < slist->nr_servers; i++) { in afs_server_supports_ibulk()
|
/linux/arch/powerpc/kvm/ |
H A D | book3s_xive.c | 1872 return kvmppc_pack_vcpu_id(xive->kvm, cpu) < xive->nr_servers; in kvmppc_xive_vcpu_id_valid() 1885 xive->vp_base = xive_native_alloc_vp_block(xive->nr_servers); in kvmppc_xive_compute_vp_id() 1886 pr_devel("VP_Base=%x nr_servers=%d\n", xive->vp_base, xive->nr_servers); in kvmppc_xive_compute_vp_id() 2529 u32 nr_servers; in kvmppc_xive_set_nr_servers() local 2532 if (get_user(nr_servers, ubufp)) in kvmppc_xive_set_nr_servers() 2535 pr_devel("%s nr_servers=%u\n", __func__, nr_servers); in kvmppc_xive_set_nr_servers() 2537 if (!nr_servers || nr_servers > KVM_MAX_VCPU_IDS) in kvmppc_xive_set_nr_servers() 2550 else if (nr_servers > KVM_MAX_VCPUS) in kvmppc_xive_set_nr_servers() 2554 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_set_nr_servers() 2556 xive->nr_servers = nr_servers; in kvmppc_xive_set_nr_servers() [all …]
|
H A D | book3s_xive.h | 142 u32 nr_servers; member
|
H A D | book3s_xive_native.c | 1116 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_native_create()
|
/linux/include/uapi/linux/ |
H A D | dns_resolver.h | 88 __u8 nr_servers; /* Number of server records following this */ member
|