Home
last modified time | relevance | path

Searched refs:pcnt (Results 1 – 23 of 23) 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/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/tools/testing/selftests/bpf/
H A Dbpf_experimental.h522 int pcnt;
524 pcnt = get_preempt_count();
526 return pcnt & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_MASK);
529 return (pcnt & (NMI_MASK | HARDIRQ_MASK)) |
567 int pcnt;
569 pcnt = get_preempt_count();
571 return (pcnt & SOFTIRQ_MASK) & SOFTIRQ_OFFSET;
587 int pcnt;
589 pcnt = get_preempt_count();
591 return !(pcnt
645 int pcnt; bpf_in_interrupt() local
[all...]
/linux/net/ipv4/netfilter/
H A Darp_tables.c331 e->counters.pcnt = pos; in mark_source_chains()
357 pos = e->counters.pcnt; in mark_source_chains()
358 e->counters.pcnt = 0; in mark_source_chains()
372 e->counters.pcnt = pos; in mark_source_chains()
391 e->counters.pcnt = pos; in mark_source_chains()
625 u64 bcnt, pcnt; in get_counters() local
632 pcnt = tmp->pcnt; in get_counters()
635 ADD_COUNTER(counters[i], bcnt, pcnt); in get_counters()
654 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters()
1050 ADD_COUNTER(*tmp, paddc[i].bcnt, paddc[i].pcnt); in do_add_counters()
H A Dip_tables.c383 e->counters.pcnt = pos; in mark_source_chains()
407 pos = e->counters.pcnt; in mark_source_chains()
408 e->counters.pcnt = 0; in mark_source_chains()
422 e->counters.pcnt = pos; in mark_source_chains()
441 e->counters.pcnt = pos; in mark_source_chains()
752 u64 bcnt, pcnt; in get_counters() local
759 pcnt = tmp->pcnt; in get_counters()
762 ADD_COUNTER(counters[i], bcnt, pcnt); in get_counters()
781 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters()
1190 ADD_COUNTER(*tmp, paddc[i].bcnt, paddc[i].pcnt); in do_add_counters()
/linux/drivers/scsi/qla2xxx/
H A Dqla_edif.c944 int32_t pcnt = 0; in qla_edif_app_getfcinfo() local
979 if (pcnt >= app_req.num_ports) in qla_edif_app_getfcinfo()
1003 app_reply->ports[pcnt].version = EDIF_VERSION1; in qla_edif_app_getfcinfo()
1004 app_reply->ports[pcnt].remote_type = in qla_edif_app_getfcinfo()
1007 app_reply->ports[pcnt].remote_type |= in qla_edif_app_getfcinfo()
1010 app_reply->ports[pcnt].remote_type |= in qla_edif_app_getfcinfo()
1013 app_reply->ports[pcnt].remote_pid = fcport->d_id; in qla_edif_app_getfcinfo()
1017 fcport->node_name, fcport->port_name, pcnt, in qla_edif_app_getfcinfo()
1024 app_reply->ports[pcnt].auth_state = in qla_edif_app_getfcinfo()
1027 app_reply->ports[pcnt].auth_state = in qla_edif_app_getfcinfo()
[all …]
/linux/include/linux/netfilter/
H A Dx_tables.h436 return this_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt); in xt_get_this_cpu_counter()
445 return per_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt, cpu); in xt_get_per_cpu_counter()
495 compat_u64 pcnt, bcnt; /* Packet and byte counters */ member
/linux/net/ipv6/netfilter/
H A Dip6_tables.c401 e->counters.pcnt = pos; in mark_source_chains()
425 pos = e->counters.pcnt; in mark_source_chains()
426 e->counters.pcnt = 0; in mark_source_chains()
440 e->counters.pcnt = pos; in mark_source_chains()
459 e->counters.pcnt = pos; in mark_source_chains()
769 u64 bcnt, pcnt; in get_counters() local
776 pcnt = tmp->pcnt; in get_counters()
779 ADD_COUNTER(counters[i], bcnt, pcnt); in get_counters()
798 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters()
1206 ADD_COUNTER(*tmp, paddc[i].bcnt, paddc[i].pcnt); in do_add_counters()
/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/perf/
H A Dbuiltin-report.c135 double pcnt = strtof(value, NULL); in report__config() local
137 rep->min_percent = pcnt; in report__config()
138 callchain_param.min_percent = pcnt; in report__config()
1262 double pcnt = strtof(str, NULL);
1264 rep->min_percent = pcnt; in parse_percent_limit()
1265 callchain_param.min_percent = pcnt; in parse_percent_limit()
1267 double pcnt = strtof(str, NULL); parse_percent_limit() local
H A Dbuiltin-annotate.c668 double pcnt = strtof(str, NULL); in __cmd_annotate()
670 ann->min_percent = pcnt; in __cmd_annotate()
678 double pcnt = strtof(str, NULL); parse_percent_limit() local
/linux/include/uapi/linux/netfilter_bridge/
H A Debtables.h40 __u64 pcnt; member
/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/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.c2142 counter->pcnt = (__force unsigned long)(state->mem + state->off); in xt_percpu_counter_alloc()
2154 unsigned long pcnt = counters->pcnt; in xt_percpu_counter_free() local
2156 if (nr_cpu_ids > 1 && (pcnt & (XT_PCPU_BLOCK_SIZE - 1)) == 0) in xt_percpu_counter_free()
2157 free_percpu((void __percpu *)pcnt); in xt_percpu_counter_free()
/linux/arch/s390/include/asm/
H A Dqdio.h273 u8 pcnt; member
/linux/tools/lib/bpf/
H A Dlibbpf_internal.h763 unsigned long **poffsets, size_t *pcnt);
/linux/net/bridge/netfilter/
H A Debtables.c1005 counter_base[i].pcnt); in get_counters()
1417 ADD_COUNTER(t->private->counters[i], tmp[i].bcnt, tmp[i].pcnt); in do_update_counters()
/linux/tools/perf/Documentation/
H A Dperf-stat.txt665 - pcnt-running : percentage of time the event was running