Home
last modified time | relevance | path

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

1234

/drivers/s390/char/
Draw3270.h218 alloc_string(struct list_head *free_list, unsigned long len) in alloc_string() argument
224 list_for_each_entry(cs, free_list, list) { in alloc_string()
244 free_string(struct list_head *free_list, struct string *cs) in free_string() argument
250 left = free_list; in free_string()
251 list_for_each(p, free_list) { in free_string()
257 if (left->next != free_list) { in free_string()
265 if (left != free_list) { in free_string()
277 add_string_memory(struct list_head *free_list, void *mem, unsigned long size) in add_string_memory() argument
283 free_string(free_list, cs); in add_string_memory()
/drivers/infiniband/core/
Dfmr_pool.c91 struct list_head free_list; member
167 list_splice(&unmap_list, &pool->free_list); in ib_fmr_batch_release()
226 INIT_LIST_HEAD(&pool->free_list); in ib_create_fmr_pool()
292 list_add_tail(&fmr->list, &pool->free_list); in ib_create_fmr_pool()
329 list_for_each_entry_safe(fmr, tmp, &pool->free_list, list) { in ib_destroy_fmr_pool()
368 list_for_each_entry_safe(fmr, next, &pool->free_list, list) { in ib_flush_fmr_pool()
422 if (list_empty(&pool->free_list)) { in ib_fmr_pool_map_phys()
427 fmr = list_entry(pool->free_list.next, struct ib_pool_fmr, list); in ib_fmr_pool_map_phys()
437 list_add(&fmr->list, &pool->free_list); in ib_fmr_pool_map_phys()
482 list_add_tail(&fmr->list, &pool->free_list); in ib_fmr_pool_unmap()
/drivers/staging/gdm724x/
Dgdm_usb.c149 if (list_empty(&tx->free_list)) in get_tx_sdu_struct()
152 t_sdu = list_entry(tx->free_list.next, struct usb_tx_sdu, list); in get_tx_sdu_struct()
157 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct()
164 list_add_tail(&t_sdu->list, &tx->free_list); in put_tx_struct()
215 if (list_empty(&rx->free_list)) { in get_rx_struct()
220 r = list_entry(rx->free_list.next, struct usb_rx, free_list); in get_rx_struct()
221 list_del(&r->free_list); in get_rx_struct()
225 *no_spc = list_empty(&rx->free_list) ? 1 : 0; in get_rx_struct()
238 list_add_tail(&r->free_list, &rx->free_list); in put_rx_struct()
264 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()
/drivers/staging/android/ion/
Dion_heap.c77 while (!list_empty(&heap->free_list)) { in _ion_heap_freelist_drain()
80 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in _ion_heap_freelist_drain()
108 if (list_empty(&heap->free_list)) { in ion_heap_deferred_free()
114 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in ion_heap_deferred_free()
211 list_add(&buffer->list, &heap->free_list); in ion_heap_freelist_add()
242 INIT_LIST_HEAD(&heap->free_list); in ion_heap_init_deferred_free()
/drivers/gpu/drm/i915/
Di915_buddy.c81 &mm->free_list[i915_buddy_block_order(block)]); in mark_free()
114 mm->free_list = kmalloc_array(mm->max_order + 1, in i915_buddy_init()
117 if (!mm->free_list) in i915_buddy_init()
121 INIT_LIST_HEAD(&mm->free_list[i]); in i915_buddy_init()
169 kfree(mm->free_list); in i915_buddy_init()
183 kfree(mm->free_list); in i915_buddy_fini()
285 block = list_first_entry_or_null(&mm->free_list[i], in i915_buddy_alloc()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c15 struct list_head free_list; member
262 list_add(&chunk->chunk_list, &bucket->free_list); in dr_icm_chunks_create()
308 INIT_LIST_HEAD(&bucket->free_list); in dr_icm_bucket_init()
319 list_splice_tail_init(&bucket->sync_list, &bucket->free_list); in dr_icm_bucket_cleanup()
320 list_splice_tail_init(&bucket->hot_list, &bucket->free_list); in dr_icm_bucket_cleanup()
322 list_for_each_entry_safe(chunk, next, &bucket->free_list, chunk_list) in dr_icm_bucket_cleanup()
365 list_splice_tail_init(&bucket->sync_list, &bucket->free_list); in dr_icm_chill_bucket_end()
465 if (list_empty(&bucket->free_list)) { in mlx5dr_icm_alloc_chunk()
481 if (!list_empty(&bucket->free_list)) { in mlx5dr_icm_alloc_chunk()
482 chunk = list_last_entry(&bucket->free_list, in mlx5dr_icm_alloc_chunk()
/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()
386 list_add_tail(&mc_dev_irq->resource.node, &res_pool->free_list); in fsl_mc_populate_irq_pool()
425 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_cleanup_irq_pool()
546 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_init_all_resource_pools()
561 list_for_each_entry_safe(resource, next, &res_pool->free_list, node) { in fsl_mc_cleanup_resource_pool()
/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()
1034 free_list: in qib_user_sdma_queue_pkts()
1051 struct list_head free_list; in qib_user_sdma_queue_clean() local
1060 INIT_LIST_HEAD(&free_list); in qib_user_sdma_queue_clean()
1074 list_move_tail(&pkt->list, &free_list); in qib_user_sdma_queue_clean()
1082 if (!list_empty(&free_list)) { in qib_user_sdma_queue_clean()
1085 pkt = list_entry(free_list.prev, in qib_user_sdma_queue_clean()
1089 qib_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, &free_list); in qib_user_sdma_queue_clean()
1150 struct list_head free_list; in qib_user_sdma_queue_drain() local
[all …]
/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.c173 struct list_head free_list; member
214 desc = list_first_entry(&mdev->free_list, struct msgdma_sw_desc, node); in msgdma_get_descriptor()
234 list_add_tail(&desc->node, &mdev->free_list); in msgdma_free_descriptor()
237 list_move_tail(&child->node, &mdev->free_list); in msgdma_free_descriptor()
665 INIT_LIST_HEAD(&mdev->free_list); in msgdma_alloc_chan_resources()
671 list_add_tail(&desc->node, &mdev->free_list); in msgdma_alloc_chan_resources()
840 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()
899 INIT_LIST_HEAD(&pd_chan->free_list); in pch_dma_probe()
Dmv_xor_v2.c181 struct list_head free_list; member
350 list_for_each_entry(sw_desc, &xor_dev->free_sw_desc, free_list) { in mv_xor_v2_prep_sw_desc()
362 list_del(&sw_desc->free_list); in mv_xor_v2_prep_sw_desc()
592 list_add(&next_pending_sw_desc->free_list, in mv_xor_v2_tasklet()
824 list_add(&sw_desc->free_list, in mv_xor_v2_probe()
/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()
518 priv->stats_ids.free_list.buf = in nfp_flower_metadata_init()
521 if (!priv->stats_ids.free_list.buf) in nfp_flower_metadata_init()
538 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_init()
564 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_cleanup()
/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 …]
/drivers/pci/
Dsetup-bus.c41 static void free_list(struct list_head *head) in free_list() function
382 free_list(&save_head); in __assign_resources_sorted()
437 free_list(&save_head); in __assign_resources_sorted()
438 free_list(head); in __assign_resources_sorted()
455 free_list(&local_fail_head); in __assign_resources_sorted()
468 free_list(&save_head); in __assign_resources_sorted()
477 free_list(head); in __assign_resources_sorted()
1765 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources()
1795 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources()
2021 free_list(&fail_head); in pci_assign_unassigned_bridge_resources()
[all …]
/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()
/drivers/dma/xilinx/
Dzynqmp_dma.c220 struct list_head free_list; member
411 desc = list_first_entry(&chan->free_list, in zynqmp_dma_get_descriptor()
435 list_add_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor()
438 list_move_tail(&child->node, &chan->free_list); in zynqmp_dma_free_descriptor()
480 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_alloc_chan_resources()
486 list_add_tail(&desc->node, &chan->free_list); in zynqmp_dma_alloc_chan_resources()
911 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_chan_probe()
/drivers/net/ethernet/mellanox/mlx5/core/
Dpagealloc.c109 list_add(&nfp->list, &dev->priv.free_list); in insert_page()
164 if (list_empty(&dev->priv.free_list)) in alloc_4k()
167 fp = list_entry(dev->priv.free_list.next, struct fw_page, list); in alloc_4k()
208 list_add(&fwp->list, &dev->priv.free_list); in free_4k()
566 INIT_LIST_HEAD(&dev->priv.free_list); in mlx5_pagealloc_init()
/drivers/gpu/drm/ttm/
Dttm_page_alloc_dma.c101 struct list_head free_list; member
435 list_for_each_entry_safe_reverse(dma_p, tmp, &pool->free_list, in ttm_dma_page_pool_free()
588 INIT_LIST_HEAD(&pool->free_list); in ttm_dma_pool_init()
807 list_splice(&d_pages, &pool->free_list); in ttm_dma_page_pool_fill_locked()
821 list_splice_tail(&d_pages, &pool->free_list); in ttm_dma_page_pool_fill_locked()
846 d_page = list_first_entry(&pool->free_list, struct dma_page, page_list); in ttm_dma_pool_get_pages()
1060 list_splice(&ttm_dma->pages_list, &pool->free_list); in ttm_dma_unpopulate()
/drivers/net/ethernet/qlogic/qed/
Dqed_hw.c65 struct list_head free_list; member
78 INIT_LIST_HEAD(&p_pool->free_list); in qed_ptt_pool_alloc()
86 &p_pool->free_list); in qed_ptt_pool_alloc()
121 if (!list_empty(&p_hwfn->p_ptt_pool->free_list)) { in qed_ptt_acquire()
122 p_ptt = list_first_entry(&p_hwfn->p_ptt_pool->free_list, in qed_ptt_acquire()
144 list_add(&p_ptt->list_entry, &p_hwfn->p_ptt_pool->free_list); in qed_ptt_release()
Dqed_fcoe.h48 struct list_head free_list; member
Dqed_iscsi.h49 struct list_head free_list; member
/drivers/atm/
Deni.c173 eni_dev->free_list[i].start, in dump_mem()
174 1 << eni_dev->free_list[i].order); in dump_mem()
210 list = eni_dev->free_list; in eni_put_free()
241 list = eni_dev->free_list; in eni_alloc_mem()
280 list = eni_dev->free_list; in eni_free_mem()
914 free_page((unsigned long) eni_dev->free_list); in start_rx()
1850 eni_dev->free_list = kmalloc_array(eni_dev->free_list_size + 1, in eni_start()
1851 sizeof(*eni_dev->free_list), in eni_start()
1853 if (!eni_dev->free_list) { in eni_start()
1873 if (error) goto free_list; in eni_start()
[all …]

1234