/linux-6.1.9/drivers/media/platform/verisilicon/ |
D | hantro_vp9.c | 71 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 …]
|
D | hantro_hw.h | 227 struct v4l2_vp9_frame_symbol_counts cnts; member
|
D | hantro_g2_vp9_dec.c | 977 counts = &vp9_ctx->cnts; in hantro_g2_vp9_dec_done()
|
/linux-6.1.9/include/asm-generic/ |
D | qrwlock.h | 46 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 …]
|
D | qrwlock_types.h | 15 atomic_t cnts; member 30 { .cnts = ATOMIC_INIT(0), }, \
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | counters.c | 160 return is_mdev_switchdev_mode(dev->mdev) ? &dev->port[0].cnts : in get_counters() 161 &dev->port[port_num].cnts; in get_counters() 175 const struct mlx5_ib_counters *cnts = get_counters(dev, port_num); in mlx5_ib_get_counters_id() local 177 return cnts->set_id; in mlx5_ib_get_counters_id() 180 static struct rdma_hw_stats *do_alloc_stats(const struct mlx5_ib_counters *cnts) in do_alloc_stats() argument 186 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in do_alloc_stats() 187 cnts->num_ext_ppcnt_counters; in do_alloc_stats() 188 stats = rdma_alloc_hw_stats_struct(cnts->descs, in do_alloc_stats() 190 cnts->num_op_counters, in do_alloc_stats() 195 for (i = 0; i < cnts->num_op_counters; i++) in do_alloc_stats() [all …]
|
D | mlx5_ib.h | 838 struct mlx5_ib_counters cnts; member
|
/linux-6.1.9/kernel/locking/ |
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.1.9/arch/s390/include/asm/ |
D | spinlock.h | 109 old = __atomic_add(1, &rw->cnts); in arch_read_lock() 116 __atomic_add_const_barrier(-1, &rw->cnts); in arch_read_unlock() 121 if (!__atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000)) in arch_write_lock() 127 __atomic_add_barrier(-0x30000, &rw->cnts); in arch_write_unlock() 135 old = READ_ONCE(rw->cnts); in arch_read_trylock() 137 __atomic_cmpxchg_bool(&rw->cnts, old, old + 1)); in arch_read_trylock() 144 old = READ_ONCE(rw->cnts); in arch_write_trylock() 145 return !old && __atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000); in arch_write_trylock()
|
D | spinlock_types.h | 16 int cnts; member
|
/linux-6.1.9/drivers/counter/ |
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.1.9/drivers/staging/rtl8712/ |
D | rtl8712_efuse.c | 423 u16 cnts, u8 *data) in r8712_efuse_access() argument 430 if (!bRead && ((start_addr + cnts) > in r8712_efuse_access() 436 for (i = 0; i < cnts; i++) { in r8712_efuse_access() 451 u8 r8712_efuse_map_read(struct _adapter *adapter, u16 addr, u16 cnts, u8 *data) in r8712_efuse_map_read() argument 457 if ((addr + cnts) > EFUSE_MAP_MAX_SIZE) in r8712_efuse_map_read() 460 for (i = 0; i < cnts; i++) in r8712_efuse_map_read() 472 if (idx == cnts) in r8712_efuse_map_read() 483 u8 r8712_efuse_map_write(struct _adapter *adapter, u16 addr, u16 cnts, in r8712_efuse_map_write() argument 490 if ((addr + cnts) > EFUSE_MAP_MAX_SIZE) in r8712_efuse_map_write() 524 if ((cnts - idx) == 1) { in r8712_efuse_map_write() [all …]
|
D | rtl8712_efuse.h | 38 u16 start_addr, u16 cnts, u8 *data); 40 u16 cnts, u8 *data); 42 u16 cnts, u8 *data);
|
D | rtl871x_mp_ioctl.c | 669 u16 addr = 0, cnts = 0; in oid_rt_pro_read_efuse_hdl() local 678 cnts = pefuse->cnts; in oid_rt_pro_read_efuse_hdl() 680 memset(data, 0xFF, cnts); in oid_rt_pro_read_efuse_hdl() 681 if ((addr > 511) || (cnts < 1) || (cnts > 512) || (addr + cnts) > in oid_rt_pro_read_efuse_hdl() 684 if (!r8712_efuse_access(Adapter, true, addr, cnts, data)) in oid_rt_pro_read_efuse_hdl() 700 u16 addr = 0, cnts = 0; in oid_rt_pro_write_efuse_hdl() local 707 cnts = pefuse->cnts; in oid_rt_pro_write_efuse_hdl() 710 if ((addr > 511) || (cnts < 1) || (cnts > 512) || in oid_rt_pro_write_efuse_hdl() 711 (addr + cnts) > r8712_efuse_get_max_size(Adapter)) in oid_rt_pro_write_efuse_hdl() 713 if (!r8712_efuse_access(Adapter, false, addr, cnts, data)) in oid_rt_pro_write_efuse_hdl()
|
D | rtl871x_mp_ioctl.h | 50 u16 cnts; member
|
/linux-6.1.9/arch/s390/lib/ |
D | spinlock.c | 272 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait() 278 __atomic_add_const(-1, &rw->cnts); in arch_read_lock_wait() 282 __atomic_add_const(1, &rw->cnts); in arch_read_lock_wait() 284 while (READ_ONCE(rw->cnts) & 0x10000) in arch_read_lock_wait() 295 __atomic_add(0x20000, &rw->cnts); in arch_write_lock_wait() 301 old = READ_ONCE(rw->cnts); in arch_write_lock_wait() 303 __atomic_cmpxchg_bool(&rw->cnts, old, old | 0x10000)) in arch_write_lock_wait()
|
/linux-6.1.9/drivers/bus/ |
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.1.9/drivers/net/dsa/ |
D | vitesse-vsc73xx-core.c | 903 const struct vsc73xx_counter *cnts; in vsc73xx_find_counter() local 908 cnts = vsc73xx_tx_counters; in vsc73xx_find_counter() 911 cnts = vsc73xx_rx_counters; in vsc73xx_find_counter() 918 cnt = &cnts[i]; in vsc73xx_find_counter()
|