Home
last modified time | relevance | path

Searched refs:write_count (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_trace.h52 TP_PROTO(unsigned long *write_count, uint32_t reg, uint32_t value),
53 TP_ARGS(write_count, reg, value),
61 *write_count = *write_count + 1;
70 TP_PROTO(unsigned long read_count, unsigned long write_count,
73 TP_ARGS(read_count, write_count, last_read, last_write, func, line),
84 __entry->writes = write_count;
86 __entry->write_delta = write_count - *last_write;
90 *last_write = write_count;
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vf_error.c42 index = adev->virt.vf_errors.write_count % AMDGPU_VF_ERROR_ENTRY_SIZE; in amdgpu_vf_error_put()
46 adev->virt.vf_errors.write_count ++; in amdgpu_vf_error_put()
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()
Damdgpu_virt.h45 int write_count; member
/Linux-v5.4/samples/bpf/
Dibumad_kern.c26 struct bpf_map_def SEC("maps") write_count = {
125 val = bpf_map_lookup_elem(&write_count, &class); in on_ib_umad_write()
127 bpf_map_update_elem(&write_count, &class, &zero, BPF_NOEXIST); in on_ib_umad_write()
128 val = bpf_map_lookup_elem(&write_count, &class); in on_ib_umad_write()
/Linux-v5.4/drivers/char/ipmi/
Dipmi_kcs_sm.c111 int write_count; member
129 kcs->write_count = 0; in init_kcs_data()
182 (kcs->write_count)--; in write_next_byte()
252 kcs->write_count = kcs->orig_write_count; in restart_kcs_transaction()
282 kcs->write_count = size; in start_kcs_transaction()
373 if (kcs->write_count == 1) { in kcs_event()
389 if (kcs->write_count == 1) { in kcs_event()
Dipmi_smic_sm.c93 int write_count; member
108 smic->write_count = 0; in init_smic_data()
140 smic->write_count = size; in start_smic_transaction()
218 smic->write_count = smic->orig_write_count; in start_error_recovery()
230 (smic->write_count)--; in write_next_byte()
392 if (smic->write_count == 1) { in smic_event()
415 if (smic->write_count == 1) { in smic_event()
Dipmi_bt_sm.c81 int write_count; member
230 bt->write_count = size + 2; in bt_start_transaction()
321 bt->write_count, bt->seq); in write_all_bytes()
322 for (i = 0; i < bt->write_count; i++) in write_all_bytes()
326 for (i = 0; i < bt->write_count; i++) in write_all_bytes()
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dnic.h81 unsigned int write_count) in __ef4_nic_tx_is_empty() argument
88 return ((empty_read_count ^ write_count) & ~EF4_EMPTY_COUNT_VALID) == 0; in __ef4_nic_tx_is_empty()
100 unsigned int write_count) in ef4_nic_may_push_tx_desc() argument
102 bool was_empty = __ef4_nic_tx_is_empty(tx_queue, write_count); in ef4_nic_may_push_tx_desc()
105 return was_empty && tx_queue->write_count - write_count == 1; in ef4_nic_may_push_tx_desc()
Dtx.c273 while (tx_queue->insert_count != tx_queue->write_count) { in ef4_enqueue_unwind()
524 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in ef4_xmit_done()
590 tx_queue->write_count = 0; in ef4_init_tx_queue()
617 while (tx_queue->read_count != tx_queue->write_count) { in ef4_fini_tx_queue()
Dfarch.c277 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_notify_tx_desc()
293 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_push_tx_desc()
311 unsigned old_write_count = tx_queue->write_count; in ef4_farch_tx_write()
314 if (unlikely(tx_queue->write_count == tx_queue->insert_count)) in ef4_farch_tx_write()
318 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_tx_write()
321 ++tx_queue->write_count; in ef4_farch_tx_write()
333 } while (tx_queue->write_count != tx_queue->insert_count); in ef4_farch_tx_write()
Dnet_driver.h237 unsigned int write_count; member
/Linux-v5.4/drivers/net/ethernet/sfc/
Dnic.h79 unsigned int write_count) in __efx_nic_tx_is_empty() argument
86 return ((empty_read_count ^ write_count) & ~EFX_EMPTY_COUNT_VALID) == 0; in __efx_nic_tx_is_empty()
123 unsigned int write_count) in efx_nic_may_push_tx_desc() argument
125 bool was_empty = __efx_nic_tx_is_empty(tx_queue, write_count); in efx_nic_may_push_tx_desc()
128 return was_empty && tx_queue->write_count - write_count == 1; in efx_nic_may_push_tx_desc()
Dtx.c781 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in efx_xmit_done()
847 tx_queue->write_count = 0; in efx_init_tx_queue()
882 while (tx_queue->read_count != tx_queue->write_count) { in efx_fini_tx_queue()
Dfarch.c286 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
302 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
320 unsigned old_write_count = tx_queue->write_count; in efx_farch_tx_write()
323 if (unlikely(tx_queue->write_count == tx_queue->insert_count)) in efx_farch_tx_write()
327 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
330 ++tx_queue->write_count; in efx_farch_tx_write()
342 } while (tx_queue->write_count != tx_queue->insert_count); in efx_farch_tx_write()
Def10.c2313 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
2509 tx_queue->write_count = 1; in efx_ef10_tx_init()
2564 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
2591 unsigned int old_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2597 if (unlikely(tx_queue->write_count == tx_queue->insert_count)) in efx_ef10_tx_write()
2601 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
2604 ++tx_queue->write_count; in efx_ef10_tx_write()
2611 tx_queue->packet_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2613 tx_queue->packet_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2622 } while (tx_queue->write_count != tx_queue->insert_count); in efx_ef10_tx_write()
[all …]
Dtx_tso.c378 EFX_WARN_ON_ONCE_PARANOID(tx_queue->write_count != tx_queue->insert_count); in efx_enqueue_skb_tso()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/
Ddm_services.h83 trace_amdgpu_dc_wreg(&ctx->perf_trace->write_count, address, value); in dm_write_reg_func()
350 CTX->perf_trace->write_count, &CTX->perf_trace->last_entry_read,\
353 __CTX->perf_trace->write_count, &__CTX->perf_trace->last_entry_read,\
Ddc_types.h78 unsigned long write_count; member
/Linux-v5.4/drivers/clocksource/
Dsh_cmt.c83 void (*write_count)(void __iomem *base, unsigned long offs, u32 value); member
183 .write_count = sh_cmt_write16,
193 .write_count = sh_cmt_write32,
204 .write_count = sh_cmt_write32,
215 .write_count = sh_cmt_write32,
226 .write_count = sh_cmt_write32,
267 ch->cmt->info->write_count(ch->ioctrl, CMCNT, value); in sh_cmt_write_cmcnt()
272 ch->cmt->info->write_count(ch->ioctrl, CMCOR, value); in sh_cmt_write_cmcor()
/Linux-v5.4/fs/xfs/
Dxfs_aops.c72 ASSERT(!iop || atomic_read(&iop->write_count) > 0); in xfs_finish_page_writeback()
74 if (!iop || atomic_dec_and_test(&iop->write_count)) in xfs_finish_page_writeback()
790 atomic_inc(&iop->write_count); in xfs_add_to_ioend()
881 ASSERT(!iop || atomic_read(&iop->write_count) == 0); in xfs_writepage_map()
/Linux-v5.4/include/linux/
Diomap.h141 atomic_t write_count; member
/Linux-v5.4/drivers/misc/mic/scif/
Dscif_api.c940 int curr_xfer_len = 0, sent_len = 0, write_count; in _scif_send() local
949 write_count = scif_rb_space(&qp->outbound_q); in _scif_send()
950 if (write_count) { in _scif_send()
952 curr_xfer_len = min(len - sent_len, write_count); in _scif_send()
/Linux-v5.4/fs/hfsplus/
Dhfsplus_raw.h128 __be32 write_count; member
/Linux-v5.4/fs/iomap/
Dbuffered-io.c32 atomic_set(&iop->write_count, 0); in iomap_page_create()
53 WARN_ON_ONCE(atomic_read(&iop->write_count)); in iomap_page_release()
/Linux-v5.4/drivers/media/common/siano/
Dsmscoreapi.h1052 u32 write_count; /* number of bytes to write */ member

12