Lines Matching refs:nr
28 struct afs_addr_list *afs_alloc_addrlist(unsigned int nr, in afs_alloc_addrlist() argument
35 _enter("%u,%u,%u", nr, service, port); in afs_alloc_addrlist()
37 if (nr > AFS_MAX_ADDRESSES) in afs_alloc_addrlist()
38 nr = AFS_MAX_ADDRESSES; in afs_alloc_addrlist()
40 alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL); in afs_alloc_addrlist()
45 alist->max_addrs = nr; in afs_alloc_addrlist()
47 for (i = 0; i < nr; i++) { in afs_alloc_addrlist()
73 unsigned int nr = 0; in afs_parse_text_addrs() local
95 nr++; in afs_parse_text_addrs()
118 _debug("%u/%u addresses", nr, AFS_MAX_ADDRESSES); in afs_parse_text_addrs()
129 alist = afs_alloc_addrlist(nr, service, AFS_VL_PORT); in afs_parse_text_addrs()