/linux-master/include/linux/ |
H A D | refcount.h | 104 #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 D | refcount_types.h | 9 * @refs: atomic_t counter field 16 atomic_t refs; member in struct:refcount_struct
|
/linux-master/fs/btrfs/ |
H A D | raid56.h | 94 refcount_t refs; member in struct:btrfs_raid_bio
|
H A D | extent-tree.h | 112 u64 offset, int metadata, u64 *refs, u64 *flags,
|
H A D | extent-io-tree.h | 122 refcount_t refs; member in struct:extent_state
|
H A D | disk-io.h | 110 if (refcount_inc_not_zero(&root->refs))
|
H A D | delayed-inode.h | 66 refcount_t refs; member in struct:btrfs_delayed_node 97 refcount_t refs; member in struct:btrfs_delayed_item
|
H A D | ctree.h | 240 refcount_t refs; member in struct:btrfs_root
|
H A D | block-group.h | 179 refcount_t refs; member in struct:btrfs_block_group
|
H A D | bio.c | 96 refcount_inc(&orig_bbio->ordered->refs);
|
H A D | backref.h | 78 * 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 D | accessors.h | 341 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 D | port.c | 69 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 D | nbd.c | 120 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 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/drivers/iommu/iommufd/ |
H A D | selftest.c | 880 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 D | iommufd_test.h | 90 __u32 refs; member in struct:iommu_test_cmd::__anon62::__anon68
|
/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/tools/testing/selftests/iommu/ |
H A D | iommufd_utils.h | 58 .refs = _refs }, \
|
/linux-master/drivers/xen/ |
H A D | gntdev-dmabuf.c | 44 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 D | tty_io.c | 583 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 D | r535.c | 373 refcount_inc(&vctx->refs);
|
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);
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 2433 * @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)++;
|