Home
last modified time | relevance | path

Searched refs:free_list (Results 1 – 25 of 133) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/s390/char/
Draw3270.h217 alloc_string(struct list_head *free_list, unsigned long len) in alloc_string() argument
223 list_for_each_entry(cs, free_list, list) { in alloc_string()
243 free_string(struct list_head *free_list, struct string *cs) in free_string() argument
249 left = free_list; in free_string()
250 list_for_each(p, free_list) { in free_string()
256 if (left->next != free_list) { in free_string()
264 if (left != free_list) { in free_string()
276 add_string_memory(struct list_head *free_list, void *mem, unsigned long size) in add_string_memory() argument
282 free_string(free_list, cs); in add_string_memory()
/kernel/linux/linux-5.10/net/ceph/
Dpagelist.c21 INIT_LIST_HEAD(&pl->free_list); in ceph_pagelist_alloc()
61 page = list_first_entry(&pl->free_list, struct page, lru); in ceph_pagelist_addpage()
113 list_add_tail(&page->lru, &pl->free_list); in ceph_pagelist_reserve()
123 while (!list_empty(&pl->free_list)) { in ceph_pagelist_free_reserve()
124 struct page *page = list_first_entry(&pl->free_list, in ceph_pagelist_free_reserve()
161 list_move_tail(&page->lru, &pl->free_list); in ceph_pagelist_truncate()
/kernel/linux/linux-5.10/drivers/staging/gdm724x/
Dgdm_usb.c153 if (list_empty(&tx->free_list)) in get_tx_sdu_struct()
156 t_sdu = list_entry(tx->free_list.next, struct usb_tx_sdu, list); in get_tx_sdu_struct()
161 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct()
168 list_add_tail(&t_sdu->list, &tx->free_list); in put_tx_struct()
219 if (list_empty(&rx->free_list)) { in get_rx_struct()
224 r = list_entry(rx->free_list.next, struct usb_rx, free_list); in get_rx_struct()
225 list_del(&r->free_list); in get_rx_struct()
229 *no_spc = list_empty(&rx->free_list) ? 1 : 0; in get_rx_struct()
242 list_add_tail(&r->free_list, &rx->free_list); in put_rx_struct()
268 list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->free_list, list) { in release_usb()
[all …]
Dgdm_usb.h56 struct list_head free_list; member
69 struct list_head free_list; member
77 struct list_head free_list; member
Dgdm_mux.c123 r = list_entry(rx->rx_free_list.prev, struct mux_rx, free_list); in get_rx_struct()
124 list_del(&r->free_list); in get_rx_struct()
136 list_add_tail(&r->free_list, &rx->rx_free_list); in put_rx_struct()
447 list_for_each_entry_safe(r, r_next, &rx->rx_free_list, free_list) { in release_usb()
448 list_del(&r->free_list); in release_usb()
485 list_add(&r->free_list, &rx->rx_free_list); in init_usb()
/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_lru_list.c63 struct list_head *free_list, in __bpf_lru_node_move_to_free() argument
78 list_move(&node->list, free_list); in __bpf_lru_node_move_to_free()
209 struct list_head *free_list, in __bpf_lru_list_shrink_inactive() argument
221 __bpf_lru_node_move_to_free(l, node, free_list, in __bpf_lru_list_shrink_inactive()
258 struct list_head *free_list, in __bpf_lru_list_shrink() argument
267 free_list, tgt_free_type); in __bpf_lru_list_shrink()
280 __bpf_lru_node_move_to_free(l, node, free_list, in __bpf_lru_list_shrink()
402 struct list_head *free_list; in bpf_percpu_lru_pop_free() local
414 free_list = &l->lists[BPF_LRU_LIST_T_FREE]; in bpf_percpu_lru_pop_free()
415 if (list_empty(free_list)) in bpf_percpu_lru_pop_free()
[all …]
/kernel/linux/linux-5.10/drivers/staging/android/ion/
Dion_heap.c133 list_add(&buffer->list, &heap->free_list); in ion_heap_freelist_add()
163 while (!list_empty(&heap->free_list)) { in _ion_heap_freelist_drain()
166 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in _ion_heap_freelist_drain()
203 if (list_empty(&heap->free_list)) { in ion_heap_deferred_free()
207 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in ion_heap_deferred_free()
220 INIT_LIST_HEAD(&heap->free_list); in ion_heap_init_deferred_free()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_buddy.c82 &mm->free_list[i915_buddy_block_order(block)]); in mark_free()
115 mm->free_list = kmalloc_array(mm->max_order + 1, in i915_buddy_init()
118 if (!mm->free_list) in i915_buddy_init()
122 INIT_LIST_HEAD(&mm->free_list[i]); in i915_buddy_init()
170 kfree(mm->free_list); in i915_buddy_init()
184 kfree(mm->free_list); in i915_buddy_fini()
288 block = list_first_entry_or_null(&mm->free_list[i], in i915_buddy_alloc()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c15 struct list_head free_list; member
259 list_add(&chunk->chunk_list, &bucket->free_list); in dr_icm_chunks_create()
305 INIT_LIST_HEAD(&bucket->free_list); in dr_icm_bucket_init()
316 list_splice_tail_init(&bucket->sync_list, &bucket->free_list); in dr_icm_bucket_cleanup()
317 list_splice_tail_init(&bucket->hot_list, &bucket->free_list); in dr_icm_bucket_cleanup()
319 list_for_each_entry_safe(chunk, next, &bucket->free_list, chunk_list) in dr_icm_bucket_cleanup()
362 list_splice_tail_init(&bucket->sync_list, &bucket->free_list); in dr_icm_chill_bucket_end()
462 if (list_empty(&bucket->free_list)) { in mlx5dr_icm_alloc_chunk()
478 if (!list_empty(&bucket->free_list)) { in mlx5dr_icm_alloc_chunk()
479 chunk = list_last_entry(&bucket->free_list, in mlx5dr_icm_alloc_chunk()
/kernel/linux/linux-5.10/arch/powerpc/lib/
Drheap.c77 fixup(blks, blke, delta, &info->free_list); in grow()
172 list_for_each(l, &info->free_list) { in attach_free_block()
205 list_add(&blkn->list, &info->free_list); in attach_free_block()
274 INIT_LIST_HEAD(&info->free_list); in rh_create()
319 INIT_LIST_HEAD(&info->free_list); in rh_init()
395 list_for_each(l, &info->free_list) { in rh_detach_region()
460 list_for_each(l, &info->free_list) { in rh_alloc_align()
552 list_for_each(l, &info->free_list) { in rh_alloc_fixed()
651 h = &info->free_list; in rh_get_stats()
/kernel/linux/linux-5.10/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c77 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_pool_add_device()
196 resource = list_first_entry_or_null(&res_pool->free_list, in fsl_mc_resource_allocate()
243 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_free()
392 list_add_tail(&mc_dev_irq->resource.node, &res_pool->free_list); in fsl_mc_populate_irq_pool()
431 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_cleanup_irq_pool()
552 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_init_all_resource_pools()
567 list_for_each_entry_safe(resource, next, &res_pool->free_list, node) { in fsl_mc_cleanup_resource_pool()
/kernel/linux/linux-5.10/drivers/dma/
Dtimb_dma.c80 struct list_head free_list; member
248 list_move(&td_desc->desc_node, &td_chan->free_list); in __td_finish()
376 list_add(&td_desc->desc_node, &td_chan->free_list); in td_desc_put()
386 list_for_each_entry_safe(td_desc, _td_desc, &td_chan->free_list, in td_desc_get()
409 BUG_ON(!list_empty(&td_chan->free_list)); in td_alloc_chan_resources()
446 list_splice_init(&td_chan->free_list, &list); in td_free_chan_resources()
557 list_move(&td_desc->desc_node, &td_chan->free_list); in td_terminate_all()
700 INIT_LIST_HEAD(&td_chan->free_list); in td_probe()
Daltera-msgdma.c174 struct list_head free_list; member
215 desc = list_first_entry(&mdev->free_list, struct msgdma_sw_desc, node); in msgdma_get_descriptor()
235 list_add_tail(&desc->node, &mdev->free_list); in msgdma_free_descriptor()
238 list_move_tail(&child->node, &mdev->free_list); in msgdma_free_descriptor()
667 INIT_LIST_HEAD(&mdev->free_list); in msgdma_alloc_chan_resources()
673 list_add_tail(&desc->node, &mdev->free_list); in msgdma_alloc_chan_resources()
842 INIT_LIST_HEAD(&mdev->free_list); in msgdma_probe()
Dpch_dma.c101 struct list_head free_list; member
355 list_splice_init(&desc->tx_list, &pd_chan->free_list); in pdc_chain_complete()
356 list_move(&desc->desc_node, &pd_chan->free_list); in pdc_chain_complete()
451 list_for_each_entry_safe(desc, _d, &pd_chan->free_list, desc_node) { in pdc_desc_get()
483 list_splice_init(&desc->tx_list, &pd_chan->free_list); in pdc_desc_put()
484 list_add(&desc->desc_node, &pd_chan->free_list); in pdc_desc_put()
501 if (!list_empty(&pd_chan->free_list)) in pd_alloc_chan_resources()
517 list_splice(&tmp_list, &pd_chan->free_list); in pd_alloc_chan_resources()
539 list_splice_init(&pd_chan->free_list, &tmp_list); in pd_free_chan_resources()
883 INIT_LIST_HEAD(&pd_chan->free_list); in pch_dma_probe()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_user_sdma.c838 goto free_list; in qib_user_sdma_queue_pkts()
844 goto free_list; in qib_user_sdma_queue_pkts()
1047 free_list: in qib_user_sdma_queue_pkts()
1064 struct list_head free_list; in qib_user_sdma_queue_clean() local
1073 INIT_LIST_HEAD(&free_list); in qib_user_sdma_queue_clean()
1087 list_move_tail(&pkt->list, &free_list); in qib_user_sdma_queue_clean()
1095 if (!list_empty(&free_list)) { in qib_user_sdma_queue_clean()
1098 pkt = list_entry(free_list.prev, in qib_user_sdma_queue_clean()
1102 qib_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, &free_list); in qib_user_sdma_queue_clean()
1163 struct list_head free_list; in qib_user_sdma_queue_drain() local
[all …]
/kernel/linux/linux-5.10/drivers/scsi/bnx2fc/
Dbnx2fc_io.c244 cmgr->free_list = kcalloc(arr_sz, sizeof(*cmgr->free_list), in bnx2fc_cmd_mgr_alloc()
246 if (!cmgr->free_list) { in bnx2fc_cmd_mgr_alloc()
255 kfree(cmgr->free_list); in bnx2fc_cmd_mgr_alloc()
256 cmgr->free_list = NULL; in bnx2fc_cmd_mgr_alloc()
263 INIT_LIST_HEAD(&cmgr->free_list[i]); in bnx2fc_cmd_mgr_alloc()
288 &cmgr->free_list[io_req->xid % in bnx2fc_cmd_mgr_alloc()
292 &cmgr->free_list[num_possible_cpus()]); in bnx2fc_cmd_mgr_alloc()
376 if (!cmgr->free_list) in bnx2fc_cmd_mgr_free()
383 &cmgr->free_list[i], link) { in bnx2fc_cmd_mgr_free()
388 kfree(cmgr->free_list); in bnx2fc_cmd_mgr_free()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c44 ring = &priv->stats_ids.free_list; in nfp_release_stats_entry()
64 ring = &priv->stats_ids.free_list; in nfp_get_stats_entry()
538 priv->stats_ids.free_list.buf = in nfp_flower_metadata_init()
541 if (!priv->stats_ids.free_list.buf) in nfp_flower_metadata_init()
558 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_init()
588 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_cleanup()
/kernel/linux/linux-5.10/drivers/rapidio/devices/
Dtsi721_dma.c379 list_move(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tx_err()
642 list_add(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tasklet()
672 list_add(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tasklet()
753 list_add(&desc[i].desc_node, &bdma_chan->free_list); in tsi721_alloc_chan_resources()
792 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_free_chan_resources()
868 if (!list_empty(&bdma_chan->free_list)) { in tsi721_prep_rio_sg()
869 desc = list_first_entry(&bdma_chan->free_list, in tsi721_prep_rio_sg()
989 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_register_dma()
1035 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_unregister_dma()
/kernel/linux/linux-5.10/drivers/pci/
Dsetup-bus.c42 static void free_list(struct list_head *head) in free_list() function
384 free_list(&save_head); in __assign_resources_sorted()
439 free_list(&save_head); in __assign_resources_sorted()
440 free_list(head); in __assign_resources_sorted()
457 free_list(&local_fail_head); in __assign_resources_sorted()
470 free_list(&save_head); in __assign_resources_sorted()
479 free_list(head); in __assign_resources_sorted()
1803 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources()
1839 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources()
2080 free_list(&fail_head); in pci_assign_unassigned_bridge_resources()
[all …]
/kernel/linux/linux-5.10/scripts/genksyms/
Dparse.y39 free_list(b, e); in remove_list()
121 { free_list(*$2, NULL); *$2 = NULL; }
168 free_list(*$2, NULL);
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_fcoe.h22 struct list_head free_list; member
Dqed_iscsi.h23 struct list_head free_list; member
/kernel/linux/linux-5.10/drivers/dma/xilinx/
Dzynqmp_dma.c222 struct list_head free_list; member
413 desc = list_first_entry(&chan->free_list, in zynqmp_dma_get_descriptor()
438 list_add_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor()
441 list_move_tail(&child->node, &chan->free_list); in zynqmp_dma_free_descriptor()
483 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_alloc_chan_resources()
489 list_add_tail(&desc->node, &chan->free_list); in zynqmp_dma_alloc_chan_resources()
917 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_chan_probe()
/kernel/linux/linux-5.10/net/sunrpc/
Drpc_pipe.c85 LIST_HEAD(free_list); in rpc_timeout_upcall_queue()
94 list_splice_init(&pipe->pipe, &free_list); in rpc_timeout_upcall_queue()
100 &free_list, destroy_msg, -ETIMEDOUT); in rpc_timeout_upcall_queue()
175 LIST_HEAD(free_list); in rpc_close_pipes()
181 list_splice_init(&pipe->in_upcall, &free_list); in rpc_close_pipes()
182 list_splice_init(&pipe->pipe, &free_list); in rpc_close_pipes()
186 rpc_purge_list(&RPC_I(inode)->waitq, &free_list, pipe->ops->destroy_msg, -EPIPE); in rpc_close_pipes()
263 LIST_HEAD(free_list); in rpc_pipe_release()
265 list_splice_init(&pipe->pipe, &free_list); in rpc_pipe_release()
268 rpc_purge_list(&RPC_I(inode)->waitq, &free_list, in rpc_pipe_release()
/kernel/linux/linux-5.10/arch/um/drivers/
Dchan_kern.c195 chan = list_entry(ele, struct chan, free_list); in free_irqs()
214 list_add(&chan->free_list, &irqs_to_free); in close_one_chan()
474 .free_list = in parse_chan()
475 LIST_HEAD_INIT(chan->free_list), in parse_chan()

123456