/linux-master/drivers/rtc/ |
H A D | rtc-ssd202d.c | 128 static int ssd202d_rtc_read_counter(struct ssd202d_rtc *priv, unsigned int *counter) argument 145 *counter = (h << 16) | l; 153 unsigned int sw0, base, counter; local 164 /* Get RTC counter value from RDDATA */ 165 ret = ssd202d_rtc_read_counter(priv, &counter); 169 seconds = base + counter;
|
/linux-master/arch/x86/kvm/ |
H A D | pmu.h | 67 * mapped to bits 31:0 and fixed counters mapped to 63:32, e.g. fixed counter 0 77 * for RDPMC, not by adding 32 to the fixed counter index). 106 u64 counter, enabled, running; local 108 counter = pmc->counter + pmc->emulated_counter; 111 counter += perf_event_read_value(pmc->perf_event, 114 return counter & pmc_bitmask(pmc);
|
/linux-master/kernel/cgroup/ |
H A D | pids.c | 48 atomic64_t counter; member in struct:pids_cgroup 111 WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter)); 141 int64_t new = atomic64_add_return(num, &p->counter); 161 int64_t new = atomic64_add_return(num, &p->counter); 329 return atomic64_read(&pids->counter);
|
/linux-master/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-rs.c | 122 win->counter = 0; 148 if (!rs_sta->win[i].counter) 154 rs_sta->win[i].counter, i); 260 * subtract "1" from the success counter (this is the main reason 264 if (win->counter >= RATE_MAX_WINDOW) { 267 win->counter = RATE_MAX_WINDOW - 1; 275 /* Increment frames-attempted counter */ 276 win->counter++; 292 if (win->counter > 0) 294 128 * (100 * win->success_counter) / win->counter; [all...] |
/linux-master/arch/s390/crypto/ |
H A D | chacha-glue.c | 23 u32 *counter) 28 chacha20_vx(dst, src, nbytes, key, counter); 31 *counter += round_up(nbytes, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE; 21 chacha20_crypt_s390(u32 *state, u8 *dst, const u8 *src, unsigned int nbytes, const u32 *key, u32 *counter) argument
|
/linux-master/drivers/watchdog/ |
H A D | asm9260_wdt.c | 80 u32 counter; local 82 counter = ioread32(priv->iobase + HW_WDTV); 84 return counter / priv->wdt_freq; 90 u32 counter; local 92 counter = wdd->timeout * priv->wdt_freq; 94 iowrite32(counter, priv->iobase + HW_WDTC);
|
/linux-master/tools/cgroup/ |
H A D | iocost_monitor.py | 103 self.ivrate_pct = ioc.vtime_rate.counter.value_() * 100 / VTIME_PER_USEC 156 vdone = iocg.done_vtime.counter.value_() 157 vtime = iocg.vtime.counter.value_() 158 vrate = ioc.vtime_rate.counter.value_() 170 if blkg.use_delay.counter.value_() != 0: 171 self.delay_ms = blkg.delay_nsec.counter.value_() / 1_000_000
|
/linux-master/drivers/perf/amlogic/ |
H A D | meson_g12_ddr_pmu.c | 284 struct dmc_counter *counter) 289 counter->all_cnt = readl(info->ddr_reg[0] + DMC_MON_G12_ALL_GRANT_CNT); 290 counter->all_req = readl(info->ddr_reg[0] + DMC_MON_G12_ALL_REQ_CNT); 294 counter->channel_cnt[i] = readl(info->ddr_reg[0] + reg); 299 struct dmc_counter *counter) 306 dmc_g12_get_counters(info, counter); 283 dmc_g12_get_counters(struct dmc_info *info, struct dmc_counter *counter) argument 298 dmc_g12_irq_handler(struct dmc_info *info, struct dmc_counter *counter) argument
|
/linux-master/drivers/staging/media/imx/ |
H A D | imx-media-fim.c | 62 int counter; member in struct:imx_media_fim 127 fim->counter = -fim->num_skip; 153 if (!fim->enabled || ++fim->counter <= 0) 168 fim->counter--; 174 if (fim->counter == fim->num_avg) { 183 fim->counter = 0;
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
H A D | fw_common.c | 79 u32 counter = 0; local 84 } while ((counter++ < FW_8192D_POLLING_TIMEOUT_COUNT) && 87 if (counter >= FW_8192D_POLLING_TIMEOUT_COUNT) { 150 u32 counter; local 154 counter = 0; 177 } while (counter++ < POLLING_READY_TIMEOUT_COUNT);
|
/linux-master/arch/um/drivers/ |
H A D | vector_transports.c | 52 uint32_t counter; member in struct:uml_l2tpv3_data 70 uint32_t *counter; local 85 counter = (uint32_t *)(header + td->counter_offset); 87 *counter = 0; 89 td->counter++; 90 *counter = cpu_to_be32(td->counter); 320 td->counter = 0; 371 if (get_uint_param(vp->parsed, "counter", &temp_int)) {
|
/linux-master/include/rdma/ |
H A D | ib_pma.h | 38 u8 counter_width; /* resv: 7:3, counter width: 2:0 */ 57 __be32 counter[15]; member in struct:ib_pma_portsamplesresult 64 __be64 counter[15]; member in struct:ib_pma_portsamplesresult_ext
|
/linux-master/arch/mips/include/asm/octeon/ |
H A D | cvmx-l2c.h | 162 * @counter: The counter to configure. Range 0..3. 164 * @clear_on_read: When asserted, any read of the performance counter 165 * clears the counter. 167 * @note The routine does not clear the counter. 169 void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event, 173 * Read the given L2 Cache performance counter. The counter must be configured 176 * @counter: The counter t [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | kfree_skb.c | 33 int counter; member in struct:__anon3575 75 users = skb->users.refs.counter;
|
H A D | map_kptr.c | 318 if (p_st->cnt.refs.counter != ref) { 328 if (p_st->cnt.refs.counter != ref) 336 if (p_st->cnt.refs.counter != ref) 348 if (p_st->cnt.refs.counter != ref) 365 if (!p_st || p_st->cnt.refs.counter != ref) 371 if (p_st->cnt.refs.counter != ref) { 381 if (p_st->cnt.refs.counter != ref) 481 if (p->cnt.refs.counter != ref) {
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | ingress_lgcy.c | 147 struct mlx5_fc *counter = NULL; local 167 counter = vport->ingress.legacy.drop_counter; 169 counter = mlx5_fc_create(esw->dev, false); 170 if (IS_ERR(counter)) { 172 "vport[%d] configure ingress drop rule counter failed\n", 174 counter = NULL; 176 vport->ingress.legacy.drop_counter = counter; 259 /* Attach drop flow counter */ 260 if (counter) { 263 drop_ctr_dst.counter_id = mlx5_fc_id(counter); [all...] |
/linux-master/drivers/scsi/elx/efct/ |
H A D | efct_xport.c | 110 counters[EFCT_HW_LINK_STAT_LINK_FAILURE_COUNT].counter; 112 counters[EFCT_HW_LINK_STAT_LOSS_OF_SYNC_COUNT].counter; 114 counters[EFCT_HW_LINK_STAT_PRIMITIVE_SEQ_COUNT].counter; 116 counters[EFCT_HW_LINK_STAT_INVALID_XMIT_WORD_COUNT].counter; 118 counters[EFCT_HW_LINK_STAT_CRC_COUNT].counter; 130 counters[EFCT_HW_HOST_STAT_TX_KBYTE_COUNT].counter; 132 counters[EFCT_HW_HOST_STAT_RX_KBYTE_COUNT].counter; 134 counters[EFCT_HW_HOST_STAT_TX_FRAME_COUNT].counter; 136 counters[EFCT_HW_HOST_STAT_RX_FRAME_COUNT].counter; 149 counters[EFCT_HW_LINK_STAT_LINK_FAILURE_COUNT].counter; [all...] |
/linux-master/include/linux/ |
H A D | types.h | 176 int counter; member in struct:__anon637 183 s64 counter; member in struct:__anon638
|
/linux-master/tools/lib/perf/ |
H A D | mmap.c | 295 static u64 read_perf_counter(unsigned int counter) argument 299 asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (counter)); 364 static u64 read_perf_counter(unsigned int counter) argument 401 if (counter < ARRAY_SIZE(read_f)) 402 return (read_f[counter])(); 465 static u64 read_perf_counter(unsigned int counter) argument 467 return csr_read_num(CSR_CYCLE + counter); 476 static u64 read_perf_counter(unsigned int counter __maybe_unused) { return 0; }
|
/linux-master/drivers/mtd/devices/ |
H A D | pmc551.c | 354 u8 bcmd, counter; local 365 counter = 0; 372 counter = 0; 374 while (counter++ < 100) { 377 counter = 0; 379 while (counter++ < 100) { 473 if (counter++ > 100) 490 counter = 0; 493 if (counter++ > 100) 505 counter [all...] |
/linux-master/tools/testing/selftests/net/netfilter/ |
H A D | nft_queue.sh | 112 counter 116 counter 120 counter 124 counter 128 counter 301 tcp dport 12345 limit rate 1/second burst 1 packets counter queue num 0 305 tcp dport 12345 limit rate 1/second burst 1 packets counter queue num 0 346 meta oifname "tvrf" icmp type echo-request counter queue num 1 347 meta oifname "eth0" icmp type echo-request counter queue num 1 351 meta oifname "tvrf" icmp type echo-request counter queu [all...] |
/linux-master/drivers/md/dm-vdo/ |
H A D | recovery-journal.c | 45 * The locks are implemented as a single object instead of as a lock counter per lock both to 77 * get_counter() - Get the zone counter for a given lock on a given zone. 83 * Return: The counter for the given lock and zone. 89 struct lock_counter *counter = &journal->lock_counter; local 90 block_count_t zone_counter = (counter->locks * zone_id) + lock_number; 93 return &counter->journal_counters[zone_counter]; 96 return &counter->logical_counters[zone_counter]; 98 return &counter->physical_counters[zone_counter]; 123 "journal zone lock counter must not underflow"); 154 "decrement of lock counter mus 301 suspend_lock_counter(struct lock_counter *counter) argument 592 struct lock_counter *counter = &journal->lock_counter; local 1646 resume_lock_counter(struct lock_counter *counter) argument [all...] |
/linux-master/net/sctp/ |
H A D | objcnt.c | 69 atomic_read(sctp_dbg_objcnt[i].counter));
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | pci_vsc.c | 66 u32 counter = 0; local 89 /* Read and write counter value, if written value is 92 ret = vsc_read(dev, VSC_COUNTER_OFFSET, &counter); 96 ret = vsc_write(dev, VSC_SEMAPHORE_OFFSET, counter); 105 } while (counter != lock_val); 296 /* Get a unique ID based on the counter */
|
/linux-master/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | fw.h | 52 __be32 counter; member in struct:nfp_crypto_req_add_back
|