Searched refs:refcnt (Results 1 - 25 of 92) sorted by relevance

1234

/drivers/infiniband/hw/mlx4/
H A Ddoorbell.c41 int refcnt; member in struct:mlx4_ib_user_db_page
64 page->refcnt = 0;
79 ++page->refcnt;
91 if (!--db->u.user_page->refcnt) {
/drivers/w1/
H A Dw1_family.c51 atomic_set(&newf->refcnt, 0);
81 while (atomic_read(&fent->refcnt)) {
82 printk(KERN_INFO "Waiting for family %u to become free: refcnt=%d.\n",
83 fent->fid, atomic_read(&fent->refcnt));
113 atomic_dec(&f->refcnt);
135 atomic_inc(&f->refcnt);
H A Dw1_family.h61 atomic_t refcnt; member in struct:w1_family
H A Dw1_int.c75 atomic_set(&dev->refcnt, 2);
212 atomic_dec(&dev->refcnt);
214 while (atomic_read(&dev->refcnt)) {
215 dev_info(&dev->dev, "Waiting for %s to become free: refcnt=%d.\n",
216 dev->name, atomic_read(&dev->refcnt));
H A Dw1.h68 atomic_t refcnt; member in struct:w1_slave
171 atomic_t refcnt; member in struct:w1_master
/drivers/connector/
H A Dcn_queue.c47 atomic_set(&cbq->refcnt, 1);
49 atomic_inc(&dev->refcnt);
60 if (!atomic_dec_and_test(&cbq->refcnt))
63 atomic_dec(&cbq->pdev->refcnt);
133 atomic_set(&dev->refcnt, 0);
151 while (atomic_read(&dev->refcnt)) {
152 printk(KERN_INFO "Waiting for %s to become free: refcnt=%d.\n",
153 dev->name, atomic_read(&dev->refcnt));
/drivers/infiniband/hw/amso1100/
H A Dc2_vq.c43 * They contain a wait object, a refcnt, an atomic bool indicating that the
101 * The refcnt is set to 1.
114 atomic_set(&r->refcnt, 1);
127 if (atomic_dec_and_test(&r->refcnt)) {
137 atomic_inc(&r->refcnt);
153 if (atomic_dec_and_test(&r->refcnt)) {
H A Dc2_vq.h44 atomic_t refcnt; /* used to cancel WRs... */ member in struct:c2_vq_req
/drivers/net/ethernet/chelsio/cxgb3/
H A Dl2t.h69 atomic_t refcnt; /* entry reference count */ member in struct:l2t_entry
137 if (atomic_dec_and_test(&e->refcnt) && d)
145 if (d && atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */
H A Dl2t.c227 if (atomic_read(&e->refcnt) == 0)
230 for (e = &d->l2tab[1]; atomic_read(&e->refcnt); ++e) ;
266 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */
337 if (atomic_read(&e->refcnt) == 1)
352 atomic_set(&e->refcnt, 1);
418 if (atomic_read(&e->refcnt)) {
459 atomic_set(&d->l2tab[i].refcnt, 0);
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.h70 atomic_t refcnt; member in struct:ixgbe_fcoe
/drivers/staging/rtl8187se/ieee80211/
H A Dieee80211_crypt.h75 atomic_t refcnt; member in struct:ieee80211_crypt_data
/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt.h75 atomic_t refcnt; member in struct:ieee80211_crypt_data
/drivers/staging/rtl8192u/
H A Dieee80211_crypt.h75 atomic_t refcnt; member in struct:ieee80211_crypt_data
/drivers/macintosh/
H A Dwindfarm_smu_sat.c38 atomic_t refcnt; member in struct:wf_sat
183 if (atomic_dec_and_test(&sat->refcnt)) {
249 atomic_set(&sat->refcnt, 0);
313 atomic_inc(&sat->refcnt);
319 atomic_dec(&sat->refcnt);
339 atomic_inc(&sat->refcnt);
345 atomic_dec(&sat->refcnt);
/drivers/mtd/ubi/
H A Dgluebi.c50 * @refcnt: gluebi device reference count
58 int refcnt; member in struct:gluebi_device
110 if (gluebi->refcnt > 0) {
119 gluebi->refcnt += 1;
135 gluebi->refcnt += 1;
153 gluebi->refcnt -= 1;
154 if (gluebi->refcnt == 0)
382 } else if (gluebi->refcnt)
/drivers/scsi/
H A Dscsi_netlink.c45 unsigned int refcnt; member in struct:scsi_nl_transport
64 unsigned int refcnt; member in struct:scsi_nl_drvr
135 transports[tport].refcnt++;
139 transports[tport].refcnt--;
257 driver->refcnt++;
285 driver->refcnt--;
339 transports[tport].refcnt = 0;
371 while (transports[tport].refcnt != 0) {
459 while (driver->refcnt != 0) {
/drivers/infiniband/hw/cxgb3/
H A Diwch_ev.c77 atomic_inc(&qhp->refcnt);
102 if (atomic_dec_and_test(&qhp->refcnt))
130 atomic_inc(&chp->refcnt);
227 if (atomic_dec_and_test(&chp->refcnt))
/drivers/net/ethernet/chelsio/cxgb4/
H A Dl2t.h68 atomic_t refcnt; /* entry reference count */ member in struct:l2t_entry
H A Dl2t.c79 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */
278 if (atomic_read(&e->refcnt) == 0)
281 for (e = d->l2tab; atomic_read(&e->refcnt); ++e)
311 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */
332 if (atomic_dec_and_test(&e->refcnt))
386 if (atomic_read(&e->refcnt) == 1)
401 atomic_set(&e->refcnt, 1);
452 if (atomic_read(&e->refcnt))
504 atomic_set(&d->l2tab[i].refcnt, 0);
563 l2e_state(e), atomic_read(&e->refcnt),
[all...]
/drivers/usb/wusbcore/
H A Dwusbhc.h95 struct kref refcnt; member in struct:wusb_dev
117 kref_init(&wusb_dev->refcnt);
125 kref_get(&wusb_dev->refcnt);
131 kref_put(&wusb_dev->refcnt, wusb_dev_destroy);
/drivers/net/xen-netback/
H A Dinterface.c44 atomic_inc(&vif->refcnt);
49 if (atomic_dec_and_test(&vif->refcnt))
266 atomic_set(&vif->refcnt, 1);
358 atomic_dec(&vif->refcnt);
359 wait_event(vif->waiting_to_free, atomic_read(&vif->refcnt) == 0);
/drivers/infiniband/hw/cxgb4/
H A Dev.c117 atomic_inc(&chp->refcnt);
179 if (atomic_dec_and_test(&chp->refcnt))
/drivers/char/
H A Dmspec.c88 * The refcnt is incremented atomically because mm->mmap_sem does not
92 atomic_t refcnt; /* Number of vmas sharing the data. */ member in struct:vma_data
150 atomic_inc(&vdata->refcnt);
168 if (!atomic_dec_and_test(&vdata->refcnt))
286 vdata->refcnt = ATOMIC_INIT(1);
/drivers/block/xen-blkback/
H A Dcommon.h183 atomic_t refcnt; member in struct:xen_blkif
211 #define xen_blkif_get(_b) (atomic_inc(&(_b)->refcnt))
214 if (atomic_dec_and_test(&(_b)->refcnt)) \

Completed in 602 milliseconds

1234