Searched refs:refcount (Results 226 - 250 of 757) sorted by relevance

1234567891011>>

/linux-master/include/drm/
H A Ddrm_framebuffer.h115 * The refcount is stored inside the mode object @base.
247 return kref_read(&fb->base.refcount);
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_sched.c123 kref_get(&submit->refcount);
/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/tools/testing/selftests/bpf/progs/
H A Drefcounted_kptr_fail.c13 struct bpf_refcount refcount; member in struct:node_acquire
/linux-master/fs/btrfs/
H A Ddelayed-inode.h18 #include <linux/refcount.h>
H A Dextent_map.h10 #include <linux/refcount.h>
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dcq.c72 if (refcount_dec_and_test(&mcq->refcount))
95 refcount_inc(&cq->refcount);
413 refcount_set(&cq->refcount, 1);
455 if (refcount_dec_and_test(&cq->refcount))
/linux-master/include/net/
H A Dnetlabel.h26 #include <linux/refcount.h>
111 * @refcount: atomic reference counter
125 refcount_t refcount; member in struct:netlbl_lsm_cache
283 refcount_set(&cache->refcount, 1);
297 if (!refcount_dec_and_test(&cache->refcount))
H A Daf_unix.h8 #include <linux/refcount.h>
H A Dcipso_ipv4.h30 #include <linux/refcount.h>
75 refcount_t refcount; member in struct:cipso_v4_doi
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dttm_object.h81 * @refcount: Number of references to this object, not
105 struct kref refcount; member in struct:ttm_base_object
188 * Decrements the base object refcount and clears the pointer pointed to by
202 * already existed, and the refcount was upped on that object instead.
/linux-master/tools/perf/util/
H A Dmem-events.h9 #include <linux/refcount.h>
H A Dmaps.h5 #include <linux/refcount.h>
/linux-master/include/linux/
H A Dmemremap.h8 #include <linux/percpu-refcount.h>
80 * Called once the page refcount reaches 0. The reference count will be
H A Dpadata.h15 #include <linux/refcount.h>
/linux-master/drivers/infiniband/core/
H A Dmad_rmpp.c54 refcount_t refcount; member in struct:mad_rmpp_recv
75 if (refcount_dec_and_test(&rmpp_recv->refcount))
299 refcount_set(&rmpp_recv->refcount, 1);
351 refcount_inc(&rmpp_recv->refcount);
547 refcount_inc(&rmpp_recv->refcount);
720 if (mad_send_wr->refcount == 1)
726 } else if (mad_send_wr->refcount == 1 &&
734 mad_send_wr->refcount++;
893 mad_send_wr->refcount += (mad_send_wr->timeout == 0);
/linux-master/net/batman-adv/
H A Drouting.c74 /* increase refcount of new best neighbor */
76 kref_get(&neigh_node->refcount);
103 /* decrease refcount of previous best neighbor */
484 kref_get(&last_bonding_candidate->refcount);
505 kref_get(&new_candidate->refcount);
565 if (!kref_get_unless_zero(&cand->refcount))
572 if (!kref_get_unless_zero(&cand_router->refcount)) {
591 kref_get(&cand_router->refcount);
592 kref_get(&cand->refcount);
627 kref_get(&next_candidate_router->refcount);
[all...]
H A Dnetwork-coding.c205 nc_node = container_of(ref, struct batadv_nc_node, refcount);
221 kref_put(&nc_node->refcount, batadv_nc_node_release);
233 nc_path = container_of(ref, struct batadv_nc_path, refcount);
248 kref_put(&nc_path->refcount, batadv_nc_path_release);
558 if (!kref_get_unless_zero(&nc_path->refcount))
813 if (!kref_get_unless_zero(&nc_node->refcount))
870 kref_init(&nc_node->refcount);
872 kref_get(&orig_neigh_node->refcount);
879 kref_get(&nc_node->refcount);
979 kref_init(&nc_path->refcount);
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_state.c207 kref_init(&state->refcount);
214 struct kref refcount = dst_state->refcount; local
227 /* context refcount should not be overridden */
228 dst_state->refcount = refcount;
250 kref_init(&new_state->refcount);
318 kref_get(&state->refcount);
323 struct dc_state *state = container_of(kref, struct dc_state, refcount);
338 kref_put(&state->refcount, dc_state_fre
[all...]
/linux-master/fs/smb/client/
H A Dfile.c2513 cifs_writedata_release(struct kref *refcount) argument
2515 struct cifs_writedata *wdata = container_of(refcount,
2516 struct cifs_writedata, refcount);
2594 kref_put(&wdata2->refcount, cifs_writedata_release);
2613 kref_put(&wdata->refcount, cifs_writedata_release);
2641 kref_put(&wdata->refcount, cifs_writedata_release);
2650 kref_init(&wdata->refcount);
2935 kref_put(&wdata->refcount, cifs_writedata_release);
2945 kref_put(&wdata->refcount, cifs_writedata_release);
3364 cifs_uncached_writedata_release(struct kref *refcount) argument
3940 cifs_readdata_release(struct kref *refcount) argument
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_vblank.c483 if (atomic_read(&vblank->refcount) == 0 && vblank->enabled) {
1169 atomic_dec(&vblank->refcount);
1200 if (atomic_add_return(1, &vblank->refcount) == 1) {
1204 atomic_dec(&vblank->refcount);
1236 if (drm_WARN_ON(dev, atomic_read(&vblank->refcount) == 0))
1240 if (atomic_dec_and_test(&vblank->refcount)) {
1357 * the vblank interrupt by bumping the refcount.
1360 atomic_inc(&vblank->refcount);
1414 * interrupt by bumping the refcount.
1417 atomic_inc(&vblank->refcount);
[all...]
/linux-master/drivers/tty/vt/
H A Dconsolemap.c211 * @refcount: reference count of this structure
218 unsigned long refcount; member in struct:uni_pagedict
461 if (--p->refcount)
498 dict2->refcount++;
549 new->refcount = 1;
553 old->refcount--;
563 if (!old || old->refcount > 1)
625 old->refcount++;
660 if (dict->refcount > 1) {
718 dflt->refcount
[all...]
/linux-master/mm/
H A Dz3fold.c97 * @refcount: reference count for the z3fold page
111 struct kref refcount; member in struct:z3fold_header
340 kref_init(&zhdr->refcount);
463 refcount);
471 refcount);
484 return kref_put(&zhdr->refcount, release_z3fold_page_locked);
489 return kref_put(&zhdr->refcount, release_z3fold_page_locked_list);
840 kref_get(&zhdr->refcount);
877 kref_get(&zhdr->refcount);
1154 kref_get(&zhdr->refcount);
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_cppcore.c92 atomic_t refcount; member in struct:nfp_cpp_area
93 struct mutex mutex; /* Lock for the area's refcount */
318 atomic_set(&area->refcount, 0);
405 if (atomic_read(&area->refcount))
421 if (atomic_inc_return(&area->refcount) > 1)
433 atomic_dec(&area->refcount);
476 if (atomic_inc_return(&area->refcount) == 1) {
482 atomic_dec(&area->refcount);
503 /* Only call the release on refcount == 0 */
504 if (atomic_dec_and_test(&area->refcount)) {
[all...]
/linux-master/drivers/net/ethernet/cavium/liquidio/
H A Docteon_device.c766 int idx, refcount; local
787 return 1; /* here, refcount is guaranteed to be 1 */
804 refcount = atomic_read(oct->adapter_refcount);
806 dev_dbg(&oct->pci_dev->dev, "%s: %02x:%02x:%d refcount %u", __func__,
807 oct->loc.bus, oct->loc.dev, oct->loc.func, refcount);
809 return refcount;
819 int refcount; local
822 refcount = atomic_read(oct->adapter_refcount);
824 dev_dbg(&oct->pci_dev->dev, "%s: %04d:%02d:%d refcount %u", __func__,
825 oct->loc.bus, oct->loc.dev, oct->loc.func, refcount);
[all...]

Completed in 492 milliseconds

1234567891011>>