Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/amdgpu_dm/
H A 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;
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H 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()
H A Damdgpu_virt.h59 int write_count; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/
H 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()
90 unsigned int write_count) in efx_nic_may_push_tx_desc() argument
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()
H A Def100_tx.c133 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()
393 tx_queue->write_count - tx_queue->notify_count > 255) in ef100_enqueue_skb()
H A Dtx_common.c76 tx_queue->write_count = 0; in efx_init_tx_queue()
108 while (tx_queue->read_count != tx_queue->write_count) { in efx_fini_tx_queue()
229 tx_queue->old_write_count = READ_ONCE(tx_queue->write_count); in efx_xmit_done_check_empty()
H A Def10.c2191 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
2369 tx_queue->write_count = 1; in efx_ef10_tx_init()
2390 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
2417 unsigned int old_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2423 if (unlikely(tx_queue->write_count == tx_queue->insert_count)) in efx_ef10_tx_write()
2427 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
2430 ++tx_queue->write_count; in efx_ef10_tx_write()
2437 tx_queue->packet_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2439 tx_queue->packet_write_count = tx_queue->write_count; in efx_ef10_tx_write()
2448 } while (tx_queue->write_count != tx_queue->insert_count); in efx_ef10_tx_write()
[all …]
H A Dfarch.c287 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
303 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
321 unsigned old_write_count = tx_queue->write_count; in efx_farch_tx_write()
324 if (unlikely(tx_queue->write_count == tx_queue->insert_count)) in efx_farch_tx_write()
328 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
331 ++tx_queue->write_count; in efx_farch_tx_write()
343 } while (tx_queue->write_count != tx_queue->insert_count); in efx_farch_tx_write()
H A Dtx_tso.c378 EFX_WARN_ON_ONCE_PARANOID(tx_queue->write_count != tx_queue->insert_count); in efx_enqueue_skb_tso()
/OK3568_Linux_fs/kernel/samples/bpf/
H A 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()
/OK3568_Linux_fs/kernel/drivers/char/ipmi/
H A Dipmi_kcs_sm.c113 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 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()
H 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/falcon/
H 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()
H A 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()
H 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()
/OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_canfdtest/
H A Dcanfdtest.c30 static int write_count = 0; variable
71 printf("write_count = %d read_count = %d err_count = %d\n", write_count, read_count, err_count); in sigterm()
257 write_count++; in main()
/OK3568_Linux_fs/kernel/drivers/clocksource/
H A Dsh_cmt.c87 void (*write_count)(void __iomem *base, unsigned long offs, u32 value); member
187 .write_count = sh_cmt_write16,
197 .write_count = sh_cmt_write32,
208 .write_count = sh_cmt_write32,
219 .write_count = sh_cmt_write32,
230 .write_count = sh_cmt_write32,
271 ch->cmt->info->write_count(ch->ioctrl, CMCNT, value); in sh_cmt_write_cmcnt()
276 ch->cmt->info->write_count(ch->ioctrl, CMCOR, value); in sh_cmt_write_cmcor()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/
H A Ddm_services.h86 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,\
H A Ddc_types.h92 unsigned long write_count; member
/OK3568_Linux_fs/external/recovery/update_engine/
H A Dupdate.c240 unsigned int write_count = 0; in ota_recovery_cmds() local
290 write_count = strlen(data_buf); in ota_recovery_cmds()
292 if (write(fd, data_buf, write_count) != write_count) { in ota_recovery_cmds()
H A Dflash_image.c134 long long read_count, write_count; in block_write() local
182 write_count = dest_remain > dest_step ? dest_step : dest_remain; in block_write()
184 if (write(fd_dest, data_buf, write_count) != write_count) { in block_write()
190 dest_remain -= write_count; in block_write()
/OK3568_Linux_fs/u-boot/arch/arm/mach-zynq/include/mach/
H A Dhardware.h113 u32 write_count; /* 0x88 */ member
/OK3568_Linux_fs/kernel/fs/hfsplus/
H A Dhfsplus_raw.h128 __be32 write_count; member
/OK3568_Linux_fs/u-boot/drivers/fpga/
H A Dzynqpl.c172 readl(&devcfg_base->write_count)); in zynq_dma_transfer()

12