Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/amd/amdgpu/
A 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()
A Damdgpu_virt.h75 int write_count; member
/drivers/net/ethernet/sfc/siena/
A Dnic_common.h68 static inline bool efx_nic_tx_is_empty(struct efx_tx_queue *tx_queue, unsigned int write_count) in efx_nic_tx_is_empty() argument
75 return ((empty_read_count ^ write_count) & ~EFX_EMPTY_COUNT_VALID) == 0; in efx_nic_tx_is_empty()
87 unsigned int write_count) in efx_nic_may_push_tx_desc() argument
89 bool was_empty = efx_nic_tx_is_empty(tx_queue, write_count); in efx_nic_may_push_tx_desc()
92 return was_empty && tx_queue->write_count - write_count == 1; in efx_nic_may_push_tx_desc()
A Dtx_common.c77 tx_queue->write_count = 0; in efx_siena_init_tx_queue()
181 while (tx_queue->read_count != tx_queue->write_count) { in efx_siena_fini_tx_queue()
230 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in efx_siena_xmit_done_check_empty()
A Dfarch.c288 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
304 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
322 unsigned old_write_count = tx_queue->write_count; in efx_farch_tx_write()
325 if (unlikely(tx_queue->write_count == tx_queue->insert_count)) in efx_farch_tx_write()
329 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
332 ++tx_queue->write_count; in efx_farch_tx_write()
344 } while (tx_queue->write_count != tx_queue->insert_count); in efx_farch_tx_write()
/drivers/net/ethernet/sfc/
A Dnic_common.h68 static inline bool efx_nic_tx_is_empty(struct efx_tx_queue *tx_queue, unsigned int write_count) in efx_nic_tx_is_empty() argument
75 return ((empty_read_count ^ write_count) & ~EFX_EMPTY_COUNT_VALID) == 0; in efx_nic_tx_is_empty()
88 unsigned int write_count) in efx_nic_may_push_tx_desc() argument
90 bool was_empty = efx_nic_tx_is_empty(tx_queue, write_count); in efx_nic_may_push_tx_desc()
93 return was_empty && tx_queue->write_count - write_count == 1; in efx_nic_may_push_tx_desc()
A Def100_tx.c117 if (unlikely(tx_queue->notify_count == tx_queue->write_count)) in ef100_notify_tx_desc()
120 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef100_notify_tx_desc()
125 tx_queue->notify_count = tx_queue->write_count; in ef100_notify_tx_desc()
260 unsigned int old_write_count = tx_queue->write_count; in ef100_tx_make_descriptors()
332 tx_queue->write_count = new_write_count; in ef100_tx_make_descriptors()
486 tx_queue->write_count - tx_queue->notify_count > 255) in __ef100_enqueue_skb()
A Dtx_common.c77 tx_queue->write_count = 0; in efx_init_tx_queue()
116 while (tx_queue->read_count != tx_queue->write_count) { in efx_fini_tx_queue()
258 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in efx_xmit_done_check_empty()
A Def10.c2225 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
2403 tx_queue->write_count = 1; in efx_ef10_tx_init()
2424 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
2451 unsigned int old_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2464 ++tx_queue->write_count; in efx_ef10_tx_write()
2473 tx_queue->packet_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2603 unsigned int write_count; in efx_ef10_rx_write() local
2607 write_count = rx_queue->added_count & ~7; in efx_ef10_rx_write()
2608 if (rx_queue->notified_count == write_count) in efx_ef10_rx_write()
2615 while (++rx_queue->notified_count != write_count); in efx_ef10_rx_write()
[all …]
A Dtx_tso.c378 EFX_WARN_ON_ONCE_PARANOID(tx_queue->write_count != tx_queue->insert_count); in efx_enqueue_skb_tso()
/drivers/char/ipmi/
A Dipmi_kcs_sm.c113 int write_count; member
131 kcs->write_count = 0; in init_kcs_data_with_state()
190 (kcs->write_count)--; in write_next_byte()
260 kcs->write_count = kcs->orig_write_count; in restart_kcs_transaction()
292 kcs->write_count = size; in start_kcs_transaction()
384 if (kcs->write_count == 1) { in kcs_event()
400 if (kcs->write_count == 1) { in kcs_event()
A Dipmi_smic_sm.c95 int write_count; member
110 smic->write_count = 0; in init_smic_data()
145 smic->write_count = size; in start_smic_transaction()
223 smic->write_count = smic->orig_write_count; in start_error_recovery()
235 (smic->write_count)--; in write_next_byte()
398 if (smic->write_count == 1) { in smic_event()
421 if (smic->write_count == 1) { in smic_event()
A Dipmi_bt_sm.c81 int write_count; member
232 bt->write_count = size + 2; in bt_start_transaction()
323 bt->write_count, bt->seq); in write_all_bytes()
324 for (i = 0; i < bt->write_count; i++) in write_all_bytes()
328 for (i = 0; i < bt->write_count; i++) in write_all_bytes()
/drivers/net/ethernet/sfc/falcon/
A 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()
A Dtx.c266 while (tx_queue->insert_count != tx_queue->write_count) { in ef4_enqueue_unwind()
517 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in ef4_xmit_done()
583 tx_queue->write_count = 0; in ef4_init_tx_queue()
610 while (tx_queue->read_count != tx_queue->write_count) { in ef4_fini_tx_queue()
A 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()
/drivers/fpga/tests/
A Dfpga-region-test.c19 u32 write_count; member
55 stats->write_count++; in op_write()
137 KUNIT_EXPECT_EQ(test, 1, ctx->mgr_stats.write_count); in fpga_region_test_program_fpga()
145 KUNIT_EXPECT_EQ(test, 2, ctx->mgr_stats.write_count); in fpga_region_test_program_fpga()
/drivers/clocksource/
A Dsh_cmt.c87 void (*write_count)(void __iomem *base, unsigned long offs, u32 value); member
188 .write_count = sh_cmt_write16,
198 .write_count = sh_cmt_write32,
209 .write_count = sh_cmt_write32,
220 .write_count = sh_cmt_write32,
231 .write_count = sh_cmt_write32,
298 ch->cmt->info->write_count(ch->ioctrl, CMCNT, value); in sh_cmt_write_cmcnt()
308 ch->cmt->info->write_count(ch->ioctrl, CMCOR, value); in sh_cmt_write_cmcor()
/drivers/mfd/
A Dintel-m10-bmc-pmci.c152 u32 blk_size, offset = 0, write_count; in pmci_flash_bulk_write() local
164 write_count = blk_size / M10BMC_N6000_FIFO_WORD_SIZE; in pmci_flash_bulk_write()
166 (u32 *)(buf + offset), write_count); in pmci_flash_bulk_write()
/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm_services.c49 ctx->perf_trace->write_count, in dm_perf_trace_timestamp()
A Damdgpu_dm_trace.h73 TP_PROTO(unsigned long read_count, unsigned long write_count,
76 TP_ARGS(read_count, write_count, last_read, last_write, func, line),
87 __entry->writes = write_count;
89 __entry->write_delta = write_count - *last_write;
93 *last_write = write_count;
/drivers/md/dm-vdo/
A Dstatistics.h107 u64 write_count; member
A Dslab-depot.c1223 block_count_t write_count = vdo_waitq_num_waiters(&slab->dirty_blocks); in reclaim_journal_space() local
1226 if ((length < journal->flushing_threshold) || (write_count == 0)) in reclaim_journal_space()
1233 write_count /= journal->flushing_deadline - length + 1; in reclaim_journal_space()
1234 write_count = max_t(block_count_t, write_count, 1); in reclaim_journal_space()
1237 for (written = 0; written < write_count; written++) { in reclaim_journal_space()
A Dmessage-stats.c201 write_u64("writeCount : ", stats->write_count, ", ", buf, maxlen); in write_block_map_statistics()
/drivers/fpga/
A Dintel-m10-bmc-sec-update.c45 u32 write_count = size / stride; in m10bmc_sec_write() local
46 u32 leftover_offset = write_count * stride; in m10bmc_sec_write()
58 buf + offset, write_count); in m10bmc_sec_write()

Completed in 95 milliseconds

12