/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_trace.h | 52 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;
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vf_error.c | 42 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_SIZE) { 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vf_error.c | 42 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_SIZE) { 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
H A D | nic_common.h | 65 /* Report whether this TX queue would be empty for the given write_count. 68 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() 83 * We use the write_count used for the last doorbell push, to get the 87 unsigned int write_count) in efx_nic_may_push_tx_desc() 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() 86 efx_nic_may_push_tx_desc(struct efx_tx_queue *tx_queue, unsigned int write_count) efx_nic_may_push_tx_desc() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | nic_common.h | 65 /* Report whether this TX queue would be empty for the given write_count. 68 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() 86 * We use the write_count used for the last doorbell push, to get the 90 unsigned int write_count) in efx_nic_may_push_tx_desc() 92 bool was_empty = efx_nic_tx_is_empty(tx_queue, write_count); in efx_nic_may_push_tx_desc() 95 return was_empty && tx_queue->write_count - write_count == 1; in efx_nic_may_push_tx_desc() 89 efx_nic_may_push_tx_desc(struct efx_tx_queue *tx_queue, unsigned int write_count) efx_nic_may_push_tx_desc() argument
|
H A D | ef100_tx.c | 133 if (unlikely(tx_queue->notify_count == tx_queue->write_count)) in ef100_notify_tx_desc() 136 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef100_notify_tx_desc() 141 tx_queue->notify_count = tx_queue->write_count; in ef100_notify_tx_desc() 243 unsigned int old_write_count = tx_queue->write_count; in ef100_tx_make_descriptors() 298 tx_queue->write_count = new_write_count; in ef100_tx_make_descriptors() 300 /* The write_count above must be updated before reading in ef100_tx_make_descriptors() 303 * re-ordered. This also flushes the update of write_count in ef100_tx_make_descriptors() 394 tx_queue->write_count - tx_queue->notify_count > 255) in ef100_enqueue_skb()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
H A D | nic_common.h | 64 /* Report whether this TX queue would be empty for the given write_count. 67 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 74 return ((empty_read_count ^ write_count) & ~EFX_EMPTY_COUNT_VALID) == 0; in efx_nic_tx_is_empty() 83 * We use the write_count used for the last doorbell push, to get the 87 unsigned int write_count) in efx_nic_may_push_tx_desc() 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() 86 efx_nic_may_push_tx_desc(struct efx_tx_queue *tx_queue, unsigned int write_count) efx_nic_may_push_tx_desc() argument
|
H A D | ef100_tx.c | 117 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() 334 /* The write_count above must be updated before reading in ef100_tx_make_descriptors() 337 * re-ordered. This also flushes the update of write_count in ef100_tx_make_descriptors() 486 tx_queue->write_count - tx_queue->notify_count > 255) in __ef100_enqueue_skb()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | ibumad_kern.c | 26 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()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | ibumad_kern.c | 31 } write_count SEC(".maps"); 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()
|
/kernel/linux/linux-5.10/drivers/char/ipmi/ |
H A D | ipmi_kcs_sm.c | 113 int write_count; member 131 kcs->write_count = 0; in init_kcs_data() 184 (kcs->write_count)--; in write_next_byte() 254 kcs->write_count = kcs->orig_write_count; in restart_kcs_transaction() 286 kcs->write_count = size; in start_kcs_transaction() 378 if (kcs->write_count == 1) { in kcs_event() 394 if (kcs->write_count == 1) { in kcs_event()
|
H A D | ipmi_smic_sm.c | 95 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()
|
H A D | ipmi_bt_sm.c | 81 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()
|
/kernel/linux/linux-6.6/drivers/char/ipmi/ |
H A D | ipmi_kcs_sm.c | 113 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()
|
H A D | ipmi_smic_sm.c | 95 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()
|
H A D | ipmi_bt_sm.c | 81 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()
|
/kernel/linux/linux-6.6/drivers/fpga/tests/ |
H A D | fpga-region-test.c | 19 u32 write_count; member 42 stats->write_count++; in op_write() 121 KUNIT_EXPECT_EQ(test, 1, ctx->mgr_stats.write_count); in fpga_region_test_program_fpga() 129 KUNIT_EXPECT_EQ(test, 2, ctx->mgr_stats.write_count); in fpga_region_test_program_fpga()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
H A D | nic.h | 77 /* Report whether this TX queue would be empty for the given write_count. 81 unsigned int write_count) in __ef4_nic_tx_is_empty() 88 return ((empty_read_count ^ write_count) & ~EF4_EMPTY_COUNT_VALID) == 0; in __ef4_nic_tx_is_empty() 96 * We use the write_count used for the last doorbell push, to get the 100 unsigned int write_count) in ef4_nic_may_push_tx_desc() 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() 80 __ef4_nic_tx_is_empty(struct ef4_tx_queue *tx_queue, unsigned int write_count) __ef4_nic_tx_is_empty() argument 99 ef4_nic_may_push_tx_desc(struct ef4_tx_queue *tx_queue, unsigned int write_count) ef4_nic_may_push_tx_desc() argument
|
H A D | tx.c | 273 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
H A D | nic.h | 77 /* Report whether this TX queue would be empty for the given write_count. 81 unsigned int write_count) in __ef4_nic_tx_is_empty() 88 return ((empty_read_count ^ write_count) & ~EF4_EMPTY_COUNT_VALID) == 0; in __ef4_nic_tx_is_empty() 96 * We use the write_count used for the last doorbell push, to get the 100 unsigned int write_count) in ef4_nic_may_push_tx_desc() 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() 80 __ef4_nic_tx_is_empty(struct ef4_tx_queue *tx_queue, unsigned int write_count) __ef4_nic_tx_is_empty() argument 99 ef4_nic_may_push_tx_desc(struct ef4_tx_queue *tx_queue, unsigned int write_count) ef4_nic_may_push_tx_desc() argument
|
H A D | tx.c | 274 while (tx_queue->insert_count != tx_queue->write_count) { in ef4_enqueue_unwind() 525 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in ef4_xmit_done() 591 tx_queue->write_count = 0; in ef4_init_tx_queue() 618 while (tx_queue->read_count != tx_queue->write_count) { in ef4_fini_tx_queue()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_services.c | 49 ctx->perf_trace->write_count, in dm_perf_trace_timestamp()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/ |
H A D | dm_services.h | 86 trace_amdgpu_dc_wreg(&ctx->perf_trace->write_count, address, value); in dm_write_reg_func() 291 CTX->perf_trace->write_count, &CTX->perf_trace->last_entry_read,\ 294 __CTX->perf_trace->write_count, &__CTX->perf_trace->last_entry_read,\
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | sh_cmt.c | 88 void (*write_count)(void __iomem *base, unsigned long offs, u32 value); member 189 .write_count = sh_cmt_write16, 199 .write_count = sh_cmt_write32, 210 .write_count = sh_cmt_write32, 221 .write_count = sh_cmt_write32, 232 .write_count = sh_cmt_write32, 299 ch->cmt->info->write_count(ch->ioctrl, CMCNT, value); in sh_cmt_write_cmcnt() 309 ch->cmt->info->write_count(ch->ioctrl, CMCOR, value); in sh_cmt_write_cmcor()
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | sh_cmt.c | 87 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()
|