/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_device.c | 766 int idx, refcount; local 787 return 1; /* here, refcount is guaranteed to be 1 */ 804 refcount = atomic_read(oct->adapter_refcount); 806 dev_dbg(&oct->pci_dev->dev, "%s: %02x:%02x:%d refcount %u", __func__, 807 oct->loc.bus, oct->loc.dev, oct->loc.func, refcount); 809 return refcount; 819 int refcount; local 822 refcount = atomic_read(oct->adapter_refcount); 824 dev_dbg(&oct->pci_dev->dev, "%s: %04d:%02d:%d refcount %u", __func__, 825 oct->loc.bus, oct->loc.dev, oct->loc.func, refcount); [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ctx.c | 333 kref_init(&ctx->refcount); 409 struct amdgpu_ctx *ctx = container_of(ref, struct amdgpu_ctx, refcount); 511 ctx = container_of(ref, struct amdgpu_ctx, refcount); 532 kref_put(&ctx->refcount, amdgpu_ctx_do_release); 735 kref_get(&ctx->refcount); 745 kref_put(&ctx->refcount, amdgpu_ctx_do_release); 923 if (kref_read(&ctx->refcount) != 1) { 953 if (kref_put(&ctx->refcount, amdgpu_ctx_fini) != 1)
|
H A D | amdgpu_reset.c | 116 refcount); 135 kref_init(&reset_domain->refcount);
|
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-tmc.h | 14 #include <linux/refcount.h> 145 * refcount ; Number of sources currently using this etr_buf. 156 refcount_t refcount; member in struct:etr_buf
|
/linux-master/fs/smb/server/mgmt/ |
H A D | share_config.c | 71 if (!atomic_inc_not_zero(&share->refcount)) 156 atomic_set(&share->refcount, 1);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | pci_irq.c | 34 int refcount; member in struct:mlx5_irq 192 irq->refcount--; 193 if (!irq->refcount) { 204 return irq->refcount; 210 if (WARN_ON_ONCE(!irq->refcount)) 212 irq->refcount++; 311 irq->refcount = 1; 506 irq->refcount / MLX5_EQ_REFS_PER_IRQ);
|
/linux-master/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 267 srq->refcount = 1; 332 c = srq->refcount; 356 --srq->refcount; 439 ++srq->refcount; 457 if (!--srq->refcount)
|
/linux-master/fs/ocfs2/ |
H A D | ocfs2_trace.h | 905 unsigned int clusters, unsigned int refcount), 906 TP_ARGS(blkno, index, cpos, clusters, refcount), 912 __field(unsigned int, refcount) 919 __entry->refcount = refcount; 922 __entry->cpos, __entry->clusters, __entry->refcount) 929 unsigned int count, unsigned int refcount), \ 930 TP_ARGS(blkno, index, cpos, count, refcount)) 936 unsigned int clusters, unsigned int refcount, 939 TP_ARGS(cpos, clusters, refcount, [all...] |
/linux-master/kernel/futex/ |
H A D | pi.c | 28 refcount_set(&pi_state->refcount, 1); 71 WARN_ON_ONCE(!refcount_inc_not_zero(&pi_state->refcount)); 83 if (!refcount_dec_and_test(&pi_state->refcount)) 105 * refcount is at 0 - put it back to 1. 108 refcount_set(&pi_state->refcount, 1); 185 * pi_state->refcount: 229 WARN_ON(!refcount_read(&pi_state->refcount)); 456 * FUTEX_STATE_DEAD and then drop the refcount. This is 512 * a refcount on the exiting task on return and the caller needs to drop it
|
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_encoder_phys_vid.c | 364 int refcount; local 367 refcount = phys_enc->vblank_refcount; 374 if (!enable && refcount == 0) { 380 refcount); 404 refcount);
|
H A D | dpu_encoder_phys_cmd.c | 225 int refcount; local 233 refcount = phys_enc->vblank_refcount; 240 if (!enable && refcount == 0) { 247 enable ? "true" : "false", refcount); 271 enable ? "true" : "false", refcount);
|
/linux-master/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_stream.c | 149 kref_get(&stream->refcount); 154 struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount); 163 kref_put(&stream->refcount, dc_stream_free); 182 kref_init(&stream->refcount); 213 kref_init(&new_stream->refcount);
|
/linux-master/drivers/perf/ |
H A D | arm_dmc620_pmu.c | 29 #include <linux/refcount.h> 81 refcount_t refcount; member in struct:dmc620_pmu_irq 432 if (irq->irq_num == irq_num && refcount_inc_not_zero(&irq->refcount)) 443 refcount_set(&irq->refcount, 1); 499 if (!refcount_dec_and_test(&irq->refcount)) {
|
/linux-master/drivers/char/ipmi/ |
H A D | ipmi_msghandler.c | 190 struct kref refcount; member in struct:ipmi_user 445 struct kref refcount; member in struct:ipmi_smi 733 struct ipmi_smi *intf = container_of(ref, struct ipmi_smi, refcount); 1263 /* Note that each existing user holds a refcount to the interface. */ 1264 kref_get(&intf->refcount); 1267 kref_init(&new_user->refcount); 1320 struct ipmi_user *user = container_of(ref, struct ipmi_user, refcount); 1397 kref_put(&intf->refcount, intf_free); 1405 kref_put(&user->refcount, free_user); 1637 kref_get(&user->refcount); [all...] |
/linux-master/net/batman-adv/ |
H A D | bridge_loop_avoidance.c | 154 refcount); 169 kref_put(&backbone_gw->refcount, batadv_backbone_gw_release); 182 claim = container_of(ref, struct batadv_bla_claim, refcount); 207 kref_put(&claim->refcount, batadv_claim_release); 238 if (!kref_get_unless_zero(&claim->refcount)) 282 if (!kref_get_unless_zero(&backbone_gw->refcount)) 521 kref_init(&entry->refcount); 523 kref_get(&entry->refcount); 710 kref_get(&backbone_gw->refcount); 712 kref_init(&claim->refcount); [all...] |
/linux-master/drivers/block/rnbd/ |
H A D | rnbd-clt.c | 38 return refcount_inc_not_zero(&sess->refcount); 47 if (refcount_dec_and_test(&sess->refcount)) 55 if (!refcount_dec_and_test(&dev->refcount)) 68 return refcount_inc_not_zero(&dev->refcount); 344 atomic_set(&iu->refcount, 2); 359 if (atomic_dec_and_test(&iu->refcount)) { 792 refcount_set(&sess->refcount, 1); 1450 refcount_set(&dev->refcount, 1); 1675 int refcount, ret = 0; local 1684 refcount [all...] |
/linux-master/drivers/acpi/apei/ |
H A D | erst.c | 459 int refcount; member in struct:erst_record_id_cache 464 .refcount = 0, 491 erst_record_id_cache.refcount++; 576 BUG_ON(!erst_record_id_cache.refcount); 617 if (erst_record_id_cache.refcount) 641 erst_record_id_cache.refcount--; 642 BUG_ON(erst_record_id_cache.refcount < 0);
|
/linux-master/net/ipv6/ |
H A D | calipso.c | 219 refcount_inc(&entry->lsm_data->refcount); 288 refcount_inc(&secattr->cache->refcount); 330 if (iter->doi == doi && refcount_read(&iter->refcount)) 362 refcount_set(&doi_def->refcount, 1); 486 if (!refcount_inc_not_zero(&doi_def->refcount)) 507 if (!refcount_dec_and_test(&doi_def->refcount)) 538 if (refcount_read(&iter_doi->refcount) > 0) {
|
/linux-master/fs/ |
H A D | direct-io.c | 135 unsigned long refcount; /* direct_io_worker() and bios */ member in struct:dio 346 remaining = --dio->refcount; 389 if (--dio->refcount == 1 && dio->waiter) 435 dio->refcount++; 464 * all bios have been issued so that dio->refcount can only decrease. This 480 while (dio->refcount > 1 && dio->bio_list == NULL) { 524 * all bios have been issued so that the refcount can only decrease. 719 * dio, and for dropping the refcount which came from that presence. 1076 ret2 = --dio->refcount; 1233 dio->refcount [all...] |
/linux-master/drivers/rpmsg/ |
H A D | qcom_glink_native.c | 132 * @refcount: refcount for the channel object 158 struct kref refcount; member in struct:glink_channel 244 kref_init(&channel->refcount); 252 refcount); 451 * Will return with refcount held, regardless of outcome. 467 kref_get(&channel->refcount); 1197 kref_put(&channel->refcount, qcom_glink_channel_release); 1199 kref_put(&channel->refcount, qcom_glink_channel_release); 1594 kref_put(&channel->refcount, qcom_glink_channel_releas [all...] |
/linux-master/include/linux/ |
H A D | rmap.h | 35 * The refcount is taken on an anon_vma when there is no 41 atomic_t refcount; member in struct:anon_vma 108 atomic_inc(&anon_vma->refcount); 115 if (atomic_dec_and_test(&anon_vma->refcount))
|
/linux-master/include/media/ |
H A D | media-request.h | 18 #include <linux/refcount.h> 188 * when the refcount reaches 0.
|
/linux-master/net/ax25/ |
H A D | ax25_uid.c | 107 refcount_set(&ax25_uid->refcount, 1);
|
/linux-master/drivers/usb/atm/ |
H A D | usbatm.h | 142 struct kref refcount; member in struct:usbatm_data
|
/linux-master/include/rdma/ |
H A D | rdmavt_qp.h | 371 atomic_t refcount ____cacheline_aligned_in_smp; 523 atomic_t refcount; member in struct:rvt_mcast 567 atomic_inc(&qp->refcount); 576 if (qp && atomic_dec_and_test(&qp->refcount))
|