Home
last modified time | relevance | path

Searched refs:list_node (Results 1 – 25 of 88) sorted by relevance

1234

/linux/drivers/thermal/
H A Dthermal_thresholds.c28 list_for_each_entry_safe(entry, tmp, thresholds, list_node) { in __thermal_thresholds_flush()
29 list_del(&entry->list_node); in __thermal_thresholds_flush()
54 struct user_threshold *t1 = container_of(l1, struct user_threshold, list_node); in __thermal_thresholds_cmp()
55 struct user_threshold *t2 = container_of(l2, struct user_threshold, list_node); in __thermal_thresholds_cmp()
65 list_for_each_entry(t, thresholds, list_node) in __thermal_thresholds_find()
77 list_for_each_entry(t, thresholds, list_node) { in thermal_thresholds_handle_raising()
95 list_for_each_entry_reverse(t, thresholds, list_node) { in thermal_thresholds_handle_dropping()
113 list_for_each_entry(t, thresholds, list_node) { in thermal_threshold_find_boundaries()
120 list_for_each_entry_reverse(t, thresholds, list_node) { in thermal_threshold_find_boundaries()
188 INIT_LIST_HEAD(&t->list_node); in thermal_thresholds_add()
[all …]
H A Dthermal_core.c425 list_del(&td->list_node); in move_trip_to_sorted_list()
428 list_for_each_entry_reverse(entry, list, list_node) { in move_trip_to_sorted_list()
430 list_add(&td->list_node, &entry->list_node); in move_trip_to_sorted_list()
434 list_add(&td->list_node, list); in move_trip_to_sorted_list()
455 list_move(&td->list_node, &tz->trips_invalid); in move_to_trips_invalid()
571 list_for_each_entry_safe_reverse(td, next, &tz->trips_reached, list_node) { in thermal_zone_handle_trips()
580 list_move(&td->list_node, &way_down_list); in thermal_zone_handle_trips()
583 list_for_each_entry_safe(td, next, &tz->trips_high, list_node) { in thermal_zone_handle_trips()
591 list_for_each_entry_safe(td, next, &way_down_list, list_node) in thermal_zone_handle_trips()
596 struct thermal_trip_desc, list_node); in thermal_zone_handle_trips()
[all …]
/linux/drivers/cpufreq/
H A Dcpufreq_governor_attr_set.c43 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_init() argument
48 list_add(list_node, &attr_set->policy_list); in gov_attr_set_init()
52 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_get() argument
56 list_add(list_node, &attr_set->policy_list); in gov_attr_set_get()
61 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node) in gov_attr_set_put() argument
66 list_del(list_node); in gov_attr_set_put()
/linux/drivers/thermal/testing/
H A Dzone.c41 struct list_head list_node; member
67 struct list_head list_node; member
144 list_for_each_entry_safe(tt_trip, aux, &tt_zone->trips, list_node) { in tt_zone_free_trips()
145 list_del(&tt_trip->list_node); in tt_zone_free_trips()
182 list_add_tail(&tt_zone->list_node, &tt_thermal_zones); in tt_add_tz_work_fn()
253 list_for_each_entry_safe(tt_zone, aux, &tt_thermal_zones, list_node) { in tt_del_tz()
258 list_del(&tt_zone->list_node); in tt_del_tz()
288 list_for_each_entry(tt_zone, &tt_thermal_zones, list_node) { in tt_get_tt_zone()
355 list_add_tail(&tt_trip->list_node, &tt_zone->trips); in tt_zone_add_trip()
399 list_for_each_entry(tt_trip, &tt_zone->trips, list_node) in tt_zone_register_tz()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_arg.c79 list_add_tail(&arg_obj->list_node, &cur_list); in dr_arg_pool_alloc_objs()
90 list_for_each_entry_safe(arg_obj, tmp_arg, &cur_list, list_node) { in dr_arg_pool_alloc_objs()
91 list_del(&arg_obj->list_node); in dr_arg_pool_alloc_objs()
111 list_node); in dr_arg_pool_get_arg_obj()
115 list_del_init(&arg_obj->list_node); in dr_arg_pool_get_arg_obj()
126 list_add(&arg_obj->list_node, &pool->free_list); in dr_arg_pool_put_arg_obj()
160 list_for_each_entry_safe(arg_obj, tmp_arg, &pool->free_list, list_node) { in dr_arg_pool_destroy()
161 list_del(&arg_obj->list_node); in dr_arg_pool_destroy()
H A Ddr_matcher.c753 if (!list_empty(&nic_matcher->list_node)) in mlx5dr_matcher_add_to_tbl_nic()
757 list_for_each_entry(tmp_nic_matcher, &nic_tbl->nic_matcher_list, list_node) { in mlx5dr_matcher_add_to_tbl_nic()
767 prev_nic_matcher = list_prev_entry(next_nic_matcher, list_node); in mlx5dr_matcher_add_to_tbl_nic()
771 list_node); in mlx5dr_matcher_add_to_tbl_nic()
779 list_add(&nic_matcher->list_node, &prev_nic_matcher->list_node); in mlx5dr_matcher_add_to_tbl_nic()
781 list_add_tail(&nic_matcher->list_node, &next_nic_matcher->list_node); in mlx5dr_matcher_add_to_tbl_nic()
783 list_add(&nic_matcher->list_node, &nic_matcher->nic_tbl->nic_matcher_list); in mlx5dr_matcher_add_to_tbl_nic()
845 INIT_LIST_HEAD(&nic_matcher->list_node); in dr_matcher_init_nic()
977 list_add(&matcher->list_node, &matcher->tbl->matcher_list); in dr_matcher_add_to_dbg_list()
984 list_del(&matcher->list_node); in dr_matcher_remove_from_dbg_list()
[all …]
H A Ddr_buddy.c17 INIT_LIST_HEAD(&buddy->list_node); in mlx5dr_buddy_init()
59 list_del(&buddy->list_node); in mlx5dr_buddy_cleanup()
/linux/drivers/acpi/
H A Dwakeup.c16 struct list_head list_node; member
131 list_add(&handler->list_node, &acpi_wakeup_handler_head); in acpi_register_wakeup_handler()
149 list_for_each_entry(handler, &acpi_wakeup_handler_head, list_node) { in acpi_unregister_wakeup_handler()
151 list_del(&handler->list_node); in acpi_unregister_wakeup_handler()
165 list_for_each_entry(handler, &acpi_wakeup_handler_head, list_node) { in acpi_check_wakeup_handlers()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Daction_ste_pool.c161 INIT_LIST_HEAD(&action_tbl->list_node); in hws_action_ste_table_alloc()
163 list_add(&action_tbl->list_node, &parent_elem->available); in hws_action_ste_table_alloc()
204 list_del(&action_tbl->list_node); in hws_action_ste_table_destroy()
227 list_for_each_entry_safe(action_tbl, p, &elem->full, list_node) in hws_action_ste_pool_element_destroy()
230 list_for_each_entry_safe(action_tbl, p, &elem->available, list_node) in hws_action_ste_pool_element_destroy()
283 list_for_each_entry_safe(action_tbl, p, &elem->available, list_node) { in hws_action_ste_pool_element_collect_stale()
286 list_move(&action_tbl->list_node, cleanup); in hws_action_ste_pool_element_collect_stale()
294 list_for_each_entry_safe(action_tbl, p, cleanup, list_node) in hws_action_ste_table_cleanup_list()
423 list_for_each_entry(action_tbl, &elem->available, list_node) { in mlx5hws_action_ste_chunk_alloc()
443 list_move(&action_tbl->list_node, &elem->full); in mlx5hws_action_ste_chunk_alloc()
[all …]
H A Dmatcher.c37 list_for_each_entry(tmp_matcher, &tbl->matchers_list, list_node) in mlx5hws_matcher_update_end_ft_isolated()
42 list_node); in mlx5hws_matcher_update_end_ft_isolated()
158 list_add(&matcher->list_node, &tbl->matchers_list); in hws_matcher_connect_isolated_first()
172 list_node); in hws_matcher_connect_isolated_last()
197 list_add(&matcher->list_node, &last->list_node); in hws_matcher_connect_isolated_last()
236 list_add(&matcher->list_node, &tbl->matchers_list); in hws_matcher_connect()
240 list_for_each_entry(tmp_matcher, &tbl->matchers_list, list_node) { in hws_matcher_connect()
250 list_add_tail(&matcher->list_node, &next->list_node); in hws_matcher_connect()
253 list_add(&matcher->list_node, &prev->list_node); in hws_matcher_connect()
306 list_del_init(&matcher->list_node); in hws_matcher_connect()
[all …]
/linux/lib/
H A Dtest_rhashtable.c70 struct rhlist_head list_node; member
103 .head_offset = offsetof(struct test_obj_rhl, list_node),
299 err = rhltable_insert(&rhlt, &rhl_test_objects[i].list_node, in test_rhltable()
328 rhl_for_each_entry_rcu(obj, pos, h, list_node) { in test_rhltable()
329 if (WARN(pos == &rhl_test_objects[j].list_node, "old element found, should be gone")) in test_rhltable()
338 rhl_for_each_entry_rcu(obj, pos, h, list_node) { in test_rhltable()
339 if (pos == &rhl_test_objects[i].list_node) { in test_rhltable()
350 err = rhltable_remove(&rhlt, &rhl_test_objects[i].list_node, test_rht_params); in test_rhltable()
362 err = rhltable_insert(&rhlt, &rhl_test_objects[i].list_node, in test_rhltable()
377 err = rhltable_remove(&rhlt, &rhl_test_objects[i].list_node, test_rht_params); in test_rhltable()
[all …]
/linux/drivers/tee/optee/
H A Dcall.c37 struct list_head list_node; member
82 list_add_tail(&w->list_node, &cq->waiters); in optee_cq_wait_init()
125 list_del(&w->list_node); in optee_cq_wait_for_completion()
127 list_add_tail(&w->list_node, &cq->waiters); in optee_cq_wait_for_completion()
137 list_for_each_entry(w, &cq->waiters, list_node) { in optee_cq_complete_one()
144 list_for_each_entry(w, &cq->waiters, list_node) { in optee_cq_complete_one()
163 list_del(&w->list_node); in optee_cq_wait_final()
210 list_for_each_entry(sess, &ctxdata->sess_list, list_node) in find_session()
232 list_node); in optee_shm_arg_cache_uninit()
233 list_del(&entry->list_node); in optee_shm_arg_cache_uninit()
[all …]
/linux/fs/xfs/
H A Dxfs_mru_cache.c215 list_add_tail(&elem->list_node, mru->lists + grp); in _xfs_mru_cache_list_insert()
235 list_for_each_entry_safe(elem, next, &mru->reap_list, list_node) { in _xfs_mru_cache_clear_reap_list()
244 list_move(&elem->list_node, &tmp); in _xfs_mru_cache_clear_reap_list()
248 list_for_each_entry_safe(elem, next, &tmp, list_node) { in _xfs_mru_cache_clear_reap_list()
249 list_del_init(&elem->list_node); in _xfs_mru_cache_clear_reap_list()
426 INIT_LIST_HEAD(&elem->list_node); in xfs_mru_cache_insert()
465 list_del(&elem->list_node); in xfs_mru_cache_remove()
521 list_del(&elem->list_node); in xfs_mru_cache_lookup()
/linux/include/net/
H A Dxdp_sock_drv.h150 list_for_each_entry_safe(pos, tmp, xskb_list, list_node) { in xsk_buff_free()
151 list_del_init(&pos->list_node); in xsk_buff_free()
172 list_add_tail(&frag->list_node, &frag->pool->xskb_list); in xsk_buff_add_frag()
184 struct xdp_buff_xsk, list_node); in xsk_buff_get_frag()
186 list_del_init(&frag->list_node); in xsk_buff_get_frag()
197 list_del_init(&xskb->list_node); in xsk_buff_del_frag()
206 list_node); in xsk_buff_get_head()
216 list_node); in xsk_buff_get_tail()
/linux/drivers/soc/qcom/
H A Dqmi_interface.c61 list_add(&svc->list_node, &qmi->lookup_results); in qmi_recv_new_server()
80 list_for_each_entry_safe(svc, tmp, &qmi->lookup_results, list_node) { in qmi_recv_del_server()
89 list_del(&svc->list_node); in qmi_recv_del_server()
220 list_add(&svc->list_node, &qmi->lookups); in qmi_add_lookup()
284 list_add(&svc->list_node, &qmi->services); in qmi_add_server()
465 list_for_each_entry(svc, &qmi->lookups, list_node) in qmi_handle_net_reset()
468 list_for_each_entry(svc, &qmi->services, list_node) in qmi_handle_net_reset()
709 list_for_each_entry_safe(svc, tmp, &qmi->lookups, list_node) { in qmi_handle_release()
710 list_del(&svc->list_node); in qmi_handle_release()
715 list_for_each_entry_safe(svc, tmp, &qmi->services, list_node) { in qmi_handle_release()
[all …]
/linux/drivers/md/dm-pcache/
H A Ddm_pcache.c26 BUG_ON(!list_empty(&pcache_req->list_node)); in defer_req()
29 list_add(&pcache_req->list_node, &pcache->defered_req_list); in defer_req()
50 struct pcache_request, list_node); in defered_req_fn()
51 list_del_init(&pcache_req->list_node); in defered_req_fn()
340 struct pcache_request, list_node); in defer_req_stop()
341 list_del_init(&pcache_req->list_node); in defer_req_stop()
380 INIT_LIST_HEAD(&pcache_req->list_node); in dm_pcache_map_bio()
/linux/kernel/
H A Dwatch_queue.c209 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) { in __post_watch_notification()
457 INIT_HLIST_NODE(&watch->list_node); in init_watch()
467 hlist_for_each_entry(w, &wlist->watchers, list_node) { in add_one_watch()
485 hlist_add_head_rcu(&watch->list_node, &wlist->watchers); in add_one_watch()
543 hlist_for_each_entry(watch, &wlist->watchers, list_node) { in remove_watch_from_object()
553 hlist_del_init_rcu(&watch->list_node); in remove_watch_from_object()
634 release = !hlist_unhashed(&watch->list_node); in watch_queue_clear()
636 hlist_del_init_rcu(&watch->list_node); in watch_queue_clear()
/linux/drivers/tee/amdtee/
H A Dcore.c82 list_node); in amdtee_release()
87 list_del(&sess->list_node); in amdtee_release()
118 list_for_each_entry(sess, &ctxdata->sess_list, list_node) in alloc_session()
130 list_add(&sess->list_node, &ctxdata->sess_list); in alloc_session()
147 list_for_each_entry(sess, &ctxdata->sess_list, list_node) in find_session()
228 list_del(&sess->list_node); in destroy_session()
H A Damdtee_private.h57 struct list_head list_node; member
104 struct list_head list_node; member
H A Dcall.c133 list_for_each_entry(ta_data, &ta_list, list_node) in get_ta_refcount()
142 list_add(&ta_data->list_node, &ta_list); in get_ta_refcount()
154 list_for_each_entry(ta_data, &ta_list, list_node) in put_ta_refcount()
158 list_del(&ta_data->list_node); in put_ta_refcount()
/linux/kernel/debug/kdb/
H A Dkdb_main.c641 struct list_head list_node; /* Statement list node */ member
672 list_add_tail(&kms->list_node, &kdb_macro->statements); in kdb_defcmd2()
691 list_for_each_entry(kp, &kdb_cmds_head, list_node) { in kdb_defcmd()
697 list_node) in kdb_defcmd()
761 list_for_each_entry(kp, &kdb_cmds_head, list_node) { in kdb_exec_defcmd()
765 if (list_entry_is_head(kp, &kdb_cmds_head, list_node)) { in kdb_exec_defcmd()
771 list_for_each_entry(kms, &kmp->statements, list_node) { in kdb_exec_defcmd()
983 list_for_each_entry(tp, &kdb_cmds_head, list_node) { in kdb_parse()
1001 if (list_entry_is_head(tp, &kdb_cmds_head, list_node)) { in kdb_parse()
1002 list_for_each_entry(tp, &kdb_cmds_head, list_node) { in kdb_parse()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_tx.c96 struct list_head list_node; /* member of the pool */ member
252 list_for_each_entry_safe(obj, n, list, list_node) { in mlx5e_tls_priv_tx_list_cleanup()
297 list_add(&obj->list_node, &local_list); in create_work()
342 list_for_each_entry(obj, &pool->list, list_node) in destroy_work()
346 list_cut_position(&local_list, &pool->list, &obj->list_node); in destroy_work()
394 list_for_each_entry(obj, &pool->list, list_node) in mlx5e_tls_tx_pool_list_cleanup()
398 list_cut_position(&local_list, &pool->list, &obj->list_node); in mlx5e_tls_tx_pool_list_cleanup()
419 list_add(&obj->list_node, &pool->list); in pool_push()
444 list_node); in pool_pop()
445 list_del(&obj->list_node); in pool_pop()
/linux/drivers/acpi/x86/
H A Ds2idle.c576 list_for_each_entry(handler, &lps0_s2idle_devops_head, list_node) { in acpi_s2idle_prepare_late_lps0()
591 list_for_each_entry(handler, &lps0_s2idle_devops_head, list_node) { in acpi_s2idle_check_lps0()
604 list_for_each_entry(handler, &lps0_s2idle_devops_head, list_node) in acpi_s2idle_restore_early_lps0()
662 list_add(&arg->list_node, &lps0_s2idle_devops_head); in acpi_register_lps0_dev()
677 list_del(&arg->list_node); in acpi_unregister_lps0_dev()
/linux/net/xdp/
H A Dxsk_buff_pool.c105 INIT_LIST_HEAD(&xskb->list_node); in xp_create_and_assign_umem()
589 list_node); in xp_alloc()
590 list_del_init(&xskb->list_node); in xp_alloc()
649 xskb = list_first_entry(&pool->free_list, struct xdp_buff_xsk, list_node); in xp_alloc_reused()
650 list_del_init(&xskb->list_node); in xp_alloc_reused()
720 if (!list_empty(&xskb->list_node)) in xp_free()
724 list_add(&xskb->list_node, &xskb->pool->free_list); in xp_free()
/linux/tools/perf/util/
H A Dsymbol.c1277 struct map_list_node *list_node = map_list_node__new(); in kcore_mapfn()
1279 if (!list_node) in kcore_mapfn()
1282 list_node->map = map__new2(start, md->dso); in kcore_mapfn()
1283 if (!list_node->map) { in kcore_mapfn()
1284 free(list_node); in kcore_mapfn()
1288 map__set_end(list_node->map, map__start(list_node->map) + len); in kcore_mapfn()
1289 map__set_pgoff(list_node->map, pgoff); in kcore_mapfn()
1291 list_add(&list_node->node, &md->maps); in kcore_mapfn()
1465 struct map_list_node *list_node; in dso__load_kcore()
1276 struct map_list_node *list_node = map_list_node__new(); kcore_mapfn() local
1464 struct map_list_node *list_node; dso__load_kcore() local
[all...]

1234