Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 25 of 34) sorted by relevance

12

/linux/kernel/locking/
A Dpercpu-rwsem.c15 sem->read_count = alloc_percpu(int); in __percpu_init_rwsem()
16 if (unlikely(!sem->read_count)) in __percpu_init_rwsem()
37 if (!sem->read_count) in percpu_free_rwsem()
41 free_percpu(sem->read_count); in percpu_free_rwsem()
42 sem->read_count = NULL; /* catch use after free bugs */ in percpu_free_rwsem()
48 this_cpu_inc(*sem->read_count); in __percpu_down_read_trylock()
74 this_cpu_dec(*sem->read_count); in __percpu_down_read_trylock()
201 if (per_cpu_sum(*sem->read_count) != 0) in readers_active_check()
/linux/samples/bpf/
A Dibumad_kern.c24 } read_count SEC(".maps");
85 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv()
87 bpf_map_update_elem(&read_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_read_recv()
88 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv()
105 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send()
107 bpf_map_update_elem(&read_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_read_send()
108 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send()
/linux/include/linux/
A Dpercpu-rwsem.h14 unsigned int __percpu *read_count; member
33 .read_count = &__percpu_rwsem_rc_##name, \
63 this_cpu_inc(*sem->read_count); in percpu_down_read()
82 this_cpu_inc(*sem->read_count); in percpu_down_read_trylock()
106 this_cpu_dec(*sem->read_count); in percpu_up_read()
118 this_cpu_dec(*sem->read_count); in percpu_up_read()
/linux/drivers/net/ethernet/sfc/falcon/
A Dtx.c74 tx_queue->queue, tx_queue->read_count); in ef4_dequeue_buffer()
134 txq1->old_read_count = READ_ONCE(txq1->read_count); in ef4_tx_maybe_stop_queue()
135 txq2->old_read_count = READ_ONCE(txq2->read_count); in ef4_tx_maybe_stop_queue()
363 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
379 ++tx_queue->read_count; in ef4_dequeue_buffers()
380 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
517 txq2->insert_count - txq2->read_count); in ef4_xmit_done()
528 tx_queue->read_count | EF4_EMPTY_COUNT_VALID; in ef4_xmit_done()
592 tx_queue->read_count = 0; in ef4_init_tx_queue()
617 while (tx_queue->read_count != tx_queue->write_count) { in ef4_fini_tx_queue()
[all …]
/linux/drivers/net/ethernet/sfc/
A Dtx_common.c79 tx_queue->read_count = 0; in efx_init_tx_queue()
108 while (tx_queue->read_count != tx_queue->write_count) { in efx_fini_tx_queue()
111 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_fini_tx_queue()
114 ++tx_queue->read_count; in efx_fini_tx_queue()
183 tx_queue->queue, tx_queue->read_count); in efx_dequeue_buffer()
206 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
221 ++tx_queue->read_count; in efx_dequeue_buffers()
222 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
228 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in efx_xmit_done_check_empty()
230 if (tx_queue->read_count == tx_queue->old_write_count) { in efx_xmit_done_check_empty()
[all …]
A Dtx.c88 txq2->old_read_count = READ_ONCE(txq2->read_count); in efx_tx_maybe_stop_queue()
462 tx_queue->read_count - tx_queue->insert_count; in efx_xdp_tx_buffers()
561 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
581 ++tx_queue->read_count; in efx_xmit_done_single()
582 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
A Def100_tx.c339 unsigned int tx_index = (tx_queue->read_count + tx_done - 1) & in ef100_ev_tx()
396 txq2->old_read_count = READ_ONCE(txq2->read_count); in ef100_enqueue_skb()
A Dnet_driver.h279 unsigned int read_count ____cacheline_aligned_in_smp;
1660 tx_queue->insert_count - tx_queue->read_count); in efx_channel_tx_fill_level()
A Dtx_tso.c116 tx_queue->read_count >= in efx_tx_queue_insert()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_vf_error.c71 …if (adev->virt.vf_errors.write_count - adev->virt.vf_errors.read_count > AMDGPU_VF_ERROR_ENTRY_SIZ… in amdgpu_vf_error_trans_all()
72 adev->virt.vf_errors.read_count = adev->virt.vf_errors.write_count - AMDGPU_VF_ERROR_ENTRY_SIZE; in amdgpu_vf_error_trans_all()
75 while (adev->virt.vf_errors.read_count < adev->virt.vf_errors.write_count) { in amdgpu_vf_error_trans_all()
76 index =adev->virt.vf_errors.read_count % AMDGPU_VF_ERROR_ENTRY_SIZE; in amdgpu_vf_error_trans_all()
83 adev->virt.vf_errors.read_count ++; in amdgpu_vf_error_trans_all()
A Damdgpu_virt.h57 int read_count; member
/linux/drivers/gpu/drm/mediatek/
A Dmtk_hdmi_ddc.c113 u32 remain_count, ack_count, ack_final, read_count, temp_count; in mtk_hdmi_ddc_read_msg() local
136 read_count = 8; in mtk_hdmi_ddc_read_msg()
140 read_count = remain_count; in mtk_hdmi_ddc_read_msg()
145 DDCM_PGLEN_OFFSET, read_count - 1); in mtk_hdmi_ddc_read_msg()
155 if (((ack_final == 1) && (temp_count != (read_count - 1))) || in mtk_hdmi_ddc_read_msg()
156 ((ack_final == 0) && (temp_count != read_count))) { in mtk_hdmi_ddc_read_msg()
161 for (i = read_count; i >= 1; i--) { in mtk_hdmi_ddc_read_msg()
178 remain_count -= read_count; in mtk_hdmi_ddc_read_msg()
179 index += read_count; in mtk_hdmi_ddc_read_msg()
/linux/drivers/char/ipmi/
A Dipmi_bt_sm.c83 int read_count; member
197 bt->read_count = 5; in force_result()
253 msg_len = bt->read_count - 2; /* account for length & seq */ in bt_get_result()
342 bt->read_count = bt->read_data[0]; in read_all_bytes()
344 if (bt->read_count < 4 || bt->read_count >= IPMI_MAX_MSG_LENGTH) { in read_all_bytes()
347 "bad raw rsp len=%d\n", bt->read_count); in read_all_bytes()
351 for (i = 1; i <= bt->read_count; i++) in read_all_bytes()
353 bt->read_count++; /* Account internally for length byte */ in read_all_bytes()
356 int max = bt->read_count; in read_all_bytes()
364 pr_cont("%s\n", bt->read_count == max ? "" : " ..."); in read_all_bytes()
[all …]
/linux/drivers/usb/misc/
A Dchaoskey.c413 ssize_t read_count = 0; in chaoskey_read() local
463 read_count += this_time; in chaoskey_read()
469 if (read_count) { in chaoskey_read()
470 usb_dbg(dev->interface, "read %zu bytes", read_count); in chaoskey_read()
471 return read_count; in chaoskey_read()
/linux/drivers/media/usb/em28xx/
A Dem28xx-input.c53 unsigned int read_count:7; member
224 poll_result->read_count = (msg[0] & 0x7f); in default_polling_getkey()
267 poll_result->read_count = (msg[0] & 0x7f); in em2874_polling_getkey()
335 if (unlikely(poll_result.read_count != ir->last_readcount)) { in em28xx_ir_handle_key()
337 poll_result.toggle_bit, poll_result.read_count, in em28xx_ir_handle_key()
362 ir->last_readcount = poll_result.read_count; in em28xx_ir_handle_key()
/linux/drivers/media/pci/saa7134/
A Dsaa7134-alsa.c150 if (dev->dmasound.read_count >= dev->dmasound.blksize * (dev->dmasound.blocks-2)) { in saa7134_irq_alsa_done()
152 dev->dmasound.read_count, in saa7134_irq_alsa_done()
165 dev->dmasound.blksize, dev->dmasound.read_count); in saa7134_irq_alsa_done()
169 dev->dmasound.read_count += dev->dmasound.blksize; in saa7134_irq_alsa_done()
173 if (dev->dmasound.read_count >= snd_pcm_lib_period_bytes(dev->dmasound.substream)) { in saa7134_irq_alsa_done()
597 if (dev->dmasound.read_count) { in snd_card_saa7134_capture_pointer()
598 dev->dmasound.read_count -= snd_pcm_lib_period_bytes(substream); in snd_card_saa7134_capture_pointer()
809 dev->dmasound.read_count = 0; in snd_card_saa7134_capture_open()
/linux/tools/perf/
A Dbuiltin-lock.c111 int read_count; member
438 seq->read_count = 1; in report_lock_acquire_event()
444 seq->read_count++; in report_lock_acquire_event()
622 seq->read_count--; in report_lock_release_event()
623 BUG_ON(seq->read_count < 0); in report_lock_release_event()
624 if (seq->read_count) { in report_lock_release_event()
/linux/drivers/clocksource/
A Dsh_cmt.c86 u32 (*read_count)(void __iomem *base, unsigned long offs); member
186 .read_count = sh_cmt_read16,
196 .read_count = sh_cmt_read32,
207 .read_count = sh_cmt_read32,
218 .read_count = sh_cmt_read32,
229 .read_count = sh_cmt_read32,
268 return ch->cmt->info->read_count(ch->ioctrl, CMCNT); in sh_cmt_read_cmcnt()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm_services.c48 trace_amdgpu_dc_performance(ctx->perf_trace->read_count, in dm_perf_trace_timestamp()
A Damdgpu_dm_trace.h71 TP_PROTO(unsigned long read_count, unsigned long write_count,
74 TP_ARGS(read_count, write_count, last_read, last_write, func, line),
84 __entry->reads = read_count;
86 __entry->read_delta = read_count - *last_read;
90 *last_read = read_count;
/linux/sound/soc/mediatek/common/
A Dmtk-btcvsd.c702 ssize_t read_size = 0, read_count = 0, cur_read_idx, cont; in mtk_btcvsd_snd_read() local
721 return read_count; in mtk_btcvsd_snd_read()
758 read_count += read_size; in mtk_btcvsd_snd_read()
771 bt->rx->buf_data_equivalent_time += read_count * SCO_RX_PLC_SIZE * in mtk_btcvsd_snd_read()
776 return read_count; in mtk_btcvsd_snd_read()
/linux/drivers/net/dsa/sja1105/
A Dsja1105_spi.c24 sja1105_pack(buf, &msg->read_count, 30, 25, size); in sja1105_spi_message_pack()
64 msg.read_count = chunk.len / 4; in sja1105_xfer()
67 msg.read_count = 0; in sja1105_xfer()
A Dsja1105.h281 u64 read_count; member
/linux/drivers/media/common/siano/
A Dsmscoreapi.h1048 u32 read_count; /* number of bytes to read */ member
1054 u32 read_count; /* number of bytes read */ member
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_dcbx.c377 int read_count = 0; in qed_dcbx_copy_mib() local
395 read_count++; in qed_dcbx_copy_mib()
400 type, read_count, prefix_seq_num, suffix_seq_num); in qed_dcbx_copy_mib()
402 (read_count < QED_DCBX_MAX_MIB_READ_TRY)); in qed_dcbx_copy_mib()
404 if (read_count >= QED_DCBX_MAX_MIB_READ_TRY) { in qed_dcbx_copy_mib()
407 type, read_count, prefix_seq_num, suffix_seq_num); in qed_dcbx_copy_mib()

Completed in 59 milliseconds

12