/drivers/w1/ |
D | w1_family.c | 50 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()
|
D | w1_int.c | 72 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()
|
D | w1.c | 86 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()
|
D | w1.h | 67 atomic_t refcnt; member 170 atomic_t refcnt; member
|
/drivers/connector/ |
D | cn_queue.c | 87 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/ |
D | doorbell.c | 41 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/ |
D | scsi_netlink.c | 43 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/ |
D | c2_vq.c | 114 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/ |
D | windfarm_smu_sat.c | 38 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/ |
D | l2t.c | 226 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()
|
D | l2t.h | 69 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/ |
D | iwch_ev.c | 76 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/ |
D | wusbhc.h | 97 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()
|
D | wa-hc.h | 113 struct kref refcnt; member 262 kref_get(&rpipe->refcnt); in __rpipe_get() 268 kref_put(&rpipe->refcnt, rpipe_destroy); in rpipe_put()
|
/drivers/char/ |
D | mspec.c | 93 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/ |
D | serio_raw.c | 36 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/ |
D | pci_link.c | 91 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/ |
D | ppp_synctty.c | 72 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()
|
D | ppp_async.c | 69 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/ |
D | ser-gigaset.c | 50 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/ |
D | libipw_tx.c | 164 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/ |
D | uwb-internal.h | 278 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/ |
D | mkiss.c | 86 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()
|
D | 6pack.c | 122 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/ |
D | drx397xD.c | 72 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()
|