Searched defs:refcount (Results 1 - 25 of 62) sorted by relevance

123

/drivers/gpu/drm/
H A Ddrm_global.c39 int refcount; member in struct:drm_global_item
52 item->refcount = 0;
62 BUG_ON(item->refcount != 0);
72 if (item->refcount == 0) {
85 ++item->refcount;
101 BUG_ON(item->refcount == 0);
103 if (--item->refcount == 0) {
/drivers/gpu/host1x/
H A Dchannel.h31 unsigned int refcount; member in struct:host1x_channel
H A Dintr.h58 struct kref refcount; member in struct:host1x_waitlist
/drivers/staging/lustre/lnet/lnet/
H A Dmodule.c69 int refcount; local
79 refcount = the_lnet.ln_refcount;
83 return (refcount == 0) ? 0 : -EBUSY;
/drivers/video/adf/
H A Dadf.h26 int refcount; member in struct:adf_event_refcount
/drivers/gpu/drm/nouveau/nvif/
H A Dobject.h9 struct kref refcount; member in struct:nvif_object
/drivers/infiniband/core/
H A Diwcm.h55 atomic_t refcount; member in struct:iwcm_id_private
H A Diwpm_util.h80 atomic_t refcount; member in struct:iwpm_admin_data
/drivers/net/ethernet/mellanox/mlx4/
H A Dicm.h59 int refcount; member in struct:mlx4_icm
/drivers/gpu/drm/nouveau/core/include/subdev/
H A Dvm.h35 u32 refcount[2]; member in struct:nouveau_vm_pgt
48 int refcount; member in struct:nouveau_vma
58 struct kref refcount; member in struct:nouveau_vm
/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c41 struct kref refcount; member in struct:smsdvb_debugfs
343 kref_get(&debug_data->refcount);
359 debug_data = container_of(ref, struct smsdvb_debugfs, refcount);
384 kref_get(&debug_data->refcount);
392 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release);
403 kref_get(&debug_data->refcount);
436 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release);
449 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release);
502 kref_init(&debug_data->refcount);
517 kref_put(&client->debug_data->refcount, smsdvb_debugfs_data_releas
[all...]
/drivers/media/v4l2-core/
H A Dvideobuf2-dma-sg.c41 atomic_t refcount; member in struct:vb2_dma_sg_buf
120 buf->handler.refcount = &buf->refcount;
124 atomic_inc(&buf->refcount);
146 if (atomic_dec_and_test(&buf->refcount)) {
298 return atomic_read(&buf->refcount);
328 * Use common vm_area operations to track buffer refcount.
H A Dvideobuf2-vmalloc.c31 atomic_t refcount; member in struct:vb2_vmalloc_buf
48 buf->handler.refcount = &buf->refcount;
58 atomic_inc(&buf->refcount);
66 if (atomic_dec_and_test(&buf->refcount)) {
176 return atomic_read(&buf->refcount);
201 * Use common vm_area operations to track buffer refcount.
/drivers/gpu/drm/msm/hdmi/
H A Dhdmi.h41 struct kref refcount; member in struct:hdmi
120 kref_get(&hdmi->refcount);
126 kref_put(&hdmi->refcount, hdmi_destroy);
/drivers/infiniband/hw/amso1100/
H A Dc2_provider.h94 atomic_t refcount; member in struct:c2_cq
111 atomic_t refcount; member in struct:c2_qp
/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.h60 int refcount; member in struct:mthca_icm
H A Dmthca_memfree.c60 int refcount; member in struct:mthca_user_db_table::__anon1551
152 icm->refcount = 0;
230 ++table->icm[i]->refcount;
250 ++table->icm[i]->refcount;
268 if (--table->icm[i]->refcount == 0) {
406 ++table->icm[i]->refcount;
463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) ||
470 if (db_tab->page[i].refcount) {
471 ++db_tab->page[i].refcount;
498 db_tab->page[i].refcount
[all...]
/drivers/pci/hotplug/
H A Dacpiphp.h122 unsigned int refcount; member in struct:acpiphp_context
/drivers/s390/crypto/
H A Dzcrypt_api.h103 struct kref refcount; /* device refcounting */ member in struct:zcrypt_device
/drivers/usb/atm/
H A Dusbatm.h156 struct kref refcount; member in struct:usbatm_data
/drivers/gpu/drm/nouveau/core/include/core/
H A Dobject.h21 atomic_t refcount; member in struct:nouveau_object
/drivers/gpu/drm/ttm/
H A Dttm_object.c74 struct kref refcount; member in struct:ttm_object_file
135 kref_get(&tfile->refcount);
142 container_of(kref, struct ttm_object_file, refcount);
153 kref_put(&tfile->refcount, ttm_object_file_destroy);
173 kref_init(&base->refcount);
201 container_of(kref, struct ttm_base_object, refcount);
225 kref_put(&base->refcount, ttm_release_base);
242 if (!kref_get_unless_zero(&base->refcount))
264 if (!kref_get_unless_zero(&base->refcount))
307 if (unlikely(atomic_read(&ref->kref.refcount)
[all...]
/drivers/s390/scsi/
H A Dzfcp_fc.h174 * @refcount: Reference count to keep port open as long as it is in use
184 atomic_t refcount; member in struct:zfcp_fc_wka_port
/drivers/tty/vt/
H A Dconsolemap.c178 unsigned long refcount; member in struct:uni_pagedir
424 if (--p->refcount)
460 q->refcount++;
503 if (!p || --p->refcount) {
507 p->refcount++;
510 q->refcount=1;
514 p->refcount++;
549 if (p->refcount > 1) {
560 * Since refcount was > 1, con_clear_unimap() allocated a
584 p->refcount
[all...]
/drivers/block/drbd/
H A Ddrbd_req.c534 int refcount = atomic_read(&req->kref.refcount); local
535 if (refcount < at_least)
537 "mod_rq_state: Logic BUG: %x -> %x: refcount = %d, should be >= %d\n",
538 s, req->rq_state, refcount, at_least);

Completed in 464 milliseconds

123