/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_vmm.h | 9 int refs; member in struct:nouveau_vma
|
H A D | nouveau_gem.c | 208 if (--vma->refs == 0) {
|
H A D | nouveau_vmm.c | 65 if (vma && --vma->refs <= 0) { 86 vma->refs++; 93 vma->refs = 1;
|
/linux-master/tools/include/linux/ |
H A D | refcount.h | 53 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 D | vmlinux.lds.S | 90 .amode31.refs : { 92 *(.amode31.refs)
|
/linux-master/arch/x86/kernel/ |
H A D | alternative.c | 2108 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 D | blk-core.c | 288 if (refcount_dec_and_test(&q->refs)) 434 refcount_set(&q->refs, 1); 482 refcount_inc(&q->refs);
|
/linux-master/drivers/android/ |
H A D | binder.c | 897 !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 D | binder_internal.h | 183 * @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 D | property-entry-test.c | 412 static const struct software_node_ref_args refs[] = { local 420 PROPERTY_ENTRY_REF_ARRAY("ref-3", refs),
|
/linux-master/drivers/block/ |
H A D | nbd.c | 120 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 D | event.h | 18 int *refs; member in struct:nvkm_event
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | event.c | 34 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 D | cgrp.c | 39 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 D | cgrp.h | 11 refcount_t refs; member in struct:nvkm_vctx 21 refcount_t refs; member in struct:nvkm_ectx
|
H A D | chan.c | 79 if (refcount_dec_and_mutex_lock(&cctx->refs, &chan->cgrp->mutex)) { 105 refcount_inc(&cctx->refs); 127 refcount_set(&cctx->refs, 1);
|
H A D | chan.h | 13 refcount_t refs; member in struct:nvkm_cctx
|
H A D | r535.c | 373 refcount_inc(&vctx->refs);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | base.c | 116 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 D | vmm.c | 150 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 D | vmm.h | 15 u32 refs[2]; member in struct:nvkm_vmm_pt
|
/linux-master/drivers/gpu/drm/tegra/ |
H A D | drm.c | 179 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 D | arm-smmu-v3-sva.c | 19 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 D | arm-smmu-v3.c | 1415 free = refcount_dec_and_test(&cd->refs); 2241 refcount_set(&cd->refs, 1);
|
H A D | arm-smmu-v3.h | 590 refcount_t refs; member in struct:arm_smmu_ctx_desc
|