/linux/drivers/s390/char/ |
A D | raw3270.h | 216 alloc_string(struct list_head *free_list, unsigned long len) in alloc_string() argument 222 list_for_each_entry(cs, free_list, list) { in alloc_string() 242 free_string(struct list_head *free_list, struct string *cs) in free_string() argument 248 left = free_list; in free_string() 249 list_for_each(p, free_list) { in free_string() 255 if (left->next != free_list) { in free_string() 263 if (left != free_list) { in free_string() 275 add_string_memory(struct list_head *free_list, void *mem, unsigned long size) in add_string_memory() argument 281 free_string(free_list, cs); in add_string_memory()
|
/linux/net/ceph/ |
A D | pagelist.c | 21 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()
|
/linux/drivers/staging/gdm724x/ |
A D | gdm_usb.c | 153 if (list_empty(&tx->free_list)) in get_tx_sdu_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() 242 list_add_tail(&r->free_list, &rx->free_list); in put_rx_struct() 284 list_for_each_entry_safe(r, r_next, &rx->free_list, free_list) { in release_usb() 285 list_del(&r->free_list); in release_usb() 316 INIT_LIST_HEAD(&tx->free_list); in init_usb() 318 INIT_LIST_HEAD(&rx->free_list); in init_usb() 337 list_add(&t_sdu->list, &tx->free_list); in init_usb() [all …]
|
A D | gdm_usb.h | 56 struct list_head free_list; member 69 struct list_head free_list; member 77 struct list_head free_list; member
|
A D | gdm_mux.c | 123 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()
|
/linux/kernel/bpf/ |
A D | bpf_lru_list.c | 63 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 …]
|
/linux/drivers/net/wwan/iosm/ |
A D | iosm_ipc_mux.c | 276 struct sk_buff_head *free_list; in ipc_mux_init() local 295 free_list = &ipc_mux->ul_adb.free_list; in ipc_mux_init() 298 skb_queue_head_init(free_list); in ipc_mux_init() 329 skb_queue_tail(free_list, skb); in ipc_mux_init() 430 struct sk_buff_head *free_list; in ipc_mux_deinit() local 443 free_list = &ipc_mux->ul_adb.free_list; in ipc_mux_deinit() 446 while ((skb = skb_dequeue(free_list))) in ipc_mux_deinit()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_buddy.c | 58 &mm->free_list[i915_buddy_block_order(block)]); in mark_free() 92 mm->free_list = kmalloc_array(mm->max_order + 1, in i915_buddy_init() 95 if (!mm->free_list) in i915_buddy_init() 99 INIT_LIST_HEAD(&mm->free_list[i]); in i915_buddy_init() 147 kfree(mm->free_list); in i915_buddy_init() 163 kfree(mm->free_list); in i915_buddy_fini() 268 block = list_first_entry_or_null(&mm->free_list[i], in i915_buddy_alloc() 433 list_for_each_entry(block, &mm->free_list[order], link) { in i915_buddy_print()
|
/linux/drivers/firmware/arm_scmi/ |
A D | virtio.c | 51 struct list_head free_list; member 115 list_add(&msg->list, &vioch->free_list); in scmi_finalize_message() 269 list_add_tail(&msg->list, &vioch->free_list); in virtio_chan_setup() 321 if (list_empty(&vioch->free_list)) { in virtio_send_message() 326 msg = list_first_entry(&vioch->free_list, typeof(*msg), list); in virtio_send_message() 336 list_add(&msg->list, &vioch->free_list); in virtio_send_message() 421 INIT_LIST_HEAD(&channels[i].free_list); in scmi_vio_probe()
|
/linux/arch/powerpc/lib/ |
A D | rheap.c | 77 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()
|
/linux/drivers/bus/fsl-mc/ |
A D | fsl-mc-allocator.c | 77 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()
|
/linux/drivers/infiniband/hw/qib/ |
A D | qib_user_sdma.c | 838 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() 1163 struct list_head free_list; in qib_user_sdma_queue_drain() local 1183 INIT_LIST_HEAD(&free_list); in qib_user_sdma_queue_drain() [all …]
|
/linux/drivers/dma/ |
A D | timb_dma.c | 80 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()
|
A D | pch_dma.c | 101 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()
|
A D | altera-msgdma.c | 175 struct list_head free_list; member 216 desc = list_first_entry(&mdev->free_list, struct msgdma_sw_desc, node); in msgdma_get_descriptor() 236 list_add_tail(&desc->node, &mdev->free_list); in msgdma_free_descriptor() 239 list_move_tail(&child->node, &mdev->free_list); in msgdma_free_descriptor() 666 INIT_LIST_HEAD(&mdev->free_list); in msgdma_alloc_chan_resources() 672 list_add_tail(&desc->node, &mdev->free_list); in msgdma_alloc_chan_resources() 856 INIT_LIST_HEAD(&mdev->free_list); in msgdma_probe()
|
A D | mv_xor_v2.c | 185 struct list_head free_list; member 354 list_for_each_entry(sw_desc, &xor_dev->free_sw_desc, free_list) { in mv_xor_v2_prep_sw_desc() 366 list_del(&sw_desc->free_list); in mv_xor_v2_prep_sw_desc() 597 list_add(&next_pending_sw_desc->free_list, in mv_xor_v2_tasklet() 830 list_add(&sw_desc->free_list, in mv_xor_v2_probe()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | pci_mac.c | 121 struct list_head *free_list) in mt7921_txwi_free() argument 143 __mt76_tx_complete_skb(mdev, wcid_idx, t->skb, free_list); in mt7921_txwi_free() 157 LIST_HEAD(free_list); in mt7921_mac_tx_free() 205 mt7921_txwi_free(dev, txwi, sta, stat, &free_list); in mt7921_mac_tx_free() 213 list_for_each_entry_safe(skb, tmp, &free_list, list) { in mt7921_mac_tx_free()
|
/linux/drivers/scsi/bnx2fc/ |
A D | bnx2fc_io.c | 244 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() 288 &cmgr->free_list[io_req->xid % 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() 438 cmd_mgr->free_list[index].next; in bnx2fc_elstm_alloc() 493 cmd_mgr->free_list[index].next; in bnx2fc_cmd_alloc() [all …]
|
/linux/drivers/rapidio/devices/ |
A D | tsi721_dma.c | 379 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()
|
/linux/drivers/pci/ |
A D | setup-bus.c | 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() 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() 2112 free_list(&fail_head); in pci_assign_unassigned_bridge_resources() 2193 free_list(&saved); in pci_reassign_bridge_resources() 2206 free_list(&failed); in pci_reassign_bridge_resources() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
A D | metadata.c | 45 ring = &priv->stats_ids.free_list; in nfp_release_stats_entry() 65 ring = &priv->stats_ids.free_list; in nfp_get_stats_entry() 560 priv->stats_ids.free_list.buf = in nfp_flower_metadata_init() 563 if (!priv->stats_ids.free_list.buf) in nfp_flower_metadata_init() 580 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_init() 714 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_cleanup()
|
/linux/net/sunrpc/ |
A D | rpc_pipe.c | 85 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()
|
/linux/drivers/dma/xilinx/ |
A D | zynqmp_dma.c | 219 struct list_head free_list; member 410 desc = list_first_entry(&chan->free_list, in zynqmp_dma_get_descriptor() 434 list_move_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor() 437 list_move_tail(&child->node, &chan->free_list); in zynqmp_dma_free_descriptor() 479 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_alloc_chan_resources() 485 list_add_tail(&desc->node, &chan->free_list); in zynqmp_dma_alloc_chan_resources() 918 INIT_LIST_HEAD(&chan->free_list); in zynqmp_dma_chan_probe()
|
/linux/scripts/genksyms/ |
A D | parse.y | 39 free_list(b, e); in remove_list() 123 { free_list(*$2, NULL); *$2 = NULL; } 171 free_list(*$2, NULL);
|
/linux/arch/um/drivers/ |
A D | chan_kern.c | 195 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()
|