Home
last modified time | relevance | path

Searched refs:alist (Results 1 – 19 of 19) sorted by relevance

/Linux-v4.19/fs/afs/
Daddr_list.c28 void afs_put_addrlist(struct afs_addr_list *alist) in afs_put_addrlist() argument
30 if (alist && refcount_dec_and_test(&alist->usage)) in afs_put_addrlist()
31 call_rcu(&alist->rcu, (rcu_callback_t)kfree); in afs_put_addrlist()
41 struct afs_addr_list *alist; in afs_alloc_addrlist() local
46 alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL); in afs_alloc_addrlist()
47 if (!alist) in afs_alloc_addrlist()
50 refcount_set(&alist->usage, 1); in afs_alloc_addrlist()
53 struct sockaddr_rxrpc *srx = &alist->addrs[i]; in afs_alloc_addrlist()
62 return alist; in afs_alloc_addrlist()
73 struct afs_addr_list *alist; in afs_parse_text_addrs() local
[all …]
Dserver.c38 const struct afs_addr_list *alist; in afs_find_server() local
59 alist = rcu_dereference(server->addresses); in afs_find_server()
60 for (i = alist->nr_ipv4; i < alist->nr_addrs; i++) { in afs_find_server()
61 b = &alist->addrs[i].transport.sin6; in afs_find_server()
74 alist = rcu_dereference(server->addresses); in afs_find_server()
75 for (i = 0; i < alist->nr_ipv4; i++) { in afs_find_server()
76 b = &alist->addrs[i].transport.sin6; in afs_find_server()
153 const struct afs_addr_list *alist; in afs_install_server() local
184 alist = rcu_dereference_protected(server->addresses, in afs_install_server()
195 if (alist->nr_ipv4 > 0) in afs_install_server()
[all …]
Drotate.c143 struct afs_addr_list *alist; in afs_select_fileserver() local
344 ASSERTCMP(fc->ac.alist, ==, NULL); in afs_select_fileserver()
365 alist = rcu_dereference_protected(server->addresses, in afs_select_fileserver()
367 afs_get_addrlist(alist); in afs_select_fileserver()
374 fc->ac.alist = afs_get_addrlist(alist); in afs_select_fileserver()
388 if (!fc->ac.alist) in afs_select_fileserver()
389 fc->ac.alist = alist; in afs_select_fileserver()
391 afs_put_addrlist(alist); in afs_select_fileserver()
393 fc->ac.start = READ_ONCE(alist->index); in afs_select_fileserver()
397 ASSERT(fc->ac.alist); in afs_select_fileserver()
[all …]
Dvlclient.c185 struct afs_addr_list *alist; in afs_deliver_vl_get_addrs_u() local
212 alist = afs_alloc_addrlist(nentries, FS_SERVICE, AFS_FS_PORT); in afs_deliver_vl_get_addrs_u()
213 if (!alist) in afs_deliver_vl_get_addrs_u()
215 alist->version = uniquifier; in afs_deliver_vl_get_addrs_u()
216 call->reply[0] = alist; in afs_deliver_vl_get_addrs_u()
231 alist = call->reply[0]; in afs_deliver_vl_get_addrs_u()
234 if (alist->nr_addrs < call->count2) in afs_deliver_vl_get_addrs_u()
235 afs_merge_fs_addr4(alist, *bp++, AFS_FS_PORT); in afs_deliver_vl_get_addrs_u()
424 struct afs_addr_list *alist; in afs_deliver_yfsvl_get_endpoints() local
456 alist = afs_alloc_addrlist(call->count, FS_SERVICE, AFS_FS_PORT); in afs_deliver_yfsvl_get_endpoints()
[all …]
Dproc.c271 struct afs_addr_list *alist; in afs_proc_cell_vlservers_start() local
277 alist = rcu_dereference(cell->vl_addrs); in afs_proc_cell_vlservers_start()
284 if (!alist || pos >= alist->nr_addrs) in afs_proc_cell_vlservers_start()
287 return alist->addrs + pos; in afs_proc_cell_vlservers_start()
293 struct afs_addr_list *alist; in afs_proc_cell_vlservers_next() local
297 alist = rcu_dereference(cell->vl_addrs); in afs_proc_cell_vlservers_next()
301 if (!alist || pos >= alist->nr_addrs) in afs_proc_cell_vlservers_next()
304 return alist->addrs + pos; in afs_proc_cell_vlservers_next()
326 struct afs_addr_list *alist; in afs_proc_servers_show() local
335 alist = rcu_dereference(server->addresses); in afs_proc_servers_show()
[all …]
Dcell.c162 struct afs_addr_list *alist; in afs_alloc_cell() local
164 alist = afs_parse_text_addrs(vllist, strlen(vllist), ':', in afs_alloc_cell()
166 if (IS_ERR(alist)) { in afs_alloc_cell()
167 ret = PTR_ERR(alist); in afs_alloc_cell()
171 rcu_assign_pointer(cell->vl_addrs, alist); in afs_alloc_cell()
359 struct afs_addr_list *alist, *old; in afs_update_cell() local
364 alist = afs_dns_query(cell, &expiry); in afs_update_cell()
365 if (IS_ERR(alist)) { in afs_update_cell()
366 switch (PTR_ERR(alist)) { in afs_update_cell()
391 rcu_assign_pointer(cell->vl_addrs, alist); in afs_update_cell()
Dvolume.c86 if (!test_bit(ac.index, &ac.alist->probed)) { in afs_vl_lookup_vldb()
90 clear_bit(ac.index, &ac.alist->yfs); in afs_vl_lookup_vldb()
91 set_bit(ac.index, &ac.alist->probed); in afs_vl_lookup_vldb()
95 set_bit(ac.index, &ac.alist->yfs); in afs_vl_lookup_vldb()
96 set_bit(ac.index, &ac.alist->probed); in afs_vl_lookup_vldb()
Dafs_vl.h147 extern void afs_put_address_list(struct afs_address_list *alist);
Dinternal.h586 struct afs_addr_list *alist; /* Current address list (pins ref) */ member
631 static inline struct afs_addr_list *afs_get_addrlist(struct afs_addr_list *alist) in afs_get_addrlist() argument
633 if (alist) in afs_get_addrlist()
634 refcount_inc(&alist->usage); in afs_get_addrlist()
635 return alist; in afs_get_addrlist()
/Linux-v4.19/fs/xfs/
Dxfs_attr_list.c554 struct attrlist *alist = (struct attrlist *)context->alist; in xfs_attr_put_listent() local
561 ASSERT(context->firstu >= sizeof(*alist)); in xfs_attr_put_listent()
574 arraytop = sizeof(*alist) + in xfs_attr_put_listent()
575 context->count * sizeof(alist->al_offset[0]); in xfs_attr_put_listent()
579 alist->al_more = 1; in xfs_attr_put_listent()
584 aep = (attrlist_ent_t *)&context->alist[context->firstu]; in xfs_attr_put_listent()
588 alist->al_offset[context->count++] = context->firstu; in xfs_attr_put_listent()
589 alist->al_count = context->count; in xfs_attr_put_listent()
610 struct attrlist *alist; in xfs_attr_list() local
642 context.alist = buffer; in xfs_attr_list()
[all …]
Dxfs_xattr.c132 if (!context->alist) in __xfs_xattr_put_listent()
141 offset = (char *)context->alist + context->count; in __xfs_xattr_put_listent()
227 context.alist = size ? data : NULL; in xfs_vn_listxattr()
Dxfs_attr.h114 char *alist; /* output buffer */ member
Dxfs_trace.h43 __field(void *, alist)
56 __entry->alist = ctx->alist;
70 __entry->alist,
167 __field(void *, alist)
182 __entry->alist = ctx->alist;
199 __entry->alist,
/Linux-v4.19/net/sched/
Dsch_drr.c28 struct list_head alist; member
243 list_del(&cl->alist); in drr_qlen_notify()
375 list_add_tail(&cl->alist, &q->active); in drr_enqueue()
394 cl = list_first_entry(&q->active, struct drr_class, alist); in drr_dequeue()
408 list_del(&cl->alist); in drr_dequeue()
418 list_move_tail(&cl->alist, &q->active); in drr_dequeue()
449 list_del(&cl->alist); in drr_reset_qdisc()
Dsch_qfq.c141 struct list_head alist; /* Link for active-classes list. */ member
331 list_add_tail(&cl->alist, &agg->active); in qfq_add_to_agg()
332 if (list_first_entry(&agg->active, struct qfq_class, alist) == in qfq_add_to_agg()
358 list_del(&cl->alist); /* remove from RR queue of the aggregate */ in qfq_deactivate_class()
995 list_del(&cl->alist); in agg_dequeue()
998 list_move_tail(&cl->alist, &agg->active); in agg_dequeue()
1008 *cl = list_first_entry(&agg->active, struct qfq_class, alist); in qfq_peek_skb()
1256 list_first_entry(&agg->active, struct qfq_class, alist) in qfq_enqueue()
1258 list_move_tail(&cl->alist, &agg->active); in qfq_enqueue()
1265 list_add_tail(&cl->alist, &agg->active); in qfq_enqueue()
[all …]
/Linux-v4.19/drivers/scsi/aic94xx/
Daic94xx_task.c549 LIST_HEAD(alist); in asd_execute_task()
566 __list_add(&alist, ascb->list.prev, &ascb->list); in asd_execute_task()
567 list_for_each_entry(a, &alist, list) { in asd_execute_task()
572 list_for_each_entry(a, &alist, list) { in asd_execute_task()
601 list_del_init(&alist); in asd_execute_task()
606 __list_add(&alist, ascb->list.prev, &ascb->list); in asd_execute_task()
614 list_for_each_entry(a, &alist, list) { in asd_execute_task()
637 list_del_init(&alist); in asd_execute_task()
/Linux-v4.19/tools/perf/util/
Dpmu.c291 struct list_head *alist) in perf_pmu_merge_alias() argument
295 list_for_each_entry(a, alist, list) { in perf_pmu_merge_alias()
/Linux-v4.19/Documentation/translations/zh_CN/
Dcoding-style.rst543 '("linux" (c-offsets-alist
/Linux-v4.19/Documentation/process/
Dcoding-style.rst600 '("linux" (c-offsets-alist