Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c94 kref_init(&plane_state->refcount); in dc_create_plane_state()
173 kref_get(&plane_state->refcount); in dc_plane_state_retain()
178 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free()
185 kref_put(&plane_state->refcount, dc_plane_state_free); in dc_plane_state_release()
190 kref_get(&gamma->refcount); in dc_gamma_retain()
195 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free()
201 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
212 kref_init(&gamma->refcount); in dc_create_gamma()
221 kref_get(&tf->refcount); in dc_transfer_func_retain()
226 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free()
[all …]
/linux/net/dsa/
H A Dtrace.h15 #include <linux/refcount.h>
58 * is first seen and its refcount is 1.
71 * when the refcount on shared ports reaches 0
86 const struct dsa_db *db, const refcount_t *refcount),
88 TP_ARGS(dp, addr, vid, db, refcount),
97 __field(unsigned int, refcount)
107 __entry->refcount = refcount_read(refcount);
110 TP_printk("%s %s port %d addr %pM vid %u db \"%s\" refcount %u",
112 __entry->vid, __entry->db_buf, __entry->refcount)
[all...]
H A Dswitch.c179 refcount_inc(&a->refcount); in dsa_port_do_mdb_add()
181 &a->refcount); in dsa_port_do_mdb_add()
201 refcount_set(&a->refcount, 1); in dsa_port_do_mdb_add()
236 if (!refcount_dec_and_test(&a->refcount)) { in dsa_port_do_mdb_del()
238 &a->refcount); in dsa_port_do_mdb_del()
245 refcount_set(&a->refcount, 1); in dsa_port_do_mdb_del()
278 refcount_inc(&a->refcount); in dsa_port_do_fdb_add()
279 trace_dsa_fdb_add_bump(dp, addr, vid, &db, &a->refcount); in dsa_port_do_fdb_add()
299 refcount_set(&a->refcount, 1); in dsa_port_do_fdb_add()
333 if (!refcount_dec_and_test(&a->refcount)) { in dsa_port_do_fdb_del()
[all …]
/linux/include/trace/events/
H A Dobjagg.h88 unsigned int refcount),
90 TP_ARGS(objagg, obj, refcount),
95 __field(unsigned int, refcount)
101 __entry->refcount = refcount;
105 __entry->objagg, __entry->obj, __entry->refcount)
111 unsigned int refcount),
113 TP_ARGS(objagg, obj, refcount),
118 __field(unsigned int, refcount)
124 __entry->refcount = refcount;
128 __entry->objagg, __entry->obj, __entry->refcount)
/linux/drivers/scsi/qedf/
H A Dqedf_els.c84 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_initiate_els()
97 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_initiate_els()
188 kref_put(&els_req->refcount, qedf_release_cmd); in qedf_process_els_compl()
196 int refcount; in qedf_rrq_compl() local
211 refcount = kref_read(&orig_io_req->refcount); in qedf_rrq_compl()
214 orig_io_req, orig_io_req->xid, rrq_req->xid, refcount); in qedf_rrq_compl()
221 if (orig_io_req && refcount > 0) in qedf_rrq_compl()
222 kref_put(&orig_io_req->refcount, qedf_release_cmd); in qedf_rrq_compl()
232 kref_put(&rrq_req->refcount, qedf_release_cmd); in qedf_rrq_compl()
248 int refcount; in qedf_send_rrq() local
[all …]
H A Dqedf_io.c54 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_cmd_timeout()
75 kref_get(&io_req->refcount); in qedf_cmd_timeout()
90 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_cmd_timeout()
371 kref_init(&io_req->refcount); /* ID: 001 */ in qedf_alloc_cmd()
379 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_alloc_cmd()
431 container_of(ref, struct qedf_ioreq, refcount); in qedf_release_cmd()
824 io_log->refcount = kref_read(&io_req->refcount); in qedf_trace_io()
883 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req()
892 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req()
911 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_post_io_req()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dmmu_rb.c22 static void release_immediate(struct kref *refcount);
111 kref_put(&rbnode->refcount, release_immediate); in hfi1_mmu_rb_unregister()
188 static void release_immediate(struct kref *refcount) in release_immediate() argument
191 container_of(refcount, struct mmu_rb_node, refcount); in release_immediate()
197 static void release_nolock(struct kref *refcount) in release_nolock() argument
200 container_of(refcount, struct mmu_rb_node, refcount); in release_nolock()
213 void hfi1_mmu_rb_release(struct kref *refcount) in hfi1_mmu_rb_release() argument
216 container_of(refcount, struct mmu_rb_node, refcount); in hfi1_mmu_rb_release()
241 if (kref_read(&rbnode->refcount) > 1) in hfi1_mmu_rb_evict()
257 kref_put(&rbnode->refcount, release_immediate); in hfi1_mmu_rb_evict()
[all …]
H A Dtrace_mmu.h22 __field(unsigned int, refcount)
26 __entry->refcount = kref_read(&node->refcount);
31 __entry->refcount
/linux/net/batman-adv/
H A Doriginator.c72 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()
120 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
187 kref_init(&vlan->refcount); in batadv_orig_node_vlan_new()
190 kref_get(&vlan->refcount); in batadv_orig_node_vlan_new()
208 orig_vlan = container_of(ref, struct batadv_orig_node_vlan, refcount); in batadv_orig_node_vlan_release()
252 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
270 refcount); in batadv_hardif_neigh_release()
291 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
331 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()
387 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
[all …]
H A Dtypes.h231 /** @refcount: number of contexts the object is used */
232 struct kref refcount; member
318 /** @refcount: number of contexts the object is used */
319 struct kref refcount; member
387 * @refcount: number of context where this object is currently in use
389 struct kref refcount; member
541 /** @refcount: number of contexts the object is used */
542 struct kref refcount; member
599 /** @refcount: number of contexts the object is used */
600 struct kref refcount; member
656 struct kref refcount; global() member
698 struct kref refcount; global() member
767 struct kref refcount; global() member
1361 struct kref refcount; global() member
1506 struct kref refcount; global() member
1802 struct kref refcount; global() member
1834 struct kref refcount; global() member
1861 struct kref refcount; global() member
1921 struct kref refcount; global() member
1951 struct kref refcount; global() member
2193 struct kref refcount; global() member
2240 struct kref refcount; global() member
2282 struct kref refcount; global() member
[all...]
H A Doriginator.h99 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release); in batadv_orig_node_vlan_put()
113 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()
127 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
140 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
154 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put()
167 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
H A Dtvlv.c46 tvlv_handler = container_of(ref, struct batadv_tvlv_handler, refcount); in batadv_tvlv_handler_release()
60 kref_put(&tvlv_handler->refcount, batadv_tvlv_handler_release); in batadv_tvlv_handler_put()
87 if (!kref_get_unless_zero(&tvlv_handler_tmp->refcount)) in batadv_tvlv_handler_get()
106 tvlv = container_of(ref, struct batadv_tvlv_container, refcount); in batadv_tvlv_container_release()
120 kref_put(&tvlv->refcount, batadv_tvlv_container_release); in batadv_tvlv_container_put()
150 kref_get(&tvlv_tmp->refcount); in batadv_tvlv_container_get()
257 kref_init(&tvlv_new->refcount); in batadv_tvlv_container_register()
263 kref_get(&tvlv_new->refcount); in batadv_tvlv_container_register()
683 kref_init(&tvlv_handler->refcount); in batadv_tvlv_handler_register()
686 kref_get(&tvlv_handler->refcount); in batadv_tvlv_handler_register()
/linux/drivers/media/mc/
H A Dmc-dev-allocator.c33 struct kref refcount; member
45 container_of(kref, struct media_device_instance, refcount); in media_device_instance_release()
71 kref_get(&mdi->refcount); in __media_device_get()
89 kref_init(&mdi->refcount); in __media_device_get()
133 kref_put(&mdi->refcount, media_device_instance_release); in media_device_delete()
/linux/drivers/accel/habanalabs/common/
H A Dcontext.c33 container_of(ref, struct hl_cs_encaps_sig_handle, refcount); in hl_encaps_release_handle_and_put_ctx()
41 container_of(ref, struct hl_cs_encaps_sig_handle, refcount); in hl_encaps_release_handle_and_put_sob()
49 container_of(ref, struct hl_cs_encaps_sig_handle, refcount); in hl_encaps_release_handle_and_put_sob_ctx()
75 kref_put(&handle->refcount, hl_encaps_release_handle_and_put_sob); in hl_encaps_sig_mgr_fini()
135 ctx = container_of(ref, struct hl_ctx, refcount); in hl_ctx_do_release()
206 kref_init(&ctx->refcount); in hl_ctx_init()
294 return kref_get_unless_zero(&ctx->refcount); in hl_ctx_get_unless_zero()
299 kref_get(&ctx->refcount); in hl_ctx_get()
304 return kref_put(&ctx->refcount, hl_ctx_do_release); in hl_ctx_put()
444 kref_put(&ctx->refcount, hl_ctx_do_release); in hl_ctx_mgr_fini()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgeneve.c14 u32 refcount; member
72 if (geneve->refcount) { in mlx5_geneve_tlv_option_add()
76 geneve->refcount++; in mlx5_geneve_tlv_option_add()
107 geneve->refcount++; in mlx5_geneve_tlv_option_add()
122 if (--geneve->refcount == 0) { in mlx5_geneve_tlv_option_del()
153 if (geneve->refcount) in mlx5_geneve_destroy()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Drl.c186 if (!table->rl_entry[i].refcount) in find_rl_entry()
191 if (table->rl_entry[i].refcount) { in find_rl_entry()
246 table->refcount++; in mlx5_rl_table_get()
260 table->refcount++; in mlx5_rl_table_get()
267 if (--table->refcount) in mlx5_rl_table_put()
283 if (table->rl_entry[i].refcount) in mlx5_rl_table_free()
290 entry->refcount++; in mlx5_rl_entry_get()
296 entry->refcount--; in mlx5_rl_entry_put()
297 if (!entry->refcount) in mlx5_rl_entry_put()
331 if (!entry->refcount) { in mlx5_rl_add_rate_raw()
[all …]
/linux/net/core/
H A Ddev_addr_lists.c104 ha->refcount = 1; in __hw_addr_add_ex()
152 ha->refcount++; in __hw_addr_del_entry()
194 if (--ha->refcount) in __hw_addr_del_ex()
262 ha->refcount++; in __hw_addr_sync_multiple()
292 if (ha->sync_cnt == ha->refcount) { in __hw_addr_unsync()
321 } else if (ha->refcount == 1) in __hw_addr_sync_dev()
365 if (!ha->sync_cnt || ha->refcount != 1)
386 ha->refcount++; in __hw_addr_ref_sync_dev()
422 if ((ha->sync_cnt << 1) <= ha->refcount)
426 ref_cnt = ha->refcount
[all...]
/linux/drivers/net/wireguard/
H A Dpeer.c53 kref_init(&peer->refcount); in wg_peer_create()
75 if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount))) in wg_peer_get_maybe_zero()
200 static void kref_release(struct kref *refcount) in kref_release() argument
202 struct wg_peer *peer = container_of(refcount, struct wg_peer, refcount); in kref_release()
227 kref_put(&peer->refcount, kref_release); in wg_peer_put()
/linux/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c82 struct kref refcount; member
135 kref_get(&tfile->refcount); in ttm_object_file_ref()
172 container_of(kref, struct ttm_object_file, refcount); in ttm_object_file_destroy()
183 kref_put(&tfile->refcount, ttm_object_file_destroy); in ttm_object_file_unref()
200 kref_init(&base->refcount); in ttm_base_object_init()
227 container_of(kref, struct ttm_base_object, refcount); in ttm_release_base()
251 kref_put(&base->refcount, ttm_release_base); in ttm_base_object_unref()
266 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup()
283 if (base && !kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup_for_ref()
336 kref_get(&base->refcount); in ttm_ref_object_add()
[all …]
/linux/drivers/soc/qcom/
H A Dsmem_state.c27 struct kref refcount; member
68 kref_get(&state->refcount); in of_node_to_state()
133 struct qcom_smem_state *state = container_of(ref, struct qcom_smem_state, refcount); in qcom_smem_state_release()
147 kref_put(&state->refcount, qcom_smem_state_release); in qcom_smem_state_put()
204 kref_init(&state->refcount); in qcom_smem_state_register()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_table.c75 refcount_dec(&tbl->miss_action->refcount); in mlx5dr_table_set_miss_action()
80 refcount_inc(&action->refcount); in mlx5dr_table_set_miss_action()
256 refcount_inc(&dmn->refcount); in mlx5dr_table_create()
265 refcount_set(&tbl->refcount, 1); in mlx5dr_table_create()
284 refcount_dec(&dmn->refcount); in mlx5dr_table_create()
292 if (WARN_ON_ONCE(refcount_read(&tbl->refcount) > 1)) in mlx5dr_table_destroy()
303 refcount_dec(&tbl->miss_action->refcount); in mlx5dr_table_destroy()
305 refcount_dec(&tbl->dmn->refcount); in mlx5dr_table_destroy()
/linux/drivers/gpu/host1x/
H A Dchannel.c50 kref_get(&channel->refcount); in host1x_channel_get()
61 * If channel number @index is currently allocated, increase its refcount
69 if (!kref_get_unless_zero(&ch->refcount)) in host1x_channel_get_index()
105 container_of(kref, struct host1x_channel, refcount); in release_channel()
117 kref_put(&channel->refcount, release_channel); in host1x_channel_put()
163 kref_init(&channel->refcount); in host1x_channel_request()
/linux/drivers/gpu/drm/display/
H A Ddrm_dp_aux_dev.c49 struct kref refcount; member
66 if (aux_dev && !kref_get_unless_zero(&aux_dev->refcount)) in drm_dp_aux_dev_get_by_minor()
83 kref_init(&aux_dev->refcount); in alloc_drm_dp_aux_dev()
100 container_of(ref, struct drm_dp_aux_dev, refcount); in release_drm_dp_aux_dev()
116 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in name_show()
236 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in auxdev_release()
300 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in drm_dp_aux_unregister_devnode()
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c37 kref_get(&io_req->refcount); in bnx2fc_cmd_timer_set()
78 kref_read(&io_req->refcount)); in bnx2fc_cmd_timeout()
86 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout()
107 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout()
124 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout()
158 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout()
458 kref_init(&io_req->refcount); in bnx2fc_elstm_alloc()
511 kref_init(&io_req->refcount); in bnx2fc_cmd_alloc()
518 struct bnx2fc_cmd, refcount); in bnx2fc_cmd_release()
725 kref_put(&io_req->refcount, bnx2fc_cmd_releas in bnx2fc_initiate_tmf()
[all...]
/linux/fs/smb/server/mgmt/
H A Dtree_connect.c80 atomic_set(&tree_conn->refcount, 1); in ksmbd_tree_conn_connect()
86 atomic_inc(&tree_conn->refcount); in ksmbd_tree_conn_connect()
109 atomic_inc(&tcon->refcount); in ksmbd_tree_connect_put()
115 if (atomic_dec_and_test(&tcon->refcount)) { in __ksmbd_tree_conn_disconnect()
130 if (atomic_dec_and_test(&tree_conn->refcount)) { in ksmbd_tree_conn_disconnect()
163 else if (!atomic_inc_not_zero(&tcon->refcount))

12345678910>>...18