/linux-4.1.27/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
|
D | mic_debugfs.c | 115 smpt_info->entry[i].ref_count); in mic_smpt_show()
|
/linux-4.1.27/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() 135 kref_put(&rq->ref_count, destroy_async); in async_complete() 157 kref_init(&rq->ref_count); in submit_async_request() 160 kref_get(&priv->ref_count); in submit_async_request() 164 kref_put(&rq->ref_count, destroy_async); in submit_async_request() 170 kref_put(&rq->ref_count, destroy_async); in submit_async_request() [all …]
|
/linux-4.1.27/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()
|
/linux-4.1.27/drivers/crypto/qat/qat_common/ |
D | adf_dev_mgr.c | 85 atomic_set(&accel_dev->ref_count, 0); in adf_devmgr_add_dev() 195 return atomic_read(&accel_dev->ref_count) != 0; in adf_dev_in_use() 200 if (atomic_add_return(1, &accel_dev->ref_count) == 1) in adf_dev_get() 208 if (atomic_sub_return(1, &accel_dev->ref_count) == 0) in adf_dev_put()
|
D | adf_accel_devices.h | 198 atomic_t ref_count; member
|
D | icp_qat_uclo.h | 360 unsigned short ref_count; member
|
/linux-4.1.27/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()
|
/linux-4.1.27/net/l2tp/ |
D | l2tp_core.h | 111 atomic_t ref_count; member 190 atomic_t ref_count; member 282 atomic_inc(&session->ref_count); in l2tp_session_inc_refcount_1() 287 if (atomic_dec_and_test(&session->ref_count)) in l2tp_session_dec_refcount_1() 296 atomic_read(&_s->ref_count)); \ 303 atomic_read(&_s->ref_count)); \
|
D | l2tp_debugfs.c | 148 atomic_read(&tunnel->ref_count)); in l2tp_dfs_seq_tunnel_show() 174 seq_printf(m, " refcnt %d\n", atomic_read(&session->ref_count)); in l2tp_dfs_seq_session_show()
|
D | l2tp_core.c | 135 atomic_inc(&tunnel->ref_count); in l2tp_tunnel_inc_refcount_1() 140 if (atomic_dec_and_test(&tunnel->ref_count)) in l2tp_tunnel_dec_refcount_1() 148 atomic_read(&_t->ref_count)); \ 155 atomic_read(&_t->ref_count)); \ 1306 BUG_ON(atomic_read(&tunnel->ref_count) != 0); in l2tp_tunnel_free() 1660 BUG_ON(atomic_read(&session->ref_count) != 0); in l2tp_session_free()
|
D | l2tp_ppp.c | 1630 atomic_read(&tunnel->ref_count) - 1); in pppol2tp_seq_tunnel_show()
|
/linux-4.1.27/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 …]
|
/linux-4.1.27/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 | ozusbsvc.h | 15 atomic_t ref_count; member
|
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 | ozeltbuf.h | 19 atomic_t ref_count; member
|
D | ozpd.h | 64 atomic_t ref_count; member
|
D | ozpd.c | 88 atomic_inc(&pd->ref_count); in oz_pd_get() 96 if (atomic_dec_and_test(&pd->ref_count)) in oz_pd_put() 112 atomic_set(&pd->ref_count, 2); in oz_pd_alloc() 282 oz_dbg(ON, "pd ref count = %d\n", atomic_read(&pd->ref_count)); in oz_pd_stop()
|
/linux-4.1.27/drivers/acpi/ |
D | power.c | 65 unsigned int ref_count; member 244 if (resource->ref_count++) { in acpi_power_on_unlocked() 251 resource->ref_count--; in acpi_power_on_unlocked() 284 if (!resource->ref_count) { in acpi_power_off_unlocked() 291 if (--resource->ref_count) { in acpi_power_off_unlocked() 298 resource->ref_count++; in acpi_power_off_unlocked() 473 resource->ref_count++; in acpi_power_wakeup_list_init() 755 return sprintf(buf, "%u\n", !!resource->ref_count); in acpi_power_in_use_show() 844 && resource->ref_count) { in acpi_resume_power_resources() 848 && !resource->ref_count) { in acpi_resume_power_resources()
|
/linux-4.1.27/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()
|
D | dm-space-map-common.h | 112 int sm_ll_insert(struct ll_disk *ll, dm_block_t b, uint32_t ref_count, enum allocation_event *ev);
|
D | dm-array.c | 576 uint32_t ref_count; in block_dec() local 584 r = dm_tm_ref(info->btree_info.tm, b, &ref_count); in block_dec() 591 if (ref_count == 1) { in block_dec()
|
D | dm-btree.c | 204 uint32_t ref_count; in push_frame() local 211 r = dm_tm_ref(s->tm, b, &ref_count); in push_frame() 215 if (ref_count > 1) in push_frame()
|
/linux-4.1.27/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 875 atomic_set(&ret->ref_count, 0); in alloc_qp_tr() 891 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr() 935 atomic_set(&ret->ref_count, 0); in alloc_cq_tr() 950 atomic_set(&ret->ref_count, 0); in alloc_srq_tr() [all …]
|
/linux-4.1.27/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()
|
D | vmur.h | 72 atomic_t ref_count; /* reference counter */ member
|
D | vmur.c | 113 atomic_set(&urd->ref_count, 1); in urdev_alloc() 129 atomic_inc(&urd->ref_count); in urdev_get() 162 if (atomic_dec_and_test(&urd->ref_count)) in urdev_put() 961 if (!force && (atomic_read(&urd->ref_count) > 2)) { in ur_set_offline_force()
|
D | tape.h | 204 atomic_t ref_count; member
|
D | tape_core.c | 550 atomic_set(&device->ref_count, 1); in tape_alloc_device() 565 count = atomic_inc_return(&device->ref_count); in tape_get_device() 581 count = atomic_dec_return(&device->ref_count); in tape_put_device()
|
D | raw3270.c | 973 atomic_set(&view->ref_count, 2); in raw3270_add_view() 1049 atomic_dec(&view->ref_count); in raw3270_del_view() 1050 wait_event(raw3270_wait_queue, atomic_read(&view->ref_count) == 0); in raw3270_del_view()
|
/linux-4.1.27/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()
|
D | core-topology.c | 127 atomic_set(&node->ref_count, 1); in fw_node_create()
|
/linux-4.1.27/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()
|
D | vsp1.h | 61 int ref_count; member
|
/linux-4.1.27/drivers/usb/serial/ |
D | mos7720.c | 90 struct kref ref_count; member 103 struct kref ref_count; /* to instance of this struct */ member 262 container_of(kref, struct mos7715_parport, ref_count); in destroy_mos_parport() 270 container_of(kref, struct urbtracker, ref_count); in destroy_urbtracker() 276 kref_put(&mos_parport->ref_count, destroy_mos_parport); in destroy_urbtracker() 330 kref_put(&urbtrack->ref_count, destroy_urbtracker); in send_deferred_urbs() 350 kref_put(&urbtrack->ref_count, destroy_urbtracker); in async_complete() 367 kref_get(&mos_parport->ref_count); in write_parport_reg_nonblock() 389 kref_init(&urbtrack->ref_count); in write_parport_reg_nonblock() 408 kref_put(&urbtrack->ref_count, destroy_urbtracker); in write_parport_reg_nonblock() [all …]
|
/linux-4.1.27/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()
|
D | s3fb.c | 40 unsigned int ref_count; member 517 if (par->ref_count == 0) { in s3fb_open() 528 par->ref_count++; in s3fb_open() 541 if (par->ref_count == 0) { in s3fb_release() 546 if (par->ref_count == 1) in s3fb_release() 549 par->ref_count--; in s3fb_release() 1446 if ((state.event == PM_EVENT_FREEZE) || (par->ref_count == 0)) { in s3_pci_suspend() 1478 if (par->ref_count == 0) { in s3_pci_resume()
|
D | vga16fb.c | 60 unsigned int ref_count; member 287 if (!par->ref_count) { in vga16fb_open() 293 par->ref_count++; in vga16fb_open() 302 if (!par->ref_count) in vga16fb_release() 305 if (par->ref_count == 1) in vga16fb_release() 307 par->ref_count--; in vga16fb_release()
|
D | i740fb.c | 53 unsigned int ref_count; member 194 par->ref_count++; in i740fb_open() 205 if (par->ref_count == 0) { in i740fb_release() 211 par->ref_count--; in i740fb_release() 1213 if (par->ref_count == 0) { in i740fb_suspend() 1239 if (par->ref_count == 0) in i740fb_resume()
|
D | neofb.c | 559 if (!par->ref_count) { in neofb_open() 564 par->ref_count++; in neofb_open() 574 if (!par->ref_count) in neofb_release() 577 if (par->ref_count == 1) { in neofb_release() 580 par->ref_count--; in neofb_release()
|
D | uvesafb.c | 1178 int cnt = atomic_read(&par->ref_count); in uvesafb_open() 1191 atomic_inc(&par->ref_count); in uvesafb_open() 1199 int cnt = atomic_read(&par->ref_count); in uvesafb_release() 1221 atomic_dec(&par->ref_count); in uvesafb_release()
|
D | bfin_adv7393fb.c | 66 atomic_t ref_count; member
|
/linux-4.1.27/net/openvswitch/ |
D | flow_table.c | 597 BUG_ON(!mask->ref_count); in flow_mask_remove() 598 mask->ref_count--; in flow_mask_remove() 600 if (!mask->ref_count) { in flow_mask_remove() 633 mask->ref_count = 1; in mask_alloc() 679 BUG_ON(!mask->ref_count); in flow_mask_insert() 680 mask->ref_count++; in flow_mask_insert()
|
D | flow.h | 187 int ref_count; member
|
/linux-4.1.27/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
|
D | cnic.c | 144 atomic_inc(&dev->ref_count); in cnic_hold() 149 atomic_dec(&dev->ref_count); in cnic_put() 154 atomic_inc(&csk->ref_count); in csk_hold() 159 atomic_dec(&csk->ref_count); in csk_put() 180 atomic_inc(&ulp_ops->ref_count); in ulp_get() 185 atomic_dec(&ulp_ops->ref_count); in ulp_put() 489 atomic_set(&ulp_ops->ref_count, 0); in cnic_register_driver() 540 while ((atomic_read(&ulp_ops->ref_count) != 0) && (i < 20)) { in cnic_unregister_driver() 545 if (atomic_read(&ulp_ops->ref_count) != 0) in cnic_unregister_driver() 3590 if (atomic_read(&csk1->ref_count)) in cnic_cm_create() [all …]
|
/linux-4.1.27/arch/s390/mm/ |
D | extmem.c | 84 atomic_t ref_count; member 469 atomic_set(&seg->ref_count, 1); in __segment_load() 529 atomic_inc(&seg->ref_count); in segment_load() 575 if (atomic_read (&seg->ref_count) != 1) { in segment_modify_shared() 652 if (atomic_dec_return(&seg->ref_count) != 0) in segment_unload()
|
/linux-4.1.27/include/uapi/linux/ |
D | atm_zatm.h | 26 int ref_count; /* free buffer pool usage counters */ member
|
/linux-4.1.27/include/rdma/ |
D | ib_fmr_pool.h | 72 int ref_count; member
|
/linux-4.1.27/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 216 u32 ref_count; member 990 entry->qp.ref_count = 0; in qp_guest_endpoint_create() 1111 u32 ref_count = ~0; /* To avoid compiler warning below */ in qp_detatch_guest_work() local 1124 if (entry->qp.ref_count > 1) { in qp_detatch_guest_work() 1156 entry->qp.ref_count--; in qp_detatch_guest_work() 1157 if (entry->qp.ref_count == 0) in qp_detatch_guest_work() 1162 ref_count = entry->qp.ref_count; in qp_detatch_guest_work() 1166 if (ref_count == 0) in qp_detatch_guest_work() 1204 if (queue_pair_entry->qp.ref_count > 1) { in qp_alloc_guest_work() 1311 queue_pair_entry->qp.ref_count++; in qp_alloc_guest_work() [all …]
|
/linux-4.1.27/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() 1102 ubi->ref_count -= 1; in ubi_detach_mtd_dev() 1103 if (ubi->ref_count) { in ubi_detach_mtd_dev() 1110 ubi->ubi_name, ubi->ref_count); in ubi_detach_mtd_dev()
|
D | vmt.c | 85 vol->ref_count += 1; in vol_attribute_show() 116 vol->ref_count -= 1; in vol_attribute_show() 117 ubi_assert(vol->ref_count >= 0); in vol_attribute_show() 419 if (vol->ref_count > 1) { in ubi_remove_volume() 509 if (vol->ref_count > 1) { in ubi_resize_volume()
|
D | ubi.h | 320 int ref_count; member 538 int ref_count; member
|
D | kapi.c | 198 vol->ref_count += 1; in ubi_open_volume() 358 vol->ref_count -= 1; in ubi_close_volume()
|
D | vtbl.c | 635 vol->ref_count = 1; in init_volumes()
|
/linux-4.1.27/drivers/video/fbdev/riva/ |
D | rivafb.h | 56 unsigned int ref_count; member
|
D | fbdev.c | 1042 if (!par->ref_count) { in rivafb_open() 1057 par->ref_count++; in rivafb_open() 1069 if (!par->ref_count) { in rivafb_release() 1073 if (par->ref_count == 1) { in rivafb_release() 1082 par->ref_count--; in rivafb_release()
|
/linux-4.1.27/kernel/trace/ |
D | trace_events.c | 44 return system->ref_count & ~SYSTEM_FL_FREE_NAME; in system_refcount() 49 return (system->ref_count++) & ~SYSTEM_FL_FREE_NAME; in system_refcount_inc() 54 return (--system->ref_count) & ~SYSTEM_FL_FREE_NAME; in system_refcount_dec() 441 if (system->ref_count & SYSTEM_FL_FREE_NAME) in __put_system() 454 WARN_ON_ONCE(dir->ref_count == 0); in __get_system_dir() 455 dir->ref_count++; in __get_system_dir() 461 WARN_ON_ONCE(dir->ref_count == 0); in __put_system_dir() 463 WARN_ON_ONCE(system_refcount(dir->subsystem) == 1 && dir->ref_count != 1); in __put_system_dir() 466 if (!--dir->ref_count) in __put_system_dir() 1471 system->ref_count = 1; in create_new_subsystem() [all …]
|
D | trace.h | 993 int ref_count; member 1001 int ref_count; member
|
/linux-4.1.27/sound/core/seq/ |
D | seq_ports.c | 244 if (atomic_dec_and_test(&subs->ref_count)) in clear_subscriber_list() 523 atomic_inc(&subs->ref_count); in check_and_subscribe_port() 573 atomic_set(&subs->ref_count, 0); in snd_seq_port_connect() 616 atomic_dec(&subs->ref_count); /* mark as not ready */ in snd_seq_port_disconnect()
|
D | seq_ports.h | 47 atomic_t ref_count; member
|
D | seq_clientmgr.c | 682 if (atomic_read(&subs->ref_count) != 2) in deliver_to_subscribers()
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
D | nes_cm.h | 300 atomic_t ref_count; member 322 atomic_t ref_count; member
|
D | nes_cm.c | 1313 atomic_inc(&listen_node->ref_count); in find_listener() 1367 atomic_read(&listener->ref_count)); in mini_cm_dec_refcnt_listen() 1436 if (!atomic_dec_return(&listener->ref_count)) { in mini_cm_dec_refcnt_listen() 1629 atomic_set(&cm_node->ref_count, 1); in make_cm_node() 1681 atomic_inc(&cm_node->ref_count); in add_ref_cm_node() 1699 if (atomic_dec_return(&cm_node->ref_count)) { in rem_ref_cm_node() 1803 atomic_read(&cm_node->ref_count)); in handle_fin_pkt() 1861 atomic_read(&cm_node->ref_count)); in handle_rst_pkt() 2413 atomic_dec(&listener->ref_count); in mini_cm_listen() 2448 atomic_set(&listener->ref_count, 1); in mini_cm_listen() [all …]
|
D | nes_hw.h | 1175 unsigned char ref_count; member
|
D | nes_hw.c | 286 nesadapter->ref_count++; in nes_init_adapter() 394 nesadapter->ref_count = 1; in nes_init_adapter() 964 nesadapter->ref_count--; in nes_destroy_adapter() 965 if (!nesadapter->ref_count) { in nes_destroy_adapter()
|
/linux-4.1.27/drivers/s390/block/ |
D | dasd_int.h | 450 atomic_t ref_count; member 549 atomic_inc(&device->ref_count); in dasd_get_device() 555 if (atomic_dec_return(&device->ref_count) == 0) in dasd_put_device()
|
D | dasd_erp.c | 79 atomic_dec(&device->ref_count); in dasd_free_erp_request()
|
D | dasd_devmap.c | 553 atomic_set(&device->ref_count, 3); in dasd_create_device() 617 atomic_sub(3, &device->ref_count); in dasd_delete_device() 620 wait_event(dasd_delete_wq, atomic_read(&device->ref_count) == 0); in dasd_delete_device()
|
/linux-4.1.27/include/video/ |
D | uvesafb.h | 133 atomic_t ref_count; member
|
D | neomagic.h | 126 unsigned int ref_count; member
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
D | isp.c | 1600 if (isp->ref_count > 0) in __omap3isp_get() 1617 isp->ref_count++; in __omap3isp_get() 1640 BUG_ON(isp->ref_count == 0); in __omap3isp_put() 1641 if (--isp->ref_count == 0) { in __omap3isp_put() 1729 if (isp->ref_count == 0) in isp_pm_prepare() 1747 if (isp->ref_count) in isp_pm_suspend() 1757 if (isp->ref_count == 0) in isp_pm_resume() 1767 if (isp->ref_count == 0) in isp_pm_complete() 2445 isp->ref_count = 0; in isp_probe()
|
D | isp.h | 204 int ref_count; member
|
/linux-4.1.27/sound/pci/cs46xx/ |
D | cs46xx_dsp_spos.h | 120 int ref_count; member
|
D | dsp_spos_scb_lib.c | 110 snd_iprintf(buffer,"index [%d] ref_count [%d]\n",scb->index,scb->ref_count); in cs46xx_dsp_proc_scb_info_read() 1306 ins->pcm_channels[i].src_scb->ref_count ++; in cs46xx_dsp_create_pcm_channel() 1496 pcm_channel->src_scb->ref_count <= 0)) in cs46xx_dsp_destroy_pcm_channel() 1503 pcm_channel->src_scb->ref_count --; in cs46xx_dsp_destroy_pcm_channel() 1509 if (!pcm_channel->src_scb->ref_count) { in cs46xx_dsp_destroy_pcm_channel()
|
D | dsp_spos.c | 995 ins->scbs[index].ref_count = 1; in _map_scb()
|
/linux-4.1.27/drivers/parport/ |
D | share.c | 226 atomic_inc (&port->ref_count); in parport_get_port() 240 if (atomic_dec_and_test (&port->ref_count)) in parport_put_port() 310 atomic_set (&tmp->ref_count, 1); in parport_register_port()
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
D | iss.c | 1057 if (iss->ref_count > 0) in omap4iss_get() 1069 iss->ref_count++; in omap4iss_get() 1087 BUG_ON(iss->ref_count == 0); in omap4iss_put() 1088 if (--iss->ref_count == 0) { in omap4iss_put()
|
D | iss.h | 106 int ref_count; member
|
/linux-4.1.27/block/ |
D | bsg.c | 41 atomic_t ref_count; member 716 do_free = atomic_dec_and_test(&bd->ref_count); in bsg_put_device() 768 atomic_set(&bd->ref_count, 1); in bsg_add_device() 788 atomic_inc(&bd->ref_count); in __bsg_get_device()
|
/linux-4.1.27/arch/powerpc/xmon/ |
D | xmon.c | 92 atomic_t ref_count; member 421 atomic_dec(&bp->ref_count); in xmon_core() 581 atomic_inc(&bp->ref_count); in xmon_core() 591 atomic_inc(&bp->ref_count); in xmon_core() 642 atomic_dec(&bp->ref_count); in xmon_bpt() 705 atomic_dec(&bp->ref_count); in xmon_fault_handler() 749 if (!bp->enabled && atomic_read(&bp->ref_count) == 0) { in new_breakpoint()
|
/linux-4.1.27/drivers/md/ |
D | dm-cache-metadata.c | 97 atomic_t ref_count; member 689 atomic_set(&cmd->ref_count, 1); in metadata_open() 726 atomic_inc(&cmd->ref_count); in lookup() 794 if (atomic_dec_and_test(&cmd->ref_count)) { in dm_cache_metadata_close()
|
D | dm-thin-metadata.c | 1489 uint32_t ref_count; in dm_pool_block_is_used() local 1492 r = dm_sm_get_count(pmd->data_sm, b, &ref_count); in dm_pool_block_is_used() 1494 *result = (ref_count != 0); in dm_pool_block_is_used()
|
D | dm-thin.c | 241 unsigned ref_count; member 2623 pool->ref_count = 1; in pool_create() 2655 pool->ref_count++; in __pool_inc() 2661 BUG_ON(!pool->ref_count); in __pool_dec() 2662 if (!--pool->ref_count) in __pool_dec()
|
/linux-4.1.27/drivers/scsi/bfa/ |
D | bfad_drv.h | 222 int ref_count; member
|
D | bfad.c | 1363 bfad->ref_count = 0; in bfad_pci_probe()
|
/linux-4.1.27/tools/lib/traceevent/ |
D | event-parse.h | 52 int ref_count; member 457 int ref_count; member
|
D | event-parse.c | 6450 pevent->ref_count = 1; in pevent_alloc() 6457 pevent->ref_count++; in pevent_ref() 6517 pevent->ref_count--; in pevent_free() 6518 if (pevent->ref_count) in pevent_free()
|
/linux-4.1.27/arch/s390/include/asm/ |
D | debug.h | 34 atomic_t ref_count; member
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/ |
D | trans.c | 1337 trans_pcie->ref_count = 1; in iwl_trans_pcie_configure() 1677 IWL_DEBUG_RPM(trans, "ref_counter: %d\n", trans_pcie->ref_count); in iwl_trans_pcie_ref() 1678 trans_pcie->ref_count++; in iwl_trans_pcie_ref() 1691 IWL_DEBUG_RPM(trans, "ref_counter: %d\n", trans_pcie->ref_count); in iwl_trans_pcie_unref() 1692 if (WARN_ON_ONCE(trans_pcie->ref_count == 0)) { in iwl_trans_pcie_unref() 1696 trans_pcie->ref_count--; in iwl_trans_pcie_unref()
|
D | internal.h | 328 u32 ref_count; member
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_gem.c | 164 ++bo_va->ref_count; in radeon_gem_object_open() 194 if (--bo_va->ref_count == 0) { in radeon_gem_object_close()
|
D | radeon_vm.c | 335 bo_va->ref_count = 1; in radeon_vm_bo_add()
|
D | radeon.h | 473 unsigned ref_count; member
|
/linux-4.1.27/arch/s390/kernel/ |
D | debug.c | 280 atomic_set(&(rc->ref_count), 0); in debug_info_alloc() 419 atomic_inc(&db_info->ref_count); in debug_info_get() 434 if (atomic_dec_and_test(&db_info->ref_count)) { in debug_info_put()
|
/linux-4.1.27/include/linux/ |
D | parport.h | 238 atomic_t ref_count; member
|
/linux-4.1.27/drivers/atm/ |
D | zatm.c | 285 if (!(zatm_dev->pool_info[pool].ref_count++)) { in use_pool() 302 DPRINTK("pool %d: %d\n",pool,zatm_dev->pool_info[pool].ref_count); in use_pool() 308 if (!(--ZATM_DEV(dev)->pool_info[pool].ref_count)) in unuse_pool() 612 zatm_dev->pool_info[i].ref_count = 0; in start_rx()
|
/linux-4.1.27/scripts/ |
D | asn1_compiler.c | 679 unsigned ref_count; member 997 (*ref)->ref_count++; in parse_type() 1387 if ((e->type_def && e->type_def->ref_count > 1) || in render_element()
|
/linux-4.1.27/include/sound/ |
D | pcm.h | 471 int ref_count; member 496 #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)
|
/linux-4.1.27/sound/core/ |
D | pcm.c | 952 substream->ref_count++; in snd_pcm_attach_substream() 995 substream->ref_count = 1; in snd_pcm_attach_substream()
|
D | pcm_native.c | 2235 substream->ref_count--; in snd_pcm_release_substream() 2236 if (substream->ref_count > 0) in snd_pcm_release_substream() 2267 if (substream->ref_count > 1) { in snd_pcm_open_substream() 2317 if (substream->ref_count == 1) { in snd_pcm_open_file()
|
/linux-4.1.27/drivers/net/ethernet/rocker/ |
D | rocker.c | 165 u32 ref_count; member 173 u32 ref_count; member 2800 entry->ref_count++; in _rocker_neigh_add() 2808 if (--entry->ref_count == 0) { in _rocker_neigh_del() 2822 entry->ref_count++; in _rocker_neigh_update() 3730 found->ref_count++; in rocker_port_internal_vlan_id_get() 3754 if (--found->ref_count <= 0) { in rocker_port_internal_vlan_id_put()
|
/linux-4.1.27/drivers/net/usb/ |
D | hso.c | 148 int ref_count; member 2614 if (--serial->shared_int->ref_count == 0) in hso_free_serial_device() 2744 serial->shared_int->ref_count++; in hso_create_mux_serial_device()
|
/linux-4.1.27/drivers/media/usb/cx231xx/ |
D | cx231xx-avcore.c | 127 int cx231xx_afe_init_super_block(struct cx231xx *dev, u32 ref_count) in cx231xx_afe_init_super_block() argument 135 temp = (u8) (ref_count & 0xff); in cx231xx_afe_init_super_block() 144 temp = (u8) ((ref_count & 0x300) >> 8); in cx231xx_afe_init_super_block()
|
D | cx231xx.h | 785 int cx231xx_afe_init_super_block(struct cx231xx *dev, u32 ref_count);
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
D | qla_os.c | 660 if (atomic_read(&sp->ref_count) == 0) { in qla2x00_sp_compl() 668 if (!atomic_dec_and_test(&sp->ref_count)) in qla2x00_sp_compl() 756 atomic_set(&sp->ref_count, 1); in qla2xxx_queuecommand() 918 atomic_inc(&sp->ref_count); in sp_get() 981 atomic_dec(&sp->ref_count); in qla2xxx_eh_abort()
|
D | qla_def.h | 388 atomic_t ref_count; member
|
/linux-4.1.27/fs/btrfs/ |
D | relocation.c | 3496 u32 ref_count; local 3506 ref_count = btrfs_extent_data_ref_count(leaf, ref); 3565 while (ref_count > 0) { 3613 ref_count--;
|
/linux-4.1.27/Documentation/ |
D | atomic_ops.txt | 299 atomic_dec(&obj->ref_count);
|
D | memory-barriers.txt | 1687 atomic_dec(&obj->ref_count);
|