Lines Matching refs:alist

27 	const struct afs_addr_list *alist;  in afs_find_server()  local
43 alist = rcu_dereference(server->addresses); in afs_find_server()
44 for (i = alist->nr_ipv4; i < alist->nr_addrs; i++) { in afs_find_server()
45 b = &alist->addrs[i].transport.sin6; in afs_find_server()
59 alist = rcu_dereference(server->addresses); in afs_find_server()
60 for (i = 0; i < alist->nr_ipv4; i++) { in afs_find_server()
61 b = &alist->addrs[i].transport.sin; in afs_find_server()
140 const struct afs_addr_list *alist; in afs_install_server() local
191 alist = rcu_dereference_protected(server->addresses, in afs_install_server()
202 if (alist->nr_ipv4 > 0) in afs_install_server()
204 if (alist->nr_addrs > alist->nr_ipv4) in afs_install_server()
220 struct afs_addr_list *alist) in afs_alloc_server() argument
234 RCU_INIT_POINTER(server->addresses, alist); in afs_alloc_server()
235 server->addr_version = alist->version; in afs_alloc_server()
262 struct afs_addr_list *alist = NULL; in afs_vl_lookup_addrs() local
269 alist = afs_yfsvl_get_endpoints(&vc, uuid); in afs_vl_lookup_addrs()
271 alist = afs_vl_get_addrs_u(&vc, uuid); in afs_vl_lookup_addrs()
277 return ret < 0 ? ERR_PTR(ret) : alist; in afs_vl_lookup_addrs()
286 struct afs_addr_list *alist; in afs_lookup_server() local
298 alist = afs_vl_lookup_addrs(cell, key, uuid); in afs_lookup_server()
299 if (IS_ERR(alist)) in afs_lookup_server()
300 return ERR_CAST(alist); in afs_lookup_server()
302 candidate = afs_alloc_server(cell, uuid, alist); in afs_lookup_server()
304 afs_put_addrlist(alist); in afs_lookup_server()
310 afs_put_addrlist(alist); in afs_lookup_server()
453 struct afs_addr_list *alist = rcu_access_pointer(server->addresses); in afs_give_up_callbacks() local
455 .alist = alist, in afs_give_up_callbacks()
456 .index = alist->preferred, in afs_give_up_callbacks()
632 struct afs_addr_list *alist, *discard; in afs_update_server_record() local
639 alist = afs_vl_lookup_addrs(op->volume->cell, op->key, &server->uuid); in afs_update_server_record()
640 if (IS_ERR(alist)) { in afs_update_server_record()
641 if ((PTR_ERR(alist) == -ERESTARTSYS || in afs_update_server_record()
642 PTR_ERR(alist) == -EINTR) && in afs_update_server_record()
648 op->error = PTR_ERR(alist); in afs_update_server_record()
653 discard = alist; in afs_update_server_record()
654 if (server->addr_version != alist->version) { in afs_update_server_record()
658 rcu_assign_pointer(server->addresses, alist); in afs_update_server_record()
659 server->addr_version = alist->version; in afs_update_server_record()