Searched refs:refs (Results 1 - 25 of 169) sorted by path

1234567

/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_vmm.h9 int refs; member in struct:nouveau_vma
H A Dnouveau_gem.c208 if (--vma->refs == 0) {
H A Dnouveau_vmm.c65 if (vma && --vma->refs <= 0) {
86 vma->refs++;
93 vma->refs = 1;
/linux-master/tools/include/linux/
H A Drefcount.h53 atomic_t refs; member in struct:refcount_struct
56 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), }
60 atomic_set(&r->refs, n);
65 return atomic_read(&r->refs);
78 unsigned int old, new, val = atomic_read(&r->refs);
89 old = atomic_cmpxchg_relaxed(&r->refs, val, new);
123 unsigned int old, new, val = atomic_read(&r->refs);
135 old = atomic_cmpxchg_release(&r->refs, val, new);
/linux-master/arch/s390/kernel/
H A Dvmlinux.lds.S90 .amode31.refs : {
92 *(.amode31.refs)
/linux-master/arch/x86/kernel/
H A Dalternative.c2108 atomic_t refs; member in struct:bp_patching_desc
2118 if (!raw_atomic_inc_not_zero(&desc->refs))
2129 raw_atomic_dec(&desc->refs);
2162 * bp_desc.refs = 1 INT3
2164 * write INT3 if (bp_desc.refs != 0)
2270 atomic_set_release(&bp_desc.refs, 1);
2382 * Remove and wait for refs to be zero.
2384 if (!atomic_dec_and_test(&bp_desc.refs))
2385 atomic_cond_read_acquire(&bp_desc.refs, !VAL);
/linux-master/block/
H A Dblk-core.c288 if (refcount_dec_and_test(&q->refs))
434 refcount_set(&q->refs, 1);
482 refcount_inc(&q->refs);
/linux-master/drivers/android/
H A Dbinder.c897 !hlist_empty(&node->refs))
907 if (hlist_empty(&node->refs) && !node->local_strong_refs &&
1058 * into the given proc rb_trees and node refs list.
1122 hlist_add_head(&new_ref->node_entry, &node->refs);
2849 * binder_get_node_refs_for_txn() - Get required refs on node for txn
2850 * @node: struct binder_node for which to get refs
2865 * Return: The target_node with refs taken or NULL if no @node->proc is NULL.
4523 weak = !hlist_empty(&node->refs) ||
5764 static int binder_node_release(struct binder_node *node, int refs) argument
5779 if (hlist_empty(&node->refs)
[all...]
H A Dbinder_internal.h183 * @refs: list of references on this node
189 * @local_weak_refs: weak user refs from local process
192 * @local_strong_refs: strong user refs from local process
195 * @tmp_refs: temporary kernel refs
239 struct hlist_head refs; member in struct:binder_node
302 * @node_entry: list entry for node->refs list in target node
318 /* node => refs + procs (proc exit) */
336 * @refs_by_desc: rbtree of refs ordered by ref->desc
338 * @refs_by_node: rbtree of refs ordered by ref->node
548 * @fbo: binder object (nodes and refs)
[all...]
/linux-master/drivers/base/test/
H A Dproperty-entry-test.c412 static const struct software_node_ref_args refs[] = { local
420 PROPERTY_ENTRY_REF_ARRAY("ref-3", refs),
/linux-master/drivers/block/
H A Dnbd.c120 refcount_t refs; member in struct:nbd_device
274 if (!refcount_dec_and_test(&nbd->refs))
1618 if (!refcount_inc_not_zero(&nbd->refs)) {
1636 refcount_inc(&nbd->refs);
1804 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) argument
1879 refcount_set(&nbd->refs, 0);
1894 refcount_set(&nbd->refs, refs);
1925 if (refcount_inc_not_zero(&nbd->refs))
2017 !refcount_inc_not_zero(&nbd->refs)) {
[all...]
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Devent.h18 int *refs; member in struct:nvkm_event
/linux-master/drivers/gpu/drm/nouveau/nvkm/core/
H A Devent.c34 if (--event->refs[index * event->types_nr + type] == 0) {
51 if (++event->refs[index * event->types_nr + type] == 1) {
175 if (!event->refs || WARN_ON(id >= event->index_nr))
194 if (event->refs) {
195 kfree(event->refs);
196 event->refs = NULL;
204 event->refs = kzalloc(array3_size(index_nr, types_nr, sizeof(*event->refs)), GFP_KERNEL);
205 if (!event->refs)
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dcgrp.c39 if (refcount_dec_and_test(&ectx->refs)) {
65 refcount_inc(&ectx->refs);
76 refcount_set(&ectx->refs, 1);
100 if (refcount_dec_and_test(&vctx->refs)) {
130 refcount_inc(&vctx->refs);
151 refcount_set(&vctx->refs, 1);
H A Dcgrp.h11 refcount_t refs; member in struct:nvkm_vctx
21 refcount_t refs; member in struct:nvkm_ectx
H A Dchan.c79 if (refcount_dec_and_mutex_lock(&cctx->refs, &chan->cgrp->mutex)) {
105 refcount_inc(&cctx->refs);
127 refcount_set(&cctx->refs, 1);
H A Dchan.h13 refcount_t refs; member in struct:nvkm_cctx
H A Dr535.c373 refcount_inc(&vctx->refs);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dbase.c116 u32 refs; member in struct:nvkm_mmu_ptc
133 ptc->refs = 0;
155 if (pt->ptc->refs < 8 /* Heuristic. */ && !force) {
157 pt->ptc->refs++;
195 ptc->refs--;
H A Dvmm.c150 if (--pgd->refs[0]) {
155 if (!pgt->refs[!type]) {
191 if (!pgt->refs[!type])
216 if (!pgt->refs[0])
277 pgt->refs[type] -= ptes;
280 if (desc->type == SPT && (pgt->refs[0] || pgt->refs[1]))
284 if (!pgt->refs[type]) {
315 if (!pgt->refs[0])
371 pgt->refs[typ
[all...]
H A Dvmm.h15 u32 refs[2]; member in struct:nvkm_vmm_pt
/linux-master/drivers/gpu/drm/tegra/
H A Ddrm.c179 struct drm_gem_object **refs; local
214 refs = kmalloc_array(num_refs, sizeof(*refs), GFP_KERNEL);
215 if (!refs) {
251 refs[num_refs++] = &obj->gem;
281 refs[num_refs++] = &obj->gem;
295 refs[num_refs++] = &obj->gem;
338 drm_gem_object_put(refs[num_refs]);
340 kfree(refs);
/linux-master/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3-sva.c19 refcount_t refs; member in struct:arm_smmu_mmu_notifier
77 refcount_inc(&cd->refs);
131 refcount_set(&cd->refs, 1);
299 refcount_inc(&smmu_mn->refs);
314 refcount_set(&smmu_mn->refs, 1);
339 if (!refcount_dec_and_test(&smmu_mn->refs))
H A Darm-smmu-v3.c1415 free = refcount_dec_and_test(&cd->refs);
2241 refcount_set(&cd->refs, 1);
H A Darm-smmu-v3.h590 refcount_t refs; member in struct:arm_smmu_ctx_desc

Completed in 282 milliseconds

1234567