Home
last modified time | relevance | path

Searched refs:pcnt (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-eeprom.c41 unsigned pcnt,tcnt; in pvr2_eeprom_fetch() local
77 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_eeprom_fetch()
78 pcnt = 16; in pvr2_eeprom_fetch()
79 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_eeprom_fetch()
87 msg[1].len = pcnt; in pvr2_eeprom_fetch()
H A Dpvrusb2-hdw.c3334 unsigned pcnt,tcnt; in pvr2_full_eeprom_fetch() local
3370 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_full_eeprom_fetch()
3371 pcnt = 16; in pvr2_full_eeprom_fetch()
3372 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_full_eeprom_fetch()
3380 msg[1].len = pcnt; in pvr2_full_eeprom_fetch()
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h452 int pcnt; in bpf_in_interrupt() local
454 pcnt = get_preempt_count(); in bpf_in_interrupt()
456 return pcnt & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_MASK); in bpf_in_interrupt()
459 return (pcnt & (NMI_MASK | HARDIRQ_MASK)) | in bpf_in_interrupt()
503 int pcnt; in bpf_in_serving_softirq() local
505 pcnt = get_preempt_count(); in bpf_in_serving_softirq()
507 return (pcnt & SOFTIRQ_MASK) & SOFTIRQ_OFFSET; in bpf_in_serving_softirq()
525 int pcnt; in bpf_in_task() local
527 pcnt = get_preempt_count(); in bpf_in_task()
529 return !(pcnt & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_OFFSET)); in bpf_in_task()
[all …]
/linux/tools/perf/util/
H A Dtime-utils.c180 static int parse_percent(double *pcnt, char *str) in parse_percent() argument
195 *pcnt = d / 100.0; in parse_percent()
222 double pcnt, start_pcnt, end_pcnt; in percent_slash_split() local
236 if (parse_percent(&pcnt, str) < 0) in percent_slash_split()
244 if (pcnt <= 0.0) in percent_slash_split()
247 start_pcnt = pcnt * (i - 1); in percent_slash_split()
248 end_pcnt = pcnt * i; in percent_slash_split()
/linux/include/uapi/linux/netfilter/
H A Dx_tables.h107 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
108 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
111 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/linux/drivers/ntb/test/
H A Dntb_perf.c192 int pcnt; member
318 for (*pidx = 0; *pidx < perf->pcnt; (*pidx)++) { in perf_spad_cmd_recv()
489 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_link_event()
662 if (ntb_peer_mw_count(perf->ntb) < perf->pcnt) { in perf_init_service()
678 mask = GENMASK_ULL(perf->pcnt, 0); in perf_init_service()
679 if (ntb_spad_count(perf->ntb) >= PERF_SPAD_CNT(perf->pcnt) && in perf_init_service()
755 for (pidx = 0; pidx < perf->pcnt; pidx++) in perf_disable_service()
758 for (pidx = 0; pidx < perf->pcnt; pidx++) in perf_disable_service()
761 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_disable_service()
1212 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_dbgfs_read_info()
[all …]
/linux/include/linux/netfilter/
H A Dx_tables.h449 return this_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt); in xt_get_this_cpu_counter()
458 return per_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt, cpu); in xt_get_per_cpu_counter()
508 compat_u64 pcnt, bcnt; /* Packet and byte counters */ member
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-npei-defs.h1562 uint64_t pcnt:1; member
1598 uint64_t pcnt:1;
1695 uint64_t pcnt:1; member
1731 uint64_t pcnt:1;
1827 uint64_t pcnt:1; member
1863 uint64_t pcnt:1;
1962 uint64_t pcnt:1; member
1998 uint64_t pcnt:1;
2093 uint64_t pcnt:1; member
2129 uint64_t pcnt:1;
[all …]
/linux/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py175 pcnt = 0
186 pcnt += 1
199 pcnt += 1
/linux/tools/lib/bpf/
H A Delf.c505 unsigned long **poffsets, size_t *pcnt) in elf_resolve_pattern_offsets() argument
548 *pcnt = cnt; in elf_resolve_pattern_offsets()
H A Dlibbpf_internal.h766 unsigned long **poffsets, size_t *pcnt);
/linux/include/uapi/linux/netfilter_bridge/
H A Debtables.h40 __u64 pcnt; member
/linux/tools/perf/
H A Dbuiltin-report.c137 double pcnt = strtof(value, NULL); in report__config()
139 rep->min_percent = pcnt; in report__config()
140 callchain_param.min_percent = pcnt; in report__config()
1266 double pcnt = strtof(str, NULL); in parse_percent_limit()
1268 rep->min_percent = pcnt; in parse_percent_limit()
1269 callchain_param.min_percent = pcnt; in parse_percent_limit()
135 double pcnt = strtof(value, NULL); report__config() local
1267 double pcnt = strtof(str, NULL); parse_percent_limit() local
H A Dbuiltin-annotate.c670 double pcnt = strtof(str, NULL); in __cmd_annotate()
672 ann->min_percent = pcnt; in __cmd_annotate()
678 double pcnt = strtof(str, NULL); parse_percent_limit() local
/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c625 unsigned int reg, pcnt; in pasemi_mac_restart_rx_intr() local
630 pcnt = *rx->chan.status & PAS_STATUS_PCNT_M; in pasemi_mac_restart_rx_intr()
632 reg = PAS_IOB_DMA_RXCH_RESET_PCNT(pcnt) | PAS_IOB_DMA_RXCH_RESET_PINTC; in pasemi_mac_restart_rx_intr()
642 unsigned int reg, pcnt; in pasemi_mac_restart_tx_intr() local
645 pcnt = *tx_ring(mac)->chan.status & PAS_STATUS_PCNT_M; in pasemi_mac_restart_tx_intr()
647 reg = PAS_IOB_DMA_TXCH_RESET_PCNT(pcnt) | PAS_IOB_DMA_TXCH_RESET_PINTC; in pasemi_mac_restart_tx_intr()
/linux/arch/s390/include/asm/
H A Dqdio.h273 u8 pcnt; member
/linux/net/netfilter/
H A Dnft_ct.c139 u64 avgcnt = 0, bcnt = 0, pcnt = 0; in nft_ct_get_eval() local
142 pcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
146 if (pcnt != 0) in nft_ct_get_eval()
147 avgcnt = div64_u64(bcnt, pcnt); in nft_ct_get_eval()
H A Dx_tables.c2134 counter->pcnt = (__force unsigned long)(state->mem + state->off); in xt_percpu_counter_alloc()
2146 unsigned long pcnt = counters->pcnt; in xt_percpu_counter_free() local
2148 if (nr_cpu_ids > 1 && (pcnt & (XT_PCPU_BLOCK_SIZE - 1)) == 0) in xt_percpu_counter_free()
2149 free_percpu((void __percpu *)pcnt); in xt_percpu_counter_free()
/linux/net/bridge/netfilter/
H A Debtables.c1009 counter_base[i].pcnt); in get_counters()
1420 ADD_COUNTER(t->private->counters[i], tmp[i].bcnt, tmp[i].pcnt); in do_update_counters()
/linux/tools/perf/Documentation/
H A Dperf-stat.txt668 - pcnt-running : percentage of time the event was running