/openbmc/qemu/hw/char/ |
H A D | bcm2835_aux.c | 57 if ((s->ier & RX_INT) && s->read_count != 0) { in bcm2835_aux_update() 81 if (s->read_count > 0) { in bcm2835_aux_read() 82 s->read_count--; in bcm2835_aux_read() 101 if (s->read_count != 0) { in bcm2835_aux_read() 121 if (s->read_count != 0) { in bcm2835_aux_read() 139 if (s->read_count > 0) { in bcm2835_aux_read() 188 s->read_count = 0; in bcm2835_aux_write() 224 return s->read_count < BCM2835_AUX_RX_FIFO_LEN; in bcm2835_aux_can_receive() 232 slot = s->read_pos + s->read_count; in bcm2835_aux_put_fifo() 237 s->read_count++; in bcm2835_aux_put_fifo() [all …]
|
H A D | pl011.c | 137 s->read_count = 0; in pl011_reset_fifo() 156 if (s->read_count > 0) { in pl011_read() 157 s->read_count--; in pl011_read() 160 if (s->read_count == 0) { in pl011_read() 163 if (s->read_count == s->read_trigger - 1) in pl011_read() 165 trace_pl011_read_fifo(s->read_count); in pl011_read() 349 s->read_count++; in pl011_put_fifo() 351 trace_pl011_put_fifo(value, s->read_count); in pl011_put_fifo() 352 if (s->read_count == pipe_depth) { in pl011_put_fifo() 356 if (s->read_count == s->read_trigger) { in pl011_put_fifo() [all …]
|
H A D | trace-events | 58 pl011_read_fifo(int read_count) "FIFO read, read_count now %d" 60 pl011_can_receive(uint32_t lcr, int read_count, int r) "LCR 0x%08x read_count %d returning %d" 61 pl011_put_fifo(uint32_t c, int read_count) "new char 0x%x read_count now %d"
|
/openbmc/linux/kernel/locking/ |
H A 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()
|
/openbmc/linux/samples/bpf/ |
H A 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()
|
/openbmc/linux/include/linux/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A 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()
|
/openbmc/qemu/hw/i3c/ |
H A D | core.c | 382 uint8_t read_count = 0; in i3c_target_handle_ccc_read() local 393 read_count++; in i3c_target_handle_ccc_read() 395 if (read_count < num_to_read) { in i3c_target_handle_ccc_read() 396 data[read_count] = t->bcr; in i3c_target_handle_ccc_read() 398 read_count++; in i3c_target_handle_ccc_read() 400 if (read_count < num_to_read) { in i3c_target_handle_ccc_read() 401 data[read_count] = t->dcr; in i3c_target_handle_ccc_read() 403 read_count++; in i3c_target_handle_ccc_read() 405 *num_read = read_count; in i3c_target_handle_ccc_read() 414 read_count++; in i3c_target_handle_ccc_read() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | tx_common.c | 80 tx_queue->read_count = 0; in efx_siena_init_tx_queue() 161 tx_queue->queue, tx_queue->read_count); in efx_dequeue_buffer() 181 while (tx_queue->read_count != tx_queue->write_count) { in efx_siena_fini_tx_queue() 184 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_siena_fini_tx_queue() 187 ++tx_queue->read_count; in efx_siena_fini_tx_queue() 207 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 222 ++tx_queue->read_count; in efx_dequeue_buffers() 223 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 229 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in efx_siena_xmit_done_check_empty() 231 if (tx_queue->read_count == tx_queue->old_write_count) { in efx_siena_xmit_done_check_empty() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A 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() 518 txq2->insert_count - txq2->read_count); in ef4_xmit_done() 529 tx_queue->read_count | EF4_EMPTY_COUNT_VALID; in ef4_xmit_done() 593 tx_queue->read_count = 0; in ef4_init_tx_queue() 618 while (tx_queue->read_count != tx_queue->write_count) { in ef4_fini_tx_queue() [all …]
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_hdmi_ddc.c | 116 u32 remain_count, ack_count, ack_final, read_count, temp_count; in mtk_hdmi_ddc_read_msg() local 139 read_count = 8; in mtk_hdmi_ddc_read_msg() 143 read_count = remain_count; in mtk_hdmi_ddc_read_msg() 148 DDCM_PGLEN_OFFSET, read_count - 1); in mtk_hdmi_ddc_read_msg() 158 if (((ack_final == 1) && (temp_count != (read_count - 1))) || in mtk_hdmi_ddc_read_msg() 159 ((ack_final == 0) && (temp_count != read_count))) { in mtk_hdmi_ddc_read_msg() 164 for (i = read_count; i >= 1; i--) { in mtk_hdmi_ddc_read_msg() 181 remain_count -= read_count; in mtk_hdmi_ddc_read_msg() 182 index += read_count; in mtk_hdmi_ddc_read_msg()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tx_common.c | 80 tx_queue->read_count = 0; in efx_init_tx_queue() 111 while (tx_queue->read_count != tx_queue->write_count) { in efx_fini_tx_queue() 115 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_fini_tx_queue() 119 ++tx_queue->read_count; in efx_fini_tx_queue() 195 tx_queue->queue, tx_queue->read_count); in efx_dequeue_buffer() 219 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 235 ++tx_queue->read_count; in efx_dequeue_buffers() 236 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers() 242 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in efx_xmit_done_check_empty() 244 if (tx_queue->read_count == tx_queue->old_write_count) { in efx_xmit_done_check_empty() [all …]
|
H A 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() 561 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single() 582 ++tx_queue->read_count; in efx_xmit_done_single() 583 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
|
H A D | ef100_tx.c | 357 unsigned int tx_index = (tx_queue->read_count + tx_done - 1) & in ef100_ev_tx() 432 txq2->old_read_count = READ_ONCE(txq2->read_count); in __ef100_enqueue_skb() 469 txq2->old_read_count = READ_ONCE(txq2->read_count); in __ef100_enqueue_skb()
|
/openbmc/linux/drivers/char/ipmi/ |
H A 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 …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-char.c | 22 int read_count; member 42 return sizeof(h->read_buf) - h->read_count; in fe_can_read() 52 h->read_count += size; in fe_read() 220 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test() 221 g_assert_cmpint(h2.read_count, ==, 6); in char_mux_test() 223 h2.read_count = 0; in char_mux_test() 248 g_assert_cmpint(h2.read_count, ==, 0); in char_mux_test() 249 g_assert_cmpint(h1.read_count, ==, 6); in char_mux_test() 251 h1.read_count = 0; in char_mux_test() 320 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | intel-m10-bmc-pmci.c | 186 u32 blk_size, offset = 0, val, full_read_count, read_count; in pmci_flash_bulk_read() local 193 read_count = full_read_count; in pmci_flash_bulk_read() 195 read_count++; in pmci_flash_bulk_read() 198 writel(FIELD_PREP(M10BMC_N6000_FLASH_READ_COUNT, read_count) | in pmci_flash_bulk_read() 216 if (full_read_count < read_count) in pmci_flash_bulk_read()
|
/openbmc/linux/drivers/usb/misc/ |
H A D | chaoskey.c | 412 ssize_t read_count = 0; in chaoskey_read() local 462 read_count += this_time; in chaoskey_read() 468 if (read_count) { in chaoskey_read() 469 usb_dbg(dev->interface, "read %zu bytes", read_count); in chaoskey_read() 470 return read_count; in chaoskey_read()
|
/openbmc/qemu/include/hw/char/ |
H A D | bcm2835_aux.h | 31 uint8_t read_pos, read_count; member
|
H A D | pl011.h | 49 int read_count; member
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_services.c | 48 trace_amdgpu_dc_performance(ctx->perf_trace->read_count, in dm_perf_trace_timestamp()
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A 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()
|
/openbmc/linux/drivers/media/pci/saa7134/ |
H A 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()
|
/openbmc/linux/drivers/clocksource/ |
H A D | sh_cmt.c | 86 u32 (*read_count)(void __iomem *base, unsigned long offs); member 187 .read_count = sh_cmt_read16, 197 .read_count = sh_cmt_read32, 208 .read_count = sh_cmt_read32, 219 .read_count = sh_cmt_read32, 230 .read_count = sh_cmt_read32, 281 return ch->cmt->info->read_count(ch->ioctrl, CMCNT); in sh_cmt_read_cmcnt() 305 u32 old_value = ch->cmt->info->read_count(ch->ioctrl, CMCOR); in sh_cmt_write_cmcor()
|
/openbmc/linux/tools/perf/util/ |
H A D | lock-contention.h | 87 int read_count; member
|