Home
last modified time | relevance | path

Searched refs:in_use (Results 1 – 25 of 160) sorted by relevance

1234567

/linux/lib/vdso/
H A Dgetrandom.c74 bool in_use, have_retried = false; in __cvdso_getrandom_data() local
125 in_use = READ_ONCE(state->in_use); in __cvdso_getrandom_data()
126 if (unlikely(in_use)) in __cvdso_getrandom_data()
129 WRITE_ONCE(state->in_use, true); in __cvdso_getrandom_data()
172 WRITE_ONCE(state->in_use, false); in __cvdso_getrandom_data()
217 WRITE_ONCE(state->in_use, false); in __cvdso_getrandom_data()
230 WRITE_ONCE(state->in_use, false); in __cvdso_getrandom_data()
/linux/tools/testing/selftests/bpf/progs/
H A Dudp_limit.c7 int invocations = 0, in_use = 0; variable
32 if (in_use > 0) { in sock()
40 __sync_fetch_and_add(&in_use, 1); in sock()
57 __sync_fetch_and_add(&in_use, -1); in sock_release()
/linux/drivers/infiniband/hw/cxgb4/
H A Dt4.h344 u16 in_use; member
374 u16 in_use; member
417 u16 in_use; member
427 return srq->size - 1 - srq->in_use; in t4_srq_avail()
432 srq->in_use++; in t4_srq_produce()
444 srq->in_use++; in t4_srq_produce_pending_wr()
452 srq->in_use--; in t4_srq_consume_pending_wr()
459 srq->in_use--; in t4_srq_produce_ooo()
474 srq->in_use--; in t4_srq_consume()
482 return wq->rq.in_use; in t4_rqes_posted()
[all …]
H A Dcq.c206 int in_use = wq->rq.in_use - count; in c4iw_flush_rq() local
209 wq, cq, wq->rq.in_use, count); in c4iw_flush_rq()
210 while (in_use--) { in c4iw_flush_rq()
475 srq->in_use, srq->size, in post_pending_srq_wrs()
502 srq->wq_pidx, srq->in_use, srq->size, in reap_srq_cqe()
508 srq->wq_pidx, srq->in_use, in reap_srq_cqe()
520 srq->in_use, srq->size, in reap_srq_cqe()
711 wq->sq.in_use -= wq->sq.size + idx - wq->sq.cidx; in poll_cq()
713 wq->sq.in_use -= idx - wq->sq.cidx; in poll_cq()
778 srq->wq.in_use < srq->srq_limit) in __c4iw_poll_cq_one()
/linux/drivers/md/dm-vdo/
H A Daction-manager.c29 bool in_use; member
140 return manager->current_action->in_use ? manager->current_action->context : NULL; in vdo_get_current_action_context()
257 manager->current_action->in_use = false; in finish_action_callback()
265 (manager->current_action->in_use || vdo_schedule_default_action(manager)); in finish_action_callback()
362 if (!manager->current_action->in_use) { in vdo_schedule_operation_with_context()
364 } else if (!manager->current_action->next->in_use) { in vdo_schedule_operation_with_context()
374 .in_use = true, in vdo_schedule_operation_with_context()
/linux/drivers/md/bcache/
H A Dwriteback.h105 unsigned int in_use = dc->disk.c->gc_stats.in_use; in should_writeback() local
109 in_use > bch_cutoff_writeback_sync) in should_writeback()
125 in_use <= bch_cutoff_writeback); in should_writeback()
/linux/arch/arc/mm/
H A Dinit.c55 int in_use = 0; in early_init_dt_add_memory_arch() local
62 in_use = 1; in early_init_dt_add_memory_arch()
68 in_use = 1; in early_init_dt_add_memory_arch()
75 base, TO_MB(size), !in_use ? "Not used":""); in early_init_dt_add_memory_arch()
/linux/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c51 bool in_use; member
183 if (diu_shared_fb.in_use) { in mpc512x_release_bootmem()
190 diu_shared_fb.in_use = false; in mpc512x_release_bootmem()
247 diu_shared_fb.in_use = true; in mpc512x_init_diu()
254 diu_shared_fb.in_use = false; in mpc512x_init_diu()
286 if (diu_shared_fb.in_use) { in mpc512x_setup_diu()
291 diu_shared_fb.in_use = false; in mpc512x_setup_diu()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_vm_helper.c65 int in_use = 0; in dc_get_vmid_use_vector() local
68 in_use |= dc->vm_helper->hubp_vmid_usage[i].vmid_usage[0] in dc_get_vmid_use_vector()
70 return in_use; in dc_get_vmid_use_vector()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c17 entry->in_use = true; in tc_fill_all_pass_entry()
38 if (!entry->in_use && !first && free) in tc_find_entry()
48 first->in_use = true; in tc_find_entry()
166 frag->in_use = false; in tc_fill_entry()
167 entry->in_use = false; in tc_fill_entry()
180 entry->in_use = false; in tc_unfill_entry()
184 entry->in_use = false; in tc_unfill_entry()
563 if (get_free && (entry->in_use == false)) in tc_find_flow()
600 entry->in_use = true; in tc_add_flow()
603 if (!entry->in_use) in tc_add_flow()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dcrypto.c65 unsigned long *in_use; member
307 bulk->in_use = bitmap_zalloc(num_deks, GFP_KERNEL); in mlx5_crypto_dek_bulk_create()
308 if (!bulk->in_use) { in mlx5_crypto_dek_bulk_create()
327 bitmap_free(bulk->in_use); in mlx5_crypto_dek_bulk_create()
353 bitmap_free(bulk->in_use); in mlx5_crypto_dek_bulk_free()
403 bitmap_set(bulk->in_use, pos, 1); in mlx5_crypto_dek_pool_pop()
435 old_val = test_and_clear_bit(obj_offset, bulk->in_use); in mlx5_crypto_dek_free_locked()
483 unsigned long *in_use = bulk->in_use; in mlx5_crypto_dek_bulk_reset_synced() local
490 i++, need_sync++, in_use++) { in mlx5_crypto_dek_bulk_reset_synced()
491 reused = hweight_long((*need_sync) ^ (*in_use)); in mlx5_crypto_dek_bulk_reset_synced()
[all …]
/linux/security/tomoyo/
H A Dgc.c43 bool in_use = false; in tomoyo_struct_used_by_io_buffer() local
52 in_use = true; in tomoyo_struct_used_by_io_buffer()
56 if (in_use) in tomoyo_struct_used_by_io_buffer()
60 return in_use; in tomoyo_struct_used_by_io_buffer()
75 bool in_use = false; in tomoyo_name_used_by_io_buffer() local
89 in_use = true; in tomoyo_name_used_by_io_buffer()
95 if (in_use) in tomoyo_name_used_by_io_buffer()
99 return in_use; in tomoyo_name_used_by_io_buffer()
/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-ss.c70 bool in_use; member
75 if (!ss->in_use) in dcss_ss_write()
167 ss->in_use = true; in dcss_ss_enable()
173 ss->in_use = false; in dcss_ss_shutoff()
H A Ddcss-ctxld.c82 bool in_use; member
97 !(irq_status & CTXLD_ENABLE) && ctxld->in_use) { in dcss_ctxld_irq_handler()
98 ctxld->in_use = false; in dcss_ctxld_irq_handler()
296 ctxld->in_use = true; in dcss_ctxld_enable_locked()
325 if (ctxld->armed && !ctxld->in_use) { in dcss_ctxld_kick()
388 while (!time_after(jiffies, timeout) && ctxld->in_use) in dcss_ctxld_suspend()
/linux/ipc/
H A Dnamespace.c130 int total, in_use; in free_ipcs() local
134 in_use = ids->in_use; in free_ipcs()
136 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
/linux/drivers/ptp/
H A Dptp_private.h101 bool in_use = false; in ptp_vclock_in_use() local
107 in_use = true; in ptp_vclock_in_use()
111 return in_use; in ptp_vclock_in_use()
/linux/arch/powerpc/sysdev/
H A Dmpic_msgr.c62 if (msgr->in_use == MSGR_FREE) in mpic_msgr_get()
63 msgr->in_use = MSGR_INUSE; in mpic_msgr_get()
75 msgr->in_use = MSGR_FREE; in mpic_msgr_put()
239 msgr->in_use = MSGR_FREE; in mpic_msgr_probe()
/linux/drivers/media/v4l2-core/
H A Dv4l2-event.c52 kev->sev->in_use--; in __v4l2_event_dequeue()
118 if (sev->in_use == sev->elems) { in __v4l2_event_queue_fh()
122 sev->in_use--; in __v4l2_event_queue_fh()
138 kev = sev->events + sev_pos(sev, sev->in_use); in __v4l2_event_queue_fh()
145 sev->in_use++; in __v4l2_event_queue_fh()
216 for (i = 0; i < sev->in_use; i++) { in __v4l2_event_unsubscribe()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_flex_type.h168 u8 in_use; member
196 u8 in_use; member
210 u8 in_use; member
298 u8 in_use; /* non-zero if used */ member
H A Dice_ptp.c484 clear_bit(idx, tx->in_use); in ice_ptp_req_tx_single_tstamp()
544 clear_bit(idx, tx->in_use); in ice_ptp_complete_tx_single_tstamp()
642 for_each_set_bit(idx, tx->in_use, tx->len) { in ice_ptp_process_tx_tstamp()
698 clear_bit(idx, tx->in_use); in ice_ptp_process_tx_tstamp()
783 more_timestamps = tx->init && !bitmap_empty(tx->in_use, tx->len); in ice_ptp_tx_tstamp()
802 unsigned long *in_use, *stale; in ice_ptp_alloc_tx_tracker() local
806 in_use = bitmap_zalloc(tx->len, GFP_KERNEL); in ice_ptp_alloc_tx_tracker()
809 if (!tstamps || !in_use || !stale) { in ice_ptp_alloc_tx_tracker()
811 bitmap_free(in_use); in ice_ptp_alloc_tx_tracker()
818 tx->in_use = in_use; in ice_ptp_alloc_tx_tracker()
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Ducall_common.c13 DECLARE_BITMAP(in_use, KVM_MAX_VCPUS);
59 if (!test_and_set_bit(i, ucall_pool->in_use)) { in ucall_alloc()
79 clear_bit(uc - ucall_pool->ucalls, ucall_pool->in_use); in ucall_free()
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_common.c245 DECLARE_BITMAP(in_use, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in mtk_vdec_h264_update_dpb()
252 set_bit(i, in_use); in mtk_vdec_h264_update_dpb()
267 for_each_set_bit(j, in_use, ARRAY_SIZE(dec_param->dpb)) { in mtk_vdec_h264_update_dpb()
277 clear_bit(j, in_use); in mtk_vdec_h264_update_dpb()
/linux/drivers/gpu/ipu-v3/
H A Dipu-pre.c102 bool in_use; member
146 if (pre->cur.in_use) in ipu_pre_get()
159 pre->cur.in_use = true; in ipu_pre_get()
167 pre->cur.in_use = false; in ipu_pre_put()
H A Dipu-dp.c47 bool in_use; member
329 if (dp->in_use) in ipu_dp_get()
332 dp->in_use = true; in ipu_dp_get()
340 dp->in_use = false; in ipu_dp_put()
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_common.h83 return q->size - 1 - q->in_use; in chcr_txq_avail()
88 q->in_use += n; in chcr_txq_advance()

1234567