/linux-4.19.296/include/linux/netfilter/ipset/ |
D | ip_set_counter.h | 14 ip_set_add_bytes(u64 bytes, struct ip_set_counter *counter) in ip_set_add_bytes() argument 16 atomic64_add((long long)bytes, &(counter)->bytes); in ip_set_add_bytes() 20 ip_set_add_packets(u64 packets, struct ip_set_counter *counter) in ip_set_add_packets() argument 22 atomic64_add((long long)packets, &(counter)->packets); in ip_set_add_packets() 26 ip_set_get_bytes(const struct ip_set_counter *counter) in ip_set_get_bytes() argument 28 return (u64)atomic64_read(&(counter)->bytes); in ip_set_get_bytes() 32 ip_set_get_packets(const struct ip_set_counter *counter) in ip_set_get_packets() argument 34 return (u64)atomic64_read(&(counter)->packets); in ip_set_get_packets() 38 ip_set_match_counter(u64 counter, u64 match, u8 op) in ip_set_match_counter() argument 44 return counter == match; in ip_set_match_counter() [all …]
|
/linux-4.19.296/include/linux/ |
D | page_counter.h | 37 static inline void page_counter_init(struct page_counter *counter, in page_counter_init() argument 40 atomic_long_set(&counter->usage, 0); in page_counter_init() 41 counter->max = PAGE_COUNTER_MAX; in page_counter_init() 42 counter->parent = parent; in page_counter_init() 45 static inline unsigned long page_counter_read(struct page_counter *counter) in page_counter_read() argument 47 return atomic_long_read(&counter->usage); in page_counter_read() 50 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages); 51 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages); 52 bool page_counter_try_charge(struct page_counter *counter, 55 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages); [all …]
|
D | types.h | 177 int counter; member 182 long counter; member
|
D | atomic.h | 29 #define atomic_read_acquire(v) smp_load_acquire(&(v)->counter) 33 #define atomic_set_release(v, i) smp_store_release(&(v)->counter, (i)) 723 #define atomic_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c)) 724 #define atomic_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c)) 731 #define atomic64_read_acquire(v) smp_load_acquire(&(v)->counter) 735 #define atomic64_set_release(v, i) smp_store_release(&(v)->counter, (i)) 1312 #define atomic64_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c)) 1313 #define atomic64_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
|
D | quota.h | 267 struct percpu_counter counter[_DQST_DQSTAT_LAST]; member 274 percpu_counter_inc(&dqstats.counter[type]); in dqstats_inc() 279 percpu_counter_dec(&dqstats.counter[type]); in dqstats_dec()
|
/linux-4.19.296/include/asm-generic/ |
D | atomic.h | 45 c = v->counter; \ 46 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 55 c = v->counter; \ 56 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 67 c = v->counter; \ 68 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 84 v->counter = v->counter c_op i; \ 95 ret = (v->counter = v->counter c_op i); \ 108 ret = v->counter; \ 109 v->counter = v->counter c_op i; \ [all …]
|
D | atomic64.h | 17 long long counter; member
|
/linux-4.19.296/lib/ |
D | atomic64.c | 56 val = v->counter; in atomic64_read() 68 v->counter = i; in atomic64_set() 80 v->counter c_op a; \ 93 val = (v->counter c_op a); \ 107 val = v->counter; \ 108 v->counter c_op a; \ 144 val = v->counter - 1; in atomic64_dec_if_positive() 146 v->counter = val; in atomic64_dec_if_positive() 159 val = v->counter; in atomic64_cmpxchg() 161 v->counter = n; in atomic64_cmpxchg() [all …]
|
D | atomic64_test.c | 163 BUG_ON(v.counter != r); in test_atomic64() 167 BUG_ON(v.counter != r); in test_atomic64() 197 BUG_ON(v.counter != r); in test_atomic64() 202 BUG_ON(v.counter != r); in test_atomic64() 212 BUG_ON(v.counter != r); in test_atomic64() 217 BUG_ON(v.counter != r); in test_atomic64() 222 BUG_ON(v.counter != r); in test_atomic64() 226 BUG_ON(v.counter != r); in test_atomic64() 230 BUG_ON(v.counter != r); in test_atomic64() 235 BUG_ON(v.counter != r); in test_atomic64() [all …]
|
/linux-4.19.296/drivers/iio/counter/ |
D | Kconfig | 14 encoder counter/interface device family (104-QUAD-8, 104-QUAD-4). 16 Performing a write to a counter's IIO_CHAN_INFO_RAW sets the counter and 17 also clears the counter's respective error flag. Although the counters 19 or via a counter's preset attribute. Interrupts are not supported by 26 tristate "STM32 LP Timer encoder counter driver" 30 and counter driver.
|
/linux-4.19.296/include/linux/mlx5/ |
D | fs.h | 94 struct mlx5_fc *counter; member 190 void mlx5_fc_destroy(struct mlx5_core_dev *dev, struct mlx5_fc *counter); 191 u64 mlx5_fc_query_lastuse(struct mlx5_fc *counter); 192 void mlx5_fc_query_cached(struct mlx5_fc *counter, 194 int mlx5_fc_query(struct mlx5_core_dev *dev, struct mlx5_fc *counter,
|
/linux-4.19.296/virt/kvm/arm/ |
D | pmu.c | 34 u64 counter, reg, enabled, running; in kvm_pmu_get_counter_value() local 40 counter = __vcpu_sys_reg(vcpu, reg); in kvm_pmu_get_counter_value() 46 counter += perf_event_read_value(pmc->perf_event, &enabled, in kvm_pmu_get_counter_value() 49 return counter & pmc->bitmask; in kvm_pmu_get_counter_value() 75 u64 counter, reg; in kvm_pmu_stop_counter() local 78 counter = kvm_pmu_get_counter_value(vcpu, pmc->idx); in kvm_pmu_stop_counter() 81 __vcpu_sys_reg(vcpu, reg) = counter; in kvm_pmu_stop_counter() 396 u64 eventsel, counter; in kvm_pmu_set_counter_event_type() local 418 counter = kvm_pmu_get_counter_value(vcpu, select_idx); in kvm_pmu_set_counter_event_type() 420 attr.sample_period = (-counter) & pmc->bitmask; in kvm_pmu_set_counter_event_type()
|
/linux-4.19.296/include/linux/platform_data/ |
D | mlxreg.h | 117 int counter; member 138 int counter; member
|
/linux-4.19.296/fs/xfs/ |
D | xfs_trans.c | 538 int8_t counter = *field; in xfs_sb_mod8() local 540 counter += delta; in xfs_sb_mod8() 541 if (counter < 0) { in xfs_sb_mod8() 545 *field = counter; in xfs_sb_mod8() 554 int32_t counter = *field; in xfs_sb_mod32() local 556 counter += delta; in xfs_sb_mod32() 557 if (counter < 0) { in xfs_sb_mod32() 561 *field = counter; in xfs_sb_mod32() 570 int64_t counter = *field; in xfs_sb_mod64() local 572 counter += delta; in xfs_sb_mod64() [all …]
|
/linux-4.19.296/drivers/misc/ |
D | phantom.c | 51 atomic_t counter; member 71 atomic_set(&dev->counter, 0); in phantom_status() 176 atomic_set(&dev->counter, 0); in phantom_ioctl() 237 atomic_set(&dev->counter, 0); in phantom_open() 264 pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter)); in phantom_poll() 269 else if (atomic_read(&dev->counter)) in phantom_poll() 272 pr_debug("phantom_poll end: %x/%d\n", mask, atomic_read(&dev->counter)); in phantom_poll() 317 atomic_inc(&dev->counter); in phantom_isr()
|
/linux-4.19.296/block/partitions/ |
D | ibm.c | 140 int counter; in find_vol1_partitions() local 156 counter = 0; in find_vol1_partitions() 180 if (counter >= state->limit) in find_vol1_partitions() 182 put_partition(state, counter + 1, offset, size); in find_vol1_partitions() 183 counter++; in find_vol1_partitions()
|
/linux-4.19.296/include/sound/ |
D | soundfont.h | 39 int counter; member 49 int counter; member
|
/linux-4.19.296/fs/ecryptfs/ |
D | messaging.c | 88 msg_ctx->counter = ++ecryptfs_msg_counter; in ecryptfs_msg_ctx_free_to_alloc() 240 } else if (msg_ctx->counter != seq) { in ecryptfs_process_response() 244 msg_ctx->counter, seq); in ecryptfs_process_response() 409 ecryptfs_msg_ctx_arr[i].counter = 0; in ecryptfs_init_messaging()
|
/linux-4.19.296/include/rdma/ |
D | ib_pma.h | 84 __be32 counter[15]; member 91 __be64 counter[15]; member
|
/linux-4.19.296/fs/reiserfs/ |
D | fix_node.c | 833 int counter, number_of_freeblk; in get_empty_nodes() local 859 for (counter = 0, number_of_freeblk = tb->cur_blknum; in get_empty_nodes() 860 counter < h; counter++) in get_empty_nodes() 862 (tb->blknum[counter]) ? (tb->blknum[counter] - in get_empty_nodes() 886 for (blocknr = blocknrs, counter = 0; in get_empty_nodes() 887 counter < amount_needed; blocknr++, counter++) { in get_empty_nodes() 1034 int counter, in get_far_parent() local 1044 counter = path_offset; in get_far_parent() 1046 RFALSE(counter < FIRST_PATH_ELEMENT_OFFSET, in get_far_parent() 1049 for (; counter > FIRST_PATH_ELEMENT_OFFSET; counter--) { in get_far_parent() [all …]
|
/linux-4.19.296/fs/cifs/ |
D | cifs_debug.c | 443 sesInfoAllocCount.counter); in cifs_stats_proc_show() 445 tconInfoAllocCount.counter); in cifs_stats_proc_show() 447 bufAllocCount.counter, in cifs_stats_proc_show() 448 cifs_min_rcv + tcpSesAllocCount.counter); in cifs_stats_proc_show() 450 smBufAllocCount.counter, cifs_min_small); in cifs_stats_proc_show() 460 tcpSesReconnectCount.counter, tconInfoReconnectCount.counter); in cifs_stats_proc_show()
|
/linux-4.19.296/drivers/s390/scsi/ |
D | zfcp_dbf.c | 58 pl->counter++; in zfcp_dbf_pl_write() 210 payload->counter = 0; in zfcp_dbf_hba_def_err() 214 while (payload->counter < scount && (char *)pl[payload->counter]) { in zfcp_dbf_hba_def_err() 215 memcpy(payload->data, (char *)pl[payload->counter], length); in zfcp_dbf_hba_def_err() 217 payload->counter++; in zfcp_dbf_hba_def_err() 453 payload->counter = 0; in zfcp_dbf_san() 464 payload->counter++; in zfcp_dbf_san()
|
/linux-4.19.296/include/net/netfilter/ |
D | nf_conntrack_acct.h | 23 struct nf_conn_counter counter[IP_CT_DIR_MAX]; member
|
/linux-4.19.296/drivers/iio/proximity/ |
D | sx9500.c | 207 static int sx9500_inc_users(struct sx9500_data *data, int *counter, in sx9500_inc_users() argument 210 (*counter)++; in sx9500_inc_users() 211 if (*counter != 1) in sx9500_inc_users() 218 static int sx9500_dec_users(struct sx9500_data *data, int *counter, in sx9500_dec_users() argument 221 (*counter)--; in sx9500_dec_users() 222 if (*counter != 0) in sx9500_dec_users()
|
/linux-4.19.296/drivers/iio/ |
D | Makefile | 24 obj-y += counter/
|