Searched refs:refcount (Results 301 - 325 of 761) sorted by relevance

<<11121314151617181920>>

/linux-master/fs/smb/server/
H A Dvfs_cache.h83 atomic_t refcount; member in struct:ksmbd_file
H A Doplock.c52 atomic_set(&opinfo->refcount, 1);
144 if (opinfo && !atomic_inc_not_zero(&opinfo->refcount))
163 !atomic_inc_not_zero(&opinfo->refcount))
169 atomic_dec(&opinfo->refcount);
200 if (!atomic_dec_and_test(&opinfo->refcount))
420 atomic_dec(&opinfo->refcount);
1013 if (!atomic_inc_not_zero(&opinfo->refcount))
1122 if (!atomic_inc_not_zero(&opinfo->refcount))
1162 if (!atomic_inc_not_zero(&opinfo->refcount))
1371 if (!atomic_inc_not_zero(&brk_op->refcount))
[all...]
H A Dvfs_cache.c341 if (!atomic_inc_not_zero(&fp->refcount))
399 if (!atomic_dec_and_test(&fp->refcount))
417 if (!atomic_dec_and_test(&fp->refcount))
489 if (!atomic_dec_and_test(&fp->refcount))
600 atomic_set(&fp->refcount, 1);
656 if (!atomic_dec_and_test(&fp->refcount))
/linux-master/arch/s390/include/asm/
H A Dgmap.h13 #include <linux/refcount.h>
/linux-master/drivers/net/ipa/
H A Dgsi_trans.c10 #include <linux/refcount.h>
368 refcount_set(&trans->refcount, 1);
381 if (!refcount_dec_and_test(&trans->refcount))
618 refcount_inc(&trans->refcount);
/linux-master/include/linux/
H A Drtnetlink.h9 #include <linux/refcount.h>
/linux-master/fs/btrfs/
H A Dordered-data.h11 #include <linux/refcount.h>
/linux-master/include/net/
H A Daf_unix.h8 #include <linux/refcount.h>
/linux-master/net/psample/
H A Dpsample.c56 ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_REFCOUNT, group->refcount);
188 group->refcount++;
199 group->refcount++;
208 if (--group->refcount == 0)
/linux-master/drivers/gpu/drm/xe/
H A Dxe_drm_client.c158 if (!kref_get_unless_zero(&bo->ttm.base.refcount))
H A Dxe_sched_job.c107 kref_init(&job->refcount);
193 container_of(ref, struct xe_sched_job, refcount);
/linux-master/drivers/media/platform/renesas/rcar-vin/
H A Drcar-vin.h269 * @refcount: number of VIN instances using the group
282 struct kref refcount; member in struct:rvin_group
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_srq.c21 refcount_inc(&srq->refcount);
31 if (refcount_dec_and_test(&srq->refcount))
159 if (refcount_dec_and_test(&srq->refcount))
507 refcount_set(&srq->refcount, 1);
H A Dhns_roce_cq.c191 if (refcount_dec_and_test(&hr_cq->refcount))
421 refcount_set(&hr_cq->refcount, 1);
491 refcount_inc(&hr_cq->refcount);
506 if (refcount_dec_and_test(&hr_cq->refcount))
/linux-master/include/rdma/
H A Drdmavt_qp.h372 atomic_t refcount ____cacheline_aligned_in_smp;
524 atomic_t refcount; member in struct:rvt_mcast
568 atomic_inc(&qp->refcount);
577 if (qp && atomic_dec_and_test(&qp->refcount))
/linux-master/drivers/gpu/drm/lima/
H A Dlima_vm.c210 kref_init(&vm->refcount);
237 struct lima_vm *vm = container_of(kref, struct lima_vm, refcount);
/linux-master/include/scsi/
H A Dlibiscsi.h19 #include <linux/refcount.h>
133 refcount_t refcount; member in struct:iscsi_task
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_core.h36 #include <linux/refcount.h>
164 refcount_t refcount; member in struct:fs_node
/linux-master/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.h580 struct kref refcount; member in struct:_sas_device
588 kref_get(&s->refcount);
593 kfree(container_of(r, struct _sas_device, refcount));
598 kref_put(&s->refcount, sas_device_free);
623 * @refcount: reference count for deletion
646 struct kref refcount; member in struct:_pcie_device
659 kref_get(&p->refcount);
671 kfree(container_of(r, struct _pcie_device, refcount));
687 kref_put(&p->refcount, pcie_device_free);
/linux-master/drivers/xen/
H A Dgntdev-dmabuf.c37 struct kref refcount; member in struct:gntdev_dmabuf::__anon522::__anon523
108 kref_put(&gntdev_dmabuf->u.exp.refcount, dmabuf_exp_release);
154 kref_get(&gntdev_dmabuf->u.exp.refcount);
310 container_of(kref, struct gntdev_dmabuf, u.exp.refcount);
335 kref_put(&gntdev_dmabuf->u.exp.refcount, dmabuf_exp_release);
367 kref_init(&gntdev_dmabuf->u.exp.refcount);
/linux-master/mm/
H A Dslab_common.c155 if (s->refcount < 0)
234 s->refcount = 1;
492 s->refcount--;
493 if (s->refcount)
638 s->refcount = -1; /* Exempt from merging for now */
652 s->refcount = 1;
/linux-master/drivers/rpmsg/
H A Dvirtio_rpmsg_bus.c192 * This function deallocates an ept, and is invoked when its @kref refcount
200 refcount);
222 kref_init(&ept->refcount);
255 kref_put(&ept->refcount, __ept_release);
310 kref_put(&ept->refcount, __ept_release);
401 /* decrement the matched device's refcount back */
745 kref_get(&ept->refcount);
760 kref_put(&ept->refcount, __ept_release);
/linux-master/drivers/misc/
H A Dfastrpc.c228 struct kref refcount; member in struct:fastrpc_map
241 struct kref refcount; member in struct:fastrpc_invoke_ctx
272 struct kref refcount; member in struct:fastrpc_channel_ctx
314 map = container_of(ref, struct fastrpc_map, refcount);
352 kref_put(&map->refcount, fastrpc_free_map);
360 return kref_get_unless_zero(&map->refcount) ? 0 : -ENOENT;
464 cctx = container_of(ref, struct fastrpc_channel_ctx, refcount);
471 kref_get(&cctx->refcount);
476 kref_put(&cctx->refcount, fastrpc_channel_ctx_free);
486 ctx = container_of(ref, struct fastrpc_invoke_ctx, refcount);
[all...]
/linux-master/fs/bcachefs/
H A Dbtree_gc.c1025 const __le64 *refcount = bkey_refcount_c(k); local
1030 if (!refcount)
1044 if (fsck_err_on(r->refcount != le64_to_cpu(*refcount), c,
1046 "reflink key has wrong refcount:\n"
1050 r->refcount)) {
1056 if (!r->refcount)
1059 *bkey_refcount(bkey_i_to_s(new)) = cpu_to_le64(r->refcount);
1089 const __le64 *refcount = bkey_refcount_c(k);
1091 if (!refcount)
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_rule.c239 /* We need to copy the refcount since this ste
242 new_ste->refcount = cur_ste->refcount;
471 /* On matcher s_anchor we keep an extra refcount */
583 refcount_dec(&action_mem->action->refcount);
603 refcount_inc(&action_mem->action->refcount);
1358 refcount_inc(&matcher->refcount);
1362 refcount_dec(&matcher->refcount);
1374 refcount_dec(&matcher->refcount);

Completed in 298 milliseconds

<<11121314151617181920>>