/linux-4.1.27/include/linux/ |
D | kref.h | 25 atomic_t refcount; member 34 atomic_set(&kref->refcount, 1); in kref_init() 47 WARN_ON_ONCE(atomic_inc_return(&kref->refcount) < 2); in kref_get() 73 if (atomic_sub_and_test((int) count, &kref->refcount)) { in kref_sub() 122 if (atomic_add_unless(&kref->refcount, -1, 1)) in kref_put_spinlock_irqsave() 125 if (atomic_dec_and_test(&kref->refcount)) { in kref_put_spinlock_irqsave() 139 if (unlikely(!atomic_add_unless(&kref->refcount, -1, 1))) { in kref_put_mutex() 141 if (unlikely(!atomic_dec_and_test(&kref->refcount))) { in kref_put_mutex() 169 return atomic_add_unless(&kref->refcount, 1, 0); in kref_get_unless_zero()
|
D | iocontext.h | 98 atomic_long_t refcount; member 130 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active() 132 atomic_long_inc(&ioc->refcount); in get_io_context_active()
|
D | fence.h | 73 struct kref refcount; member 193 kref_get(&fence->refcount); in fence_get() 205 if (kref_get_unless_zero(&fence->refcount)) in fence_get_rcu() 218 kref_put(&fence->refcount, fence_release); in fence_put()
|
D | rmap.h | 37 atomic_t refcount; member 97 atomic_inc(&anon_vma->refcount); in get_anon_vma() 104 if (atomic_dec_and_test(&anon_vma->refcount)) in put_anon_vma()
|
D | slab_def.h | 43 int refcount; member
|
D | cpu_rmap.h | 28 struct kref refcount; member
|
D | slub_def.h | 77 int refcount; /* Refcount for slab cache destroy */ member
|
D | zpool.h | 81 atomic_t refcount; member
|
D | tty_ldisc.h | 218 int refcount; member
|
D | rpmsg.h | 147 struct kref refcount; member
|
D | cgroup-defs.h | 138 atomic_t refcount; member
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_gem_debug.c | 46 !atomic_read(&obj->base.refcount.refcount)) { in i915_verify_lists() 68 !atomic_read(&obj->base.refcount.refcount)) { in i915_verify_lists() 86 !atomic_read(&obj->base.refcount.refcount)) { in i915_verify_lists() 102 !atomic_read(&obj->base.refcount.refcount)) { in i915_verify_lists()
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_global.c | 39 int refcount; member 52 item->refcount = 0; in drm_global_init() 62 BUG_ON(item->refcount != 0); in drm_global_release() 72 if (item->refcount == 0) { in drm_global_item_ref() 85 ++item->refcount; in drm_global_item_ref() 101 BUG_ON(item->refcount == 0); in drm_global_item_unref() 103 if (--item->refcount == 0) { in drm_global_item_unref()
|
D | drm_irq.c | 262 if (atomic_read(&vblank->refcount) == 0 && vblank->enabled) { in vblank_disable_fn() 1001 atomic_dec(&vblank->refcount); in drm_vblank_enable() 1037 if (atomic_add_return(1, &vblank->refcount) == 1) { in drm_vblank_get() 1041 atomic_dec(&vblank->refcount); in drm_vblank_get() 1083 if (WARN_ON(atomic_read(&vblank->refcount) == 0)) in drm_vblank_put() 1090 if (atomic_dec_and_test(&vblank->refcount)) { in drm_vblank_put() 1197 atomic_inc(&vblank->refcount); in drm_vblank_off() 1261 atomic_inc(&vblank->refcount); in drm_crtc_vblank_reset() 1293 atomic_dec(&vblank->refcount); in drm_vblank_on() 1311 if (atomic_read(&vblank->refcount) != 0 || in drm_vblank_on()
|
D | drm_info.c | 206 atomic_read(&obj->refcount.refcount)); in drm_gem_one_name_info()
|
D | drm_drv.c | 105 kref_init(&master->refcount); in drm_master_create() 120 kref_get(&master->refcount); in drm_master_get() 127 struct drm_master *master = container_of(kref, struct drm_master, refcount); in drm_master_destroy() 156 kref_put(&(*master)->refcount, drm_master_destroy); in drm_master_put()
|
D | drm_gem_cma_helper.c | 392 obj->name, obj->refcount.refcount.counter, in drm_gem_cma_describe()
|
D | drm_crtc.c | 410 kref_init(&fb->refcount); in drm_framebuffer_init() 442 container_of(kref, struct drm_framebuffer, refcount); in drm_framebuffer_free() 493 if (!kref_get_unless_zero(&fb->refcount)) in drm_framebuffer_lookup() 510 DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); in drm_framebuffer_unreference() 511 kref_put(&fb->refcount, drm_framebuffer_free); in drm_framebuffer_unreference() 523 DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); in drm_framebuffer_reference() 524 kref_get(&fb->refcount); in drm_framebuffer_reference() 613 if (atomic_read(&fb->refcount.refcount) > 1) { in drm_framebuffer_remove() 5556 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free() 5574 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group() [all …]
|
/linux-4.1.27/Documentation/ |
D | kref.txt | 13 struct kref refcount; 28 kref_init(&data->refcount); 30 This sets the refcount in the kref to 1. 37 increment the refcount with kref_get() before passing it off: 38 kref_get(&data->refcount); 40 refcount cannot go to zero) you may do this without a lock. 43 kref_put(&data->refcount, data_release); 60 struct my_data *data = container_of(ref, struct my_data, refcount); 70 kref_put(&data->refcount, data_release); 81 kref_init(&data->refcount); [all …]
|
D | remoteproc.txt | 44 this function will just decrement the power refcount and exit, 49 - we're not decrementing the rproc's refcount, only the power refcount. 103 rproc's refcount. It doesn't directly free rproc; that would happen 104 only if there are no other references to rproc and its refcount now 128 last refcount should be decremented by calling rproc_put().
|
/linux-4.1.27/net/batman-adv/ |
D | types.h | 97 atomic_t refcount; member 124 atomic_t refcount; member 178 atomic_t refcount; member 279 atomic_t refcount; member 324 atomic_t refcount; member 349 atomic_t refcount; member 385 atomic_t refcount; member 707 atomic_t refcount; member 885 atomic_t refcount; member 906 atomic_t refcount; member [all …]
|
D | originator.c | 65 if (!atomic_inc_not_zero(&tmp->refcount)) in batadv_orig_node_vlan_get() 106 atomic_set(&vlan->refcount, 2); in batadv_orig_node_vlan_new() 124 if (atomic_dec_and_test(&orig_vlan->refcount)) in batadv_orig_node_vlan_free_ref() 173 if (atomic_dec_and_test(&neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_free_ref() 203 if (atomic_dec_and_test(&neigh_node->refcount)) in batadv_neigh_node_free_ref() 233 if (router && !atomic_inc_not_zero(&router->refcount)) in batadv_orig_router_get() 261 if (!atomic_inc_not_zero(&tmp->refcount)) in batadv_orig_ifinfo_get() 301 !atomic_inc_not_zero(&if_outgoing->refcount)) { in batadv_orig_ifinfo_new() 312 atomic_set(&orig_ifinfo->refcount, 2); in batadv_orig_ifinfo_new() 342 if (!atomic_inc_not_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get() [all …]
|
D | gateway_client.c | 45 if (atomic_dec_and_test(&gw_node->refcount)) { in batadv_gw_node_free_ref() 61 if (!atomic_inc_not_zero(&gw_node->refcount)) in batadv_gw_get_selected_gw_node() 84 if (!atomic_inc_not_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig() 102 if (new_gw_node && !atomic_inc_not_zero(&new_gw_node->refcount)) in batadv_gw_select() 160 if (!atomic_inc_not_zero(&gw_node->refcount)) in batadv_gw_get_best_gw_node() 178 atomic_inc(&curr_gw->refcount); in batadv_gw_get_best_gw_node() 193 atomic_inc(&curr_gw->refcount); in batadv_gw_get_best_gw_node() 411 if (!atomic_inc_not_zero(&orig_node->refcount)) in batadv_gw_node_add() 422 atomic_set(&gw_node->refcount, 1); in batadv_gw_node_add() 458 if (!atomic_inc_not_zero(&gw_node_tmp->refcount)) in batadv_gw_node_get()
|
D | hard-interface.h | 63 if (atomic_dec_and_test(&hard_iface->refcount)) in batadv_hardif_free_ref() 77 if (!atomic_inc_not_zero(&hard_iface->refcount)) in batadv_primary_if_get_selected()
|
D | hard-interface.c | 52 atomic_inc_not_zero(&hard_iface->refcount)) in batadv_hardif_get_by_netdev() 157 atomic_inc_not_zero(&hard_iface->refcount)) in batadv_hardif_get_active() 191 if (new_hard_iface && !atomic_inc_not_zero(&new_hard_iface->refcount)) in batadv_primary_if_select() 380 if (!atomic_inc_not_zero(&hard_iface->refcount)) in batadv_hardif_enable_interface() 593 atomic_set(&hard_iface->refcount, 2); in batadv_hardif_add_interface()
|
D | routing.c | 59 if (curr_router && !atomic_inc_not_zero(&curr_router->refcount)) in _batadv_update_route() 87 if (neigh_node && !atomic_inc_not_zero(&neigh_node->refcount)) in _batadv_update_route() 469 if (!atomic_inc_not_zero(&cand->refcount)) in batadv_find_router() 476 if (!atomic_inc_not_zero(&cand_router->refcount)) { in batadv_find_router() 495 atomic_inc(&cand_router->refcount); in batadv_find_router() 496 atomic_inc(&cand->refcount); in batadv_find_router()
|
D | main.c | 614 if (atomic_dec_and_test(&tvlv_handler->refcount)) in batadv_tvlv_handler_free_ref() 642 if (!atomic_inc_not_zero(&tvlv_handler_tmp->refcount)) in batadv_tvlv_handler_get() 660 if (atomic_dec_and_test(&tvlv->refcount)) in batadv_tvlv_container_free_ref() 689 if (!atomic_inc_not_zero(&tvlv_tmp->refcount)) in batadv_tvlv_container_get() 791 atomic_set(&tvlv_new->refcount, 1); in batadv_tvlv_container_register() 1078 atomic_set(&tvlv_handler->refcount, 1); in batadv_tvlv_handler_register()
|
D | bridge_loop_avoidance.c | 110 if (atomic_dec_and_test(&backbone_gw->refcount)) in batadv_backbone_gw_free_ref() 124 if (atomic_dec_and_test(&claim->refcount)) in batadv_claim_free_ref() 157 if (!atomic_inc_not_zero(&claim->refcount)) in batadv_claim_hash_find() 201 if (!atomic_inc_not_zero(&backbone_gw->refcount)) in batadv_backbone_hash_find() 397 atomic_set(&entry->refcount, 2); in batadv_bla_get_backbone_gw() 578 atomic_set(&claim->refcount, 2); in batadv_bla_add_claim() 606 atomic_inc(&backbone_gw->refcount); in batadv_bla_add_claim()
|
D | multicast.c | 419 if (!atomic_inc_not_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv4_node_get() 446 if (!atomic_inc_not_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_ipv6_node_get() 497 if (!atomic_inc_not_zero(&tmp_orig_node->refcount)) in batadv_mcast_forw_unsnoop_node_get()
|
D | network-coding.c | 195 if (atomic_dec_and_test(&nc_node->refcount)) in batadv_nc_node_free_ref() 206 if (atomic_dec_and_test(&nc_path->refcount)) in batadv_nc_path_free_ref() 520 if (!atomic_inc_not_zero(&nc_path->refcount)) in batadv_nc_hash_find() 772 if (!atomic_inc_not_zero(&nc_node->refcount)) in batadv_nc_find_nc_node() 816 if (!atomic_inc_not_zero(&orig_neigh_node->refcount)) in batadv_nc_get_nc_node() 823 atomic_set(&nc_node->refcount, 2); in batadv_nc_get_nc_node() 941 atomic_set(&nc_path->refcount, 2); in batadv_nc_get_path()
|
D | originator.h | 113 if (!atomic_inc_not_zero(&orig_node->refcount)) in batadv_orig_hash_find()
|
D | distributed-arp-table.c | 53 if (atomic_dec_and_test(&dat_entry->refcount)) in batadv_dat_entry_free_ref() 253 if (!atomic_inc_not_zero(&dat_entry->refcount)) in batadv_dat_entry_hash_find() 298 atomic_set(&dat_entry->refcount, 2); in batadv_dat_entry_add() 498 if (!atomic_inc_not_zero(&orig_node->refcount)) in batadv_choose_next_candidate()
|
D | translation-table.c | 115 if (!atomic_inc_not_zero(&tt->refcount)) in batadv_tt_hash_find() 179 if (atomic_dec_and_test(&tt_local_entry->common.refcount)) in batadv_tt_local_entry_free_ref() 191 if (atomic_dec_and_test(&tt_global_entry->common.refcount)) { in batadv_tt_global_entry_free_ref() 332 if (!atomic_dec_and_test(&orig_entry->refcount)) in batadv_tt_orig_list_entry_free_ref() 595 atomic_set(&tt_local->common.refcount, 2); in batadv_tt_local_add() 1228 if (!atomic_inc_not_zero(&tmp_orig_entry->refcount)) in batadv_tt_global_orig_entry_find() 1278 atomic_inc(&orig_node->refcount); in batadv_tt_global_orig_entry_add() 1282 atomic_set(&orig_entry->refcount, 2); in batadv_tt_global_orig_entry_add() 1359 atomic_set(&common->refcount, 2); in batadv_tt_global_add() 2027 if (orig_node && !atomic_inc_not_zero(&orig_node->refcount)) in batadv_transtable_search()
|
D | soft-interface.c | 460 if (atomic_dec_and_test(&vlan->refcount)) { in batadv_softif_vlan_free_ref() 487 if (!atomic_inc_not_zero(&vlan_tmp->refcount)) in batadv_softif_vlan_get() 522 atomic_set(&vlan->refcount, 1); in batadv_softif_create_vlan()
|
D | bat_iv_ogm.c | 275 if (!atomic_inc_not_zero(&hard_iface->refcount)) { in batadv_iv_ogm_neigh_new() 634 if (!atomic_inc_not_zero(&if_incoming->refcount)) in batadv_iv_ogm_aggregate_new() 637 if (!atomic_inc_not_zero(&if_outgoing->refcount)) in batadv_iv_ogm_aggregate_new() 996 atomic_inc_not_zero(&tmp_neigh_node->refcount)) { in batadv_iv_ogm_orig_update() 1154 if (!atomic_inc_not_zero(&tmp_neigh_node->refcount)) in batadv_iv_ogm_calc_tq()
|
/linux-4.1.27/mm/ |
D | zpool.c | 43 atomic_set(&driver->refcount, 0); in zpool_register_driver() 61 int ret = 0, refcount; in zpool_unregister_driver() local 64 refcount = atomic_read(&driver->refcount); in zpool_unregister_driver() 65 WARN_ON(refcount < 0); in zpool_unregister_driver() 66 if (refcount > 0) in zpool_unregister_driver() 113 atomic_inc(&driver->refcount); in zpool_get_driver() 125 atomic_dec(&driver->refcount); in zpool_put_driver()
|
D | zswap.c | 182 int refcount; member 225 entry->refcount = 1; in zswap_entry_cache_alloc() 305 entry->refcount++; in zswap_entry_get() 314 int refcount = --entry->refcount; in zswap_entry_put() local 316 BUG_ON(refcount < 0); in zswap_entry_put() 317 if (refcount == 0) { in zswap_entry_put()
|
D | slab_common.c | 220 if (s->refcount < 0) in slab_unmergeable() 324 s->refcount = 1; in do_kmem_cache_create() 628 s->refcount--; in kmem_cache_destroy() 629 if (s->refcount) in kmem_cache_destroy() 694 s->refcount = -1; /* Exempt from merging for now */ in create_boot_cache() 707 s->refcount = 1; in create_kmalloc_cache()
|
D | rmap.c | 74 atomic_set(&anon_vma->refcount, 1); in anon_vma_alloc() 89 VM_BUG_ON(atomic_read(&anon_vma->refcount)); in anon_vma_free() 419 atomic_set(&anon_vma->refcount, 0); in anon_vma_ctor() 466 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_get_anon_vma() 525 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_lock_anon_vma_read() 540 if (atomic_dec_and_test(&anon_vma->refcount)) { in page_lock_anon_vma_read() 1425 if (root != anon_vma && atomic_dec_and_test(&root->refcount)) in __put_anon_vma()
|
D | memory_hotplug.c | 60 int refcount; member 68 .refcount = 0, 86 mem_hotplug.refcount++; in get_online_mems() 97 if (WARN_ON(!mem_hotplug.refcount)) in put_online_mems() 98 mem_hotplug.refcount++; /* try to fix things up */ in put_online_mems() 100 if (!--mem_hotplug.refcount && unlikely(mem_hotplug.active_writer)) in put_online_mems() 114 if (likely(!mem_hotplug.refcount)) in mem_hotplug_begin()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_verbs_mcast.c | 62 atomic_inc(&qp->refcount); in ipath_mcast_qp_alloc() 73 if (atomic_dec_and_test(&qp->refcount)) in ipath_mcast_qp_free() 96 atomic_set(&mcast->refcount, 0); in ipath_mcast_alloc() 141 atomic_inc(&mcast->refcount); in ipath_mcast_find() 224 atomic_inc(&mcast->refcount); in ipath_mcast_add() 343 wait_event(mcast->wait, atomic_read(&mcast->refcount) <= 1); in ipath_multicast_detach() 347 atomic_dec(&mcast->refcount); in ipath_multicast_detach() 348 wait_event(mcast->wait, !atomic_read(&mcast->refcount)); in ipath_multicast_detach()
|
D | ipath_qp.c | 226 atomic_inc(&qp->refcount); in ipath_alloc_qpn() 256 atomic_dec(&qp->refcount); in ipath_free_qp() 310 atomic_inc(&qp->refcount); in ipath_lookup_qpn() 846 atomic_set(&qp->refcount, 0); in ipath_create_qp() 988 atomic_dec(&qp->refcount); in ipath_destroy_qp() 997 wait_event(qp->wait, !atomic_read(&qp->refcount)); in ipath_destroy_qp()
|
D | ipath_verbs.c | 649 if (atomic_dec_return(&mcast->refcount) <= 1) in ipath_ib_rcv() 661 if (atomic_dec_and_test(&qp->refcount)) in ipath_ib_rcv() 699 atomic_inc(&qp->refcount); in ipath_ib_timer() 709 atomic_inc(&qp->refcount); in ipath_ib_timer() 762 if (atomic_dec_and_test(&qp->refcount)) in ipath_ib_timer() 775 if (atomic_dec_and_test(&qp->refcount)) in ipath_ib_timer() 1057 if (atomic_dec_and_test(&qp->refcount)) in sdma_complete() 1138 atomic_inc(&qp->refcount); in ipath_verbs_send_dma() 1215 if (atomic_dec_and_test(&qp->refcount)) in ipath_verbs_send_dma() 1476 atomic_inc(&qp->refcount); in ipath_ib_piobufavail() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_verbs_mcast.c | 51 atomic_inc(&qp->refcount); in qib_mcast_qp_alloc() 62 if (atomic_dec_and_test(&qp->refcount)) in qib_mcast_qp_free() 85 atomic_set(&mcast->refcount, 0); in qib_mcast_alloc() 131 atomic_inc(&mcast->refcount); in qib_mcast_find() 213 atomic_inc(&mcast->refcount); in qib_mcast_add() 346 wait_event(mcast->wait, atomic_read(&mcast->refcount) <= 1); in qib_multicast_detach() 350 atomic_dec(&mcast->refcount); in qib_multicast_detach() 351 wait_event(mcast->wait, !atomic_read(&mcast->refcount)); in qib_multicast_detach()
|
D | qib_keys.c | 175 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_lkey_ok() 197 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_lkey_ok() 274 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_rkey_ok() 296 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_rkey_ok()
|
D | qib_verbs.h | 220 atomic_t refcount; member 234 atomic_t refcount; member 311 atomic_t refcount; member 457 atomic_t refcount ____cacheline_aligned_in_smp; 1055 atomic_inc(&mr->refcount); in qib_get_mr() 1062 if (unlikely(atomic_dec_and_test(&mr->refcount))) in qib_put_mr()
|
D | qib_verbs.c | 429 atomic_inc(&to_iah(wr->wr.ud.ah)->refcount); in qib_post_one_send() 673 if (atomic_dec_return(&mcast->refcount) <= 1) in qib_ib_rcv() 679 &rcd->lookaside_qp->refcount)) in qib_ib_rcv() 717 atomic_inc(&qp->refcount); in mem_timer() 730 if (atomic_dec_and_test(&qp->refcount)) in mem_timer() 990 if (atomic_dec_and_test(&qp->refcount)) in qib_put_txreq() 1013 atomic_inc(&qp->refcount); in qib_put_txreq() 1023 if (atomic_dec_and_test(&qp->refcount)) in qib_put_txreq() 1056 atomic_inc(&qp->refcount); in qib_verbs_sdma_desc_avail() 1070 if (atomic_dec_and_test(&qp->refcount)) in qib_verbs_sdma_desc_avail() [all …]
|
D | qib_driver.c | 403 &qp->refcount); in qib_rcv_hdrerr() 426 if (atomic_dec_and_test(&qp->refcount)) in qib_rcv_hdrerr() 557 if (atomic_dec_and_test(&rcd->lookaside_qp->refcount)) in qib_kreceive() 584 if (atomic_dec_and_test(&qp->refcount)) in qib_kreceive()
|
D | qib_qp.c | 229 atomic_inc(&qp->refcount); in insert_qp() 284 atomic_dec(&qp->refcount); in remove_qp() 350 atomic_inc(&qp->refcount); in qib_lookup_qpn() 358 atomic_inc(&qp->refcount); in qib_lookup_qpn() 440 atomic_dec(&to_iah(wqe->wr.wr.ud.ah)->refcount); in clear_mr_refs() 715 wait_event(qp->wait, !atomic_read(&qp->refcount)); in qib_modify_qp() 1094 atomic_set(&qp->refcount, 0); in qib_create_qp() 1230 wait_event(qp->wait, !atomic_read(&qp->refcount)); in qib_destroy_qp()
|
D | qib_user_sdma.c | 62 int refcount; member 226 sdma_rb_node->refcount++; in qib_user_sdma_queue_create() 235 sdma_rb_node->refcount = 1; in qib_user_sdma_queue_create() 1104 pq->sdma_rb_node->refcount--; in qib_user_sdma_queue_destroy() 1105 if (pq->sdma_rb_node->refcount == 0) { in qib_user_sdma_queue_destroy() 1334 if (pq->sdma_rb_node->refcount > 1) { in qib_user_sdma_push_pkts()
|
D | qib_mr.c | 65 atomic_set(&mr->refcount, 1); in init_qib_mregion() 446 i = atomic_read(&fmr->mr.refcount); in qib_map_phys_fmr()
|
/linux-4.1.27/include/net/ |
D | netrom.h | 96 atomic_t refcount; member 112 atomic_t refcount; member 121 atomic_inc(&((__nr_node)->refcount)) 125 if (atomic_dec_and_test(&nr_node->refcount)) { in nr_node_put() 131 atomic_inc(&((__nr_neigh)->refcount)) 135 if (atomic_dec_and_test(&nr_neigh->refcount)) { in nr_neigh_put()
|
D | ax25.h | 160 atomic_t refcount; member 169 atomic_inc(&((ax25)->refcount)) 173 if (atomic_dec_and_test(&assoc->refcount)) { in ax25_uid_put() 187 atomic_t refcount; member 196 atomic_inc(&ax25_rt->refcount); in ax25_hold_route() 203 if (atomic_dec_and_test(&ax25_rt->refcount)) in ax25_put_route() 246 atomic_t refcount; member 255 atomic_inc(&((__ax25)->refcount)) 259 if (atomic_dec_and_test(&ax25->refcount)) { in ax25_cb_put()
|
D | netlabel.h | 136 atomic_t refcount; member 238 atomic_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc() 252 if (!atomic_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
|
D | cipso_ipv4.h | 88 atomic_t refcount; member
|
/linux-4.1.27/include/drm/ |
D | drm_gem.h | 43 struct kref refcount; member 139 kref_get(&obj->refcount); in drm_gem_object_reference() 146 kref_put(&obj->refcount, drm_gem_object_free); in drm_gem_object_unreference() 158 if (kref_put_mutex(&obj->refcount, drm_gem_object_free, &dev->struct_mutex)) in drm_gem_object_unreference_unlocked()
|
D | drmP.h | 364 struct kref refcount; member 692 atomic_t refcount; /* number of users of vblank interruptsper crtc */ member
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
D | bnx2fc_io.c | 36 kref_get(&io_req->refcount); in bnx2fc_cmd_timer_set() 80 io_req->refcount.refcount.counter); in bnx2fc_cmd_timeout() 89 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 128 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 160 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 202 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_cmd_timeout() 492 kref_init(&io_req->refcount); in bnx2fc_elstm_alloc() 547 kref_init(&io_req->refcount); in bnx2fc_cmd_alloc() 554 struct bnx2fc_cmd, refcount); in bnx2fc_cmd_release() 761 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_tmf() [all …]
|
D | bnx2fc_els.c | 40 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rrq_compl() 108 kref_put(&aborted_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_rrq() 364 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_srr_compl() 570 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rec_compl() 593 kref_get(&orig_io_req->refcount); in bnx2fc_send_rec() 609 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_rec() 634 kref_get(&orig_io_req->refcount); in bnx2fc_send_srr() 653 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_srr() 716 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els() 737 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els() [all …]
|
D | bnx2fc_tgt.c | 192 kref_put(&io_req->refcount, in bnx2fc_flush_active_ios() 225 kref_put(&io_req->refcount, in bnx2fc_flush_active_ios() 257 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_flush_active_ios()
|
/linux-4.1.27/drivers/gpu/host1x/ |
D | channel.c | 54 if (channel->refcount == 0) in host1x_channel_get() 58 channel->refcount++; in host1x_channel_get() 70 if (channel->refcount == 1) { in host1x_channel_put() 77 channel->refcount--; in host1x_channel_put()
|
D | intr.c | 40 kfree(container_of(kref, struct host1x_waitlist, refcount)); in waiter_release() 93 kref_put(&waiter->refcount, waiter_release); in remove_completed_waiters() 156 kref_put(&waiter->refcount, waiter_release); in run_handlers() 226 kref_init(&waiter->refcount); in host1x_intr_add_action() 228 kref_get(&waiter->refcount); in host1x_intr_add_action() 270 kref_put(&waiter->refcount, waiter_release); in host1x_intr_put_ref() 338 kref_put(&waiter->refcount, waiter_release); in host1x_intr_stop()
|
D | channel.h | 31 unsigned int refcount; member
|
D | intr.h | 58 struct kref refcount; member
|
D | debug.c | 51 if (ch->refcount) { in show_channels()
|
/linux-4.1.27/drivers/tty/vt/ |
D | consolemap.c | 178 unsigned long refcount; member 424 if (--p->refcount) in con_free_unimap() 460 q->refcount++; in con_unify_unimap() 503 if (!p || --p->refcount) { in con_do_clear_unimap() 507 p->refcount++; in con_do_clear_unimap() 510 q->refcount=1; in con_do_clear_unimap() 514 p->refcount++; in con_do_clear_unimap() 549 if (p->refcount > 1) { in con_set_unimap() 584 p->refcount++; in con_set_unimap() 659 dflt->refcount++; in con_set_default_unimap() [all …]
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cq.c | 50 atomic_inc(&cq->refcount); in mlx5_cq_completion() 62 if (atomic_dec_and_test(&cq->refcount)) in mlx5_cq_completion() 75 atomic_inc(&cq->refcount); in mlx5_cq_event() 86 if (atomic_dec_and_test(&cq->refcount)) in mlx5_cq_event() 112 atomic_set(&cq->refcount, 1); in mlx5_core_create_cq() 172 if (atomic_dec_and_test(&cq->refcount)) in mlx5_core_destroy_cq()
|
D | srq.c | 50 atomic_inc(&srq->refcount); in mlx5_srq_event() 61 if (atomic_dec_and_test(&srq->refcount)) in mlx5_srq_event() 74 atomic_inc(&srq->refcount); in mlx5_core_get_srq() 102 atomic_set(&srq->refcount, 1); in mlx5_core_create_srq() 156 if (atomic_dec_and_test(&srq->refcount)) in mlx5_core_destroy_srq()
|
D | qp.c | 52 atomic_inc(&common->refcount); in mlx5_get_rsc() 66 if (atomic_dec_and_test(&common->refcount)) in mlx5_core_put_rsc() 224 atomic_set(&qp->common.refcount, 1); in mlx5_core_create_qp()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
D | object.c | 47 atomic_set(&object->refcount, 1); in nvkm_object_create_() 129 atomic_set(&object->refcount, 1); in nvkm_object_ctor() 146 atomic_inc(&obj->refcount); in nvkm_object_ref() 147 nv_trace(obj, "inc() == %d\n", atomic_read(&obj->refcount)); in nvkm_object_ref() 151 int dead = atomic_dec_and_test(&(*ref)->refcount); in nvkm_object_ref() 152 nv_trace(*ref, "dec() == %d\n", atomic_read(&(*ref)->refcount)); in nvkm_object_ref() 325 atomic_read(&object->refcount), in nvkm_object_debug()
|
D | engctx.c | 38 atomic_inc(&nv_object(engctx)->refcount); in nvkm_engctx_exists()
|
/linux-4.1.27/drivers/gpu/drm/ttm/ |
D | ttm_object.c | 74 struct kref refcount; member 135 kref_get(&tfile->refcount); in ttm_object_file_ref() 142 container_of(kref, struct ttm_object_file, refcount); in ttm_object_file_destroy() 153 kref_put(&tfile->refcount, ttm_object_file_destroy); in ttm_object_file_unref() 173 kref_init(&base->refcount); in ttm_base_object_init() 201 container_of(kref, struct ttm_base_object, refcount); in ttm_release_base() 225 kref_put(&base->refcount, ttm_release_base); in ttm_base_object_unref() 242 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup() 264 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup_for_ref() 307 if (unlikely(atomic_read(&ref->kref.refcount) == 0)) in ttm_ref_object_exists() [all …]
|
/linux-4.1.27/kernel/ |
D | cpu.c | 70 atomic_t refcount; member 99 atomic_inc(&cpu_hotplug.refcount); in get_online_cpus() 111 atomic_inc(&cpu_hotplug.refcount); in try_get_online_cpus() 119 int refcount; in put_online_cpus() local 124 refcount = atomic_dec_return(&cpu_hotplug.refcount); in put_online_cpus() 125 if (WARN_ON(refcount < 0)) /* try to fix things up */ in put_online_cpus() 126 atomic_inc(&cpu_hotplug.refcount); in put_online_cpus() 128 if (refcount <= 0 && waitqueue_active(&cpu_hotplug.wq)) in put_online_cpus() 168 if (likely(!atomic_read(&cpu_hotplug.refcount))) in cpu_hotplug_begin()
|
D | futex.c | 201 atomic_t refcount; member 632 atomic_set(&pi_state->refcount, 1); in refill_pi_state_cache() 658 if (!atomic_dec_and_test(&pi_state->refcount)) in free_pi_state() 682 atomic_set(&pi_state->refcount, 1); in free_pi_state() 826 WARN_ON(!atomic_read(&pi_state->refcount)); in attach_to_pi_state() 877 atomic_inc(&pi_state->refcount); in attach_to_pi_state() 1708 atomic_inc(&pi_state->refcount); in futex_requeue()
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
D | module.c | 69 int refcount; in lnet_unconfigure() local 79 refcount = the_lnet.ln_refcount; in lnet_unconfigure() 83 return (refcount == 0) ? 0 : -EBUSY; in lnet_unconfigure()
|
/linux-4.1.27/drivers/base/power/ |
D | common.c | 36 dev->power.subsys_data->refcount++; in dev_pm_get_subsys_data() 39 psd->refcount = 1; in dev_pm_get_subsys_data() 71 if (--psd->refcount == 0) in dev_pm_put_subsys_data()
|
/linux-4.1.27/fs/squashfs/ |
D | cache.c | 103 if (cache->entry[i].refcount == 0) in squashfs_cache_get() 117 entry->refcount = 1; in squashfs_cache_get() 154 if (entry->refcount == 0) in squashfs_cache_get() 156 entry->refcount++; in squashfs_cache_get() 174 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get() 191 entry->refcount--; in squashfs_cache_put() 192 if (entry->refcount == 0) { in squashfs_cache_put()
|
D | squashfs_fs_sb.h | 45 int refcount; member
|
/linux-4.1.27/drivers/infiniband/core/ |
D | multicast.c | 64 atomic_t refcount; member 106 atomic_t refcount; member 121 atomic_t refcount; member 182 if (atomic_dec_and_test(&port->refcount)) in deref_port() 192 if (atomic_dec_and_test(&group->refcount)) { in release_group() 203 if (atomic_dec_and_test(&member->refcount)) in deref_member() 216 atomic_inc(&group->refcount); in queue_join() 412 atomic_inc(&member->refcount); in process_group_error() 456 atomic_inc(&member->refcount); in mcast_work_handler() 508 atomic_inc(&member->refcount); in process_join_error() [all …]
|
D | mad_priv.h | 108 atomic_t refcount; member 117 atomic_t refcount; member 135 int refcount; member
|
D | mad.c | 375 atomic_set(&mad_agent_priv->refcount, 1); in ib_register_mad_agent() 544 atomic_set(&mad_snoop_priv->refcount, 1); in ib_register_mad_snoop() 556 if (atomic_dec_and_test(&mad_agent_priv->refcount)) in deref_mad_agent() 562 if (atomic_dec_and_test(&mad_snoop_priv->refcount)) in deref_snoop_agent() 667 atomic_inc(&mad_snoop_priv->refcount); in snoop_send() 692 atomic_inc(&mad_snoop_priv->refcount); in snoop_recv() 802 atomic_inc(&mad_agent_priv->refcount); in handle_outgoing_dr_smp() 838 atomic_inc(&mad_agent_priv->refcount); in handle_outgoing_dr_smp() 978 atomic_inc(&mad_agent_priv->refcount); in ib_create_send_mad() 1184 mad_send_wr->refcount = 1 + (mad_send_wr->timeout > 0); in ib_post_send_mad() [all …]
|
D | mad_rmpp.c | 54 atomic_t refcount; member 74 if (atomic_dec_and_test(&rmpp_recv->refcount)) in deref_rmpp_recv() 303 atomic_set(&rmpp_recv->refcount, 1); in create_rmpp_recv() 354 atomic_inc(&rmpp_recv->refcount); in acquire_rmpp_recv() 541 atomic_inc(&rmpp_recv->refcount); in start_rmpp() 713 if (mad_send_wr->refcount == 1) in process_rmpp_ack() 719 } else if (mad_send_wr->refcount == 1 && in process_rmpp_ack() 727 mad_send_wr->refcount++; in process_rmpp_ack() 886 mad_send_wr->refcount += (mad_send_wr->timeout == 0); in ib_send_rmpp_mad()
|
D | iwcm.h | 55 atomic_t refcount; member
|
D | iwcm.c | 179 BUG_ON(atomic_read(&cm_id_priv->refcount)==0); in iwcm_deref_id() 180 if (atomic_dec_and_test(&cm_id_priv->refcount)) { in iwcm_deref_id() 193 atomic_inc(&cm_id_priv->refcount); in add_ref() 234 atomic_set(&cm_id_priv->refcount, 1); in iw_create_cm_id() 691 if (atomic_read(&cm_id_priv->refcount)==0) in cm_conn_req_handler() 896 BUG_ON(atomic_read(&cm_id_priv->refcount)==0); in cm_work_handler() 958 atomic_inc(&cm_id_priv->refcount); in cm_event_handler()
|
D | addr.c | 93 atomic_set(&client->refcount, 1); in rdma_addr_register_client() 100 if (atomic_dec_and_test(&client->refcount)) in put_client() 405 atomic_inc(&client->refcount); in rdma_resolve_ip() 419 atomic_dec(&client->refcount); in rdma_resolve_ip()
|
D | iwpm_util.c | 59 if (atomic_read(&iwpm_admin.refcount) == 0) { in iwpm_init() 76 atomic_inc(&iwpm_admin.refcount); in iwpm_init() 97 if (atomic_read(&iwpm_admin.refcount) == 0) { in iwpm_exit() 102 if (atomic_dec_and_test(&iwpm_admin.refcount)) { in iwpm_exit()
|
D | uverbs_main.c | 322 if (atomic_dec_and_test(&file->device->refcount)) in ib_uverbs_release_file() 760 if (!atomic_inc_not_zero(&dev->refcount)) in ib_uverbs_open() 789 if (atomic_dec_and_test(&dev->refcount)) in ib_uverbs_open() 902 atomic_set(&uverbs_dev->refcount, 1); in ib_uverbs_add_one() 964 if (atomic_dec_and_test(&uverbs_dev->refcount)) in ib_uverbs_add_one() 987 if (atomic_dec_and_test(&uverbs_dev->refcount)) in ib_uverbs_remove_one()
|
D | iwpm_util.h | 88 atomic_t refcount; member
|
D | cma.c | 92 atomic_t refcount; member 128 atomic_t refcount; member 250 atomic_inc(&cma_dev->refcount); in cma_attach_to_dev() 260 if (atomic_dec_and_test(&cma_dev->refcount)) in cma_deref_dev() 476 if (atomic_dec_and_test(&id_priv->refcount)) in cma_deref_id() 510 atomic_set(&id_priv->refcount, 1); in rdma_create_id() 1343 atomic_inc(&conn_id->refcount); in cma_req_handler() 1551 atomic_inc(&conn_id->refcount); in iw_conn_req_handler() 1662 atomic_inc(&id_priv->refcount); in cma_listen_on_dev() 1986 atomic_inc(&id_priv->refcount); in rdma_resolve_route() [all …]
|
D | uverbs.h | 88 atomic_t refcount; member
|
/linux-4.1.27/net/rds/ |
D | ib.c | 117 BUG_ON(atomic_read(&rds_ibdev->refcount) <= 0); in rds_ib_dev_put() 118 if (atomic_dec_and_test(&rds_ibdev->refcount)) in rds_ib_dev_put() 146 atomic_set(&rds_ibdev->refcount, 1); in rds_ib_add_one() 185 atomic_inc(&rds_ibdev->refcount); in rds_ib_add_one() 188 atomic_inc(&rds_ibdev->refcount); in rds_ib_add_one() 221 atomic_inc(&rds_ibdev->refcount); in rds_ib_get_client_data()
|
D | ib_rdma.c | 99 atomic_inc(&rds_ibdev->refcount); in rds_ib_get_device() 178 atomic_inc(&rds_ibdev->refcount); in rds_ib_add_conn()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
D | videobuf2-vmalloc.c | 31 atomic_t refcount; member 50 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc() 60 atomic_inc(&buf->refcount); in vb2_vmalloc_alloc() 68 if (atomic_dec_and_test(&buf->refcount)) { in vb2_vmalloc_put() 179 return atomic_read(&buf->refcount); in vb2_vmalloc_num_users() 386 atomic_inc(&buf->refcount); in vb2_vmalloc_get_dmabuf()
|
D | videobuf2-memops.c | 151 __func__, h, atomic_read(h->refcount), vma->vm_start, in vb2_common_vm_open() 154 atomic_inc(h->refcount); in vb2_common_vm_open() 169 __func__, h, atomic_read(h->refcount), vma->vm_start, in vb2_common_vm_close()
|
D | videobuf2-dma-sg.c | 52 atomic_t refcount; member 154 buf->handler.refcount = &buf->refcount; in vb2_dma_sg_alloc() 158 atomic_inc(&buf->refcount); in vb2_dma_sg_alloc() 184 if (atomic_dec_and_test(&buf->refcount)) { in vb2_dma_sg_put() 391 return atomic_read(&buf->refcount); in vb2_dma_sg_num_users() 601 atomic_inc(&buf->refcount); in vb2_dma_sg_get_dmabuf()
|
D | videobuf2-dma-contig.c | 38 atomic_t refcount; member 111 return atomic_read(&buf->refcount); in vb2_dc_num_users() 146 if (!atomic_dec_and_test(&buf->refcount)) in vb2_dc_put() 182 buf->handler.refcount = &buf->refcount; in vb2_dc_alloc() 186 atomic_inc(&buf->refcount); in vb2_dc_alloc() 423 atomic_inc(&buf->refcount); in vb2_dc_get_dmabuf()
|
/linux-4.1.27/net/core/ |
D | dev_addr_lists.c | 39 ha->refcount = 1; in __hw_addr_create_ex() 75 ha->refcount++; in __hw_addr_add_ex() 108 if (--ha->refcount) in __hw_addr_del_entry() 150 ha->refcount++; in __hw_addr_sync_one() 180 if (ha->sync_cnt == ha->refcount) { in __hw_addr_sync_multiple() 208 } else if (ha->refcount == 1) in __hw_addr_sync() 252 if (!ha->sync_cnt || ha->refcount != 1) in __hw_addr_sync_dev() 273 ha->refcount++; in __hw_addr_sync_dev() 437 ha->type == addr_type && ha->refcount == 1) in dev_addr_del()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
D | mthca_memfree.c | 60 int refcount; member 152 icm->refcount = 0; in mthca_alloc_icm() 230 ++table->icm[i]->refcount; in mthca_table_get() 250 ++table->icm[i]->refcount; in mthca_table_get() 268 if (--table->icm[i]->refcount == 0) { in mthca_table_put() 406 ++table->icm[i]->refcount; in mthca_alloc_icm_table() 463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) || in mthca_map_user_db() 470 if (db_tab->page[i].refcount) { in mthca_map_user_db() 471 ++db_tab->page[i].refcount; in mthca_map_user_db() 498 db_tab->page[i].refcount = 1; in mthca_map_user_db() [all …]
|
D | mthca_provider.h | 204 int refcount; member 225 int refcount; member 263 int refcount; member
|
D | mthca_srq.c | 259 srq->refcount = 1; in mthca_alloc_srq() 324 c = srq->refcount; in get_srq_refcount() 348 --srq->refcount; in mthca_free_srq() 431 ++srq->refcount; in mthca_srq_event() 449 if (!--srq->refcount) in mthca_srq_event()
|
D | mthca_cq.c | 248 ++cq->refcount; in mthca_cq_event() 264 if (!--cq->refcount) in mthca_cq_event() 826 cq->refcount = 1; in mthca_init_cq() 900 c = cq->refcount; in get_cq_refcount() 936 --cq->refcount; in mthca_free_cq()
|
D | mthca_memfree.h | 60 int refcount; member
|
/linux-4.1.27/lib/ |
D | cpu_rmap.c | 46 kref_init(&rmap->refcount); in alloc_cpu_rmap() 71 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount); in cpu_rmap_release() 81 kref_get(&rmap->refcount); in cpu_rmap_get() 90 return kref_put(&rmap->refcount, cpu_rmap_release); in cpu_rmap_put()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | mmu.h | 10 u32 refcount[2]; member 20 int refcount; member 30 struct kref refcount; member
|
/linux-4.1.27/block/ |
D | blk-ioc.c | 26 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in get_io_context() 27 atomic_long_inc(&ioc->refcount); in get_io_context() 137 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in put_io_context() 143 if (atomic_long_dec_and_test(&ioc->refcount)) { in put_io_context() 245 atomic_long_set(&ioc->refcount, 1); in create_task_io_context()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
D | iwch_cm.h | 58 ep, atomic_read(&((ep)->kref.refcount))); \ 59 WARN_ON(atomic_read(&((ep)->kref.refcount)) < 1); \ 65 ep, atomic_read(&((ep)->kref.refcount))); \
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
D | mcg.c | 120 atomic_t refcount; member 440 if (atomic_dec_and_test(&group->refcount)) { in release_group() 444 atomic_inc(&group->refcount); in release_group() 573 atomic_inc(&group->refcount); in mlx4_ib_mcg_timeout_handler() 575 safe_atomic_dec(&group->refcount); in mlx4_ib_mcg_timeout_handler() 777 atomic_inc(&group->refcount); in search_relocate_mgid0_group() 865 atomic_inc(&group->refcount); in acquire_group() 873 atomic_inc(&group->refcount); /* for the request */ in queue_req() 874 atomic_inc(&group->refcount); /* for scheduling the work */ in queue_req() 879 safe_atomic_dec(&group->refcount); in queue_req() [all …]
|
/linux-4.1.27/drivers/media/common/siano/ |
D | smsdvb-debugfs.c | 39 struct kref refcount; member 341 kref_get(&debug_data->refcount); in smsdvb_stats_open() 357 debug_data = container_of(ref, struct smsdvb_debugfs, refcount); in smsdvb_debugfs_data_release() 382 kref_get(&debug_data->refcount); in smsdvb_stats_poll() 390 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_poll() 401 kref_get(&debug_data->refcount); in smsdvb_stats_read() 434 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_read() 447 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_release() 500 kref_init(&debug_data->refcount); in smsdvb_debugfs_create() 515 kref_put(&client->debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_debugfs_release()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | cq.c | 72 if (atomic_dec_and_test(&mcq->refcount)) in mlx4_cq_tasklet_cb() 94 atomic_inc(&cq->refcount); in mlx4_add_cq_to_tasklet() 125 atomic_inc(&cq->refcount); in mlx4_cq_event() 136 if (atomic_dec_and_test(&cq->refcount)) in mlx4_cq_event() 338 atomic_set(&cq->refcount, 1); in mlx4_cq_alloc() 377 if (atomic_dec_and_test(&cq->refcount)) in mlx4_cq_free()
|
D | srq.c | 52 atomic_inc(&srq->refcount); in mlx4_srq_event() 63 if (atomic_dec_and_test(&srq->refcount)) in mlx4_srq_event() 209 atomic_set(&srq->refcount, 1); in mlx4_srq_alloc() 238 if (atomic_dec_and_test(&srq->refcount)) in mlx4_srq_free()
|
D | icm.c | 148 icm->refcount = 0; in mlx4_alloc_icm() 259 ++table->icm[i]->refcount; in mlx4_table_get() 279 ++table->icm[i]->refcount; in mlx4_table_get() 295 if (--table->icm[i]->refcount == 0) { in mlx4_table_put() 432 ++table->icm[i]->refcount; in mlx4_init_icm_table()
|
D | icm.h | 59 int refcount; member
|
D | qp.c | 58 atomic_inc(&qp->refcount); in mlx4_qp_event() 69 if (atomic_dec_and_test(&qp->refcount)) in mlx4_qp_event() 403 atomic_set(&qp->refcount, 1); in mlx4_qp_alloc() 480 if (atomic_dec_and_test(&qp->refcount)) in mlx4_qp_free()
|
/linux-4.1.27/drivers/staging/comedi/ |
D | comedi_buf.c | 34 container_of(kref, struct comedi_buf_map, refcount); in comedi_buf_map_kref_release() 102 kref_init(&bm->refcount); in __comedi_buf_alloc() 154 kref_get(&bm->refcount); in comedi_buf_map_get() 160 return kref_put(&bm->refcount, comedi_buf_map_kref_release); in comedi_buf_map_put() 191 return bm && (atomic_read(&bm->refcount.refcount) > 1); in comedi_buf_is_mmapped()
|
D | comedidev.h | 105 struct kref refcount; member 277 struct kref refcount; member
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | base.c | 233 if (--vpgt->refcount[big]) in nvkm_vm_unmap_pgt() 271 if (unlikely(vpgt->refcount[big]++)) { in nvkm_vm_map_pgt() 311 if (likely(vpgt->refcount[big])) { in nvkm_vm_get() 312 vpgt->refcount[big]++; in nvkm_vm_get() 368 kref_init(&vm->refcount); in nvkm_vm_create() 450 struct nvkm_vm *vm = container_of(kref, typeof(*vm), refcount); in nvkm_vm_del() 470 kref_get(&ref->refcount); in nvkm_vm_ref() 475 kref_put(&(*ptr)->refcount, nvkm_vm_del); in nvkm_vm_ref()
|
D | nv04.c | 118 priv->vm->pgt[0].refcount[0] = 1; in nv04_mmu_ctor()
|
D | nv41.c | 124 priv->vm->pgt[0].refcount[0] = 1; in nv41_mmu_ctor()
|
D | nv44.c | 201 priv->vm->pgt[0].refcount[0] = 1; in nv44_mmu_ctor()
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
D | c2_cq.c | 57 atomic_inc(&cq->refcount); in c2_cq_get() 64 if (atomic_dec_and_test(&cq->refcount)) in c2_cq_put() 365 atomic_set(&cq->refcount, 1); in c2_init_cq() 401 atomic_dec(&cq->refcount); in c2_free_cq() 404 wait_event(cq->wait, !atomic_read(&cq->refcount)); in c2_free_cq()
|
D | c2_provider.h | 94 atomic_t refcount; member 111 atomic_t refcount; member
|
D | c2_provider.c | 207 atomic_inc(&qp->refcount); in c2_add_ref() 215 if (atomic_dec_and_test(&qp->refcount)) in c2_rem_ref() 227 (qp?atomic_read(&qp->refcount):0)); in c2_get_qp()
|
D | c2_qp.c | 506 atomic_set(&qp->refcount, 1); in c2_alloc_qp() 636 atomic_dec(&qp->refcount); in c2_free_qp() 637 wait_event(qp->wait, !atomic_read(&qp->refcount)); in c2_free_qp()
|
/linux-4.1.27/net/8021q/ |
D | vlan_core.c | 156 int refcount; member 243 vid_info->refcount++; in vlan_vid_add() 292 vid_info->refcount--; in vlan_vid_del() 293 if (vid_info->refcount == 0) { in vlan_vid_del()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 228 kref_init(&object->refcount); in nvif_object_init() 292 container_of(kref, typeof(*object), refcount); in nvif_object_put() 300 kref_get(&object->refcount); in nvif_object_ref() 302 kref_put(&(*pobject)->refcount, nvif_object_put); in nvif_object_ref()
|
/linux-4.1.27/fs/overlayfs/ |
D | readdir.c | 32 long refcount; member 177 WARN_ON(cache->refcount <= 0); in ovl_cache_put() 178 cache->refcount--; in ovl_cache_put() 179 if (!cache->refcount) { in ovl_cache_put() 338 cache->refcount++; in ovl_cache_get() 347 cache->refcount = 1; in ovl_cache_get()
|
/linux-4.1.27/include/media/ |
D | videobuf2-memops.h | 26 atomic_t *refcount; member
|
/linux-4.1.27/drivers/char/agp/ |
D | i460-agp.c | 78 int refcount; /* number of kernel pages using the large page */ member 386 lp->refcount = 0; in i460_alloc_large_page() 455 ++lp->refcount; in i460_insert_memory_large_io_page() 484 --lp->refcount; in i460_remove_memory_large_io_page() 488 if (lp->refcount == 0) { in i460_remove_memory_large_io_page()
|
D | intel-gtt.c | 77 int refcount; member 1355 intel_private.refcount++; in intel_gmch_probe() 1379 intel_private.refcount++; in intel_gmch_probe() 1430 if (--intel_private.refcount) in intel_gmch_remove()
|
/linux-4.1.27/fs/cifs/ |
D | file.c | 2085 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages() 2095 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages() 2119 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages() 2392 cifs_uncached_writedata_release(struct kref *refcount) in cifs_uncached_writedata_release() argument 2395 struct cifs_writedata *wdata = container_of(refcount, in cifs_uncached_writedata_release() 2396 struct cifs_writedata, refcount); in cifs_uncached_writedata_release() 2400 cifs_writedata_release(refcount); in cifs_uncached_writedata_release() 2419 kref_put(&wdata->refcount, cifs_uncached_writedata_release); in cifs_uncached_writev_complete() 2543 kref_put(&wdata->refcount, in cifs_write_from_iter() 2642 kref_put(&wdata->refcount, in cifs_user_writev() [all …]
|
D | cifsproto.h | 498 void cifs_readdata_release(struct kref *refcount); 507 void cifs_writedata_release(struct kref *refcount);
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
D | usnic_ib_sysfs.c | 83 if (atomic_read(&us_ibdev->vf_cnt.refcount) > 0) { in usnic_ib_show_config() 102 atomic_read(&us_ibdev->vf_cnt.refcount)); in usnic_ib_show_config() 150 atomic_read(&us_ibdev->vf_cnt.refcount)); in usnic_ib_show_max_vf()
|
/linux-4.1.27/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 43 atomic_t refcount; /* reference count */ member 80 atomic_inc(&c->refcount); in clusterip_config_get() 92 if (atomic_dec_and_test(&c->refcount)) in clusterip_config_put() 147 if (unlikely(!atomic_inc_not_zero(&c->refcount))) in clusterip_config_find_get() 185 atomic_set(&c->refcount, 1); in clusterip_config_init()
|
/linux-4.1.27/init/ |
D | version.c | 27 .refcount = ATOMIC_INIT(2),
|
/linux-4.1.27/drivers/rpmsg/ |
D | virtio_rpmsg_bus.c | 205 refcount); in __ept_release() 228 kref_init(&ept->refcount); in __rpmsg_create_ept() 260 kref_put(&ept->refcount, __ept_release); in __rpmsg_create_ept() 334 kref_put(&ept->refcount, __ept_release); in __rpmsg_destroy_ept() 811 kref_get(&ept->refcount); in rpmsg_recv_single() 826 kref_put(&ept->refcount, __ept_release); in rpmsg_recv_single()
|
/linux-4.1.27/fs/ |
D | direct-io.c | 124 unsigned long refcount; /* direct_io_worker() and bios */ member 298 remaining = --dio->refcount; in dio_bio_end_aio() 329 if (--dio->refcount == 1 && dio->waiter) in dio_bio_end_io() 393 dio->refcount++; in dio_bio_submit() 438 while (dio->refcount > 1 && dio->bio_list == NULL) { in dio_await_one() 1067 ret2 = --dio->refcount; in drop_refcount() 1227 dio->refcount = 1; in do_blockdev_direct_IO()
|
/linux-4.1.27/drivers/char/ipmi/ |
D | ipmi_msghandler.c | 102 struct kref refcount; member 315 struct kref refcount; member 554 ipmi_smi_t intf = container_of(ref, struct ipmi_smi, refcount); in intf_free() 583 kref_get(&intf->refcount); in ipmi_smi_watcher_register() 597 kref_put(&e->intf->refcount, intf_free); in ipmi_smi_watcher_register() 610 kref_put(&e->intf->refcount, intf_free); in ipmi_smi_watcher_register() 966 kref_get(&intf->refcount); in ipmi_create_user() 968 kref_init(&new_user->refcount); in ipmi_create_user() 1006 kref_put(&intf->refcount, intf_free); in ipmi_create_user() 1043 ipmi_user_t user = container_of(ref, struct ipmi_user, refcount); in free_user() [all …]
|
/linux-4.1.27/drivers/tty/ |
D | tty_ldisc.c | 74 new_ldisc->refcount = 0; in tty_register_ldisc() 102 if (tty_ldiscs[disc]->refcount) in tty_unregister_ldisc() 123 ldops->refcount++; in get_ldops() 136 ldops->refcount--; in put_ldops()
|
/linux-4.1.27/fs/ocfs2/ |
D | ocfs2_trace.h | 902 unsigned int clusters, unsigned int refcount), 903 TP_ARGS(blkno, index, cpos, clusters, refcount), 909 __field(unsigned int, refcount) 916 __entry->refcount = refcount; 919 __entry->cpos, __entry->clusters, __entry->refcount) 926 unsigned int count, unsigned int refcount), \ 927 TP_ARGS(blkno, index, cpos, count, refcount)) 933 unsigned int clusters, unsigned int refcount, 936 TP_ARGS(cpos, clusters, refcount, 941 __field(unsigned int, refcount) [all …]
|
/linux-4.1.27/drivers/acpi/apei/ |
D | erst.c | 442 int refcount; member 447 .refcount = 0, 474 erst_record_id_cache.refcount++; in erst_get_record_id_begin() 565 BUG_ON(!erst_record_id_cache.refcount); in erst_get_record_id_next() 606 if (erst_record_id_cache.refcount) in __erst_record_id_cache_compact() 630 erst_record_id_cache.refcount--; in erst_get_record_id_end() 631 BUG_ON(erst_record_id_cache.refcount < 0); in erst_get_record_id_end()
|
/linux-4.1.27/drivers/block/zram/ |
D | zram_drv.h | 115 atomic_t refcount; /* refcount for zram_meta */ member
|
D | zram_drv.c | 399 if (atomic_inc_not_zero(&zram->refcount)) in zram_meta_get() 406 atomic_dec(&zram->refcount); in zram_meta_put() 802 wait_event(zram->io_done, atomic_read(&zram->refcount) == 0); in zram_reset_device() 852 atomic_set(&zram->refcount, 1); in disksize_store()
|
/linux-4.1.27/security/apparmor/include/ |
D | apparmor.h | 83 return atomic_inc_not_zero(&kref->refcount); in kref_get_not0()
|
/linux-4.1.27/fs/ocfs2/dlm/ |
D | dlmdebug.c | 84 atomic_read(&lock->lock_refs.refcount), in __dlm_print_lock() 109 res->last_used, atomic_read(&res->refs.refcount), in __dlm_print_one_lock_resource() 301 atomic_read(&mle->mle_refs.refcount)); in dump_mle() 517 atomic_read(&lock->lock_refs.refcount)); in dump_lock() 544 atomic_read(&res->refs.refcount)); in dump_lockres() 800 atomic_read(&dlm->dlm_refs.refcount)); in debug_state_print()
|
/linux-4.1.27/drivers/s390/crypto/ |
D | zcrypt_api.h | 104 struct kref refcount; /* device refcounting */ member
|
D | zcrypt_api.c | 201 container_of(kref, struct zcrypt_device, refcount); in zcrypt_device_release() 207 kref_get(&zdev->refcount); in zcrypt_device_get() 213 return kref_put(&zdev->refcount, zcrypt_device_release); in zcrypt_device_put() 263 kref_init(&zdev->refcount); in zcrypt_device_register()
|
/linux-4.1.27/fs/f2fs/ |
D | data.c | 406 atomic_inc(&et->refcount); in __find_extent_tree() 428 atomic_set(&et->refcount, 0); in __grab_extent_tree() 432 atomic_inc(&et->refcount); in __grab_extent_tree() 603 atomic_dec(&et->refcount); in f2fs_init_extent_tree() 634 atomic_dec(&et->refcount); in f2fs_lookup_extent_tree() 717 atomic_dec(&et->refcount); in f2fs_update_extent_tree() 763 atomic_dec(&et->refcount); in f2fs_preserve_extent_tree() 802 atomic_inc(&et->refcount); in f2fs_shrink_extent_tree() 806 atomic_dec(&et->refcount); in f2fs_shrink_extent_tree() 816 if (!atomic_read(&et->refcount) && !et->count) { in f2fs_shrink_extent_tree() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | pad.c | 58 atomic_inc(&nv_object(pad)->refcount); in nvkm_i2c_pad_create_()
|
/linux-4.1.27/drivers/gpu/drm/msm/ |
D | msm_fb.c | 80 fb->refcount.refcount.counter, fb->base.id); in msm_framebuffer_describe()
|
D | msm_gem.c | 489 obj->name, obj->refcount.refcount.counter, in msm_gem_describe()
|
/linux-4.1.27/net/wireless/ |
D | scan.c | 90 bss->refcount++; in bss_ref_get() 95 bss->refcount++; in bss_ref_get() 109 hbss->refcount--; in bss_ref_put() 110 if (hbss->refcount == 0) in bss_ref_put() 113 bss->refcount--; in bss_ref_put() 114 if (bss->refcount == 0) in bss_ref_put() 737 new->refcount += bss->refcount; in cfg80211_combine_bsses() 864 new->refcount = 1; in cfg80211_bss_update() 876 hidden->refcount++; in cfg80211_bss_update()
|
/linux-4.1.27/net/ipv4/ |
D | cipso_ipv4.c | 338 atomic_inc(&entry->lsm_data->refcount); in cipso_v4_cache_check() 405 atomic_inc(&secattr->cache->refcount); in cipso_v4_cache_add() 448 if (iter->doi == doi && atomic_read(&iter->refcount)) in cipso_v4_doi_search() 502 atomic_set(&doi_def->refcount, 1); in cipso_v4_doi_add() 606 if (!atomic_dec_and_test(&doi_def->refcount)) { in cipso_v4_doi_remove() 649 if (!atomic_inc_not_zero(&doi_def->refcount)) in cipso_v4_doi_getdef() 670 if (!atomic_dec_and_test(&doi_def->refcount)) in cipso_v4_doi_putdef() 703 if (atomic_read(&iter_doi->refcount) > 0) { in cipso_v4_doi_walk()
|
/linux-4.1.27/drivers/dma-buf/ |
D | fence.c | 175 container_of(kref, struct fence, refcount); in fence_release() 424 kref_init(&fence->refcount); in fence_init()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nouveau_nvif.c | 77 atomic_set(&client->refcount, 1); in nvkm_client_driver_fini()
|
D | nouveau_fence.c | 530 WARN_ON(atomic_read(&fence->base.refcount.refcount) <= 1); in nouveau_fence_no_signaling()
|
/linux-4.1.27/drivers/vhost/ |
D | net.c | 80 atomic_t refcount; member 132 atomic_set(&ubufs->refcount, 1); in vhost_net_ubuf_alloc() 140 int r = atomic_sub_return(1, &ubufs->refcount); in vhost_net_ubuf_put() 149 wait_event(ubufs->wait, !atomic_read(&ubufs->refcount)); in vhost_net_ubuf_put_and_wait() 386 atomic_inc(&ubufs->refcount); in handle_tx() 782 atomic_set(&n->vqs[VHOST_NET_VQ_TX].ubufs->refcount, 1); in vhost_net_flush()
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
D | orinoco_usb.c | 271 atomic_t refcount; member 301 if (!atomic_dec_and_test(&ctx->refcount)) in ezusb_request_context_put() 331 atomic_inc(&ctx->refcount); in ezusb_request_timerfn() 364 atomic_set(&ctx->refcount, 1); in ezusb_alloc_ctx() 473 atomic_inc(&ctx->refcount); in ezusb_req_queue_run() 511 atomic_inc(&ctx->refcount); in ezusb_req_enqueue_run() 1468 atomic_inc(&ctx->refcount); in ezusb_delete()
|
/linux-4.1.27/include/linux/mlx5/ |
D | cq.h | 45 atomic_t refcount; member
|
D | driver.h | 394 atomic_t refcount; member 406 atomic_t refcount; member
|
/linux-4.1.27/include/drm/ttm/ |
D | ttm_object.h | 131 struct kref refcount; member
|
D | ttm_bo_driver.h | 855 WARN_ON(!atomic_read(&bo->kref.refcount)); in ttm_bo_reserve() 880 WARN_ON(!atomic_read(&bo->kref.refcount)); in ttm_bo_reserve_slowpath()
|
/linux-4.1.27/drivers/pci/hotplug/ |
D | acpiphp.h | 122 unsigned int refcount; member
|
D | acpiphp_glue.c | 81 context->refcount = 1; in acpiphp_init_context() 102 context->refcount++; in acpiphp_get_context() 116 if (--context->refcount) in acpiphp_put_context()
|
/linux-4.1.27/ipc/ |
D | util.c | 445 atomic_set(&out->refcount, 1); in ipc_rcu_alloc() 453 return atomic_inc_not_zero(&p->refcount); in ipc_rcu_getref() 460 if (!atomic_dec_and_test(&p->refcount)) in ipc_rcu_putref()
|
D | util.h | 52 atomic_t refcount; member
|
/linux-4.1.27/drivers/acpi/ |
D | osl.c | 96 unsigned long refcount; member 318 map->refcount++; in acpi_os_get_iomem() 390 map->refcount++; in acpi_os_map_iomem() 413 map->refcount = 1; in acpi_os_map_iomem() 432 if (!--map->refcount) in acpi_os_drop_map_ref() 438 if (!map->refcount) { in acpi_os_map_cleanup()
|
/linux-4.1.27/drivers/video/fbdev/vermilion/ |
D | vermilion.h | 202 atomic_t refcount; member
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 125 atomic_set(&cqp_request->refcount, 2); in nes_alloc_mw() 182 atomic_set(&cqp_request->refcount, 2); in nes_dealloc_mw() 349 atomic_set(&cqp_request->refcount, 2); in alloc_fast_reg_mr() 1360 atomic_set(&cqp_request->refcount, 2); in nes_create_qp() 1493 nesqp->hwqp.qp_id, cm_id, atomic_read(&nesqp->refcount)); in nes_destroy_qp() 1738 atomic_set(&cqp_request->refcount, 2); in nes_create_cq() 1842 atomic_set(&cqp_request->refcount, 2); in nes_destroy_cq() 2054 atomic_set(&cqp_request->refcount, 2); in nes_reg_mr() 2693 atomic_set(&cqp_request->refcount, 2); in nes_dereg_mr() 2860 nesqp->hwqp.qp_id, atomic_read(&nesqp->refcount)); in nes_hw_modify_qp() [all …]
|
D | nes_verbs.h | 153 atomic_t refcount; member
|
D | nes.c | 272 ibqp->qp_num, atomic_read(&nesqp->refcount)); in nes_add_ref() 273 atomic_inc(&nesqp->refcount); in nes_add_ref() 321 if (atomic_read(&nesqp->refcount) == 0) { in nes_rem_ref() 327 if (atomic_dec_and_test(&nesqp->refcount)) { in nes_rem_ref()
|
/linux-4.1.27/net/sunrpc/ |
D | svcauth.c | 130 if (atomic_dec_and_lock(&dom->ref.refcount, &auth_domain_lock)) { in auth_domain_put()
|
/linux-4.1.27/drivers/usb/atm/ |
D | usbatm.h | 156 struct kref refcount; member
|
D | usbatm.c | 708 struct usbatm_data *instance = container_of(kref, struct usbatm_data, refcount); in usbatm_destroy_instance() 718 kref_get(&instance->refcount); in usbatm_get_instance() 723 kref_put(&instance->refcount, usbatm_destroy_instance); in usbatm_put_instance() 1076 kref_init(&instance->refcount); /* dropped in usbatm_usb_disconnect */ in usbatm_usb_probe()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/ |
D | object.h | 9 struct kref refcount; member
|
/linux-4.1.27/Documentation/filesystems/ |
D | path-lookup.txt | 177 In refcount based dcache lookups, d_lock is used to serialise access to 199 lookup which does not increment the refcount on the dentry or write to 270 | children:NULL | its refcount because we're holding d_lock. 273 Taking a refcount on a dentry from rcu-walk mode, by taking its d_lock, 274 re-checking its d_seq, and then incrementing its refcount is called 312 verify d_seq, increment refcount). 330 refcount on final dentry.
|
/linux-4.1.27/net/ax25/ |
D | ax25_uid.c | 111 atomic_set(&ax25_uid->refcount, 1); in ax25_uid_ioctl()
|
/linux-4.1.27/drivers/s390/scsi/ |
D | zfcp_fc.h | 184 atomic_t refcount; member
|
D | zfcp_fc.c | 164 atomic_inc(&wka_port->refcount); in zfcp_fc_wka_port_get() 177 if ((atomic_read(&wka_port->refcount) != 0) || in zfcp_fc_wka_port_offline() 192 if (atomic_dec_return(&wka_port->refcount) != 0) in zfcp_fc_wka_port_put() 207 atomic_set(&wka_port->refcount, 0); in zfcp_fc_wka_port_init()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | conn.c | 97 atomic_inc(&nv_object(outp->conn)->refcount); in nvkm_connector_create_()
|
/linux-4.1.27/drivers/infiniband/ulp/isert/ |
D | ib_isert.h | 210 int refcount; member
|
/linux-4.1.27/kernel/events/ |
D | internal.h | 12 atomic_t refcount; member
|
D | ring_buffer.c | 242 atomic_set(&rb->refcount, 1); in ring_buffer_init() 251 if (!atomic_dec_and_test(&rb->refcount)) in ring_buffer_put_async()
|
/linux-4.1.27/net/bluetooth/ |
D | amp.c | 26 atomic_read(&ctrl->kref.refcount)); in amp_ctrl_get() 44 atomic_read(&ctrl->kref.refcount)); in amp_ctrl_put()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
D | lpfc_hbadisc.c | 3445 atomic_read(&ndlp->kref.refcount), in lpfc_mbx_cmpl_reg_login() 3866 atomic_read(&ndlp->kref.refcount), in lpfc_mbx_cmpl_ns_reg_login() 4235 atomic_read(&ndlp->kref.refcount)); in lpfc_enable_node() 4245 atomic_read(&ndlp->kref.refcount)); in lpfc_enable_node() 4269 atomic_read(&ndlp->kref.refcount), in lpfc_enable_node() 4682 atomic_read(&ndlp->kref.refcount)); in lpfc_cleanup_node() 4689 atomic_read(&ndlp->kref.refcount)); in lpfc_cleanup_node() 4777 atomic_read(&ndlp->kref.refcount), in lpfc_nlp_remove() 5523 atomic_read(&ndlp->kref.refcount), in lpfc_mbx_cmpl_fdmi_reg_login() 5694 atomic_read(&ndlp->kref.refcount), in lpfc_nlp_init() [all …]
|
/linux-4.1.27/drivers/infiniband/ulp/iser/ |
D | iser_verbs.c | 554 device->refcount++; in iser_device_find_by_ib_device() 564 device->refcount--; in iser_device_try_release() 565 iser_info("device %p refcount %d\n", device, device->refcount); in iser_device_try_release() 566 if (!device->refcount) { in iser_device_try_release()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_g2d.c | 197 atomic_t refcount; member 373 atomic_dec(&g2d_userptr->refcount); in g2d_userptr_put_dma_addr() 375 if (atomic_read(&g2d_userptr->refcount) > 0) in g2d_userptr_put_dma_addr() 433 atomic_inc(&g2d_userptr->refcount); in g2d_userptr_get_dma_addr() 458 atomic_set(&g2d_userptr->refcount, 1); in g2d_userptr_get_dma_addr()
|
/linux-4.1.27/fs/exofs/ |
D | sys.c | 125 (int)atomic_read(&k_name->kref.refcount)); in exofs_sysfs_dbg_print()
|
/linux-4.1.27/drivers/misc/mei/ |
D | debugfs.c | 69 atomic_read(&me_cl->refcnt.refcount)); in mei_dbgfs_read_meclients()
|
/linux-4.1.27/net/sunrpc/xprtrdma/ |
D | svc_rdma_transport.c | 254 if (atomic_read(&xprt->sc_xprt.xpt_ref.refcount)==0) in rq_comp_handler() 435 if (atomic_read(&xprt->sc_xprt.xpt_ref.refcount)==0) in sq_comp_handler() 1134 if (atomic_read(&rdma->sc_xprt.xpt_ref.refcount) != 0) in __svc_rdma_free() 1136 atomic_read(&rdma->sc_xprt.xpt_ref.refcount)); in __svc_rdma_free()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_state.c | 2007 if ((dev_priv->surfaces[i].refcount != 0) && in alloc_surface() 2028 if ((dev_priv->surfaces[i].refcount == 1) && in alloc_surface() 2037 dev_priv->surfaces[i].refcount++; in alloc_surface() 2044 if ((dev_priv->surfaces[i].refcount == 1) && in alloc_surface() 2053 dev_priv->surfaces[i].refcount++; in alloc_surface() 2062 if (dev_priv->surfaces[i].refcount == 0) { in alloc_surface() 2069 dev_priv->surfaces[i].refcount = 1; in alloc_surface() 2104 dev_priv->surfaces[s->surface_index].refcount--; in free_surface() 2106 refcount == 0) in free_surface()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
D | gf100.c | 116 vm->pgt[0].refcount[0] = 1; in gf100_bar_ctor_vm()
|
/linux-4.1.27/include/linux/sunrpc/ |
D | cache.h | 197 if (atomic_read(&h->ref.refcount) <= 2 && in cache_put()
|
/linux-4.1.27/net/netrom/ |
D | nr_route.c | 153 atomic_set(&nr_neigh->refcount, 1); in nr_add_node() 188 atomic_set(&nr_node->refcount, 1); in nr_add_node() 435 atomic_set(&nr_neigh->refcount, 1); in nr_add_neigh()
|
/linux-4.1.27/include/rdma/ |
D | ib_addr.h | 52 atomic_t refcount; member
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | object.h | 20 atomic_t refcount; member
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
D | iw_cxgb4.h | 663 ep, atomic_read(&((ep)->kref.refcount))); \ 664 WARN_ON(atomic_read(&((ep)->kref.refcount)) < 1); \ 670 ep, atomic_read(&((ep)->kref.refcount))); \
|
/linux-4.1.27/drivers/scsi/cxgbi/ |
D | libcxgbi.h | 377 fn, csk, atomic_read(&csk->refcnt.refcount)); in __cxgbi_sock_put() 386 fn, csk, atomic_read(&csk->refcnt.refcount)); in __cxgbi_sock_get()
|
/linux-4.1.27/drivers/scsi/ |
D | hpsa.c | 4572 int refcount; in hpsa_eh_abort_handler() local 4607 refcount = atomic_inc_return(&abort->refcount); in hpsa_eh_abort_handler() 4608 if (refcount == 1) { /* Command is done already. */ in hpsa_eh_abort_handler() 4644 refcount = atomic_read(&abort->refcount); in hpsa_eh_abort_handler() 4645 if (refcount < 2) { in hpsa_eh_abort_handler() 4671 int refcount; in cmd_alloc() local 4694 refcount = atomic_inc_return(&c->refcount); in cmd_alloc() 4695 if (unlikely(refcount > 1)) { in cmd_alloc() 4707 memset(c, 0, offsetof(struct CommandList, refcount)); in cmd_alloc() 4728 if (atomic_dec_and_test(&c->refcount)) { in cmd_free() [all …]
|
/linux-4.1.27/fs/xfs/ |
D | xfs_trace.h | 103 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, 105 TP_ARGS(mp, agno, refcount, caller_ip), 109 __field(int, refcount) 115 __entry->refcount = refcount; 121 __entry->refcount, 127 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \ 129 TP_ARGS(mp, agno, refcount, caller_ip))
|
/linux-4.1.27/Documentation/vm/ |
D | page_migration | 86 already been removed from the LRU via isolate_lru_page() and the refcount 112 7. The refcount of the page is examined and we back out if references remain
|