Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 62) sorted by relevance

123

/drivers/w1/
Dw1_family.c50 atomic_set(&newf->refcnt, 0); in w1_register_family()
80 while (atomic_read(&fent->refcnt)) { in w1_unregister_family()
82 fent->fid, atomic_read(&fent->refcnt)); in w1_unregister_family()
112 atomic_dec(&f->refcnt); in __w1_family_put()
134 atomic_inc(&f->refcnt); in __w1_family_get()
Dw1_int.c72 atomic_set(&dev->refcnt, 2); in w1_alloc_dev()
208 atomic_dec(&dev->refcnt); in __w1_remove_master_device()
210 while (atomic_read(&dev->refcnt)) { in __w1_remove_master_device()
212 dev->name, atomic_read(&dev->refcnt)); in __w1_remove_master_device()
Dw1.c86 while (atomic_read(&sl->refcnt)) { in w1_slave_release()
88 sl->name, atomic_read(&sl->refcnt)); in w1_slave_release()
689 atomic_set(&sl->refcnt, 0); in w1_attach_slave_device()
758 atomic_inc(&dev->refcnt); in w1_search_master_id()
781 atomic_inc(&dev->refcnt); in w1_search_slave()
782 atomic_inc(&sl->refcnt); in w1_search_slave()
836 atomic_inc(&dev->refcnt); in w1_slave_found()
848 atomic_dec(&dev->refcnt); in w1_slave_found()
984 atomic_dec(&dev->refcnt); in w1_process()
Dw1.h67 atomic_t refcnt; member
170 atomic_t refcnt; member
/drivers/connector/
Dcn_queue.c87 atomic_inc(&dev->refcnt); in cn_queue_add_callback()
103 atomic_dec(&dev->refcnt); in cn_queue_add_callback()
130 atomic_dec(&dev->refcnt); in cn_queue_del_callback()
143 atomic_set(&dev->refcnt, 0); in cn_queue_alloc_dev()
170 while (atomic_read(&dev->refcnt)) { in cn_queue_free_dev()
172 dev->name, atomic_read(&dev->refcnt)); in cn_queue_free_dev()
/drivers/infiniband/hw/mlx4/
Ddoorbell.c41 int refcnt; member
64 page->refcnt = 0; in mlx4_ib_db_map_user()
79 ++page->refcnt; in mlx4_ib_db_map_user()
91 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
/drivers/scsi/
Dscsi_netlink.c43 unsigned int refcnt; member
62 unsigned int refcnt; member
133 transports[tport].refcnt++; in scsi_nl_rcv_msg()
137 transports[tport].refcnt--; in scsi_nl_rcv_msg()
255 driver->refcnt++; in scsi_generic_msg_handler()
283 driver->refcnt--; in scsi_generic_msg_handler()
337 transports[tport].refcnt = 0; in scsi_nl_add_transport()
369 while (transports[tport].refcnt != 0) { in scsi_nl_remove_transport()
457 while (driver->refcnt != 0) { in scsi_nl_remove_driver()
/drivers/infiniband/hw/amso1100/
Dc2_vq.c114 atomic_set(&r->refcnt, 1); in vq_req_alloc()
127 if (atomic_dec_and_test(&r->refcnt)) { in vq_req_free()
137 atomic_inc(&r->refcnt); in vq_req_get()
153 if (atomic_dec_and_test(&r->refcnt)) { in vq_req_put()
/drivers/macintosh/
Dwindfarm_smu_sat.c38 atomic_t refcnt; member
195 if (atomic_dec_and_test(&sat->refcnt)) { in wf_sat_release()
236 atomic_set(&sat->refcnt, 0); in wf_sat_create()
307 atomic_inc(&sat->refcnt); in wf_sat_create()
313 atomic_dec(&sat->refcnt); in wf_sat_create()
333 atomic_inc(&sat->refcnt); in wf_sat_create()
339 atomic_dec(&sat->refcnt); in wf_sat_create()
/drivers/net/cxgb3/
Dl2t.c226 if (atomic_read(&e->refcnt) == 0) in alloc_l2e()
229 for (e = &d->l2tab[1]; atomic_read(&e->refcnt); ++e) ; in alloc_l2e()
265 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in t3_l2e_free()
316 if (atomic_read(&e->refcnt) == 1) in t3_l2t_get()
331 atomic_set(&e->refcnt, 1); in t3_l2t_get()
395 if (atomic_read(&e->refcnt)) { in t3_l2t_update()
436 atomic_set(&d->l2tab[i].refcnt, 0); in t3_init_l2t()
Dl2t.h69 atomic_t refcnt; /* entry reference count */ member
131 if (atomic_dec_and_test(&e->refcnt)) in l2t_release()
137 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold()
/drivers/infiniband/hw/cxgb3/
Diwch_ev.c76 atomic_inc(&qhp->refcnt); in post_qp_event()
97 if (atomic_dec_and_test(&qhp->refcnt)) in post_qp_event()
124 atomic_inc(&chp->refcnt); in iwch_ev_dispatch()
225 if (atomic_dec_and_test(&chp->refcnt)) in iwch_ev_dispatch()
/drivers/usb/wusbcore/
Dwusbhc.h97 struct kref refcnt; member
119 kref_init(&wusb_dev->refcnt); in wusb_dev_init()
127 kref_get(&wusb_dev->refcnt); in wusb_dev_get()
133 kref_put(&wusb_dev->refcnt, wusb_dev_destroy); in wusb_dev_put()
Dwa-hc.h113 struct kref refcnt; member
262 kref_get(&rpipe->refcnt); in __rpipe_get()
268 kref_put(&rpipe->refcnt, rpipe_destroy); in rpipe_put()
/drivers/char/
Dmspec.c93 atomic_t refcnt; /* Number of vmas sharing the data. */ member
151 atomic_inc(&vdata->refcnt); in mspec_open()
169 if (!atomic_dec_and_test(&vdata->refcnt)) in mspec_close()
288 vdata->refcnt = ATOMIC_INIT(1); in mspec_mmap()
/drivers/input/serio/
Dserio_raw.c36 unsigned int refcnt; member
108 serio_raw->refcnt++; in serio_raw_open()
120 if (--serio_raw->refcnt == 0) { in serio_raw_cleanup()
288 serio_raw->refcnt = 1; in serio_raw_connect()
/drivers/acpi/
Dpci_link.c91 int refcnt; member
543 if (link->refcnt == 0) in acpi_pci_link_allocate()
651 link->refcnt++; in acpi_pci_link_allocate_irq()
705 link->refcnt--; in acpi_pci_link_free_irq()
711 if (link->refcnt == 0) { in acpi_pci_link_free_irq()
788 if (link->refcnt && link->irq.active && link->irq.initialized) in acpi_pci_link_resume()
/drivers/net/
Dppp_synctty.c72 atomic_t refcnt; member
190 atomic_inc(&ap->refcnt); in sp_get()
197 if (atomic_dec_and_test(&ap->refcnt)) in sp_put()
230 atomic_set(&ap->refcnt, 1); in ppp_sync_open()
278 if (!atomic_dec_and_test(&ap->refcnt)) in ppp_sync_close()
Dppp_async.c69 atomic_t refcnt; member
140 atomic_inc(&ap->refcnt); in ap_get()
147 if (atomic_dec_and_test(&ap->refcnt)) in ap_put()
184 atomic_set(&ap->refcnt, 1); in ppp_asynctty_open()
231 if (!atomic_dec_and_test(&ap->refcnt)) in ppp_asynctty_close()
/drivers/isdn/gigaset/
Dser-gigaset.c50 atomic_t refcnt; member
495 atomic_inc(&cs->hw.ser->refcnt); in cs_get()
501 if (atomic_dec_and_test(&cs->hw.ser->refcnt)) in cs_put()
530 atomic_set(&cs->hw.ser->refcnt, 1); in gigaset_tty_open()
578 if (!atomic_dec_and_test(&cs->hw.ser->refcnt)) in gigaset_tty_close()
/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c164 atomic_inc(&crypt->refcnt); in ieee80211_encrypt_fragment()
169 atomic_dec(&crypt->refcnt); in ieee80211_encrypt_fragment()
507 atomic_inc(&crypt->refcnt); in ieee80211_xmit()
513 atomic_dec(&crypt->refcnt); in ieee80211_xmit()
/drivers/uwb/
Duwb-internal.h278 struct kref refcnt; member
295 kref_get(&bce->refcnt); in uwb_bce_get()
299 kref_put(&bce->refcnt, uwb_bce_kfree); in uwb_bce_put()
/drivers/net/hamradio/
Dmkiss.c86 atomic_t refcnt; member
718 atomic_inc(&ax->refcnt); in mkiss_get()
726 if (atomic_dec_and_test(&ax->refcnt)) in mkiss_put()
753 atomic_set(&ax->refcnt, 1); in mkiss_open()
832 if (!atomic_dec_and_test(&ax->refcnt)) in mkiss_close()
D6pack.c122 atomic_t refcnt; member
404 atomic_inc(&sp->refcnt); in sp_get()
412 if (atomic_dec_and_test(&sp->refcnt)) in sp_put()
606 atomic_set(&sp->refcnt, 1); in sixpack_open()
702 if (!atomic_dec_and_test(&sp->refcnt)) in sixpack_close()
/drivers/media/dvb/frontends/
Ddrx397xD.c72 int refcnt; member
79 .refcnt = 0, \
99 if (fw[ix].refcnt) { in drx_release_fw()
100 fw[ix].refcnt--; in drx_release_fw()
101 if (fw[ix].refcnt == 0) in drx_release_fw()
180 fw[ix].refcnt--; in drx_load_fw()
182 fw[ix].refcnt++; in drx_load_fw()

123