| /linux-6.15/drivers/media/platform/verisilicon/ |
| H A D | hantro_vp9.c | 124 vp9_ctx->cnts.skip = &cnts->mbskip_count; in init_v4l2_vp9_count_tbl() 126 vp9_ctx->cnts.tx32p = &cnts->tx32x32_count; in init_v4l2_vp9_count_tbl() 133 vp9_ctx->cnts.tx8p = &cnts->tx8x8_count; in init_v4l2_vp9_count_tbl() 135 vp9_ctx->cnts.y_mode = &cnts->sb_ymode_counts; in init_v4l2_vp9_count_tbl() 136 vp9_ctx->cnts.uv_mode = &cnts->uv_mode_counts; in init_v4l2_vp9_count_tbl() 137 vp9_ctx->cnts.comp = &cnts->comp_inter_count; in init_v4l2_vp9_count_tbl() 138 vp9_ctx->cnts.comp_ref = &cnts->comp_ref_count; in init_v4l2_vp9_count_tbl() 142 vp9_ctx->cnts.sign = &cnts->mv_counts.sign; in init_v4l2_vp9_count_tbl() 145 vp9_ctx->cnts.bits = &cnts->mv_counts.bits; in init_v4l2_vp9_count_tbl() 147 vp9_ctx->cnts.fp = &cnts->mv_counts.fp; in init_v4l2_vp9_count_tbl() [all …]
|
| H A D | hantro_hw.h | 243 struct v4l2_vp9_frame_symbol_counts cnts; member
|
| H A D | hantro_g2_vp9_dec.c | 961 counts = &vp9_ctx->cnts; in hantro_g2_vp9_dec_done()
|
| /linux-6.15/include/asm-generic/ |
| H A D | qrwlock.h | 46 int cnts; in queued_read_trylock() local 48 cnts = atomic_read(&lock->cnts); in queued_read_trylock() 50 cnts = (u32)atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_trylock() 65 int cnts; in queued_write_trylock() local 67 cnts = atomic_read(&lock->cnts); in queued_write_trylock() 68 if (unlikely(cnts)) in queued_write_trylock() 71 return likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, in queued_write_trylock() 80 int cnts; in queued_read_lock() local 82 cnts = atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_lock() 96 int cnts = 0; in queued_write_lock() local [all …]
|
| H A D | qrwlock_types.h | 15 atomic_t cnts; member 30 { .cnts = ATOMIC_INIT(0), }, \
|
| /linux-6.15/kernel/locking/ |
| H A D | qrwlock.c | 33 atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); in queued_read_lock_slowpath() 36 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath() 44 atomic_add(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath() 51 atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); in queued_read_lock_slowpath() 68 int cnts; in queued_write_lock_slowpath() local 76 if (!(cnts = atomic_read(&lock->cnts)) && in queued_write_lock_slowpath() 77 atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)) in queued_write_lock_slowpath() 81 atomic_or(_QW_WAITING, &lock->cnts); in queued_write_lock_slowpath() 85 cnts = atomic_cond_read_relaxed(&lock->cnts, VAL == _QW_WAITING); in queued_write_lock_slowpath() 86 } while (!atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)); in queued_write_lock_slowpath()
|
| /linux-6.15/drivers/infiniband/hw/mlx5/ |
| H A D | counters.c | 226 &dev->port[1].cnts : &dev->port[port_num - 1].cnts; in get_counters() 242 return cnts->set_id; in mlx5_ib_get_counters_id() 251 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in do_alloc_stats() 270 const struct mlx5_ib_counters *cnts = &dev->port[0].cnts; in mlx5_ib_alloc_hw_device_stats() local 312 int offset = cnts->num_q_counters + cnts->num_cong_counters; in mlx5_ib_query_ext_ppcnt_counters() 526 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in do_get_op_stats() 547 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in mlx5_ib_get_hw_stats() 841 if (!cnts->descs) in __mlx5_ib_alloc_counters() 846 if (!cnts->offsets) in __mlx5_ib_alloc_counters() 1137 cnts = &dev->port[port - 1].cnts; in mlx5_ib_modify_stat() [all …]
|
| H A D | fs.c | 1407 struct mlx5_ib_counters *cnts; in mlx5r_fs_bind_op_fc() local 1416 cnts = &dev->port[port - 1].cnts; in mlx5r_fs_bind_op_fc() 1419 opfc = &cnts->opfcs[i]; in mlx5r_fs_bind_op_fc()
|
| H A D | mlx5_ib.h | 932 struct mlx5_ib_counters cnts; member
|
| /linux-6.15/tools/testing/selftests/drivers/net/hw/ |
| H A D | rss_ctx.py | 96 cnts = _get_rx_cnts(cfg, prev=cnts) 168 cnts = _get_rx_cnts(cfg, prev=cnts) 170 ksft_ge(cnts[0], 5000, "traffic on main context (1/2): " + str(cnts)) 171 ksft_ge(cnts[1], 5000, "traffic on main context (2/2): " + str(cnts)) 173 ksft_eq(sum(cnts[2:]), 0, "traffic on unused queues: " + str(cnts)) 180 cnts = _get_rx_cnts(cfg, prev=cnts) 182 ksft_lt(sum(cnts[:2]), sum(cnts[2:]), "traffic distributed: " + str(cnts)) 631 cnts = _get_rx_cnts(cfg, prev=cnts) 633 ksft_ge(sum(cnts[ :4]), 20000, "traffic on main context: " + str(cnts)) 637 ksft_eq(sum(cnts[4: ]), 0, "traffic on other queues: " + str(cnts)) [all …]
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | spinlock.h | 128 old = __atomic_add(1, &rw->cnts); in arch_read_lock() 135 __atomic_add_const_barrier(-1, &rw->cnts); in arch_read_unlock() 142 if (!arch_try_cmpxchg(&rw->cnts, &old, 0x30000)) in arch_write_lock() 148 __atomic_add_barrier(-0x30000, &rw->cnts); in arch_write_unlock() 156 old = READ_ONCE(rw->cnts); in arch_read_trylock() 157 return (!(old & 0xffff0000) && arch_try_cmpxchg(&rw->cnts, &old, old + 1)); in arch_read_trylock() 164 old = READ_ONCE(rw->cnts); in arch_write_trylock() 165 return !old && arch_try_cmpxchg(&rw->cnts, &old, 0x30000); in arch_write_trylock()
|
| H A D | spinlock_types.h | 16 int cnts; member
|
| /linux-6.15/drivers/counter/ |
| H A D | interrupt-cnt.c | 24 struct counter_count cnts; member 209 priv->cnts.name = "Channel 0 Count"; in interrupt_cnt_probe() 210 priv->cnts.functions_list = interrupt_cnt_functions; in interrupt_cnt_probe() 211 priv->cnts.num_functions = ARRAY_SIZE(interrupt_cnt_functions); in interrupt_cnt_probe() 212 priv->cnts.synapses = &priv->synapses; in interrupt_cnt_probe() 213 priv->cnts.num_synapses = 1; in interrupt_cnt_probe() 214 priv->cnts.ext = interrupt_cnt_ext; in interrupt_cnt_probe() 215 priv->cnts.num_ext = ARRAY_SIZE(interrupt_cnt_ext); in interrupt_cnt_probe() 220 counter->counts = &priv->cnts; in interrupt_cnt_probe()
|
| /linux-6.15/arch/s390/lib/ |
| H A D | spinlock.c | 311 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait() 317 __atomic_add_const(-1, &rw->cnts); in arch_read_lock_wait() 321 __atomic_add_const(1, &rw->cnts); in arch_read_lock_wait() 323 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait() 334 __atomic_add(0x20000, &rw->cnts); in arch_write_lock_wait() 340 old = READ_ONCE(rw->cnts); in arch_write_lock_wait() 342 arch_try_cmpxchg(&rw->cnts, &old, old | 0x10000)) in arch_write_lock_wait()
|
| /linux-6.15/tools/sched_ext/ |
| H A D | scx_simple.c | 44 __u64 cnts[2][nr_cpus]; in read_stats() local 53 &idx, cnts[idx]); in read_stats() 57 stats[idx] += cnts[idx][cpu]; in read_stats()
|
| H A D | scx_flatcg.c | 104 __u64 cnts[FCG_NR_STATS][skel->rodata->nr_cpus]; in fcg_read_stats() local 113 &idx, cnts[idx]); in fcg_read_stats() 117 stats[idx] += cnts[idx][cpu]; in fcg_read_stats()
|
| /linux-6.15/drivers/net/ethernet/google/gve/ |
| H A D | gve_rx.c | 802 struct gve_rx_cnts *cnts) in gve_rx() argument 827 cnts->desc_err_pkt_cnt++; in gve_rx() 926 cnts->ok_pkt_bytes += ctx->total_size; in gve_rx() 927 cnts->ok_pkt_cnt++; in gve_rx() 931 cnts->total_pkt_cnt++; in gve_rx() 932 cnts->cont_pkt_cnt += (ctx->frag_cnt > 1); in gve_rx() 1011 struct gve_rx_cnts cnts = {0}; in gve_clean_rx_done() local 1024 gve_rx(rx, feat, desc, idx, &cnts); in gve_clean_rx_done() 1049 rx->rpackets += cnts.ok_pkt_cnt; in gve_clean_rx_done() 1050 rx->rbytes += cnts.ok_pkt_bytes; in gve_clean_rx_done() [all …]
|
| /linux-6.15/drivers/bus/ |
| H A D | moxtet.c | 335 int cnts[TURRIS_MOX_MODULE_LAST]; in moxtet_find_topology() local 338 memset(cnts, 0, sizeof(cnts)); in moxtet_find_topology() 371 if (moxtet_set_irq(moxtet, i-1, id, cnts[id]++) < 0) in moxtet_find_topology()
|
| /linux-6.15/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | sock.c | 583 void test_tcp_counters_free(struct tcp_counters *cnts) in test_tcp_counters_free() argument 585 free(cnts->ao.key_cnts); in test_tcp_counters_free()
|
| H A D | aolib.h | 579 extern void test_tcp_counters_free(struct tcp_counters *cnts);
|
| /linux-6.15/drivers/net/dsa/ |
| H A D | vitesse-vsc73xx-core.c | 1455 const struct vsc73xx_counter *cnts; in vsc73xx_find_counter() local 1460 cnts = vsc73xx_tx_counters; in vsc73xx_find_counter() 1463 cnts = vsc73xx_rx_counters; in vsc73xx_find_counter() 1470 cnt = &cnts[i]; in vsc73xx_find_counter()
|