/linux-master/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_g2d.c | 7 #include <linux/refcount.h> 212 refcount_t refcount; member in struct:g2d_cmdlist_userptr 390 refcount_dec(&g2d_userptr->refcount); 392 if (refcount_read(&g2d_userptr->refcount) > 0) 440 refcount_inc(&g2d_userptr->refcount); 465 refcount_set(&g2d_userptr->refcount, 1);
|
/linux-master/drivers/gpu/drm/mediatek/ |
H A D | mtk_dsi.c | 214 int refcount; member in struct:mtk_dsi 599 if (++dsi->refcount != 1) 652 dsi->refcount--; 658 if (WARN_ON(dsi->refcount == 0)) 661 if (--dsi->refcount != 0) 759 if (dsi->refcount == 0)
|
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 501 refcount_inc(&table->hem[index.buf]->refcount); 520 refcount_set(&table->hem[index.buf]->refcount, 1); 545 refcount_inc(&table->hem[i]->refcount); 567 refcount_set(&table->hem[i]->refcount, 1); 645 else if (!refcount_dec_and_mutex_lock(&table->hem[index.buf]->refcount, 669 if (!refcount_dec_and_mutex_lock(&table->hem[i]->refcount,
|
/linux-master/net/batman-adv/ |
H A D | bat_iv_ogm.c | 154 kref_get(&orig_node->refcount); 846 if (!kref_get_unless_zero(&tmp_hard_iface->refcount)) 942 kref_get_unless_zero(&tmp_neigh_node->refcount)) { 1090 if (!kref_get_unless_zero(&tmp_neigh_node->refcount)) 1670 if (!kref_get_unless_zero(&hard_iface->refcount)) 2271 if (!kref_get_unless_zero(&gw_node->refcount)) 2288 kref_get(&curr_gw->refcount); 2302 kref_get(&curr_gw->refcount);
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shrinker.c | 212 if (!kref_get_unless_zero(&obj->base.refcount)) 521 GEM_BUG_ON(!kref_read(&obj->base.refcount));
|
/linux-master/drivers/scsi/qedf/ |
H A D | qedf.h | 137 struct kref refcount; member in struct:qedf_ioreq 297 int refcount; /* Reference count for task id */ member in struct:qedf_io_log
|
/linux-master/include/linux/comedi/ |
H A D | comedidev.h | 233 * @refcount: &struct kref reference counter used to free the buffer. 253 struct kref refcount; member in struct:comedi_buf_map 499 * @refcount: &struct kref reference counter for freeing COMEDI device. 558 struct kref refcount; member in struct:comedi_device
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | command_submission.c | 212 container_of(kref, struct hl_fence, refcount); 223 kref_put(&fence->refcount, hl_fence_release); 237 kref_get(&fence->refcount); 242 kref_init(&fence->refcount); 252 kref_get(&cs->refcount); 257 return kref_get_unless_zero(&cs->refcount); 262 kref_put(&cs->refcount, cs_do_release); 267 struct hl_cs_job *job = container_of(ref, struct hl_cs_job, refcount); 274 kref_put(&job->refcount, cs_job_do_release); 669 * we get refcount upo [all...] |
/linux-master/drivers/dma-buf/ |
H A D | dma-fence.c | 534 container_of(kref, struct dma_fence, refcount); 1001 * refcount after committing with this fence, but it will need to hold a 1002 * refcount again if &dma_fence_ops.enable_signaling gets called. 1014 kref_init(&fence->refcount);
|
H A D | dma-fence-chain.c | 189 if (kref_read(&prev->refcount) > 1)
|
/linux-master/drivers/accel/ivpu/ |
H A D | ivpu_gem.c | 108 lockdep_assert(lockdep_is_held(&bo->lock) || !kref_read(&bo->base.base.refcount)); 410 bo->flags, kref_read(&bo->base.base.refcount));
|
/linux-master/fs/xfs/scrub/ |
H A D | refcount_repair.c | 63 * Note that in the actual refcnt btree we don't store the refcount < 2 75 * refcount btree as follows: 88 * - If the bag size isn't old_bag_size, store the refcount entry 97 * Like all the other repairers, we make a list of all the refcount 98 * records we need, then reinitialize the refcount btree root and 103 /* refcount extents */ 114 /* get_records()'s position in the refcount record array. */ 121 /* Set us up to repair refcount btrees. */ 173 uint64_t refcount) 186 irec.rc_refcount = min_t(uint64_t, MAXREFCOUNT, refcount); 168 xrep_refc_stash( struct xrep_refc *rr, enum xfs_refc_domain domain, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t refcount) argument [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_connector.c | 195 container_of(kref, struct drm_connector, base.refcount); 813 if (!refcount_dec_and_test(&conn->base.refcount.refcount)) 848 } while (!kref_get_unless_zero(&iter->conn->base.refcount)); 3110 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); 3129 kref_put(&tg->refcount, drm_tile_group_free); 3152 if (!kref_get_unless_zero(&tg->refcount)) 3184 kref_init(&tg->refcount);
|
/linux-master/arch/arm64/kvm/vgic/ |
H A D | vgic-init.c | 164 kref_init(&irq->refcount); 212 kref_init(&irq->refcount);
|
/linux-master/fs/xfs/ |
H A D | Makefile | 176 refcount.o \
|
/linux-master/drivers/infiniband/core/ |
H A D | mad.c | 399 refcount_set(&mad_agent_priv->refcount, 1); 481 if (refcount_dec_and_test(&mad_agent_priv->refcount)) 714 refcount_inc(&mad_agent_priv->refcount); 754 refcount_inc(&mad_agent_priv->refcount); 911 refcount_inc(&mad_agent_priv->refcount); 1122 mad_send_wr->refcount = 1 + (mad_send_wr->timeout > 0); 1126 refcount_inc(&mad_agent_priv->refcount); 1546 if (mad_agent && !refcount_inc_not_zero(&mad_agent->refcount)) 1598 refcount_inc(&mad_agent->refcount); 1776 if (mad_send_wr->refcount [all...] |
H A D | uverbs.h | 100 refcount_t refcount; member in struct:ib_uverbs_device
|
/linux-master/include/linux/ |
H A D | atmdev.h | 15 #include <linux/refcount.h>
|
/linux-master/drivers/scsi/qedi/ |
H A D | qedi.h | 237 int refcount; /* Reference count for task id */ member in struct:qedi_io_log
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | cq.c | 113 refcount_set(&cq->refcount, 1);
|
/linux-master/drivers/misc/lkdtm/ |
H A D | refcount.c | 3 * This is for all the tests related to refcount bugs (e.g. overflow, 7 #include <linux/refcount.h> 19 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); 24 * A refcount_inc() above the maximum value of the refcount implementation, 97 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); 122 * refcount_t refuses to move a refcount at all on an 140 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); 216 pr_err("Fail: refcount went past zero!\n"); 241 pr_err("Fail: refcount went past zero\n"); 262 pr_err("Fail: refcount wen [all...] |
/linux-master/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.h | 159 refcount_t refcount; member in struct:sunxi_pinctrl_regulator
|
/linux-master/lib/ |
H A D | percpu-refcount.c | 9 #include <linux/percpu-refcount.h> 12 * Initially, a percpu refcount is just a set of percpu counters. Initially, we 27 * What we do is require the user to keep track of the initial refcount; we know 49 * percpu_ref_init - initialize a percpu refcount 51 * @release: function which will be called when refcount hits 0 55 * Initializes @ref. @ref starts out in percpu mode with a refcount of 1 unless 57 * change the start state to atomic with the latter setting the initial refcount 403 * percpu_ref_is_zero - test whether a percpu refcount reached zero 431 * percpu_ref_reinit - re-initialize a percpu refcount 450 * percpu_ref_resurrect - modify a percpu refcount fro [all...] |
/linux-master/include/net/ |
H A D | x25.h | 15 #include <linux/refcount.h>
|
/linux-master/drivers/s390/net/ |
H A D | lcs.h | 8 #include <linux/refcount.h>
|