/drivers/s390/char/ |
D | raw3270.h | 215 alloc_string(struct list_head *free_list, unsigned long len) in alloc_string() argument 221 list_for_each_entry(cs, free_list, list) { in alloc_string() 241 free_string(struct list_head *free_list, struct string *cs) in free_string() argument 247 left = free_list; in free_string() 248 list_for_each(p, free_list) { in free_string() 254 if (left->next != free_list) { in free_string() 262 if (left != free_list) { in free_string() 274 add_string_memory(struct list_head *free_list, void *mem, unsigned long size) in add_string_memory() argument 280 free_string(free_list, cs); in add_string_memory()
|
/drivers/infiniband/core/ |
D | fmr_pool.c | 91 struct list_head free_list; member 173 list_splice(&unmap_list, &pool->free_list); in ib_fmr_batch_release() 242 INIT_LIST_HEAD(&pool->free_list); in ib_create_fmr_pool() 309 list_add_tail(&fmr->list, &pool->free_list); in ib_create_fmr_pool() 346 list_for_each_entry_safe(fmr, tmp, &pool->free_list, list) { in ib_destroy_fmr_pool() 385 list_for_each_entry_safe(fmr, next, &pool->free_list, list) { in ib_flush_fmr_pool() 441 if (list_empty(&pool->free_list)) { in ib_fmr_pool_map_phys() 446 fmr = list_entry(pool->free_list.next, struct ib_pool_fmr, list); in ib_fmr_pool_map_phys() 456 list_add(&fmr->list, &pool->free_list); in ib_fmr_pool_map_phys() 501 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 | 83 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_pool_add_device() 202 resource = list_first_entry_or_null(&res_pool->free_list, in fsl_mc_resource_allocate() 250 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_free() 377 list_add_tail(&mc_dev_irq->resource.node, &res_pool->free_list); in fsl_mc_populate_irq_pool() 416 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_cleanup_irq_pool() 544 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_init_all_resource_pools() 562 list_for_each_entry_safe(resource, next, &res_pool->free_list, node) { in fsl_mc_cleanup_resource_pool()
|
/drivers/scsi/ |
D | scsi.c | 201 if (likely(!list_empty(&shost->free_list))) { in __scsi_get_command() 202 cmd = list_entry(shost->free_list.next, in __scsi_get_command() 258 if (unlikely(list_empty(&shost->free_list))) { in __scsi_put_command() 260 if (list_empty(&shost->free_list)) { in __scsi_put_command() 261 list_add(&cmd->list, &shost->free_list); in __scsi_put_command() 431 INIT_LIST_HEAD(&shost->free_list); in scsi_setup_command_freelist() 446 list_add(&cmd->list, &shost->free_list); in scsi_setup_command_freelist() 463 while (!list_empty(&shost->free_list)) { in scsi_destroy_command_freelist() 466 cmd = list_entry(shost->free_list.next, struct scsi_cmnd, list); in scsi_destroy_command_freelist()
|
/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 | 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() 462 list_for_each_entry_safe(desc, _d, &pd_chan->free_list, desc_node) { in pdc_desc_get() 494 list_splice_init(&desc->tx_list, &pd_chan->free_list); in pdc_desc_put() 495 list_add(&desc->desc_node, &pd_chan->free_list); in pdc_desc_put() 512 if (!list_empty(&pd_chan->free_list)) in pd_alloc_chan_resources() 528 list_splice(&tmp_list, &pd_chan->free_list); in pd_alloc_chan_resources() 550 list_splice_init(&pd_chan->free_list, &tmp_list); in pd_free_chan_resources() 910 INIT_LIST_HEAD(&pd_chan->free_list); in pch_dma_probe()
|
D | mv_xor_v2.c | 178 struct list_head free_list; member 325 list_for_each_entry(sw_desc, &xor_dev->free_sw_desc, free_list) { in mv_xor_v2_prep_sw_desc() 337 list_del(&sw_desc->free_list); in mv_xor_v2_prep_sw_desc() 572 list_add(&next_pending_sw_desc->free_list, in mv_xor_v2_tasklet() 768 list_add(&sw_desc->free_list, in mv_xor_v2_probe()
|
D | ep93xx_dma.c | 179 struct list_head free_list; member 681 list_for_each_entry_safe(desc, _desc, &edmac->free_list, node) { in ep93xx_dma_desc_get() 709 list_splice_init(&desc->tx_list, &edmac->free_list); in ep93xx_dma_desc_put() 710 list_add(&desc->node, &edmac->free_list); in ep93xx_dma_desc_put() 963 list_splice_init(&edmac->free_list, &list); in ep93xx_dma_free_chan_resources() 1337 INIT_LIST_HEAD(&edmac->free_list); in ep93xx_dma_probe()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_io.c | 242 cmgr->free_list = kzalloc(sizeof(*cmgr->free_list) * in bnx2fc_cmd_mgr_alloc() 244 if (!cmgr->free_list) { in bnx2fc_cmd_mgr_alloc() 253 kfree(cmgr->free_list); in bnx2fc_cmd_mgr_alloc() 254 cmgr->free_list = NULL; in bnx2fc_cmd_mgr_alloc() 262 INIT_LIST_HEAD(&cmgr->free_list[i]); in bnx2fc_cmd_mgr_alloc() 287 &cmgr->free_list[io_req->xid % in bnx2fc_cmd_mgr_alloc() 291 &cmgr->free_list[num_possible_cpus()]); in bnx2fc_cmd_mgr_alloc() 375 if (!cmgr->free_list) in bnx2fc_cmd_mgr_free() 382 &cmgr->free_list[i], link) { in bnx2fc_cmd_mgr_free() 387 kfree(cmgr->free_list); in bnx2fc_cmd_mgr_free() [all …]
|
/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/infiniband/ulp/srpt/ |
D | ib_srpt.h | 206 struct list_head free_list; member 280 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() 531 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 402 free_list(&save_head); in __assign_resources_sorted() 457 free_list(&save_head); in __assign_resources_sorted() 458 free_list(head); in __assign_resources_sorted() 475 free_list(&local_fail_head); in __assign_resources_sorted() 488 free_list(&save_head); in __assign_resources_sorted() 498 free_list(head); in __assign_resources_sorted() 1813 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources() 1843 free_list(&fail_head); in pci_assign_unassigned_root_bus_resources() 1888 free_list(&fail_head); in pci_assign_unassigned_bridge_resources() [all …]
|
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc_dma.c | 108 struct list_head free_list; member 455 list_for_each_entry_safe_reverse(dma_p, tmp, &pool->free_list, in ttm_dma_page_pool_free() 608 INIT_LIST_HEAD(&pool->free_list); in ttm_dma_pool_init() 820 list_splice(&d_pages, &pool->free_list); in ttm_dma_page_pool_fill_locked() 834 list_splice_tail(&d_pages, &pool->free_list); in ttm_dma_page_pool_fill_locked() 859 d_page = list_first_entry(&pool->free_list, struct dma_page, page_list); in ttm_dma_pool_get_pages() 964 list_splice(&ttm_dma->pages_list, &pool->free_list); in ttm_dma_unpopulate()
|
/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() 992 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_chan_probe()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_hw.c | 40 struct list_head free_list; member 53 INIT_LIST_HEAD(&p_pool->free_list); in qed_ptt_pool_alloc() 60 &p_pool->free_list); in qed_ptt_pool_alloc() 95 if (!list_empty(&p_hwfn->p_ptt_pool->free_list)) { in qed_ptt_acquire() 96 p_ptt = list_first_entry(&p_hwfn->p_ptt_pool->free_list, in qed_ptt_acquire() 118 list_add(&p_ptt->list_entry, &p_hwfn->p_ptt_pool->free_list); in qed_ptt_release()
|
/drivers/lightnvm/ |
D | gennvm.c | 254 INIT_LIST_HEAD(&lun->free_list); in gen_luns_init() 380 list_add_tail(&block->list, &lun->free_list); in gen_blocks_init() 484 if (list_empty(&lun->free_list)) { in gen_get_blk() 493 blk = list_first_entry(&lun->free_list, struct nvm_block, list); in gen_get_blk() 510 list_move_tail(&blk->list, &lun->free_list); in gen_put_blk()
|
D | gennvm.h | 29 struct list_head free_list; /* Not used blocks i.e. released 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() 1716 list_add_tail(&rxbuf->list, &sds_ring->free_list[ring]); in netxen_process_rcv_ring() 1732 if (!list_empty(&sds_ring->free_list[ring])) { in netxen_process_rcv_ring() 1733 list_for_each(cur, &sds_ring->free_list[ring]) { in netxen_process_rcv_ring() 1739 netxen_merge_rx_buffers(&sds_ring->free_list[ring], in netxen_process_rcv_ring() 1740 &rds_ring->free_list); in netxen_process_rcv_ring() 1839 head = &rds_ring->free_list; in netxen_post_rx_buffers() 1899 head = &rds_ring->free_list; in netxen_post_rx_buffers_nodb()
|