Home
last modified time | relevance | path

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

/Linux-v5.10/fs/afs/
Daddr_list.c19 void afs_put_addrlist(struct afs_addr_list *alist) in afs_put_addrlist() argument
21 if (alist && refcount_dec_and_test(&alist->usage)) in afs_put_addrlist()
22 kfree_rcu(alist, rcu); in afs_put_addrlist()
32 struct afs_addr_list *alist; in afs_alloc_addrlist() local
40 alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL); in afs_alloc_addrlist()
41 if (!alist) in afs_alloc_addrlist()
44 refcount_set(&alist->usage, 1); in afs_alloc_addrlist()
45 alist->max_addrs = nr; in afs_alloc_addrlist()
48 struct sockaddr_rxrpc *srx = &alist->addrs[i]; in afs_alloc_addrlist()
57 return alist; in afs_alloc_addrlist()
[all …]
Dserver.c27 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()
[all …]
Dfs_probe.c78 struct afs_addr_list *alist = ac->alist; in afs_fs_probe_not_done() local
90 set_bit(index, &alist->failed); in afs_fs_probe_not_done()
102 struct afs_addr_list *alist = call->alist; in afs_fileserver_probe_result() local
124 clear_bit(index, &alist->responded); in afs_fileserver_probe_result()
138 clear_bit(index, &alist->responded); in afs_fileserver_probe_result()
139 set_bit(index, &alist->failed); in afs_fileserver_probe_result()
150 clear_bit(index, &alist->failed); in afs_fileserver_probe_result()
155 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result()
160 alist->addrs[index].srx_service = call->service_id; in afs_fileserver_probe_result()
168 alist->preferred = index; in afs_fileserver_probe_result()
[all …]
Dvl_probe.c49 struct afs_addr_list *alist = call->alist; in afs_vlserver_probe_result() local
91 clear_bit(index, &alist->responded); in afs_vlserver_probe_result()
92 set_bit(index, &alist->failed); in afs_vlserver_probe_result()
103 set_bit(index, &alist->responded); in afs_vlserver_probe_result()
104 clear_bit(index, &alist->failed); in afs_vlserver_probe_result()
109 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result()
114 alist->addrs[index].srx_service = call->service_id; in afs_vlserver_probe_result()
122 alist->preferred = index; in afs_vlserver_probe_result()
134 server_index, index, &alist->addrs[index].transport, rtt_us, ret); in afs_vlserver_probe_result()
158 ac.alist = rcu_dereference_protected(server->addresses, in afs_do_probe_vlserver()
[all …]
Dvl_rotate.c86 struct afs_addr_list *alist; in afs_select_vlserver() local
215 ASSERTCMP(vc->ac.alist, ==, NULL); in afs_select_vlserver()
222 alist = rcu_dereference_protected(vlserver->addresses, in afs_select_vlserver()
224 afs_get_addrlist(alist); in afs_select_vlserver()
229 if (!vc->ac.alist) in afs_select_vlserver()
230 vc->ac.alist = alist; in afs_select_vlserver()
232 afs_put_addrlist(alist); in afs_select_vlserver()
237 ASSERT(vc->ac.alist); in afs_select_vlserver()
244 _debug("VL address %d/%d", vc->ac.index, vc->ac.alist->nr_addrs); in afs_select_vlserver()
246 _leave(" = t %pISpc", &vc->ac.alist->addrs[vc->ac.index].transport); in afs_select_vlserver()
[all …]
Dvl_list.c96 struct afs_addr_list *alist; in afs_extract_vl_addrs() local
100 alist = afs_alloc_addrlist(nr_addrs, VL_SERVICE, port); in afs_extract_vl_addrs()
101 if (!alist) in afs_extract_vl_addrs()
104 return alist; in afs_extract_vl_addrs()
119 afs_merge_fs_addr4(alist, x[0], port); in afs_extract_vl_addrs()
129 afs_merge_fs_addr6(alist, x, port); in afs_extract_vl_addrs()
142 if (alist->nr_ipv4 < alist->nr_addrs) in afs_extract_vl_addrs()
143 alist->preferred = alist->nr_ipv4; in afs_extract_vl_addrs()
146 return alist; in afs_extract_vl_addrs()
150 afs_put_addrlist(alist); in afs_extract_vl_addrs()
Dproc.c288 const struct afs_addr_list *alist; in afs_proc_cell_vlservers_show() local
300 alist = rcu_dereference(vlserver->addresses); in afs_proc_cell_vlservers_show()
304 dns_record_sources[alist ? alist->source : entry->source], in afs_proc_cell_vlservers_show()
305 dns_lookup_statuses[alist ? alist->status : entry->status]); in afs_proc_cell_vlservers_show()
306 if (alist) { in afs_proc_cell_vlservers_show()
307 for (i = 0; i < alist->nr_addrs; i++) in afs_proc_cell_vlservers_show()
309 alist->preferred == i ? '>' : '-', in afs_proc_cell_vlservers_show()
310 &alist->addrs[i].transport); in afs_proc_cell_vlservers_show()
379 struct afs_addr_list *alist; in afs_proc_servers_show() local
388 alist = rcu_dereference(server->addresses); in afs_proc_servers_show()
[all …]
Drotate.c111 struct afs_addr_list *alist; in afs_select_fileserver() local
364 ASSERTCMP(op->ac.alist, ==, NULL); in afs_select_fileserver()
382 alist = rcu_dereference_protected(server->addresses, in afs_select_fileserver()
384 afs_get_addrlist(alist); in afs_select_fileserver()
390 if (!op->ac.alist) in afs_select_fileserver()
391 op->ac.alist = alist; in afs_select_fileserver()
393 afs_put_addrlist(alist); in afs_select_fileserver()
398 ASSERT(op->ac.alist); in afs_select_fileserver()
406 op->index, op->ac.index, op->ac.alist->nr_addrs, in afs_select_fileserver()
407 &op->ac.alist->addrs[op->ac.index].transport); in afs_select_fileserver()
[all …]
Dvlclient.c183 struct afs_addr_list *alist; in afs_deliver_vl_get_addrs_u() local
211 alist = afs_alloc_addrlist(nentries, FS_SERVICE, AFS_FS_PORT); in afs_deliver_vl_get_addrs_u()
212 if (!alist) in afs_deliver_vl_get_addrs_u()
214 alist->version = uniquifier; in afs_deliver_vl_get_addrs_u()
215 call->ret_alist = alist; in afs_deliver_vl_get_addrs_u()
230 alist = call->ret_alist; 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()
423 struct afs_addr_list *alist; in afs_deliver_yfsvl_get_endpoints() local
453 alist = afs_alloc_addrlist(call->count, FS_SERVICE, AFS_FS_PORT); in afs_deliver_yfsvl_get_endpoints()
[all …]
Dafs_vl.h144 extern void afs_put_address_list(struct afs_address_list *alist);
Dinternal.h97 struct afs_addr_list *alist; /* Address is alist[addr_ix] */ member
706 struct afs_addr_list *alist; /* Current address list (pins ref) */ member
924 static inline struct afs_addr_list *afs_get_addrlist(struct afs_addr_list *alist) in afs_get_addrlist() argument
926 if (alist) in afs_get_addrlist()
927 refcount_inc(&alist->usage); in afs_get_addrlist()
928 return alist; in afs_get_addrlist()
Drxrpc.c185 afs_put_addrlist(call->alist); in afs_put_call()
362 struct sockaddr_rxrpc *srx = &ac->alist->addrs[ac->index]; in afs_make_call()
379 call->alist = afs_get_addrlist(ac->alist); in afs_make_call()
/Linux-v5.10/net/sched/
Dsch_drr.c25 struct list_head alist; member
232 list_del(&cl->alist); in drr_qlen_notify()
368 list_add_tail(&cl->alist, &q->active); in drr_enqueue()
387 cl = list_first_entry(&q->active, struct drr_class, alist); in drr_dequeue()
401 list_del(&cl->alist); in drr_dequeue()
411 list_move_tail(&cl->alist, &q->active); in drr_dequeue()
442 list_del(&cl->alist); in drr_reset_qdisc()
Dsch_qfq.c138 struct list_head alist; /* Link for active-classes list. */ member
319 list_add_tail(&cl->alist, &agg->active); in qfq_add_to_agg()
320 if (list_first_entry(&agg->active, struct qfq_class, alist) == in qfq_add_to_agg()
346 list_del(&cl->alist); /* remove from RR queue of the aggregate */ in qfq_deactivate_class()
982 list_del(&cl->alist); in agg_dequeue()
985 list_move_tail(&cl->alist, &agg->active); in agg_dequeue()
995 *cl = list_first_entry(&agg->active, struct qfq_class, alist); in qfq_peek_skb()
1247 list_first_entry(&agg->active, struct qfq_class, alist) in qfq_enqueue()
1249 list_move_tail(&cl->alist, &agg->active); in qfq_enqueue()
1256 list_add_tail(&cl->alist, &agg->active); in qfq_enqueue()
[all …]
Dsch_ets.c40 struct list_head alist; /* In struct ets_sched.active. */ member
294 list_del(&cl->alist); in ets_class_qlen_notify()
446 list_add_tail(&cl->alist, &q->active); in ets_qdisc_enqueue()
483 cl = list_first_entry(&q->active, struct ets_class, alist); in ets_qdisc_dequeue()
497 list_del(&cl->alist); in ets_qdisc_dequeue()
502 list_move_tail(&cl->alist, &q->active); in ets_qdisc_dequeue()
712 list_del(&q->classes[band].alist); in ets_qdisc_reset()
/Linux-v5.10/drivers/scsi/aic94xx/
Daic94xx_task.c531 LIST_HEAD(alist); in asd_execute_task()
548 __list_add(&alist, ascb->list.prev, &ascb->list); in asd_execute_task()
549 list_for_each_entry(a, &alist, list) { in asd_execute_task()
554 list_for_each_entry(a, &alist, list) { in asd_execute_task()
583 list_del_init(&alist); in asd_execute_task()
588 __list_add(&alist, ascb->list.prev, &ascb->list); in asd_execute_task()
596 list_for_each_entry(a, &alist, list) { in asd_execute_task()
619 list_del_init(&alist); in asd_execute_task()
/Linux-v5.10/fs/xfs/
Dxfs_ioctl.c310 struct xfs_attrlist *alist = context->buffer; in xfs_ioc_attr_put_listent() local
317 ASSERT(context->firstu >= sizeof(*alist)); in xfs_ioc_attr_put_listent()
326 arraytop = sizeof(*alist) + in xfs_ioc_attr_put_listent()
327 context->count * sizeof(alist->al_offset[0]); in xfs_ioc_attr_put_listent()
334 alist->al_more = 1; in xfs_ioc_attr_put_listent()
343 alist->al_offset[context->count++] = context->firstu; in xfs_ioc_attr_put_listent()
344 alist->al_count = context->count; in xfs_ioc_attr_put_listent()
379 struct xfs_attrlist *alist; in xfs_ioc_attr_list() local
422 alist = context.buffer; in xfs_ioc_attr_list()
423 alist->al_count = 0; in xfs_ioc_attr_list()
[all …]
/Linux-v5.10/Documentation/translations/zh_CN/process/
Dcoding-style.rst530 (c-offsets-alist . (
/Linux-v5.10/tools/perf/util/
Dpmu.c294 struct list_head *alist) in perf_pmu_merge_alias() argument
298 list_for_each_entry(a, alist, list) { in perf_pmu_merge_alias()
/Linux-v5.10/Documentation/process/
Dcoding-style.rst628 (c-offsets-alist . (
/Linux-v5.10/Documentation/translations/it_IT/process/
Dcoding-style.rst611 (c-offsets-alist . (