Searched refs:refs (Results 26 - 50 of 169) sorted by relevance

1234567

/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);
/linux-master/drivers/thermal/
H A Dk3_j72xx_bandgap.c74 * @refs: reference error values for -40C, 30C, 125C & 150C
78 int refs[4]; member in struct:err_values
90 idx1 = err_vals->refs[seg];
92 idx2 = err_vals->refs[seg + 1];
95 ref1 = err_vals->refs[seg];
96 ref2 = err_vals->refs[seg + 1];
461 err_vals.refs[0] = MINUS40CREF;
462 err_vals.refs[1] = PLUS30CREF;
463 err_vals.refs[2] = PLUS125CREF;
464 err_vals.refs[
[all...]
/linux-master/io_uring/
H A Drsrc.h43 int refs; member in struct:io_rsrc_node
87 if (node && !--node->refs)
100 node->refs++;
/linux-master/sound/pci/hda/
H A Dcirrus_scodec_test.c193 struct software_node_ref_args *refs; local
198 refs = kunit_kcalloc(test, num_spk_id_refs, sizeof(*refs), GFP_KERNEL);
199 KUNIT_ASSERT_NOT_NULL(test, refs);
202 cirrus_scodec_test_set_gpio_ref_arg(&refs[i++], v++);
217 ret = cirrus_scodec_test_set_spkid_swnode(test, dev, refs, num_spk_id_refs);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dkfree_skb.c36 atomic_t refs; member in struct:refcount_struct
75 users = skb->users.refs.counter;
H A Dmap_kptr.c308 if (p_st->cnt.refs.counter != ref) {
318 if (p_st->cnt.refs.counter != ref)
326 if (p_st->cnt.refs.counter != ref)
338 if (p_st->cnt.refs.counter != ref)
355 if (!p_st || p_st->cnt.refs.counter != ref)
361 if (p_st->cnt.refs.counter != ref) {
371 if (p_st->cnt.refs.counter != ref)
471 if (p->cnt.refs.counter != ref) {
H A Dbpf_iter_unix.c42 sk->sk_refcnt.refs.counter,
/linux-master/fs/btrfs/
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 Ddelayed-inode.c59 refcount_set(&delayed_node->refs, 0);
76 refcount_inc(&node->refs);
85 refcount_inc(&node->refs); /* can be accessed */
107 if (refcount_inc_not_zero(&node->refs)) {
108 refcount_inc(&node->refs);
143 refcount_set(&node->refs, 2);
188 refcount_inc(&node->refs); /* inserted into list */
202 refcount_dec(&node->refs); /* not in the list */
223 refcount_inc(&node->refs);
250 refcount_inc(&next->refs);
[all...]
H A Dordered-data.c187 refcount_set(&entry->refs, 1);
221 refcount_inc(&entry->refs);
355 refcount_inc(&ordered->refs);
538 refcount_inc(&entry->refs);
556 if (refcount_dec_and_test(&entry->refs)) {
708 refcount_inc(&ordered->refs);
889 refcount_inc(&entry->refs);
930 refcount_inc(&entry->refs);
959 refcount_inc(&ordered->refs);
981 refcount_inc(&entry->refs);
[all...]
/linux-master/mm/
H A Dworkingset.c241 int refs = folio_lru_refs(folio); local
242 int tier = lru_tier_from_refs(refs);
251 token = (min_seq << LRU_REFS_WIDTH) | max(refs - 1, 0);
256 return pack_shadow(mem_cgroup_id(memcg), pgdat, token, refs);
283 int hist, tier, refs; local
306 refs = (token & (BIT(LRU_REFS_WIDTH) - 1)) + workingset;
307 tier = lru_tier_from_refs(refs);
319 if (lru_gen_in_fault() || refs >= BIT(LRU_REFS_WIDTH) - 1) {
H A Dgup.c71 static inline struct folio *try_get_folio(struct page *page, int refs) argument
79 if (unlikely(!folio_ref_try_add_rcu(folio, refs)))
92 if (!put_devmap_managed_page_refs(&folio->page, refs))
93 folio_put_refs(folio, refs);
103 * @refs: the value to (effectively) add to the folio's refcount
113 * FOLL_GET: folio's refcount will be incremented by @refs.
116 * @refs, and its pincount will be incremented by @refs.
119 * @refs * GUP_PIN_COUNTING_BIAS.
126 struct folio *try_grab_folio(struct page *page, int refs, unsigne argument
189 gup_put_folio(struct folio *folio, int refs, unsigned int flags) argument
2809 int refs; local
2882 int refs; local
2926 int refs; local
2969 int refs; local
[all...]
H A Dswap.c966 * @refs: The number of refs to subtract from each folio.
972 * to reinitialise it. If @refs is NULL, we subtract one from each
978 void folios_put_refs(struct folio_batch *folios, unsigned int *refs) argument
986 unsigned int nr_refs = refs ? refs[i] : 1;
1053 int refs[PAGEVEC_SIZE]; local
1063 refs[fbatch.nr] = 1;
1066 refs[fbatch.nr] = encoded_nr_pages(encoded[++i]);
1070 folios_put_refs(&fbatch, refs);
[all...]
/linux-master/include/uapi/linux/
H A Dxdp_diag.h71 __u32 refs; member in struct:xdp_diag_umem
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Devent.h18 int *refs; member in struct:nvkm_event
/linux-master/tools/testing/selftests/hid/tests/
H A Dbase.py300 self.refs = 0
304 self.refs += 1
305 if self.refs == 2 and self.rulesfile is None:
310 self.refs -= 1
311 if self.refs == 0 and self.rulesfile:
/linux-master/kernel/trace/
H A Dtrace_events_user.c165 struct user_event_refs *refs; member in struct:user_event_file_info
821 * Put for mm must be done after RCU delay to handle new refs in
822 * between the list_del_rcu() and now. This ensures any get refs
2171 struct user_event_refs *refs; local
2185 refs = rcu_dereference_sched(info->refs);
2188 * The refs->events array is protected by RCU, and new items may be
2192 if (likely(refs && idx < refs->count))
2193 user = refs
2289 struct user_event_refs *refs, *new_refs; local
2641 struct user_event_refs *refs; local
[all...]
/linux-master/drivers/misc/sgi-xp/
H A Dxpc.h684 s32 refs = atomic_dec_return(&ch->references); local
686 DBUG_ON(refs < 0);
687 if (refs == 0)
701 s32 refs = atomic_dec_return(&part->references); local
703 DBUG_ON(refs < 0);
704 if (refs == 0 && part->setup_state == XPC_P_SS_WTEARDOWN)
/linux-master/fs/btrfs/tests/
H A Dqgroup-tests.c75 u64 refs; local
99 refs = btrfs_extent_refs(path->nodes[0], item);
100 btrfs_set_extent_refs(path->nodes[0], item, refs + 1);
157 u64 refs; local
181 refs = btrfs_extent_refs(path->nodes[0], item);
182 btrfs_set_extent_refs(path->nodes[0], item, refs - 1);
229 * Since the test trans doesn't have the complicated delayed refs,
329 test_msg("running qgroup multiple refs test");
/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))
/linux-master/drivers/most/
H A Dcore.c34 int refs; member in struct:pipe
852 if (c->pipe0.refs && c->pipe0.comp->tx_completion)
855 if (c->pipe1.refs && c->pipe1.comp->tx_completion)
963 if (c->pipe0.refs && c->pipe1.refs &&
996 if (c->pipe0.refs && c->pipe1.refs &&
1068 if (c->pipe0.refs && c->pipe0.comp->rx_completion &&
1072 if (c->pipe1.refs && c->pipe1.comp->rx_completion &&
1101 if (c->pipe0.refs
[all...]
/linux-master/include/net/
H A Dmctp.h100 * - A ref to the key must be held (throuh key->refs) if a pointer to the
156 refcount_t refs; member in struct:mctp_sk_key
245 refcount_t refs; member in struct:mctp_route
/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/arch/s390/kernel/
H A Dvmlinux.lds.S90 .amode31.refs : {
92 *(.amode31.refs)
/linux-master/drivers/iommu/iommufd/
H A Diommufd_test.h90 __u32 refs; member in struct:iommu_test_cmd::__anon62::__anon68

Completed in 304 milliseconds

1234567