/linux-6.1.9/kernel/locking/ |
D | percpu-rwsem.c | 17 sem->read_count = alloc_percpu(int); in __percpu_init_rwsem() 18 if (unlikely(!sem->read_count)) in __percpu_init_rwsem() 39 if (!sem->read_count) in percpu_free_rwsem() 43 free_percpu(sem->read_count); in percpu_free_rwsem() 44 sem->read_count = NULL; /* catch use after free bugs */ in percpu_free_rwsem() 50 this_cpu_inc(*sem->read_count); in __percpu_down_read_trylock() 76 this_cpu_dec(*sem->read_count); in __percpu_down_read_trylock() 197 return per_cpu_sum(*sem->read_count) != 0 && !atomic_read(&sem->block); in percpu_is_read_locked() 211 if (per_cpu_sum(*sem->read_count) != 0) in readers_active_check()
|
/linux-6.1.9/samples/bpf/ |
D | ibumad_kern.c | 24 } 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-6.1.9/include/linux/ |
D | percpu-rwsem.h | 14 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-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vf_error.c | 71 …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()
|
D | amdgpu_virt.h | 71 int read_count; member
|
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/ |
D | tx.c | 74 tx_queue->queue, tx_queue->read_count); in ef4_dequeue_buffer() 135 txq1->old_read_count = READ_ONCE(txq1->read_count); in ef4_tx_maybe_stop_queue() 136 txq2->old_read_count = READ_ONCE(txq2->read_count); in ef4_tx_maybe_stop_queue() 364 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers() 380 ++tx_queue->read_count; in ef4_dequeue_buffers() 381 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers() 517 fill_level = max(tx_queue->insert_count - tx_queue->read_count, in ef4_xmit_done() 518 txq2->insert_count - txq2->read_count); in ef4_xmit_done() 524 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in ef4_xmit_done() 526 if (tx_queue->read_count == tx_queue->old_write_count) { in ef4_xmit_done() [all …]
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | tx_common.c | 79 tx_queue->read_count = 0; in efx_siena_init_tx_queue() 160 tx_queue->queue, tx_queue->read_count); in efx_dequeue_buffer() 180 while (tx_queue->read_count != tx_queue->write_count) { in efx_siena_fini_tx_queue() 183 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_siena_fini_tx_queue() 186 ++tx_queue->read_count; in efx_siena_fini_tx_queue() 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_siena_xmit_done_check_empty() 230 if (tx_queue->read_count == tx_queue->old_write_count) { in efx_siena_xmit_done_check_empty() [all …]
|
D | tx.c | 72 txq2->old_read_count = READ_ONCE(txq2->read_count); in efx_tx_maybe_stop_queue() 252 tx_queue->read_count - tx_queue->insert_count; in efx_siena_xdp_tx_buffers()
|
/linux-6.1.9/drivers/gpu/drm/mediatek/ |
D | mtk_hdmi_ddc.c | 113 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-6.1.9/drivers/net/ethernet/sfc/ |
D | tx_common.c | 79 tx_queue->read_count = 0; in efx_init_tx_queue() 110 while (tx_queue->read_count != tx_queue->write_count) { in efx_fini_tx_queue() 114 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_fini_tx_queue() 118 ++tx_queue->read_count; in efx_fini_tx_queue() 194 tx_queue->queue, tx_queue->read_count); in efx_dequeue_buffer() 218 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 234 ++tx_queue->read_count; in efx_dequeue_buffers() 235 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 241 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in efx_xmit_done_check_empty() 243 if (tx_queue->read_count == tx_queue->old_write_count) { in efx_xmit_done_check_empty() [all …]
|
D | tx.c | 88 txq2->old_read_count = READ_ONCE(txq2->read_count); in efx_tx_maybe_stop_queue() 465 tx_queue->read_count - tx_queue->insert_count; in efx_xdp_tx_buffers() 566 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single() 587 ++tx_queue->read_count; in efx_xmit_done_single() 588 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
|
D | ef100_tx.c | 357 unsigned int tx_index = (tx_queue->read_count + tx_done - 1) & in ef100_ev_tx() 431 txq2->old_read_count = READ_ONCE(txq2->read_count); in __ef100_enqueue_skb() 468 txq2->old_read_count = READ_ONCE(txq2->read_count); in __ef100_enqueue_skb()
|
/linux-6.1.9/drivers/char/ipmi/ |
D | ipmi_bt_sm.c | 83 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-6.1.9/drivers/usb/misc/ |
D | chaoskey.c | 413 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-6.1.9/drivers/media/usb/em28xx/ |
D | em28xx-input.c | 43 unsigned int read_count:7; member 214 poll_result->read_count = (msg[0] & 0x7f); in default_polling_getkey() 257 poll_result->read_count = (msg[0] & 0x7f); in em2874_polling_getkey() 325 if (unlikely(poll_result.read_count != ir->last_readcount)) { in em28xx_ir_handle_key() 327 poll_result.toggle_bit, poll_result.read_count, in em28xx_ir_handle_key() 352 ir->last_readcount = poll_result.read_count; in em28xx_ir_handle_key()
|
/linux-6.1.9/drivers/clocksource/ |
D | sh_cmt.c | 87 u32 (*read_count)(void __iomem *base, unsigned long offs); member 188 .read_count = sh_cmt_read16, 198 .read_count = sh_cmt_read32, 209 .read_count = sh_cmt_read32, 220 .read_count = sh_cmt_read32, 231 .read_count = sh_cmt_read32, 282 return ch->cmt->info->read_count(ch->ioctrl, CMCNT); in sh_cmt_read_cmcnt() 306 u32 old_value = ch->cmt->info->read_count(ch->ioctrl, CMCOR); in sh_cmt_write_cmcor()
|
/linux-6.1.9/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 150 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-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_services.c | 48 trace_amdgpu_dc_performance(ctx->perf_trace->read_count, in dm_perf_trace_timestamp()
|
D | amdgpu_dm_trace.h | 72 TP_PROTO(unsigned long read_count, unsigned long write_count, 75 TP_ARGS(read_count, write_count, last_read, last_write, func, line), 85 __entry->reads = read_count; 87 __entry->read_delta = read_count - *last_read; 91 *last_read = read_count;
|
/linux-6.1.9/tools/perf/util/ |
D | lock-contention.h | 73 int read_count; member
|
/linux-6.1.9/sound/soc/mediatek/common/ |
D | mtk-btcvsd.c | 702 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-6.1.9/drivers/net/dsa/sja1105/ |
D | sja1105_spi.c | 24 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()
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-mchp-pci1xxxx.c | 788 u8 read_count; in pci1xxxx_i2c_read() local 884 read_count = buf[0]; in pci1xxxx_i2c_read() 885 memcpy_fromio(&buf[1], p3 + 1, read_count); in pci1xxxx_i2c_read()
|
/linux-6.1.9/tools/perf/ |
D | builtin-lock.c | 634 seq->read_count = 1; in report_lock_acquire_event() 640 seq->read_count++; in report_lock_acquire_event() 827 seq->read_count--; in report_lock_release_event() 828 BUG_ON(seq->read_count < 0); in report_lock_release_event() 829 if (seq->read_count) { in report_lock_release_event()
|
/linux-6.1.9/drivers/media/common/siano/ |
D | smscoreapi.h | 1048 u32 read_count; /* number of bytes to read */ member 1054 u32 read_count; /* number of bytes read */ member
|