/drivers/misc/mic/host/ |
D | mic_smpt.c | 86 if (!smpt_info->entry[i].ref_count && in mic_add_smpt_entry() 91 smpt_info->entry[i].ref_count += ref[i - spt]; in mic_add_smpt_entry() 126 ae = (smpt_info->entry[i].ref_count == 0) ? ae + 1 : 0; in mic_smpt_op() 140 smpt_info->ref_count += (s64)size; in mic_smpt_op() 283 smpt_info->ref_count -= (s64)size; in mic_unmap() 286 smpt_info->entry[i].ref_count -= ref[i - spt]; in mic_unmap() 287 if (smpt_info->entry[i].ref_count < 0) in mic_unmap() 379 smpt_info->entry[i].ref_count = 0; in mic_smpt_init() 382 smpt_info->ref_count = 0; in mic_smpt_init() 405 mdev->id, smpt_info->ref_count, in mic_smpt_uninit() [all …]
|
D | mic_smpt.h | 40 s64 ref_count; member 70 s64 ref_count; member
|
/drivers/usb/misc/ |
D | uss720.c | 66 struct kref ref_count; member 74 struct kref ref_count; member 86 struct parport_uss720_private *priv = container_of(kref, struct parport_uss720_private, ref_count); in destroy_priv() 95 struct uss720_async_request *rq = container_of(kref, struct uss720_async_request, ref_count); in destroy_async() 106 kref_put(&priv->ref_count, destroy_priv); in destroy_async() 139 kref_put(&rq->ref_count, destroy_async); in async_complete() 161 kref_init(&rq->ref_count); in submit_async_request() 164 kref_get(&priv->ref_count); in submit_async_request() 168 kref_put(&rq->ref_count, destroy_async); in submit_async_request() 174 kref_put(&rq->ref_count, destroy_async); in submit_async_request() [all …]
|
/drivers/block/ |
D | swim.c | 190 int ref_count; member 623 if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) in floppy_open() 627 fs->ref_count = -1; in floppy_open() 629 fs->ref_count++; in floppy_open() 655 if (fs->ref_count < 0) in floppy_open() 656 fs->ref_count = 0; in floppy_open() 657 else if (fs->ref_count > 0) in floppy_open() 658 --fs->ref_count; in floppy_open() 660 if (fs->ref_count == 0) in floppy_open() 682 if (fs->ref_count < 0) in floppy_release() [all …]
|
D | swim3.c | 198 int ref_count; member 919 if (fs->ref_count != 1) in floppy_locked_ioctl() 950 if (fs->ref_count == 0) { in floppy_open() 979 } else if (fs->ref_count == -1 || mode & FMODE_EXCL) in floppy_open() 997 if (fs->ref_count == 0) { in floppy_open() 1006 fs->ref_count = -1; in floppy_open() 1008 ++fs->ref_count; in floppy_open() 1030 if (fs->ref_count > 0 && --fs->ref_count == 0) { in floppy_release()
|
/drivers/infiniband/core/ |
D | fmr_pool.c | 152 if (fmr->ref_count !=0) { in ib_fmr_batch_release() 154 fmr, fmr->ref_count); in ib_fmr_batch_release() 321 fmr->ref_count = 0; in ib_create_fmr_pool() 454 ++fmr->ref_count; in ib_fmr_pool_map_phys() 455 if (fmr->ref_count == 1) { in ib_fmr_pool_map_phys() 488 fmr->ref_count = 1; in ib_fmr_pool_map_phys() 521 --fmr->ref_count; in ib_fmr_pool_unmap() 522 if (!fmr->ref_count) { in ib_fmr_pool_unmap() 535 if (fmr->ref_count < 0) in ib_fmr_pool_unmap() 537 fmr, fmr->ref_count); in ib_fmr_pool_unmap()
|
/drivers/crypto/qat/qat_common/ |
D | adf_dev_mgr.c | 84 atomic_set(&accel_dev->ref_count, 0); in adf_devmgr_add_dev() 190 return atomic_read(&accel_dev->ref_count) != 0; in adf_dev_in_use() 195 if (atomic_add_return(1, &accel_dev->ref_count) == 1) in adf_dev_get() 203 if (atomic_sub_return(1, &accel_dev->ref_count) == 0) in adf_dev_put()
|
/drivers/soc/ti/ |
D | knav_dma.c | 109 atomic_t ref_count; member 118 atomic_t ref_count; member 346 if (atomic_read(&chan->ref_count)) in dma_debug_show_devices() 356 if (atomic_read(&dma->ref_count)) { in dma_debug_show() 482 if (atomic_read(&chan->ref_count) >= 1) { in knav_dma_open_channel() 490 if (atomic_inc_return(&chan->dma->ref_count) <= 1) in knav_dma_open_channel() 493 if (atomic_inc_return(&chan->ref_count) <= 1) in knav_dma_open_channel() 518 if (atomic_dec_return(&chan->ref_count) <= 0) in knav_dma_close_channel() 521 if (atomic_dec_return(&chan->dma->ref_count) <= 0) in knav_dma_close_channel() 595 atomic_set(&chan->ref_count, 0); in pktdma_init_chan() [all …]
|
/drivers/acpi/ |
D | power.c | 65 unsigned int ref_count; member 245 if (resource->ref_count++) { in acpi_power_on_unlocked() 252 resource->ref_count--; in acpi_power_on_unlocked() 285 if (!resource->ref_count) { in acpi_power_off_unlocked() 292 if (--resource->ref_count) { in acpi_power_off_unlocked() 299 resource->ref_count++; in acpi_power_off_unlocked() 474 resource->ref_count++; in acpi_power_wakeup_list_init() 756 return sprintf(buf, "%u\n", !!resource->ref_count); in acpi_power_in_use_show() 845 && resource->ref_count) { in acpi_resume_power_resources() 849 && !resource->ref_count) { in acpi_resume_power_resources()
|
/drivers/staging/ozwpan/ |
D | ozusbsvc.c | 69 atomic_set(&usb_ctx->ref_count, 1); in oz_usb_start() 141 while ((atomic_read(&usb_ctx->ref_count) > 2)) { in oz_usb_stop() 164 atomic_inc(&usb_ctx->ref_count); in oz_usb_get() 176 if (atomic_dec_and_test(&usb_ctx->ref_count)) { in oz_usb_put()
|
D | ozeltbuf.c | 85 atomic_set(&st->ref_count, 1); in oz_elt_stream_create() 121 st->buf_count, ei->length, atomic_read(&st->ref_count)); in oz_elt_stream_delete() 132 atomic_inc(&st->ref_count); in oz_elt_stream_get() 137 if (atomic_dec_and_test(&st->ref_count)) { in oz_elt_stream_put()
|
D | ozcdev.c | 34 atomic_t ref_count; member 55 atomic_inc(&ctx->ref_count); in oz_cdev_claim_ctx() 65 if (atomic_dec_and_test(&ctx->ref_count)) { in oz_cdev_release_ctx() 442 atomic_set(&ctx->ref_count, 1); in oz_cdev_start()
|
D | ozusbsvc.h | 15 atomic_t ref_count; member
|
/drivers/md/persistent-data/ |
D | dm-space-map-common.c | 392 uint32_t bit, old, ref_count; in sm_ll_mutate() local 423 r = mutator(context, old, &ref_count); in sm_ll_mutate() 429 if (ref_count <= 2) { in sm_ll_mutate() 430 sm_set_bitmap(bm_le, bit, ref_count); in sm_ll_mutate() 445 __le32 le_rc = cpu_to_le32(ref_count); in sm_ll_mutate() 461 if (ref_count && !old) { in sm_ll_mutate() 468 } else if (old && !ref_count) { in sm_ll_mutate() 485 uint32_t ref_count, enum allocation_event *ev) in sm_ll_insert() argument 487 return sm_ll_mutate(ll, b, set_ref_count, &ref_count, ev); in sm_ll_insert()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 55 int ref_count; member 63 int ref_count; member 113 atomic_t ref_count; member 142 atomic_t ref_count; member 178 atomic_t ref_count; member 191 atomic_t ref_count; member 866 atomic_set(&ret->ref_count, 0); in alloc_qp_tr() 882 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr() 926 atomic_set(&ret->ref_count, 0); in alloc_cq_tr() 941 atomic_set(&ret->ref_count, 0); in alloc_srq_tr() [all …]
|
/drivers/s390/char/ |
D | raw3270.h | 158 atomic_t ref_count; member 182 atomic_inc(&view->ref_count); in raw3270_get_view() 190 if (atomic_dec_return(&view->ref_count) == 0) in raw3270_put_view()
|
/drivers/firewire/ |
D | core.h | 187 atomic_t ref_count; member 200 atomic_inc(&node->ref_count); in fw_node_get() 207 if (atomic_dec_and_test(&node->ref_count)) in fw_node_put()
|
/drivers/usb/serial/ |
D | mos7720.c | 90 struct kref ref_count; member 103 struct kref ref_count; /* to instance of this struct */ member 267 container_of(kref, struct mos7715_parport, ref_count); in destroy_mos_parport() 275 container_of(kref, struct urbtracker, ref_count); in destroy_urbtracker() 281 kref_put(&mos_parport->ref_count, destroy_mos_parport); in destroy_urbtracker() 335 kref_put(&urbtrack->ref_count, destroy_urbtracker); in send_deferred_urbs() 355 kref_put(&urbtrack->ref_count, destroy_urbtracker); in async_complete() 372 kref_get(&mos_parport->ref_count); in write_parport_reg_nonblock() 394 kref_init(&urbtrack->ref_count); in write_parport_reg_nonblock() 413 kref_put(&urbtrack->ref_count, destroy_urbtracker); in write_parport_reg_nonblock() [all …]
|
/drivers/media/platform/vsp1/ |
D | vsp1_drv.c | 355 if (vsp1->ref_count > 0) in vsp1_device_get() 370 vsp1->ref_count++; in vsp1_device_get() 386 if (--vsp1->ref_count == 0) in vsp1_device_put() 403 if (vsp1->ref_count == 0) in vsp1_pm_suspend() 416 if (vsp1->ref_count) in vsp1_pm_resume()
|
/drivers/video/fbdev/ |
D | vt8623fb.c | 38 unsigned int ref_count; member 294 if (par->ref_count == 0) { in vt8623fb_open() 305 par->ref_count++; in vt8623fb_open() 316 if (par->ref_count == 0) { in vt8623fb_release() 321 if (par->ref_count == 1) in vt8623fb_release() 324 par->ref_count--; in vt8623fb_release() 852 if ((state.event == PM_EVENT_FREEZE) || (par->ref_count == 0)) { in vt8623_pci_suspend() 883 if (par->ref_count == 0) in vt8623_pci_resume()
|
D | arkfb.c | 40 unsigned int ref_count; member 536 if (par->ref_count == 0) { in arkfb_open() 547 par->ref_count++; in arkfb_open() 560 if (par->ref_count == 0) { in arkfb_release() 565 if (par->ref_count == 1) { in arkfb_release() 570 par->ref_count--; in arkfb_release() 1129 if ((state.event == PM_EVENT_FREEZE) || (par->ref_count == 0)) { in ark_pci_suspend() 1160 if (par->ref_count == 0) in ark_pci_resume()
|
D | arcfb.c | 75 atomic_t ref_count; member 186 atomic_inc(&par->ref_count); in arcfb_open() 193 int count = atomic_read(&par->ref_count); in arcfb_release() 197 atomic_dec(&par->ref_count); in arcfb_release()
|
/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 215 u32 ref_count; member 974 entry->qp.ref_count = 0; in qp_guest_endpoint_create() 1095 u32 ref_count = ~0; /* To avoid compiler warning below */ in qp_detatch_guest_work() local 1108 if (entry->qp.ref_count > 1) { in qp_detatch_guest_work() 1140 entry->qp.ref_count--; in qp_detatch_guest_work() 1141 if (entry->qp.ref_count == 0) in qp_detatch_guest_work() 1146 ref_count = entry->qp.ref_count; in qp_detatch_guest_work() 1150 if (ref_count == 0) in qp_detatch_guest_work() 1188 if (queue_pair_entry->qp.ref_count > 1) { in qp_alloc_guest_work() 1295 queue_pair_entry->qp.ref_count++; in qp_alloc_guest_work() [all …]
|
/drivers/mtd/ubi/ |
D | build.c | 262 ubi_assert(ubi->ref_count >= 0); in ubi_get_device() 263 ubi->ref_count += 1; in ubi_get_device() 278 ubi->ref_count -= 1; in ubi_put_device() 299 ubi_assert(ubi->ref_count >= 0); in ubi_get_by_major() 300 ubi->ref_count += 1; in ubi_get_by_major() 1099 ubi->ref_count -= 1; in ubi_detach_mtd_dev() 1100 if (ubi->ref_count) { in ubi_detach_mtd_dev() 1107 ubi->ubi_name, ubi->ref_count); in ubi_detach_mtd_dev()
|
/drivers/net/ethernet/broadcom/ |
D | cnic_if.h | 287 atomic_t ref_count; member 321 atomic_t ref_count; member 364 atomic_t ref_count; member
|