cnts 116 arch/s390/include/asm/spinlock.h old = __atomic_add(1, &rw->cnts); cnts 123 arch/s390/include/asm/spinlock.h __atomic_add_const_barrier(-1, &rw->cnts); cnts 128 arch/s390/include/asm/spinlock.h if (!__atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000)) cnts 134 arch/s390/include/asm/spinlock.h __atomic_add_barrier(-0x30000, &rw->cnts); cnts 142 arch/s390/include/asm/spinlock.h old = READ_ONCE(rw->cnts); cnts 144 arch/s390/include/asm/spinlock.h __atomic_cmpxchg_bool(&rw->cnts, old, old + 1)); cnts 151 arch/s390/include/asm/spinlock.h old = READ_ONCE(rw->cnts); cnts 152 arch/s390/include/asm/spinlock.h return !old && __atomic_cmpxchg_bool(&rw->cnts, 0, 0x30000); cnts 16 arch/s390/include/asm/spinlock_types.h int cnts; cnts 273 arch/s390/lib/spinlock.c while (READ_ONCE(rw->cnts) & 0x10000) cnts 279 arch/s390/lib/spinlock.c __atomic_add_const(-1, &rw->cnts); cnts 283 arch/s390/lib/spinlock.c __atomic_add_const(1, &rw->cnts); cnts 285 arch/s390/lib/spinlock.c while (READ_ONCE(rw->cnts) & 0x10000) cnts 296 arch/s390/lib/spinlock.c __atomic_add(0x20000, &rw->cnts); cnts 302 arch/s390/lib/spinlock.c old = READ_ONCE(rw->cnts); cnts 304 arch/s390/lib/spinlock.c __atomic_cmpxchg_bool(&rw->cnts, old, old | 0x10000)) cnts 336 drivers/bus/moxtet.c int cnts[TURRIS_MOX_MODULE_LAST]; cnts 339 drivers/bus/moxtet.c memset(cnts, 0, sizeof(cnts)); cnts 372 drivers/bus/moxtet.c if (moxtet_set_irq(moxtet, i-1, id, cnts[id]++) < 0) cnts 5346 drivers/infiniband/hw/mlx5/main.c if (dev->port[i].cnts.set_id_valid) cnts 5348 drivers/infiniband/hw/mlx5/main.c dev->port[i].cnts.set_id); cnts 5349 drivers/infiniband/hw/mlx5/main.c kfree(dev->port[i].cnts.names); cnts 5350 drivers/infiniband/hw/mlx5/main.c kfree(dev->port[i].cnts.offsets); cnts 5355 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_counters *cnts) cnts 5370 drivers/infiniband/hw/mlx5/main.c cnts->num_q_counters = num_counters; cnts 5373 drivers/infiniband/hw/mlx5/main.c cnts->num_cong_counters = ARRAY_SIZE(cong_cnts); cnts 5377 drivers/infiniband/hw/mlx5/main.c cnts->num_ext_ppcnt_counters = ARRAY_SIZE(ext_ppcnt_cnts); cnts 5380 drivers/infiniband/hw/mlx5/main.c cnts->names = kcalloc(num_counters, sizeof(cnts->names), GFP_KERNEL); cnts 5381 drivers/infiniband/hw/mlx5/main.c if (!cnts->names) cnts 5384 drivers/infiniband/hw/mlx5/main.c cnts->offsets = kcalloc(num_counters, cnts 5385 drivers/infiniband/hw/mlx5/main.c sizeof(cnts->offsets), GFP_KERNEL); cnts 5386 drivers/infiniband/hw/mlx5/main.c if (!cnts->offsets) cnts 5392 drivers/infiniband/hw/mlx5/main.c kfree(cnts->names); cnts 5393 drivers/infiniband/hw/mlx5/main.c cnts->names = NULL; cnts 5456 drivers/infiniband/hw/mlx5/main.c err = __mlx5_ib_alloc_counters(dev, &dev->port[i].cnts); cnts 5460 drivers/infiniband/hw/mlx5/main.c mlx5_ib_fill_counters(dev, dev->port[i].cnts.names, cnts 5461 drivers/infiniband/hw/mlx5/main.c dev->port[i].cnts.offsets); cnts 5464 drivers/infiniband/hw/mlx5/main.c &dev->port[i].cnts.set_id, cnts 5473 drivers/infiniband/hw/mlx5/main.c dev->port[i].cnts.set_id_valid = true; cnts 5485 drivers/infiniband/hw/mlx5/main.c return is_mdev_switchdev_mode(dev->mdev) ? &dev->port[0].cnts : cnts 5486 drivers/infiniband/hw/mlx5/main.c &dev->port[port_num].cnts; cnts 5500 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts = get_counters(dev, port_num); cnts 5502 drivers/infiniband/hw/mlx5/main.c return cnts->set_id; cnts 5509 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts; cnts 5515 drivers/infiniband/hw/mlx5/main.c cnts = get_counters(dev, port_num - 1); cnts 5517 drivers/infiniband/hw/mlx5/main.c return rdma_alloc_hw_stats_struct(cnts->names, cnts 5518 drivers/infiniband/hw/mlx5/main.c cnts->num_q_counters + cnts 5519 drivers/infiniband/hw/mlx5/main.c cnts->num_cong_counters + cnts 5520 drivers/infiniband/hw/mlx5/main.c cnts->num_ext_ppcnt_counters, cnts 5525 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts, cnts 5542 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < cnts->num_q_counters; i++) { cnts 5543 drivers/infiniband/hw/mlx5/main.c val = *(__be32 *)(out + cnts->offsets[i]); cnts 5553 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts, cnts 5556 drivers/infiniband/hw/mlx5/main.c int offset = cnts->num_q_counters + cnts->num_cong_counters; cnts 5569 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < cnts->num_ext_ppcnt_counters; i++) cnts 5572 drivers/infiniband/hw/mlx5/main.c cnts->offsets[i + offset])); cnts 5583 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts = get_counters(dev, port_num - 1); cnts 5591 drivers/infiniband/hw/mlx5/main.c num_counters = cnts->num_q_counters + cnts 5592 drivers/infiniband/hw/mlx5/main.c cnts->num_cong_counters + cnts 5593 drivers/infiniband/hw/mlx5/main.c cnts->num_ext_ppcnt_counters; cnts 5596 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_query_q_counters(dev->mdev, cnts, stats, cnts->set_id); cnts 5601 drivers/infiniband/hw/mlx5/main.c ret = mlx5_ib_query_ext_ppcnt_counters(dev, cnts, stats); cnts 5618 drivers/infiniband/hw/mlx5/main.c cnts->num_q_counters, cnts 5619 drivers/infiniband/hw/mlx5/main.c cnts->num_cong_counters, cnts 5620 drivers/infiniband/hw/mlx5/main.c cnts->offsets + cnts 5621 drivers/infiniband/hw/mlx5/main.c cnts->num_q_counters); cnts 5636 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts = cnts 5639 drivers/infiniband/hw/mlx5/main.c return rdma_alloc_hw_stats_struct(cnts->names, cnts 5640 drivers/infiniband/hw/mlx5/main.c cnts->num_q_counters + cnts 5641 drivers/infiniband/hw/mlx5/main.c cnts->num_cong_counters + cnts 5642 drivers/infiniband/hw/mlx5/main.c cnts->num_ext_ppcnt_counters, cnts 5649 drivers/infiniband/hw/mlx5/main.c const struct mlx5_ib_counters *cnts = cnts 5652 drivers/infiniband/hw/mlx5/main.c return mlx5_ib_query_q_counters(dev->mdev, cnts, cnts 751 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_ib_counters cnts; cnts 289 drivers/mfd/mfd-core.c atomic_t *cnts; cnts 292 drivers/mfd/mfd-core.c cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL); cnts 293 drivers/mfd/mfd-core.c if (!cnts) cnts 297 drivers/mfd/mfd-core.c atomic_set(&cnts[i], 0); cnts 298 drivers/mfd/mfd-core.c ret = mfd_add_device(parent, id, cells + i, cnts + i, mem_base, cnts 310 drivers/mfd/mfd-core.c kfree(cnts); cnts 340 drivers/mfd/mfd-core.c atomic_t *cnts = NULL; cnts 342 drivers/mfd/mfd-core.c device_for_each_child_reverse(parent, &cnts, mfd_remove_devices_fn); cnts 343 drivers/mfd/mfd-core.c kfree(cnts); cnts 912 drivers/net/dsa/vitesse-vsc73xx-core.c const struct vsc73xx_counter *cnts; cnts 917 drivers/net/dsa/vitesse-vsc73xx-core.c cnts = vsc73xx_tx_counters; cnts 920 drivers/net/dsa/vitesse-vsc73xx-core.c cnts = vsc73xx_rx_counters; cnts 927 drivers/net/dsa/vitesse-vsc73xx-core.c cnt = &cnts[i]; cnts 425 drivers/staging/rtl8712/rtl8712_efuse.c u16 cnts, u8 *data) cnts 432 drivers/staging/rtl8712/rtl8712_efuse.c if (!bRead && ((start_addr + cnts) > cnts 438 drivers/staging/rtl8712/rtl8712_efuse.c for (i = 0; i < cnts; i++) { cnts 453 drivers/staging/rtl8712/rtl8712_efuse.c u8 r8712_efuse_map_read(struct _adapter *adapter, u16 addr, u16 cnts, u8 *data) cnts 459 drivers/staging/rtl8712/rtl8712_efuse.c if ((addr + cnts) > EFUSE_MAP_MAX_SIZE) cnts 462 drivers/staging/rtl8712/rtl8712_efuse.c for (i = 0; i < cnts; i++) cnts 474 drivers/staging/rtl8712/rtl8712_efuse.c if (idx == cnts) cnts 485 drivers/staging/rtl8712/rtl8712_efuse.c u8 r8712_efuse_map_write(struct _adapter *adapter, u16 addr, u16 cnts, cnts 492 drivers/staging/rtl8712/rtl8712_efuse.c if ((addr + cnts) > EFUSE_MAP_MAX_SIZE) cnts 526 drivers/staging/rtl8712/rtl8712_efuse.c if ((cnts - idx) == 1) { cnts 544 drivers/staging/rtl8712/rtl8712_efuse.c if (idx == cnts) cnts 552 drivers/staging/rtl8712/rtl8712_efuse.c if (idx == cnts) cnts 38 drivers/staging/rtl8712/rtl8712_efuse.h u16 start_addr, u16 cnts, u8 *data); cnts 40 drivers/staging/rtl8712/rtl8712_efuse.h u16 cnts, u8 *data); cnts 42 drivers/staging/rtl8712/rtl8712_efuse.h u16 cnts, u8 *data); cnts 689 drivers/staging/rtl8712/rtl871x_mp_ioctl.c u16 addr = 0, cnts = 0; cnts 698 drivers/staging/rtl8712/rtl871x_mp_ioctl.c cnts = pefuse->cnts; cnts 700 drivers/staging/rtl8712/rtl871x_mp_ioctl.c memset(data, 0xFF, cnts); cnts 701 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if ((addr > 511) || (cnts < 1) || (cnts > 512) || (addr + cnts) > cnts 704 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if (!r8712_efuse_access(Adapter, true, addr, cnts, data)) cnts 719 drivers/staging/rtl8712/rtl871x_mp_ioctl.c u16 addr = 0, cnts = 0; cnts 726 drivers/staging/rtl8712/rtl871x_mp_ioctl.c cnts = pefuse->cnts; cnts 729 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if ((addr > 511) || (cnts < 1) || (cnts > 512) || cnts 730 drivers/staging/rtl8712/rtl871x_mp_ioctl.c (addr + cnts) > r8712_efuse_get_max_size(Adapter)) cnts 732 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if (!r8712_efuse_access(Adapter, false, addr, cnts, data)) cnts 50 drivers/staging/rtl8712/rtl871x_mp_ioctl.h u16 cnts; cnts 40 include/asm-generic/qrwlock.h u32 cnts; cnts 42 include/asm-generic/qrwlock.h cnts = atomic_read(&lock->cnts); cnts 43 include/asm-generic/qrwlock.h if (likely(!(cnts & _QW_WMASK))) { cnts 44 include/asm-generic/qrwlock.h cnts = (u32)atomic_add_return_acquire(_QR_BIAS, &lock->cnts); cnts 45 include/asm-generic/qrwlock.h if (likely(!(cnts & _QW_WMASK))) cnts 47 include/asm-generic/qrwlock.h atomic_sub(_QR_BIAS, &lock->cnts); cnts 59 include/asm-generic/qrwlock.h u32 cnts; cnts 61 include/asm-generic/qrwlock.h cnts = atomic_read(&lock->cnts); cnts 62 include/asm-generic/qrwlock.h if (unlikely(cnts)) cnts 65 include/asm-generic/qrwlock.h return likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, cnts 74 include/asm-generic/qrwlock.h u32 cnts; cnts 76 include/asm-generic/qrwlock.h cnts = atomic_add_return_acquire(_QR_BIAS, &lock->cnts); cnts 77 include/asm-generic/qrwlock.h if (likely(!(cnts & _QW_WMASK))) cnts 90 include/asm-generic/qrwlock.h u32 cnts = 0; cnts 92 include/asm-generic/qrwlock.h if (likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED))) cnts 107 include/asm-generic/qrwlock.h (void)atomic_sub_return_release(_QR_BIAS, &lock->cnts); cnts 15 include/asm-generic/qrwlock_types.h atomic_t cnts; cnts 30 include/asm-generic/qrwlock_types.h { .cnts = ATOMIC_INIT(0), }, \ cnts 33 kernel/locking/qrwlock.c atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); cnts 36 kernel/locking/qrwlock.c atomic_sub(_QR_BIAS, &lock->cnts); cnts 42 kernel/locking/qrwlock.c atomic_add(_QR_BIAS, &lock->cnts); cnts 49 kernel/locking/qrwlock.c atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); cnts 68 kernel/locking/qrwlock.c if (!atomic_read(&lock->cnts) && cnts 69 kernel/locking/qrwlock.c (atomic_cmpxchg_acquire(&lock->cnts, 0, _QW_LOCKED) == 0)) cnts 73 kernel/locking/qrwlock.c atomic_add(_QW_WAITING, &lock->cnts); cnts 77 kernel/locking/qrwlock.c atomic_cond_read_acquire(&lock->cnts, VAL == _QW_WAITING); cnts 78 kernel/locking/qrwlock.c } while (atomic_cmpxchg_relaxed(&lock->cnts, _QW_WAITING,