Home
last modified time | relevance | path

Searched refs:cnts (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/media/platform/verisilicon/
H A Dhantro_vp9.c71 static void *get_coeffs_arr(struct symbol_counts *cnts, int i, int j, int k, int l, int m) in get_coeffs_arr() argument
74 return &cnts->count_coeffs[j][k][l][m]; in get_coeffs_arr()
77 return &cnts->count_coeffs8x8[j][k][l][m]; in get_coeffs_arr()
80 return &cnts->count_coeffs16x16[j][k][l][m]; in get_coeffs_arr()
83 return &cnts->count_coeffs32x32[j][k][l][m]; in get_coeffs_arr()
88 static void *get_eobs1(struct symbol_counts *cnts, int i, int j, int k, int l, int m) in get_eobs1() argument
91 return &cnts->count_coeffs[j][k][l][m][3]; in get_eobs1()
94 return &cnts->count_coeffs8x8[j][k][l][m][3]; in get_eobs1()
97 return &cnts->count_coeffs16x16[j][k][l][m][3]; in get_eobs1()
100 return &cnts->count_coeffs32x32[j][k][l][m][3]; in get_eobs1()
[all …]
/linux/include/asm-generic/
H A Dqrwlock.h46 int cnts; in queued_read_trylock() local
48 cnts = atomic_read(&lock->cnts); in queued_read_trylock()
49 if (likely(!(cnts & _QW_WMASK))) { in queued_read_trylock()
50 cnts = (u32)atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_trylock()
51 if (likely(!(cnts & _QW_WMASK))) in queued_read_trylock()
53 atomic_sub(_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()
[all …]
H A Dqrwlock_types.h15 atomic_t cnts; member
30 { .cnts = ATOMIC_INIT(0), }, \
/linux/kernel/locking/
H A Dqrwlock.c33 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/drivers/infiniband/hw/mlx5/
H A Dcounters.c235 return &dev->port[0].cnts; in get_counters()
238 &dev->port[1].cnts : &dev->port[port_num - 1].cnts; in get_counters()
252 const struct mlx5_ib_counters *cnts = get_counters(dev, port_num + 1); in mlx5_ib_get_counters_id() local
254 return cnts->set_id; in mlx5_ib_get_counters_id()
257 static struct rdma_hw_stats *do_alloc_stats(const struct mlx5_ib_counters *cnts) in do_alloc_stats() argument
263 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in do_alloc_stats()
264 cnts->num_ext_ppcnt_counters; in do_alloc_stats()
265 stats = rdma_alloc_hw_stats_struct(cnts->descs, in do_alloc_stats()
267 cnts->num_op_counters, in do_alloc_stats()
272 for (i = 0; i < cnts->num_op_counters; i++) in do_alloc_stats()
[all …]
H A Dfs.c1408 struct mlx5_ib_counters *cnts; in mlx5r_fs_bind_op_fc() local
1414 cnts = &dev->port[port - 1].cnts; in mlx5r_fs_bind_op_fc()
1417 opfc = &cnts->opfcs[i]; in mlx5r_fs_bind_op_fc()
/linux/tools/testing/selftests/drivers/net/hw/
H A Drss_ctx.py94 cnts = _get_rx_cnts(cfg)
96 cnts = _get_rx_cnts(cfg, prev=cnts)
98 directed = sum(cnts[i] for i in params['target'])
100 ksft_ge(directed, 20000, f"traffic on {name}: " + str(cnts))
102 ksft_lt(sum(cnts[i] for i in params['noise']), directed / 2,
103 f"traffic on other queues ({name})':" + str(cnts))
105 ksft_eq(sum(cnts[i] for i in params['empty']), 0,
106 f"traffic on inactive queues ({name}): " + str(cnts))
166 cnts
[all...]
/linux/arch/s390/include/asm/
H A Dspinlock.h128 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 Dspinlock_types.h16 int cnts; member
/linux/drivers/counter/
H A Dinterrupt-cnt.c27 struct counter_count cnts; member
216 priv->cnts.name = "Channel 0 Count"; in interrupt_cnt_probe()
217 priv->cnts.functions_list = interrupt_cnt_functions; in interrupt_cnt_probe()
218 priv->cnts.num_functions = ARRAY_SIZE(interrupt_cnt_functions); in interrupt_cnt_probe()
219 priv->cnts.synapses = &priv->synapses; in interrupt_cnt_probe()
220 priv->cnts.num_synapses = 1; in interrupt_cnt_probe()
221 priv->cnts.ext = interrupt_cnt_ext; in interrupt_cnt_probe()
222 priv->cnts.num_ext = ARRAY_SIZE(interrupt_cnt_ext); in interrupt_cnt_probe()
227 counter->counts = &priv->cnts; in interrupt_cnt_probe()
/linux/arch/s390/lib/
H A Dspinlock.c311 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/tools/sched_ext/
H A Dscx_simple.c46 __u64 cnts[2][nr_cpus]; in read_stats() local
55 &idx, cnts[idx]); in read_stats()
59 stats[idx] += cnts[idx][cpu]; in read_stats()
H A Dscx_cpu0.c44 __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 Dscx_flatcg.c105 __u64 cnts[FCG_NR_STATS][skel->rodata->nr_cpus]; in fcg_read_stats() local
114 &idx, cnts[idx]); in fcg_read_stats()
118 stats[idx] += cnts[idx][cpu]; in fcg_read_stats()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_rx.c802 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/drivers/bus/
H A Dmoxtet.c335 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/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c583 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 Daolib.h579 extern void test_tcp_counters_free(struct tcp_counters *cnts);
/linux/drivers/net/dsa/
H A Dvitesse-vsc73xx-core.c1455 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()