Home
last modified time | relevance | path

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

/drivers/s390/char/
Draw3270.h212 alloc_string(struct list_head *free_list, unsigned long len) in alloc_string() argument
218 list_for_each_entry(cs, free_list, list) { in alloc_string()
238 free_string(struct list_head *free_list, struct string *cs) in free_string() argument
244 left = free_list; in free_string()
245 list_for_each(p, free_list) { in free_string()
251 if (left->next != free_list) { in free_string()
259 if (left != free_list) { in free_string()
271 add_string_memory(struct list_head *free_list, void *mem, unsigned long size) in add_string_memory() argument
277 free_string(free_list, cs); in add_string_memory()
/drivers/infiniband/core/
Dfmr_pool.c90 struct list_head free_list; member
173 list_splice(&unmap_list, &pool->free_list); in ib_fmr_batch_release()
262 INIT_LIST_HEAD(&pool->free_list); in ib_create_fmr_pool()
332 list_add_tail(&fmr->list, &pool->free_list); in ib_create_fmr_pool()
369 list_for_each_entry_safe(fmr, tmp, &pool->free_list, list) { in ib_destroy_fmr_pool()
408 list_for_each_entry_safe(fmr, next, &pool->free_list, list) { in ib_flush_fmr_pool()
464 if (list_empty(&pool->free_list)) { in ib_fmr_pool_map_phys()
469 fmr = list_entry(pool->free_list.next, struct ib_pool_fmr, list); in ib_fmr_pool_map_phys()
479 list_add(&fmr->list, &pool->free_list); in ib_fmr_pool_map_phys()
524 list_add_tail(&fmr->list, &pool->free_list); in ib_fmr_pool_unmap()
Diwcm.c62 struct list_head free_list; member
96 free_list); in get_work()
97 list_del_init(&work->free_list); in get_work()
103 list_add(&work->free_list, &work->cm_id->work_free_list); in put_work()
111 kfree(list_entry(e, struct iwcm_work, free_list)); in dealloc_work_entries()
Dmad.c1147 struct list_head free_list; in ib_free_recv_mad() local
1149 INIT_LIST_HEAD(&free_list); in ib_free_recv_mad()
1150 list_splice_init(&mad_recv_wc->rmpp_list, &free_list); in ib_free_recv_mad()
1153 &free_list, list) { in ib_free_recv_mad()
/drivers/infiniband/hw/ipath/
Dipath_user_sdma.c428 goto free_list; in ipath_user_sdma_queue_pkts()
550 free_list: in ipath_user_sdma_queue_pkts()
566 struct list_head free_list; in ipath_user_sdma_queue_clean() local
571 INIT_LIST_HEAD(&free_list); in ipath_user_sdma_queue_clean()
579 list_move_tail(&pkt->list, &free_list); in ipath_user_sdma_queue_clean()
585 if (!list_empty(&free_list)) { in ipath_user_sdma_queue_clean()
588 pkt = list_entry(free_list.prev, in ipath_user_sdma_queue_clean()
592 ipath_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, &free_list); in ipath_user_sdma_queue_clean()
644 struct list_head free_list; in ipath_user_sdma_queue_drain() local
647 INIT_LIST_HEAD(&free_list); in ipath_user_sdma_queue_drain()
[all …]
/drivers/scsi/
Dscsi.c255 if (likely(!list_empty(&shost->free_list))) { in __scsi_get_command()
256 cmd = list_entry(shost->free_list.next, in __scsi_get_command()
319 if (unlikely(list_empty(&shost->free_list))) { in __scsi_put_command()
320 list_add(&cmd->list, &shost->free_list); in __scsi_put_command()
481 INIT_LIST_HEAD(&shost->free_list); in scsi_setup_command_freelist()
497 list_add(&cmd->list, &shost->free_list); in scsi_setup_command_freelist()
514 while (!list_empty(&shost->free_list)) { in scsi_destroy_command_freelist()
517 cmd = list_entry(shost->free_list.next, struct scsi_cmnd, list); in scsi_destroy_command_freelist()
D53c700.c349 hostdata->free_list = &hostdata->slots[j]; in NCR_700_detect()
515 struct NCR_700_command_slot *slot = hostdata->free_list; in find_empty_slot()
529 hostdata->free_list = slot->ITL_forw; in find_empty_slot()
558 slot->ITL_forw = hostdata->free_list; in free_slot()
559 hostdata->free_list = slot; in free_slot()
D53c700.h243 struct NCR_700_command_slot *free_list; member
Dmegaraid.h817 struct list_head free_list; member
Dmegaraid.c417 struct list_head *head = &adapter->free_list; in mega_allocate_scb()
1709 list_add(&scb->list, &adapter->free_list); in mega_free_scb()
3263 list_add(&scb->list, &adapter->free_list); in mega_init_scb()
4609 INIT_LIST_HEAD(&adapter->free_list); in megaraid_probe_one()
/drivers/atm/
Deni.c175 eni_dev->free_list[i].start, in dump_mem()
176 1 << eni_dev->free_list[i].order); in dump_mem()
212 list = eni_dev->free_list; in eni_put_free()
243 list = eni_dev->free_list; in eni_alloc_mem()
281 list = eni_dev->free_list; in eni_free_mem()
912 free_page((unsigned long) eni_dev->free_list); in start_rx()
1838 eni_dev->free_list = kmalloc( in eni_start()
1840 if (!eni_dev->free_list) { in eni_start()
1860 if (error) goto free_list; in eni_start()
1862 if (error) goto free_list; in eni_start()
[all …]
Deni.h102 struct eni_free *free_list; /* free list */ member
/drivers/dma/
Ddw_dmac.c99 list_for_each_entry_safe(desc, _desc, &dwc->free_list, desc_node) { in dwc_desc_get()
144 list_splice_init(&desc->txd.tx_list, &dwc->free_list); in dwc_desc_put()
146 list_add(&desc->desc_node, &dwc->free_list); in dwc_desc_put()
212 list_splice_init(&txd->tx_list, &dwc->free_list); in dwc_descriptor_complete()
213 list_move(&desc->desc_node, &dwc->free_list); in dwc_descriptor_complete()
867 list_splice_init(&dwc->free_list, &list); in dwc_free_chan_resources()
979 INIT_LIST_HEAD(&dwc->free_list); in dw_probe()
Ddw_dmac_regs.h140 struct list_head free_list; member
/drivers/usb/host/
Dehci-sched.c866 INIT_LIST_HEAD(&stream->free_list); in iso_stream_alloc()
981 while (!list_empty (&stream->free_list)) { in iso_stream_put()
984 entry = stream->free_list.next; in iso_stream_put()
1142 list_splice (&iso_sched->td_list, &stream->free_list); in iso_sched_free()
1181 if (likely (!list_empty(&stream->free_list))) { in itd_urb_transaction()
1182 itd = list_entry (stream->free_list.prev, in itd_urb_transaction()
1663 list_move(&itd->itd_list, &stream->free_list); in itd_complete()
1834 if (!list_empty(&stream->free_list)) { in sitd_urb_transaction()
1835 sitd = list_entry (stream->free_list.prev, in sitd_urb_transaction()
2049 list_move(&sitd->sitd_list, &stream->free_list); in sitd_complete()
[all …]
Dehci.h426 struct list_head free_list; /* list of unused itds/sitds */ member
/drivers/char/rio/
Dparmmap.h45 u16 free_list; /* Free List pointer */ member
/drivers/dma/ipu/
Dipu_idmac.c939 INIT_LIST_HEAD(&ichan->free_list); in idmac_desc_alloc()
950 list_add(&desc->list, &ichan->free_list); in idmac_desc_alloc()
1336 list_move(&desc->list, &ichan->free_list); in ipu_gc_tasklet()
1373 if (!list_empty(&ichan->free_list)) { in idmac_prep_slave_sg()
1374 desc = list_entry(ichan->free_list.next, in idmac_prep_slave_sg()
1428 list_splice_init(&ichan->queue, &ichan->free_list); in __idmac_terminate_all()
1436 &ichan->free_list); in __idmac_terminate_all()
/drivers/net/netxen/
Dnetxen_nic_init.c310 INIT_LIST_HEAD(&rds_ring->free_list); in netxen_alloc_sw_resources()
319 &rds_ring->free_list); in netxen_alloc_sw_resources()
1200 list_add_tail(&buffer->list, &rds_ring->free_list); in netxen_process_rxbuf()
1446 head = &rds_ring->free_list; in netxen_post_rx_buffers()
1528 head = &rds_ring->free_list; in netxen_post_rx_buffers_nodb()
Dnetxen_nic.h862 struct list_head free_list; member
/drivers/net/
Dxen-netfront.c1027 struct sk_buff_head free_list; in xennet_release_rx_bufs() local
1037 skb_queue_head_init(&free_list); in xennet_release_rx_bufs()
1077 __skb_queue_tail(&free_list, skb); in xennet_release_rx_bufs()
1094 __skb_queue_purge(&free_list); in xennet_release_rx_bufs()
/drivers/scsi/aic7xxx/
Daic79xx_core.c6658 struct scb_list *free_list; in ahd_add_col_list() local
6664 free_list = &ahd->scb_data.free_scb_lists[col_idx]; in ahd_add_col_list()
6666 first_scb = LIST_FIRST(free_list); in ahd_add_col_list()
6670 LIST_INSERT_HEAD(free_list, scb, collision_links); in ahd_add_col_list()
6678 struct scb_list *free_list; in ahd_rem_col_list() local
6685 free_list = &ahd->scb_data.free_scb_lists[col_idx]; in ahd_rem_col_list()
6687 first_scb = LIST_FIRST(free_list); in ahd_rem_col_list()