Home
last modified time | relevance | path

Searched refs:pcnt (Results 1 – 21 of 21) 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.c3336 unsigned pcnt,tcnt; in pvr2_full_eeprom_fetch() local
3372 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_full_eeprom_fetch()
3373 pcnt = 16; in pvr2_full_eeprom_fetch()
3374 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_full_eeprom_fetch()
3382 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()
1214 for (pidx = 0; pidx < perf->pcnt; pidx++) { in perf_dbgfs_read_info()
[all …]
H A Dntb_pingpong.c295 int pidx, lport, pcnt; in pp_init_flds() local
299 pcnt = ntb_peer_port_count(pp->ntb); in pp_init_flds()
300 for (pidx = 0; pidx < pcnt; pidx++) { in pp_init_flds()
307 pp->nmask = GENMASK_ULL(pcnt - 1, pidx); in pp_init_flds()
/linux/drivers/scsi/qla2xxx/
H A Dqla_edif.c943 int32_t pcnt = 0; in qla_edif_app_getfcinfo() local
978 if (pcnt >= app_req.num_ports) in qla_edif_app_getfcinfo()
1002 app_reply->ports[pcnt].version = EDIF_VERSION1; in qla_edif_app_getfcinfo()
1003 app_reply->ports[pcnt].remote_type = in qla_edif_app_getfcinfo()
1006 app_reply->ports[pcnt].remote_type |= in qla_edif_app_getfcinfo()
1009 app_reply->ports[pcnt].remote_type |= in qla_edif_app_getfcinfo()
1012 app_reply->ports[pcnt].remote_pid = fcport->d_id; in qla_edif_app_getfcinfo()
1016 fcport->node_name, fcport->port_name, pcnt, in qla_edif_app_getfcinfo()
1023 app_reply->ports[pcnt].auth_state = in qla_edif_app_getfcinfo()
1026 app_reply->ports[pcnt].auth_state = in qla_edif_app_getfcinfo()
[all …]
/linux/net/ipv4/netfilter/
H A Darp_tables.c319 e->counters.pcnt = pos; in mark_source_chains()
345 pos = e->counters.pcnt; in mark_source_chains()
346 e->counters.pcnt = 0; in mark_source_chains()
360 e->counters.pcnt = pos; in mark_source_chains()
379 e->counters.pcnt = pos; in mark_source_chains()
613 u64 bcnt, pcnt; in get_counters() local
620 pcnt = tmp->pcnt; in get_counters()
623 ADD_COUNTER(counters[i], bcnt, pcnt); in get_counters()
642 ADD_COUNTER(counters[i], tmp->bcnt, tmp->pcnt); in get_old_counters()
1038 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/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/drivers/s390/net/
H A Dqeth_core_sys.c121 limit = (card->ssqd.pcnt ? card->ssqd.pcnt - 1 : card->ssqd.pcnt); in qeth_dev_portno_store()
/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.py173 pcnt = 0
184 pcnt += 1
197 pcnt += 1
/linux/tools/lib/bpf/
H A Delf.c506 unsigned long **poffsets, size_t *pcnt) in elf_resolve_pattern_offsets() argument
549 *pcnt = cnt; in elf_resolve_pattern_offsets()
/linux/include/uapi/linux/netfilter_bridge/
H A Debtables.h40 __u64 pcnt; member
/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.c628 unsigned int reg, pcnt; in pasemi_mac_restart_rx_intr() local
633 pcnt = *rx->chan.status & PAS_STATUS_PCNT_M; in pasemi_mac_restart_rx_intr()
635 reg = PAS_IOB_DMA_RXCH_RESET_PCNT(pcnt) | PAS_IOB_DMA_RXCH_RESET_PINTC; in pasemi_mac_restart_rx_intr()
645 unsigned int reg, pcnt; in pasemi_mac_restart_tx_intr() local
648 pcnt = *tx_ring(mac)->chan.status & PAS_STATUS_PCNT_M; in pasemi_mac_restart_tx_intr()
650 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.c137 u64 avgcnt = 0, bcnt = 0, pcnt = 0; in nft_ct_get_eval() local
140 pcnt = nft_ct_get_eval_counter(acct->counter, in nft_ct_get_eval()
144 if (pcnt != 0) in nft_ct_get_eval()
145 avgcnt = div64_u64(bcnt, pcnt); in nft_ct_get_eval()
H A Dx_tables.c1936 counter->pcnt = (__force unsigned long)(state->mem + state->off); in xt_percpu_counter_alloc()
1948 unsigned long pcnt = counters->pcnt; in xt_percpu_counter_free() local
1950 if (nr_cpu_ids > 1 && (pcnt & (XT_PCPU_BLOCK_SIZE - 1)) == 0) in xt_percpu_counter_free()
1951 free_percpu((void __percpu *)pcnt); in xt_percpu_counter_free()
/linux/arch/s390/include/asm/
H A Dqdio.h273 u8 pcnt; member
/linux/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.c29 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero() argument
39 clk_z = linear_inter(2 * tmin, tmin, pcnt, 0, true); in dsi_dphy_timing_calc_clk_zero()
42 clk_z = linear_inter(tmax, tmin, pcnt, 0, true); in dsi_dphy_timing_calc_clk_zero()
/linux/net/bridge/netfilter/
H A Debtables.c1004 counter_base[i].pcnt); in get_counters()
1413 ADD_COUNTER(t->private->counters[i], tmp[i].bcnt, tmp[i].pcnt); in do_update_counters()