Searched refs:refcount (Results 151 - 175 of 761) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/xe/
H A Dxe_sync.c24 struct kref refcount; member in struct:xe_user_fence
36 refcount);
44 kref_get(&ufence->refcount);
49 kref_put(&ufence->refcount, user_fence_destroy);
62 kref_init(&ufence->refcount);
/linux-master/drivers/infiniband/core/
H A Dmulticast.c64 refcount_t refcount; member in struct:mcast_port
106 atomic_t refcount; member in struct:mcast_group
120 refcount_t refcount; member in struct:mcast_member
181 if (refcount_dec_and_test(&port->refcount))
191 if (atomic_dec_and_test(&group->refcount)) {
202 if (refcount_dec_and_test(&member->refcount))
215 atomic_inc(&group->refcount);
404 refcount_inc(&member->refcount);
448 refcount_inc(&member->refcount);
500 refcount_inc(&member->refcount);
[all...]
H A Dmad_priv.h106 refcount_t refcount; member in struct:ib_mad_agent_private
135 int refcount; member in struct:ib_mad_send_wr_private
/linux-master/drivers/infiniband/hw/irdma/
H A Dtrace_cm.h207 __field(u32, refcount)
223 __entry->refcount = refcount_read(&cm_node->refcnt);
243 __entry->refcount,
284 __field(u32, refcount)
298 __entry->refcount = refcount_read(&cm_node->refcnt);
316 __entry->refcount,
406 __field(u32, refcount)
419 __entry->refcount = refcount_read(&cm_node->refcnt);
435 __entry->refcount,
/linux-master/drivers/scsi/bnx2fc/
H A Dbnx2fc_els.c41 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release);
116 kref_put(&aborted_io_req->refcount, bnx2fc_cmd_release);
372 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release);
578 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release);
601 kref_get(&orig_io_req->refcount);
616 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release);
642 kref_get(&orig_io_req->refcount);
660 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release);
724 kref_put(&els_req->refcount, bnx2fc_cmd_release);
745 kref_put(&els_req->refcount, bnx2fc_cmd_releas
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_mode_object.c59 kref_init(&obj->refcount);
156 if (!kref_get_unless_zero(&obj->refcount))
190 * This function decrements the object's refcount if it is a refcounted modeset
197 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount));
198 kref_put(&obj->refcount, obj->free_cb);
207 * This function increments the object's refcount if it is a refcounted modeset
214 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount));
215 kref_get(&obj->refcount);
/linux-master/drivers/tee/amdtee/
H A Dcore.c117 kref_get(&sess->refcount);
125 kref_init(&sess->refcount);
223 refcount);
274 kref_put_mutex(&sess->refcount, destroy_session,
293 kref_put_mutex(&sess->refcount, destroy_session,
335 kref_put_mutex(&sess->refcount, destroy_session, &session_list_mutex);
/linux-master/drivers/infiniband/hw/mlx4/
H A Dmcg.c119 /* refcount is the reference count for the following:
124 atomic_t refcount; member in struct:mcast_group
444 if (atomic_dec_and_test(&group->refcount)) {
448 atomic_inc(&group->refcount);
577 atomic_inc(&group->refcount);
579 safe_atomic_dec(&group->refcount);
778 atomic_inc(&group->refcount);
865 atomic_inc(&group->refcount);
873 atomic_inc(&group->refcount); /* for the request */
874 atomic_inc(&group->refcount); /* fo
[all...]
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_acl.c62 refcount_t refcount; member in struct:prestera_acl_ruleset
74 refcount_t refcount; member in struct:prestera_acl_vtcam
155 refcount_set(&ruleset->refcount, 1);
293 refcount_inc(&ruleset->refcount);
306 refcount_inc(&ruleset->refcount);
315 if (!refcount_dec_and_test(&ruleset->refcount))
449 refcount_inc(&ruleset->refcount);
785 refcount_inc(&vtcam->refcount);
807 refcount_inc(&vtcam->refcount);
813 refcount_inc(&vtcam->refcount);
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_action.c1007 refcount_set(&action->refcount, 1);
1031 refcount_inc(&dmn->refcount);
1041 refcount_inc(&tbl->refcount);
1052 refcount_dec(&tbl->refcount);
1157 /* No need to increase refcount on domain for this action,
1276 refcount_inc(&dmn->refcount);
1279 refcount_inc(&ref_actions[i]->refcount);
1315 refcount_inc(&dmn->refcount);
1368 refcount_inc(&dmn->refcount);
1554 refcount_inc(&dmn->refcount);
[all...]
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.h163 u32 refcount; member in struct:bnxt_tc_tunnel_node
184 u16 refcount; member in struct:bnxt_tc_l2_node
/linux-master/kernel/events/
H A Dinternal.h7 #include <linux/refcount.h>
14 refcount_t refcount; member in struct:perf_buffer
/linux-master/net/batman-adv/
H A Dhard-interface.c53 hard_iface = container_of(ref, struct batadv_hard_iface, refcount);
73 kref_get_unless_zero(&hard_iface->refcount))
451 kref_get_unless_zero(&hard_iface->refcount))
485 kref_get(&new_hard_iface->refcount);
728 kref_get(&hard_iface->refcount);
745 kref_get(&hard_iface->refcount);
895 kref_init(&hard_iface->refcount);
907 kref_get(&hard_iface->refcount);
H A Dgateway_client.c67 gw_node = container_of(ref, struct batadv_gw_node, refcount);
89 if (!kref_get_unless_zero(&gw_node->refcount))
118 if (!kref_get_unless_zero(&orig_node->refcount))
136 kref_get(&new_gw_node->refcount);
340 kref_init(&gw_node->refcount);
342 kref_get(&orig_node->refcount);
347 kref_get(&gw_node->refcount);
381 if (!kref_get_unless_zero(&gw_node_tmp->refcount))
H A Dtranslation-table.h70 kref_put(&tt_global_entry->common.refcount,
/linux-master/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-contig.c15 #include <linux/refcount.h>
39 refcount_t refcount; member in struct:vb2_dc_buf
120 return refcount_read(&buf->refcount);
171 if (!refcount_dec_and_test(&buf->refcount))
265 buf->handler.refcount = &buf->refcount;
269 refcount_set(&buf->refcount, 1);
522 refcount_inc(&buf->refcount);
H A Dvideobuf2-dma-sg.c15 #include <linux/refcount.h>
50 refcount_t refcount; member in struct:vb2_dma_sg_buf
154 buf->handler.refcount = &buf->refcount;
159 refcount_set(&buf->refcount, 1);
185 if (refcount_dec_and_test(&buf->refcount)) {
329 return refcount_read(&buf->refcount);
349 * Use common vm_area operations to track buffer refcount.
542 refcount_inc(&buf->refcount);
/linux-master/include/linux/
H A Dbacking-dev-defs.h10 #include <linux/percpu-refcount.h>
15 #include <linux/refcount.h>
214 * wb_tryget - try to increment a wb's refcount
225 * wb_get - increment a wb's refcount
235 * wb_put - decrement a wb's refcount
254 * wb_put - decrement a wb's refcount
H A Dnetpoll.h15 #include <linux/refcount.h>
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpci_irq.c34 int refcount; member in struct:mlx5_irq
192 irq->refcount--;
193 if (!irq->refcount) {
204 return irq->refcount;
210 if (WARN_ON_ONCE(!irq->refcount))
212 irq->refcount++;
311 irq->refcount = 1;
506 irq->refcount / MLX5_EQ_REFS_PER_IRQ);
/linux-master/include/linux/ceph/
H A Dpagelist.h6 #include <linux/refcount.h>
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dsrq.c52 refcount_inc(&srq->refcount);
60 if (refcount_dec_and_test(&srq->refcount))
206 refcount_set(&srq->refcount, 1);
235 if (refcount_dec_and_test(&srq->refcount))
/linux-master/drivers/gpu/drm/i915/selftests/
H A Dlib_sw_fence.c117 refcount_set(&h->ref.refcount, 2);
/linux-master/drivers/md/
H A Ddm-zoned.h106 atomic_t refcount; member in struct:dm_zone
242 atomic_inc(&zone->refcount);
292 atomic_dec(&zone->refcount);
296 * Test if a zone is active, that is, has a refcount > 0.
300 return atomic_read(&zone->refcount);
/linux-master/include/net/netfilter/
H A Dnf_conntrack_timeout.h8 #include <linux/refcount.h>

Completed in 460 milliseconds

1234567891011>>