Searched refs:refcount (Results 76 - 100 of 757) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/panfrost/
H A Dpanfrost_job.h17 struct kref refcount; member in struct:panfrost_job
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Drl.c124 if (!table->rl_entry[i].refcount)
129 if (table->rl_entry[i].refcount) {
184 table->refcount++;
199 table->refcount++;
206 if (--table->refcount)
222 if (table->rl_entry[i].refcount)
229 entry->refcount++;
235 entry->refcount--;
236 if (!entry->refcount)
270 if (!entry->refcount) {
[all...]
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c75 * @refcount: reference/usage count
82 struct kref refcount; member in struct:ttm_object_file
138 kref_get(&tfile->refcount);
175 container_of(kref, struct ttm_object_file, refcount);
186 kref_put(&tfile->refcount, ttm_object_file_destroy);
203 kref_init(&base->refcount);
230 container_of(kref, struct ttm_base_object, refcount);
254 kref_put(&base->refcount, ttm_release_base);
269 if (!kref_get_unless_zero(&base->refcount))
286 if (base && !kref_get_unless_zero(&base->refcount))
[all...]
/linux-master/drivers/net/ipa/
H A Dgsi_trans.h10 #include <linux/refcount.h>
42 * @refcount: Reference count used for destruction
68 refcount_t refcount; member in struct:gsi_trans
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_table.c75 refcount_dec(&tbl->miss_action->refcount);
80 refcount_inc(&action->refcount);
256 refcount_inc(&dmn->refcount);
265 refcount_set(&tbl->refcount, 1);
284 refcount_dec(&dmn->refcount);
292 if (WARN_ON_ONCE(refcount_read(&tbl->refcount) > 1))
303 refcount_dec(&tbl->miss_action->refcount);
305 refcount_dec(&tbl->dmn->refcount);
/linux-master/fs/vboxsf/
H A Dfile.c19 struct kref refcount; member in struct:vboxsf_handle
40 kref_init(&sf_handle->refcount);
121 static void vboxsf_handle_release(struct kref *refcount) argument
124 container_of(refcount, struct vboxsf_handle, refcount);
138 kref_put(&sf_handle->refcount, vboxsf_handle_release);
262 kref_get(&h->refcount);
295 kref_put(&sf_handle->refcount, vboxsf_handle_release);
/linux-master/drivers/net/wireguard/
H A Dpeer.c53 kref_init(&peer->refcount);
75 if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount)))
145 * with a refcount of zero, so no new reference is taken.
200 static void kref_release(struct kref *refcount) argument
202 struct wg_peer *peer = container_of(refcount, struct wg_peer, refcount);
227 kref_put(&peer->refcount, kref_release);
/linux-master/drivers/gpu/drm/nouveau/nvkm/core/
H A Dsubdev.c163 if (refcount_read(&subdev->use.refcount) == 0) {
188 if (refcount_dec_and_mutex_lock(&subdev->use.refcount, &subdev->use.mutex)) {
199 if (subdev && !refcount_inc_not_zero(&subdev->use.refcount)) {
201 if (!refcount_inc_not_zero(&subdev->use.refcount)) {
207 refcount_set(&subdev->use.refcount, 1);
263 refcount_set(&subdev->use.refcount, 1);
H A Dmemory.c37 if (refcount_dec_and_test(&tags->refcount)) {
66 refcount_inc(&tags->refcount);
93 refcount_set(&tags->refcount, 1);
/linux-master/drivers/accel/habanalabs/common/
H A Dmemory_mgr.c11 * hl_mmap_mem_buf_get - increase the buffer refcount and return a pointer to
18 * Increase buffer refcount. If not found - return NULL.
31 kref_get(&buf->refcount);
64 container_of(kref, struct hl_mmap_mem_buf, refcount);
84 container_of(kref, struct hl_mmap_mem_buf, refcount);
99 return kref_put(&buf->refcount, hl_mmap_mem_buf_release);
126 if (kref_put(&buf->refcount, hl_mmap_mem_buf_remove_idr_locked)) {
172 kref_init(&buf->refcount);
/linux-master/net/dsa/
H A Dswitch.c179 refcount_inc(&a->refcount);
181 &a->refcount);
201 refcount_set(&a->refcount, 1);
236 if (!refcount_dec_and_test(&a->refcount)) {
238 &a->refcount);
245 refcount_set(&a->refcount, 1);
278 refcount_inc(&a->refcount);
279 trace_dsa_fdb_add_bump(dp, addr, vid, &db, &a->refcount);
299 refcount_set(&a->refcount, 1);
333 if (!refcount_dec_and_test(&a->refcount)) {
[all...]
/linux-master/fs/bcachefs/
H A Dreflink.c83 __le64 *refcount; local
95 refcount = bkey_refcount(bkey_i_to_s(k));
96 if (!refcount) {
105 if (!*refcount && (flags & BTREE_TRIGGER_OVERWRITE)) {
108 "indirect extent refcount underflow at %llu while marking\n %s",
129 le64_add_cpu(refcount, add);
164 BUG_ON((s64) r->refcount + add < 0);
166 r->refcount += add;
267 prt_printf(out, "refcount: %llu ", le64_to_cpu(r.v->refcount));
345 __le64 *refcount; local
[all...]
/linux-master/fs/smb/client/
H A Dcached_dir.c39 kref_get(&cfid->refcount);
61 kref_get(&cfid->refcount);
367 kref_put(&cfid->refcount, smb2_close_cached_fid);
405 kref_get(&cfid->refcount);
419 refcount);
457 kref_put(&cfid->refcount, smb2_close_cached_fid);
466 kref_put(&cfid->refcount, smb2_close_cached_fid);
516 kref_get(&cfid->refcount);
531 kref_put(&cfid->refcount, smb2_close_cached_fid);
534 kref_put(&cfid->refcount, smb2_close_cached_fi
[all...]
/linux-master/net/batman-adv/
H A Dtvlv.c42 tvlv_handler = container_of(ref, struct batadv_tvlv_handler, refcount);
56 kref_put(&tvlv_handler->refcount, batadv_tvlv_handler_release);
82 if (!kref_get_unless_zero(&tvlv_handler_tmp->refcount))
101 tvlv = container_of(ref, struct batadv_tvlv_container, refcount);
115 kref_put(&tvlv->refcount, batadv_tvlv_container_release);
144 kref_get(&tvlv_tmp->refcount);
250 kref_init(&tvlv_new->refcount);
256 kref_get(&tvlv_new->refcount);
572 kref_init(&tvlv_handler->refcount);
575 kref_get(&tvlv_handler->refcount);
[all...]
/linux-master/include/net/
H A Dax25.h15 #include <linux/refcount.h>
163 refcount_t refcount; member in struct:ax25_uid_assoc
172 refcount_inc(&((ax25)->refcount))
176 if (refcount_dec_and_test(&assoc->refcount)) {
230 refcount_t refcount; member in struct:ax25_dev
255 refcount_t refcount; member in struct:ax25_cb
274 refcount_inc(&((__ax25)->refcount))
278 if (refcount_dec_and_test(&ax25->refcount)) {
286 refcount_inc(&ax25_dev->refcount);
291 if (refcount_dec_and_test(&ax25_dev->refcount)) {
[all...]
/linux-master/fs/squashfs/
H A Dcache.c90 if (cache->entry[i].refcount == 0)
104 entry->refcount = 1;
135 * Block already in cache. Increment refcount so it doesn't
141 if (entry->refcount == 0)
143 entry->refcount++;
160 TRACE("Got %s %d, start block %lld, refcount %d, error %d\n",
161 cache->name, i, entry->block, entry->refcount, entry->error);
178 entry->refcount--;
179 if (entry->refcount == 0) {
/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_aux_dev.c49 struct kref refcount; member in struct:drm_dp_aux_dev
66 if (aux_dev && !kref_get_unless_zero(&aux_dev->refcount))
83 kref_init(&aux_dev->refcount);
100 container_of(ref, struct drm_dp_aux_dev, refcount);
116 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev);
236 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev);
300 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev);
/linux-master/drivers/scsi/qedf/
H A Dqedf_io.c54 kref_put(&io_req->refcount, qedf_release_cmd);
75 kref_get(&io_req->refcount);
90 kref_put(&io_req->refcount, qedf_release_cmd);
375 kref_init(&io_req->refcount); /* ID: 001 */
383 kref_put(&io_req->refcount, qedf_release_cmd);
435 container_of(ref, struct qedf_ioreq, refcount);
828 io_log->refcount = kref_read(&io_req->refcount);
887 kref_put(&io_req->refcount, qedf_release_cmd);
896 kref_put(&io_req->refcount, qedf_release_cm
1127 int refcount; local
1327 int refcount; local
1596 int refcount = 0; local
1862 int refcount = 0; local
2159 int refcount = 0; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c8 #include <linux/refcount.h>
30 refcount_t refcount; member in struct:mapping_ctx
216 refcount_set(&ctx->refcount, 1);
230 if (refcount_inc_not_zero(&ctx->refcount))
251 if (!refcount_dec_and_test(&ctx->refcount))
/linux-master/drivers/md/
H A Ddm-ps-io-affinity.c17 refcount_t refcount; member in struct:path_info
34 if (refcount_dec_and_test(&pi->refcount)) {
64 refcount_set(&pi->refcount, 1);
93 refcount_inc(&pi->refcount);
96 if (refcount_dec_and_test(&pi->refcount)) {
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_port_range.c6 #include <linux/refcount.h>
14 refcount_t refcount; member in struct:mlxsw_sp_port_range_reg
60 refcount_set(&prr->refcount, 1);
124 refcount_inc(&prr->refcount);
147 if (!refcount_dec_and_test(&prr->refcount))
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bo_list.c51 refcount);
85 kref_init(&list->refcount);
160 kref_put(&list->refcount, amdgpu_bo_list_free);
169 if (*result && kref_get_unless_zero(&(*result)->refcount)) {
181 kref_put(&list->refcount, amdgpu_bo_list_free);
/linux-master/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c37 kref_get(&io_req->refcount);
78 kref_read(&io_req->refcount));
86 kref_put(&io_req->refcount, bnx2fc_cmd_release);
107 kref_put(&io_req->refcount, bnx2fc_cmd_release);
124 kref_put(&io_req->refcount, bnx2fc_cmd_release);
158 kref_put(&io_req->refcount, bnx2fc_cmd_release);
460 kref_init(&io_req->refcount);
513 kref_init(&io_req->refcount);
520 struct bnx2fc_cmd, refcount);
727 kref_put(&io_req->refcount, bnx2fc_cmd_releas
[all...]
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_provider.h186 int refcount; member in struct:mthca_cq
207 int refcount; member in struct:mthca_srq
255 int refcount; member in struct:mthca_qp
/linux-master/arch/x86/kernel/cpu/sgx/
H A Ddriver.c26 kref_init(&encl->refcount);
77 kref_put(&encl->refcount, sgx_encl_release);
80 kref_put(&encl->refcount, sgx_encl_release);

Completed in 909 milliseconds

1234567891011>>