Home
last modified time | relevance | path

Searched refs:use_count (Results 1 – 25 of 171) sorted by relevance

1234567

/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_domain.c54 domain->use_count = 0; in mali_pm_domain_create()
135 if (0 == domain->use_count) { in mali_pm_domain_ref_get()
139 ++domain->use_count; in mali_pm_domain_ref_get()
140 MALI_DEBUG_PRINT(4, ("PM domain %p: ref_get, use_count => %u\n", domain, domain->use_count)); in mali_pm_domain_ref_get()
150 --domain->use_count; in mali_pm_domain_ref_put()
151 MALI_DEBUG_PRINT(4, ("PM domain %p: ref_put, use_count => %u\n", domain, domain->use_count)); in mali_pm_domain_ref_put()
153 if (0 == domain->use_count) { in mali_pm_domain_ref_put()
162 return (0 == domain->use_count ? domain->pmu_mask : 0); in mali_pm_domain_ref_put()
201 if (0 != mali_pm_domains[i]->use_count) { in mali_pm_domain_all_unused()
H A Dmali_pm_domain.h24 s32 use_count; member
87 return domain->use_count; in mali_pm_domain_get_use_count()
/OK3568_Linux_fs/kernel/arch/arm/plat-pxa/
H A Dssp.c45 if (ssp->port_id == port && ssp->use_count == 0) { in pxa_ssp_request()
46 ssp->use_count++; in pxa_ssp_request()
69 if (ssp->of_node == of_node && ssp->use_count == 0) { in pxa_ssp_request_of()
70 ssp->use_count++; in pxa_ssp_request_of()
88 if (ssp->use_count) { in pxa_ssp_free()
89 ssp->use_count--; in pxa_ssp_free()
169 ssp->use_count = 0; in pxa_ssp_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/ipu-v3/
H A Dipu-dmfc.c98 int use_count; member
106 if (!priv->use_count) in ipu_dmfc_enable_channel()
109 priv->use_count++; in ipu_dmfc_enable_channel()
123 priv->use_count--; in ipu_dmfc_disable_channel()
125 if (!priv->use_count) in ipu_dmfc_disable_channel()
128 if (priv->use_count < 0) in ipu_dmfc_disable_channel()
129 priv->use_count = 0; in ipu_dmfc_disable_channel()
H A Dipu-smfc.c28 int use_count; member
103 if (!priv->use_count) in ipu_smfc_enable()
106 priv->use_count++; in ipu_smfc_enable()
121 priv->use_count--; in ipu_smfc_disable()
123 if (!priv->use_count) in ipu_smfc_disable()
126 if (priv->use_count < 0) in ipu_smfc_disable()
127 priv->use_count = 0; in ipu_smfc_disable()
H A Dipu-dp.c65 int use_count; member
216 if (!priv->use_count) in ipu_dp_enable()
219 priv->use_count++; in ipu_dp_enable()
285 priv->use_count--; in ipu_dp_disable()
287 if (!priv->use_count) in ipu_dp_disable()
290 if (priv->use_count < 0) in ipu_dp_disable()
291 priv->use_count = 0; in ipu_dp_disable()
H A Dipu-vdi.c13 int use_count; member
170 if (!vdi->use_count) in ipu_vdi_enable()
173 vdi->use_count++; in ipu_vdi_enable()
187 if (vdi->use_count) { in ipu_vdi_disable()
188 if (!--vdi->use_count) in ipu_vdi_disable()
H A Dipu-dc.c106 int use_count; member
232 if (!priv->use_count) in ipu_dc_enable()
235 priv->use_count++; in ipu_dc_enable()
267 priv->use_count--; in ipu_dc_disable()
268 if (!priv->use_count) in ipu_dc_disable()
271 if (priv->use_count < 0) in ipu_dc_disable()
272 priv->use_count = 0; in ipu_dc_disable()
H A Dipu-ic.c159 int use_count; member
619 if (!priv->use_count) in ipu_ic_enable()
622 priv->use_count++; in ipu_ic_enable()
640 priv->use_count--; in ipu_ic_disable()
642 if (!priv->use_count) in ipu_ic_disable()
645 if (priv->use_count < 0) in ipu_ic_disable()
646 priv->use_count = 0; in ipu_ic_disable()
/OK3568_Linux_fs/kernel/sound/soc/sh/
H A Dmigor.c26 static unsigned int use_count; variable
74 use_count++; in migor_hw_params()
84 if (use_count) { in migor_hw_free()
85 use_count--; in migor_hw_free()
87 if (!use_count) in migor_hw_free()
/OK3568_Linux_fs/kernel/drivers/media/v4l2-core/
H A Dv4l2-mc.c443 use += entity->use_count; in pipeline_pm_use_count()
468 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
474 entity->use_count += change; in pipeline_pm_power_one()
475 WARN_ON(entity->use_count < 0); in pipeline_pm_power_one()
477 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
530 entity->use_count += change; in v4l2_pipeline_pm_use()
531 WARN_ON(entity->use_count < 0); in v4l2_pipeline_pm_use()
536 entity->use_count -= change; in v4l2_pipeline_pm_use()
H A Dv4l2-clk.c66 atomic_inc(&clk->use_count); in v4l2_clk_get()
90 atomic_dec(&clk->use_count); in v4l2_clk_put()
246 atomic_set(&clk->use_count, 0); in v4l2_clk_register()
270 if (WARN(atomic_read(&clk->use_count), in v4l2_clk_unregister()
/OK3568_Linux_fs/u-boot/drivers/irq/
H A Dvirq.c41 int use_count; /* enable count */ member
278 desc->use_count = 0; in virq_add_chip()
380 if (desc->use_count == 0) in virq_enable()
382 desc->use_count++; in virq_enable()
398 if (desc->use_count <= 0) in virq_disable()
401 if (desc->use_count == 1) in virq_disable()
403 desc->use_count--; in virq_disable()
H A Dirq-gpio.c278 if (bank->use_count == 0) in gpio_irq_enable()
280 bank->use_count++; in gpio_irq_enable()
293 if (bank->use_count <= 0) in gpio_irq_disable()
302 if (bank->use_count == 1) in gpio_irq_disable()
304 bank->use_count--; in gpio_irq_disable()
H A Dirq-gpio-v2.c291 if (bank->use_count == 0) in gpio_irq_enable()
293 bank->use_count++; in gpio_irq_enable()
306 if (bank->use_count <= 0) in gpio_irq_disable()
315 if (bank->use_count == 1) in gpio_irq_disable()
317 bank->use_count--; in gpio_irq_disable()
H A Dirq-internal.h64 int use_count; member
74 .use_count = 0 \
/OK3568_Linux_fs/kernel/drivers/misc/sgi-xp/
H A Dxpnet.c97 atomic_t use_count; member
353 if (atomic_dec_return(&queued_msg->use_count) == 0) { in xpnet_send_completed()
394 atomic_inc(&queued_msg->use_count); in xpnet_send()
399 atomic_dec(&queued_msg->use_count); in xpnet_send()
461 atomic_set(&queued_msg->use_count, 1); in xpnet_dev_hard_start_xmit()
488 if (atomic_dec_return(&queued_msg->use_count) == 0) { in xpnet_dev_hard_start_xmit()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/smart_ptr/detail/
H A Dshared_count.hpp476 long use_count() const // nothrow in use_count() function in boost::detail::shared_count
478 return pi_ != 0? pi_->use_count(): 0; in use_count()
483 return use_count() == 1; in unique()
612 long use_count() const // nothrow in use_count() function in boost::detail::weak_count
614 return pi_ != 0? pi_->use_count(): 0; in use_count()
/OK3568_Linux_fs/kernel/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_debugfs.c121 int use_count; in debugfs_usecount_show() local
123 use_count = vchiq_instance_get_use_count(instance); in debugfs_usecount_show()
124 seq_printf(f, "%d\n", use_count); in debugfs_usecount_show()
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-spear-spics.c52 unsigned long use_count; member
99 if (!spics->use_count++) { in spics_request()
114 if (!--spics->use_count) { in spics_free()
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/
H A Dmlan_usb.c574 t_u8 i, use_count; in wlan_usb_copy_buf_to_aggr() local
585 pmbuf_curr->use_count, pusb_tx_aggr->aggr_len); in wlan_usb_copy_buf_to_aggr()
586 use_count = pmbuf_curr->use_count; in wlan_usb_copy_buf_to_aggr()
587 for (i = 0; i <= use_count; i++) { in wlan_usb_copy_buf_to_aggr()
591 if (i == use_count) in wlan_usb_copy_buf_to_aggr()
632 pmbuf_aggr->use_count++; in wlan_usb_tx_link_buf_to_aggr()
655 if (pusb_tx_aggr->pmbuf_aggr->use_count) { in wlan_usb_tx_send_aggr()
662 pusb_tx_aggr->pmbuf_aggr->use_count; in wlan_usb_tx_send_aggr()
1097 if (pmbuf_aggr->use_count + 1 >= max_aggr_num) in wlan_usb_host_to_card_aggr()
H A Dmlan_txrx.c217 pmbuf->use_count) { in wlan_write_data_complete()
219 t_u32 i, use_count = pmbuf->use_count; in wlan_write_data_complete() local
220 for (i = 0; i <= use_count; i++) { in wlan_write_data_complete()
/OK3568_Linux_fs/kernel/drivers/input/
H A Dinput-mt.c195 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count) in input_mt_report_pointer_emulation() argument
223 if (use_count) { in input_mt_report_pointer_emulation()
298 bool use_count = false; in input_mt_sync_frame() local
307 use_count = true; in input_mt_sync_frame()
309 input_mt_report_pointer_emulation(dev, use_count); in input_mt_sync_frame()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dtransaction.c120 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
121 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
295 refcount_inc(&cur_trans->use_count); in join_transaction()
346 refcount_set(&cur_trans->use_count, 2); in join_transaction()
521 refcount_inc(&cur_trans->use_count); in wait_current_trans()
581 refcount_inc(&h->use_count); in start_transaction()
582 WARN_ON(refcount_read(&h->use_count) > 2); in start_transaction()
689 refcount_set(&h->use_count, 1); in start_transaction()
850 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
879 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/
H A Dindustrialio-trigger.c166 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll()
167 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll()
190 if (!atomic_read(&trig->use_count)) { in iio_trigger_poll_chained()
191 atomic_set(&trig->use_count, CONFIG_IIO_CONSUMERS_PER_TRIGGER); in iio_trigger_poll_chained()
205 if (atomic_dec_and_test(&trig->use_count) && trig->ops && in iio_trigger_notify_done()

1234567