Searched refs:refs (Results 101 - 125 of 170) sorted by last modified time

1234567

/linux-master/include/linux/
H A Drefcount.h104 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), }
125 atomic_set(&r->refs, n);
136 return atomic_read(&r->refs);
147 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i));
184 int old = atomic_fetch_add_relaxed(i, &r->refs);
264 int old = atomic_fetch_sub_release(i, &r->refs);
330 int old = atomic_fetch_sub_release(1, &r->refs);
H A Drefcount_types.h9 * @refs: atomic_t counter field
16 atomic_t refs; member in struct:refcount_struct
/linux-master/fs/btrfs/
H A Draid56.h94 refcount_t refs; member in struct:btrfs_raid_bio
H A Dextent-tree.h112 u64 offset, int metadata, u64 *refs, u64 *flags,
H A Dextent-io-tree.h122 refcount_t refs; member in struct:extent_state
H A Ddisk-io.h110 if (refcount_inc_not_zero(&root->refs))
H A Ddelayed-inode.h66 refcount_t refs; member in struct:btrfs_delayed_node
97 refcount_t refs; member in struct:btrfs_delayed_item
H A Dctree.h240 refcount_t refs; member in struct:btrfs_root
H A Dblock-group.h179 refcount_t refs; member in struct:btrfs_block_group
H A Dbio.c96 refcount_inc(&orig_bbio->ordered->refs);
H A Dbackref.h78 * added to each reference added to the @refs ulist.
93 * When using BTRFS_SEQ_LAST, delayed refs are not checked and it uses
102 struct ulist *refs; member in struct:btrfs_backref_walk_ctx
166 struct ulist refs; member in struct:btrfs_backref_share_check_ctx
H A Daccessors.h341 BTRFS_SETGET_FUNCS(extent_refs, struct btrfs_extent_item, refs, 64);
740 BTRFS_SETGET_FUNCS(disk_root_refs, struct btrfs_root_item, refs, 32);
749 BTRFS_SETGET_STACK_FUNCS(root_refs, struct btrfs_root_item, refs, 32);
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c69 table->refs[i] = 0;
83 table->refs[i] = 0;
118 if (table->refs[i] &&
157 if (!table->refs[i])
232 dup_table->refs[index_at_port]) {
242 if (!table->refs[index_at_dup_port] ||
251 if (!table->refs[i]) {
255 if (!dup_table->refs[i])
265 ++table->refs[i];
308 table->refs[fre
[all...]
/linux-master/drivers/block/
H A Dnbd.c120 refcount_t refs; member in struct:nbd_device
274 if (!refcount_dec_and_test(&nbd->refs))
1621 if (!refcount_inc_not_zero(&nbd->refs)) {
1639 refcount_inc(&nbd->refs);
1807 static struct nbd_device *nbd_dev_add(int index, unsigned int refs)
1882 refcount_set(&nbd->refs, 0);
1897 refcount_set(&nbd->refs, refs);
1928 if (refcount_inc_not_zero(&nbd->refs))
2020 !refcount_inc_not_zero(&nbd->refs)) {
1804 nbd_dev_add(int index, unsigned int refs) argument
[all...]
/linux-master/drivers/gpu/drm/nouveau/
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/drivers/iommu/iommufd/
H A Dselftest.c880 unsigned int refs)
901 if (count / GUP_PIN_COUNTING_BIAS != refs) {
1414 cmd->check_refs.length, cmd->check_refs.refs);
878 iommufd_test_md_check_refs(struct iommufd_ucmd *ucmd, void __user *uptr, size_t length, unsigned int refs) argument
H A Diommufd_test.h90 __u32 refs; member in struct:iommu_test_cmd::__anon62::__anon68
/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/tools/testing/selftests/iommu/
H A Diommufd_utils.h58 .refs = _refs }, \
/linux-master/drivers/xen/
H A Dgntdev-dmabuf.c44 grant_ref_t *refs; member in struct:gntdev_dmabuf::__anon522::__anon524
437 int count, u32 domid, u32 *refs, u32 *fd)
449 map->grants[i].ref = refs[i];
488 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs, argument
512 refs[i] = cur_ref;
522 static void dmabuf_imp_end_foreign_access(u32 *refs, int count) argument
527 if (refs[i] != INVALID_GRANT_REF)
528 gnttab_end_foreign_access(refs[i], NULL);
533 kfree(gntdev_dmabuf->u.imp.refs);
546 gntdev_dmabuf->u.imp.refs
436 dmabuf_exp_from_refs(struct gntdev_priv *priv, int flags, int count, u32 domid, u32 *refs, u32 *fd) argument
735 u32 *refs; local
[all...]
/linux-master/drivers/tty/
H A Dtty_io.c583 int refs; local
625 refs = tty_signal_session_leader(tty, exit_session);
627 while (refs--)
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dr535.c373 refcount_inc(&vctx->refs);
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);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c2433 * @refs: pointer to variable to receive the reference count
2436 ice_vsig_get_ref(struct ice_hw *hw, enum ice_block blk, u16 vsig, u16 *refs) argument
2441 *refs = 0;
2448 (*refs)++;

Completed in 536 milliseconds

1234567