/drivers/s390/char/ |
D | raw3270.h | 218 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/ |
D | fmr_pool.c | 91 struct list_head free_list; member 174 list_splice(&unmap_list, &pool->free_list); in ib_fmr_batch_release() 233 INIT_LIST_HEAD(&pool->free_list); in ib_create_fmr_pool() 297 list_add_tail(&fmr->list, &pool->free_list); in ib_create_fmr_pool() 334 list_for_each_entry_safe(fmr, tmp, &pool->free_list, list) { in ib_destroy_fmr_pool() 373 list_for_each_entry_safe(fmr, next, &pool->free_list, list) { in ib_flush_fmr_pool() 429 if (list_empty(&pool->free_list)) { in ib_fmr_pool_map_phys() 434 fmr = list_entry(pool->free_list.next, struct ib_pool_fmr, list); in ib_fmr_pool_map_phys() 444 list_add(&fmr->list, &pool->free_list); in ib_fmr_pool_map_phys() 489 list_add_tail(&fmr->list, &pool->free_list); in ib_fmr_pool_unmap()
|
/drivers/staging/gdm724x/ |
D | gdm_usb.c | 159 if (list_empty(&tx->free_list)) in get_tx_sdu_struct() 162 t_sdu = list_entry(tx->free_list.next, struct usb_tx_sdu, list); in get_tx_sdu_struct() 167 *no_spc = list_empty(&tx->free_list) ? 1 : 0; in get_tx_sdu_struct() 174 list_add_tail(&t_sdu->list, &tx->free_list); in put_tx_struct() 225 if (list_empty(&rx->free_list)) { in get_rx_struct() 230 r = list_entry(rx->free_list.next, struct usb_rx, free_list); in get_rx_struct() 231 list_del(&r->free_list); in get_rx_struct() 235 *no_spc = list_empty(&rx->free_list) ? 1 : 0; in get_rx_struct() 248 list_add_tail(&r->free_list, &rx->free_list); in put_rx_struct() 274 list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->free_list, list) { in release_usb() [all …]
|
D | gdm_usb.h | 66 struct list_head free_list; member 79 struct list_head free_list; member 87 struct list_head free_list; member
|
D | gdm_mux.c | 133 r = list_entry(rx->rx_free_list.prev, struct mux_rx, free_list); in get_rx_struct() 134 list_del(&r->free_list); in get_rx_struct() 146 list_add_tail(&r->free_list, &rx->rx_free_list); in put_rx_struct() 458 list_for_each_entry_safe(r, r_next, &rx->rx_free_list, free_list) { in release_usb() 459 list_del(&r->free_list); in release_usb() 496 list_add(&r->free_list, &rx->rx_free_list); in init_usb()
|
/drivers/staging/android/ion/ |
D | ion_heap.c | 166 list_add(&buffer->list, &heap->free_list); in ion_heap_freelist_add() 196 while (!list_empty(&heap->free_list)) { in _ion_heap_freelist_drain() 199 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in _ion_heap_freelist_drain() 236 if (list_empty(&heap->free_list)) { in ion_heap_deferred_free() 240 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in ion_heap_deferred_free() 255 INIT_LIST_HEAD(&heap->free_list); in ion_heap_init_deferred_free()
|
/drivers/staging/fsl-mc/bus/ |
D | fsl-mc-allocator.c | 79 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_pool_add_device() 198 resource = list_first_entry_or_null(&res_pool->free_list, in fsl_mc_resource_allocate() 246 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_free() 379 list_add_tail(&mc_dev_irq->resource.node, &res_pool->free_list); in fsl_mc_populate_irq_pool() 418 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_cleanup_irq_pool() 541 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_init_all_resource_pools() 559 list_for_each_entry_safe(resource, next, &res_pool->free_list, node) { in fsl_mc_cleanup_resource_pool()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 842 goto free_list; in qib_user_sdma_queue_pkts() 848 goto free_list; in qib_user_sdma_queue_pkts() 1037 free_list: in qib_user_sdma_queue_pkts() 1054 struct list_head free_list; in qib_user_sdma_queue_clean() local 1063 INIT_LIST_HEAD(&free_list); in qib_user_sdma_queue_clean() 1077 list_move_tail(&pkt->list, &free_list); in qib_user_sdma_queue_clean() 1085 if (!list_empty(&free_list)) { in qib_user_sdma_queue_clean() 1088 pkt = list_entry(free_list.prev, in qib_user_sdma_queue_clean() 1092 qib_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, &free_list); in qib_user_sdma_queue_clean() 1153 struct list_head free_list; in qib_user_sdma_queue_drain() local [all …]
|
/drivers/dma/ |
D | timb_dma.c | 88 struct list_head free_list; member 256 list_move(&td_desc->desc_node, &td_chan->free_list); in __td_finish() 384 list_add(&td_desc->desc_node, &td_chan->free_list); in td_desc_put() 394 list_for_each_entry_safe(td_desc, _td_desc, &td_chan->free_list, in td_desc_get() 417 BUG_ON(!list_empty(&td_chan->free_list)); in td_alloc_chan_resources() 454 list_splice_init(&td_chan->free_list, &list); in td_free_chan_resources() 565 list_move(&td_desc->desc_node, &td_chan->free_list); in td_terminate_all() 708 INIT_LIST_HEAD(&td_chan->free_list); in td_probe()
|
D | altera-msgdma.c | 177 struct list_head free_list; member 218 desc = list_first_entry(&mdev->free_list, struct msgdma_sw_desc, node); in msgdma_get_descriptor() 238 list_add_tail(&desc->node, &mdev->free_list); in msgdma_free_descriptor() 241 list_move_tail(&child->node, &mdev->free_list); in msgdma_free_descriptor() 669 INIT_LIST_HEAD(&mdev->free_list); in msgdma_alloc_chan_resources() 675 list_add_tail(&desc->node, &mdev->free_list); in msgdma_alloc_chan_resources() 844 INIT_LIST_HEAD(&mdev->free_list); in msgdma_probe()
|
D | pch_dma.c | 109 struct list_head free_list; member 363 list_splice_init(&desc->tx_list, &pd_chan->free_list); in pdc_chain_complete() 364 list_move(&desc->desc_node, &pd_chan->free_list); in pdc_chain_complete() 459 list_for_each_entry_safe(desc, _d, &pd_chan->free_list, desc_node) { in pdc_desc_get() 491 list_splice_init(&desc->tx_list, &pd_chan->free_list); in pdc_desc_put() 492 list_add(&desc->desc_node, &pd_chan->free_list); in pdc_desc_put() 509 if (!list_empty(&pd_chan->free_list)) in pd_alloc_chan_resources() 525 list_splice(&tmp_list, &pd_chan->free_list); in pd_alloc_chan_resources() 547 list_splice_init(&pd_chan->free_list, &tmp_list); in pd_free_chan_resources() 907 INIT_LIST_HEAD(&pd_chan->free_list); in pch_dma_probe()
|
D | mv_xor_v2.c | 190 struct list_head free_list; member 360 list_for_each_entry(sw_desc, &xor_dev->free_sw_desc, free_list) { in mv_xor_v2_prep_sw_desc() 372 list_del(&sw_desc->free_list); in mv_xor_v2_prep_sw_desc() 604 list_add(&next_pending_sw_desc->free_list, in mv_xor_v2_tasklet() 834 list_add(&sw_desc->free_list, in mv_xor_v2_probe()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_io.c | 243 cmgr->free_list = kzalloc(sizeof(*cmgr->free_list) * in bnx2fc_cmd_mgr_alloc() 245 if (!cmgr->free_list) { in bnx2fc_cmd_mgr_alloc() 254 kfree(cmgr->free_list); in bnx2fc_cmd_mgr_alloc() 255 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/net/ethernet/netronome/nfp/flower/ |
D | metadata.c | 56 ring = &priv->stats_ids.free_list; in nfp_release_stats_entry() 76 ring = &priv->stats_ids.free_list; in nfp_get_stats_entry() 415 priv->stats_ids.free_list.buf = in nfp_flower_metadata_init() 417 if (!priv->stats_ids.free_list.buf) in nfp_flower_metadata_init() 440 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_cleanup()
|
/drivers/rapidio/devices/ |
D | tsi721_dma.c | 391 list_move(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tx_err() 656 list_add(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tasklet() 686 list_add(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tasklet() 770 list_add(&desc[i].desc_node, &bdma_chan->free_list); in tsi721_alloc_chan_resources() 809 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_free_chan_resources() 885 if (!list_empty(&bdma_chan->free_list)) { in tsi721_prep_rio_sg() 886 desc = list_first_entry(&bdma_chan->free_list, in tsi721_prep_rio_sg() 1006 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_register_dma() 1052 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_unregister_dma()
|
/drivers/dma/xilinx/ |
D | zynqmp_dma.c | 222 struct list_head free_list; member 409 desc = list_first_entry(&chan->free_list, in zynqmp_dma_get_descriptor() 433 list_add_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor() 436 list_move_tail(&child->node, &chan->free_list); in zynqmp_dma_free_descriptor() 474 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_alloc_chan_resources() 480 list_add_tail(&desc->node, &chan->free_list); in zynqmp_dma_alloc_chan_resources() 897 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_chan_probe()
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.h | 206 struct list_head free_list; member 281 struct list_head free_list; member
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | pagealloc.c | 107 list_add(&nfp->list, &dev->priv.free_list); in insert_page() 161 if (list_empty(&dev->priv.free_list)) in alloc_4k() 164 fp = list_entry(dev->priv.free_list.next, struct fw_page, list); in alloc_4k() 205 list_add(&fwp->list, &dev->priv.free_list); in free_4k() 530 INIT_LIST_HEAD(&dev->priv.free_list); in mlx5_pagealloc_init()
|
/drivers/pci/ |
D | setup-bus.c | 44 static void free_list(struct list_head *head) in free_list() function 393 free_list(&save_head); in __assign_resources_sorted() 448 free_list(&save_head); in __assign_resources_sorted() 449 free_list(head); in __assign_resources_sorted() 466 free_list(&local_fail_head); in __assign_resources_sorted() 479 free_list(&save_head); in __assign_resources_sorted() 489 free_list(head); in __assign_resources_sorted() 1804 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources() 1840 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources() 1885 free_list(&fail_head); in pci_assign_unassigned_bridge_resources() [all …]
|
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc_dma.c | 111 struct list_head free_list; member 458 list_for_each_entry_safe_reverse(dma_p, tmp, &pool->free_list, in ttm_dma_page_pool_free() 611 INIT_LIST_HEAD(&pool->free_list); in ttm_dma_pool_init() 823 list_splice(&d_pages, &pool->free_list); in ttm_dma_page_pool_fill_locked() 837 list_splice_tail(&d_pages, &pool->free_list); in ttm_dma_page_pool_fill_locked() 862 d_page = list_first_entry(&pool->free_list, struct dma_page, page_list); in ttm_dma_pool_get_pages() 967 list_splice(&ttm_dma->pages_list, &pool->free_list); in ttm_dma_unpopulate()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_hw.c | 65 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()
|
D | qed_fcoe.h | 48 struct list_head free_list; member
|
D | qed_iscsi.h | 49 struct list_head free_list; member
|
/drivers/atm/ |
D | eni.c | 172 eni_dev->free_list[i].start, in dump_mem() 173 1 << eni_dev->free_list[i].order); in dump_mem() 209 list = eni_dev->free_list; in eni_put_free() 240 list = eni_dev->free_list; in eni_alloc_mem() 278 list = eni_dev->free_list; in eni_free_mem() 912 free_page((unsigned long) eni_dev->free_list); in start_rx() 1848 eni_dev->free_list = kmalloc_array(eni_dev->free_list_size + 1, in eni_start() 1849 sizeof(*eni_dev->free_list), in eni_start() 1851 if (!eni_dev->free_list) { in eni_start() 1871 if (error) goto free_list; in eni_start() [all …]
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 280 INIT_LIST_HEAD(&rds_ring->free_list); in netxen_alloc_sw_resources() 288 &rds_ring->free_list); in netxen_alloc_sw_resources() 303 INIT_LIST_HEAD(&sds_ring->free_list[i]); in netxen_alloc_sw_resources() 1712 list_add_tail(&rxbuf->list, &sds_ring->free_list[ring]); in netxen_process_rcv_ring() 1728 if (!list_empty(&sds_ring->free_list[ring])) { in netxen_process_rcv_ring() 1729 list_for_each(cur, &sds_ring->free_list[ring]) { in netxen_process_rcv_ring() 1735 netxen_merge_rx_buffers(&sds_ring->free_list[ring], in netxen_process_rcv_ring() 1736 &rds_ring->free_list); in netxen_process_rcv_ring() 1835 head = &rds_ring->free_list; in netxen_post_rx_buffers() 1895 head = &rds_ring->free_list; in netxen_post_rx_buffers_nodb()
|