/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_free_list.c | 51 struct pvr_free_list *free_list) in free_list_create_kernel_structure() argument 89 free_list->pvr_dev = pvr_file->pvr_dev; in free_list_create_kernel_structure() 90 free_list->current_pages = 0; in free_list_create_kernel_structure() 91 free_list->max_pages = args->max_num_pages; in free_list_create_kernel_structure() 92 free_list->grow_pages = args->grow_num_pages; in free_list_create_kernel_structure() 93 free_list->grow_threshold = args->grow_threshold; in free_list_create_kernel_structure() 94 free_list->obj = free_list_obj; in free_list_create_kernel_structure() 95 free_list->free_list_gpu_addr = args->free_list_gpu_addr; in free_list_create_kernel_structure() 96 free_list->initial_num_pages = args->initial_num_pages; in free_list_create_kernel_structure() 112 free_list_destroy_kernel_structure(struct pvr_free_list *free_list) in free_list_destroy_kernel_structure() argument [all …]
|
H A D | pvr_free_list.h | 35 struct pvr_free_list *free_list; member 117 pvr_free_list_get(struct pvr_free_list *free_list) in pvr_free_list_get() argument 119 if (free_list) in pvr_free_list_get() 120 kref_get(&free_list->ref_count); in pvr_free_list_get() 122 return free_list; in pvr_free_list_get() 140 struct pvr_free_list *free_list; in pvr_free_list_lookup() local 143 free_list = pvr_free_list_get(xa_load(&pvr_file->free_list_handles, handle)); in pvr_free_list_lookup() 146 return free_list; in pvr_free_list_lookup() 163 struct pvr_free_list *free_list; in pvr_free_list_lookup_id() local 172 free_list = xa_load(&pvr_dev->free_list_ids, id); in pvr_free_list_lookup_id() [all …]
|
H A D | pvr_drv.c | 743 struct pvr_free_list *free_list; in pvr_ioctl_create_free_list() local 750 free_list = pvr_free_list_create(pvr_file, args); in pvr_ioctl_create_free_list() 751 if (IS_ERR(free_list)) { in pvr_ioctl_create_free_list() 752 err = PTR_ERR(free_list); in pvr_ioctl_create_free_list() 759 free_list, in pvr_ioctl_create_free_list() 770 pvr_free_list_put(free_list); in pvr_ioctl_create_free_list() 797 struct pvr_free_list *free_list; in pvr_ioctl_destroy_free_list() local 802 free_list = xa_erase(&pvr_file->free_list_handles, args->handle); in pvr_ioctl_destroy_free_list() 803 if (!free_list) in pvr_ioctl_destroy_free_list() 806 pvr_free_list_put(free_list); in pvr_ioctl_destroy_free_list()
|
/linux/net/ceph/ |
H 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()
|
/linux/kernel/bpf/ |
H A D | bpf_lru_list.c | 68 struct list_head *free_list, in __bpf_lru_node_move_to_free() argument 83 list_move(&node->list, free_list); in __bpf_lru_node_move_to_free() 214 struct list_head *free_list, in __bpf_lru_list_shrink_inactive() argument 226 __bpf_lru_node_move_to_free(l, node, free_list, in __bpf_lru_list_shrink_inactive() 263 struct list_head *free_list, in __bpf_lru_list_shrink() argument 272 free_list, tgt_free_type); in __bpf_lru_list_shrink() 285 __bpf_lru_node_move_to_free(l, node, free_list, in __bpf_lru_list_shrink() 407 struct list_head *free_list; in bpf_percpu_lru_pop_free() local 419 free_list = &l->lists[BPF_LRU_LIST_T_FREE]; in bpf_percpu_lru_pop_free() 420 if (list_empty(free_list)) in bpf_percpu_lru_pop_free() [all …]
|
/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_mux.c | 283 struct sk_buff_head *free_list; in ipc_mux_init() local 302 free_list = &ipc_mux->ul_adb.free_list; in ipc_mux_init() 305 skb_queue_head_init(free_list); in ipc_mux_init() 355 skb_queue_tail(free_list, skb); in ipc_mux_init() 456 struct sk_buff_head *free_list; in ipc_mux_deinit() local 471 free_list = &ipc_mux->ul_adb.free_list; in ipc_mux_deinit() 474 while ((skb = skb_dequeue(free_list))) in ipc_mux_deinit()
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_taprio.c | 269 unsigned long *free_list) in lan966x_taprio_gcl_free_get() argument 276 bitmap_fill(free_list, LAN966X_TAPRIO_NUM_GCL); in lan966x_taprio_gcl_free_get() 293 clear_bit(next, free_list); in lan966x_taprio_gcl_free_get() 331 DECLARE_BITMAP(free_list, LAN966X_TAPRIO_NUM_GCL); in lan966x_taprio_gcl_setup() 335 if (lan966x_taprio_gcl_free_get(port, free_list) < qopt->num_entries) in lan966x_taprio_gcl_setup() 344 base = find_first_bit(free_list, LAN966X_TAPRIO_NUM_GCL); in lan966x_taprio_gcl_setup() 360 next = find_next_bit(free_list, LAN966X_TAPRIO_NUM_GCL, in lan966x_taprio_gcl_setup()
|
/linux/arch/powerpc/lib/ |
H 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/gpu/drm/ |
H A D | drm_buddy.c | 47 head = &mm->free_list[drm_buddy_block_order(block)]; in list_insert_sorted() 181 list_for_each_entry_safe_reverse(block, prev, &mm->free_list[i], link) { in __force_merge() 258 mm->free_list = kmalloc_array(mm->max_order + 1, in drm_buddy_init() 261 if (!mm->free_list) in drm_buddy_init() 265 INIT_LIST_HEAD(&mm->free_list[i]); in drm_buddy_init() 313 kfree(mm->free_list); in drm_buddy_init() 347 kfree(mm->free_list); in drm_buddy_fini() 595 list_for_each_entry_reverse(tmp_block, &mm->free_list[i], link) { in get_maxblock() 638 list_for_each_entry_reverse(tmp_block, &mm->free_list[tmp], link) { in alloc_from_freelist() 654 if (!list_empty(&mm->free_list[tmp])) { in alloc_from_freelist() [all …]
|
/linux/drivers/bus/fsl-mc/ |
H A D | fsl-mc-allocator.c | 77 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() 249 list_add_tail(&resource->node, &res_pool->free_list); in fsl_mc_resource_free() 399 list_add_tail(&mc_dev_irq->resource.node, &res_pool->free_list); in fsl_mc_populate_irq_pool() 432 INIT_LIST_HEAD(&res_pool->free_list); in fsl_mc_cleanup_irq_pool() 553 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/ |
H A D | qib_user_sdma.c | 833 goto free_list; in qib_user_sdma_queue_pkts() 839 goto free_list; in qib_user_sdma_queue_pkts() 1042 free_list: in qib_user_sdma_queue_pkts() 1059 struct list_head free_list; in qib_user_sdma_queue_clean() local 1068 INIT_LIST_HEAD(&free_list); in qib_user_sdma_queue_clean() 1082 list_move_tail(&pkt->list, &free_list); in qib_user_sdma_queue_clean() 1090 if (!list_empty(&free_list)) { in qib_user_sdma_queue_clean() 1093 pkt = list_entry(free_list.prev, in qib_user_sdma_queue_clean() 1097 qib_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, &free_list); in qib_user_sdma_queue_clean() 1158 struct list_head free_list; in qib_user_sdma_queue_drain() local [all …]
|
/linux/drivers/accel/habanalabs/common/ |
H A D | irq.c | 256 struct list_head **free_list, in handle_registration_node() argument 268 if (!(*free_list)) { in handle_registration_node() 270 *free_list = kmalloc(sizeof(struct list_head), GFP_ATOMIC); in handle_registration_node() 271 if (!(*free_list)) in handle_registration_node() 274 INIT_LIST_HEAD(*free_list); in handle_registration_node() 320 list_add(&free_node->free_objects_node, *free_list); in handle_registration_node()
|
/linux/drivers/scsi/bnx2fc/ |
H 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() 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 …]
|
/linux/net/mptcp/ |
H A D | pm_userspace.c | 15 LIST_HEAD(free_list); in mptcp_free_local_addr_list() 21 list_splice_init(&msk->pm.userspace_pm_local_addr_list, &free_list); in mptcp_free_local_addr_list() 24 list_for_each_entry_safe(entry, tmp, &free_list, list) { in mptcp_free_local_addr_list() 277 LIST_HEAD(free_list); in mptcp_pm_nl_remove_doit() 320 list_move(&match->list, &free_list); in mptcp_pm_nl_remove_doit() 323 mptcp_pm_remove_addrs(msk, &free_list); in mptcp_pm_nl_remove_doit() 327 list_for_each_entry_safe(match, entry, &free_list, list) { in mptcp_pm_nl_remove_doit()
|
/linux/drivers/rapidio/devices/ |
H A D | tsi721_dma.c | 381 list_move(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tx_err() 644 list_add(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tasklet() 674 list_add(&desc->desc_node, &bdma_chan->free_list); in tsi721_dma_tasklet() 755 list_add(&desc[i].desc_node, &bdma_chan->free_list); in tsi721_alloc_chan_resources() 794 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_free_chan_resources() 870 if (!list_empty(&bdma_chan->free_list)) { in tsi721_prep_rio_sg() 871 desc = list_first_entry(&bdma_chan->free_list, in tsi721_prep_rio_sg() 991 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_register_dma() 1037 INIT_LIST_HEAD(&bdma_chan->free_list); in tsi721_unregister_dma()
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | metadata.c | 45 ring = &priv->stats_ids.free_list; in nfp_release_stats_entry() 64 ring = &priv->stats_ids.free_list; in nfp_get_stats_entry() 566 priv->stats_ids.free_list.buf = in nfp_flower_metadata_init() 569 if (!priv->stats_ids.free_list.buf) in nfp_flower_metadata_init() 587 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_init() 725 vfree(priv->stats_ids.free_list.buf); in nfp_flower_metadata_cleanup()
|
/linux/scripts/genksyms/ |
H 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/net/sunrpc/ |
H 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/firmware/arm_scmi/transports/ |
H A D | virtio.c | 62 struct list_head free_list; member 187 if (list_empty(&vioch->free_list)) { in scmi_virtio_get_free_msg() 192 msg = list_first_entry(&vioch->free_list, typeof(*msg), list); in scmi_virtio_get_free_msg() 219 list_add_tail(&msg->list, &vioch->free_list); in scmi_vio_msg_release() 849 INIT_LIST_HEAD(&channels[i].free_list); in scmi_vio_probe()
|
/linux/kernel/ |
H A D | vmcore_info.c | 190 VMCOREINFO_OFFSET(free_area, free_list); in crash_save_vmcoreinfo_init() 195 VMCOREINFO_LENGTH(free_area.free_list, MIGRATE_TYPES); in crash_save_vmcoreinfo_init()
|
/linux/drivers/atm/ |
H A D | eni.c | 167 eni_dev->free_list[i].start, in dump_mem() 168 1 << eni_dev->free_list[i].order); in dump_mem() 204 list = eni_dev->free_list; in eni_put_free() 235 list = eni_dev->free_list; in eni_alloc_mem() 274 list = eni_dev->free_list; in eni_free_mem() 908 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 …]
|
/linux/arch/um/drivers/ |
H A D | chan_kern.c | 230 chan = list_entry(ele, struct chan, free_list); in free_irqs() 250 list_add(&chan->free_list, &irqs_to_free); in close_one_chan() 513 .free_list = in parse_chan() 514 LIST_HEAD_INIT(chan->free_list), in parse_chan()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_fcoe.h | 22 struct list_head free_list; member
|
H A D | qed_nvmetcp.c | 466 if (!list_empty(&p_hwfn->p_nvmetcp_info->free_list)) in qed_nvmetcp_allocate_connection() 467 p_conn = list_first_entry(&p_hwfn->p_nvmetcp_info->free_list, in qed_nvmetcp_allocate_connection() 553 list_add_tail(&p_conn->list_entry, &p_hwfn->p_nvmetcp_info->free_list); in qed_nvmetcp_release_connection() 575 INIT_LIST_HEAD(&p_nvmetcp_info->free_list); in qed_nvmetcp_alloc() 593 while (!list_empty(&p_hwfn->p_nvmetcp_info->free_list)) { in qed_nvmetcp_free() 594 p_conn = list_first_entry(&p_hwfn->p_nvmetcp_info->free_list, in qed_nvmetcp_free()
|
H A D | qed_iscsi.h | 23 struct list_head free_list; member
|