Searched refs:counter (Results 476 - 500 of 676) sorted by relevance

<<11121314151617181920>>

/linux-master/arch/s390/crypto/
H A Dchacha-s390.S41 # counst u32 *key, const u32 *counter)
92 VL K3,0,,COUNTER # load counter
425 # counst u32 *key, const u32 *counter)
489 VL K3,0,,COUNTER # load counter
/linux-master/drivers/net/ethernet/altera/
H A Daltera_tse_main.c662 int counter; local
670 counter = 0;
671 while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
678 if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drs.h239 s32 counter; /* number of frames attempted */ member in struct:iwl_rate_scale_data
H A Drs.c536 window->counter = 0;
651 * subtract "1" from the success counter (this is the main reason
655 if (window->counter >= IWL_RATE_MAX_WINDOW) {
657 window->counter = IWL_RATE_MAX_WINDOW - 1;
665 /* Increment frames-attempted counter */
666 window->counter++;
682 if (window->counter > 0)
684 / window->counter;
688 fail_count = window->counter - window->success_counter;
2133 fail_count = window->counter
[all...]
/linux-master/drivers/ata/
H A Dpata_ep93xx.c232 unsigned long counter = start; local
234 while (!ep93xx_pata_check_iordy(base) && counter--)
236 return start - counter;
/linux-master/drivers/mtd/nand/raw/
H A Dfsl_ifc_nand.c52 unsigned int counter; /* counter for the initializations */ member in struct:fsl_ifc_nand_ctrl
1111 ifc_nand_ctrl->counter--;
1112 if (!ifc_nand_ctrl->counter) {
/linux-master/drivers/crypto/amcc/
H A Dcrypto4xx_alg.c244 unsigned int counter = be32_to_cpup((__be32 *)(req->iv + iv_len - 4)); local
249 * The hardware uses only the last 32-bits as the counter while the
251 * the whole IV is a counter. So fallback if the counter is going to
254 if (counter + nblks < counter) {
330 /* CCM supports only counter field length of 2 and 4 bytes */
/linux-master/arch/x86/events/amd/
H A Dcore.c312 * CPUs with core performance counter extensions:
443 * counter access needs to be synchronized across all cores
451 * in a counter, the data actually comes from a shared
452 * counter. Thus, access to those counters needs to be
462 * if a counter is available, there is a guarantee the NB event
678 u64 counter; local
680 rdmsrl(x86_pmu_event_addr(idx), counter); local
682 return !(counter & BIT_ULL(x86_pmu.cntval_bits - 1));
693 * When a PMC counter overflows, an NMI is used to process the event and
694 * reset the counter
[all...]
/linux-master/sound/soc/mediatek/mt8188/
H A Dmt8188-mt6359.c360 int counter; local
421 counter = 0;
435 if (++counter > 10000) {
/linux-master/sound/soc/mediatek/mt8192/
H A Dmt8192-mt6359-rt1015-rt5682.c164 int counter; local
205 counter = 0;
225 if (++counter > 10000) {
/linux-master/drivers/char/tpm/
H A Dtpm2-sessions.c218 u32 counter = 1; local
223 __be32 c = cpu_to_be32(counter);
234 counter++;
251 * this should be an iterative counter, but because we know
258 /* counter (BE) */
/linux-master/drivers/hid/
H A Dhid-logitech-hidpp.c529 * @counter: a hid_scroll_counter struct describing the wheel.
540 struct hidpp_scroll_counter *counter,
546 hi_res_value = hi_res_value * 120/counter->wheel_multiplier;
549 remainder = counter->remainder;
553 previous = counter->last_time;
554 counter->last_time = now;
561 if (now - previous > 1000000000 || direction != counter->direction)
564 counter->direction = direction;
584 counter->remainder = remainder;
4010 struct hidpp_scroll_counter *counter; local
539 hidpp_scroll_counter_handle_scroll(struct input_dev *input_dev, struct hidpp_scroll_counter *counter, int hi_res_value) argument
[all...]
/linux-master/net/netfilter/
H A Dx_tables.c1056 * Copies counter meta data from @user and stores it in @info.
1058 * vmallocs memory to hold the counters, then copies the counter data
1901 * xt_percpu_counter_alloc - allocate x_tables rule counter
1904 * @counter: pointer to counter struct inside the ip(6)/arpt_entry struct
1906 * On SMP, the packet counter [ ip(6)t_entry->counters.pcnt ] will then
1907 * contain the address of the real (percpu) counter.
1910 * to fetch the real percpu counter.
1913 * allocated. Freeing any counter may free an entire block, so all
1923 struct xt_counters *counter)
1922 xt_percpu_counter_alloc(struct xt_percpu_counter_alloc_state *state, struct xt_counters *counter) argument
[all...]
H A Dnf_conntrack_core.c955 struct nf_conn_counter *counter = acct->counter; local
957 atomic64_add(packets, &counter[dir].packets);
958 atomic64_add(bytes, &counter[dir].bytes);
970 struct nf_conn_counter *counter = acct->counter; local
974 bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes);
/linux-master/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmac.c1595 mt7603_watchdog_check(struct mt7603_dev *dev, u8 *counter, argument
1605 if (!check(dev) && *counter < MT7603_WATCHDOG_TIMEOUT) {
1606 *counter = 0;
1610 (*counter)++;
1613 if (*counter < MT7603_WATCHDOG_TIMEOUT)
/linux-master/drivers/net/wireless/microchip/wilc1000/
H A Dwlan.c710 int counter; local
789 counter = 0;
801 counter++;
802 if (counter > 200) {
803 counter = 0;
/linux-master/drivers/iommu/
H A Ddma-iommu.c117 u64 counter; /* Flush counter when this entry was added */ member in struct:iova_fq_entry
150 u64 counter = atomic64_read(&cookie->fq_flush_finish_cnt); local
157 if (fq->entries[idx].counter >= counter)
241 fq->entries[idx].counter = atomic64_read(&cookie->fq_flush_start_cnt);
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drs.c213 window->counter = 0;
449 * subtract "1" from the success counter (this is the main reason
453 if (window->counter >= IWL_RATE_MAX_WINDOW) {
456 window->counter = IWL_RATE_MAX_WINDOW - 1;
464 /* Increment frames-attempted counter */
465 window->counter++;
481 if (window->counter > 0)
483 / window->counter;
487 fail_count = window->counter - window->success_counter;
2294 fail_count = window->counter
[all...]
/linux-master/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c1367 mlx5_vdpa_warn(&ndev->mvdev, "dealloc counter set 0x%x\n", mvq->counter_set_id);
1688 node->ucast_counter.counter = mlx5_fc_create(ndev->mvdev.mdev, false);
1689 if (IS_ERR(node->ucast_counter.counter))
1690 return PTR_ERR(node->ucast_counter.counter);
1692 node->mcast_counter.counter = mlx5_fc_create(ndev->mvdev.mdev, false);
1693 if (IS_ERR(node->mcast_counter.counter)) {
1694 err = PTR_ERR(node->mcast_counter.counter);
1703 mlx5_fc_destroy(ndev->mvdev.mdev, node->ucast_counter.counter);
1714 mlx5_fc_destroy(ndev->mvdev.mdev, node->mcast_counter.counter);
1715 mlx5_fc_destroy(ndev->mvdev.mdev, node->ucast_counter.counter);
[all...]
/linux-master/drivers/s390/block/
H A Ddasd.c659 unsigned int counter; local
663 counter = 0;
666 if (++counter >= 31)
671 dasd_global_profile.data->dasd_io_nr_req[counter]++;
673 dasd_global_profile.data->dasd_read_nr_req[counter]++;
679 block->profile.data->dasd_io_nr_req[counter]++;
681 block->profile.data->dasd_read_nr_req[counter]++;
695 counter = 1; /* request is not yet queued on the start device */
697 if (++counter >= 31)
702 device->profile.data->dasd_io_nr_req[counter]
[all...]
/linux-master/drivers/usb/gadget/udc/
H A Dr8a66597-udc.c456 unsigned char *counter; local
474 counter = &r8a66597->isochronous;
478 counter = &r8a66597->bulk;
491 counter = &r8a66597->interrupt;
501 counter = &r8a66597->isochronous;
524 (*counter)++;
525 if ((counter == &r8a66597->isochronous) && info.type == R8A66597_BULK)
/linux-master/arch/x86/events/
H A Dcore.c787 int counter; /* counter index */ member in struct:sched_state
849 sched->state.used &= ~BIT_ULL(sched->state.counter);
852 sched->state.counter++;
858 * Select a counter for the current event to schedule. Return true on
887 /* Grab the first unused counter starting with idx */
888 idx = sched->state.counter;
908 sched->state.counter = idx;
950 sched->state.counter = 0; /* start with first counter */
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge.c1350 struct mlx5_fc *counter; local
1379 counter = mlx5_fc_create(esw->dev, true);
1380 if (IS_ERR(counter)) {
1381 err = PTR_ERR(counter);
1384 entry->ingress_counter = counter;
1388 addr, vlan, mlx5_fc_id(counter),
1391 mlx5_fc_id(counter), bridge);
/linux-master/tools/perf/util/
H A Devsel.c1362 * A dummy event never triggers any actual counter and therefore
1530 static void evsel__set_count(struct evsel *counter, int cpu_map_idx, int thread, argument
1535 count = perf_counts(counter->counts, cpu_map_idx, thread);
1542 perf_counts__set_loaded(counter->counts, cpu_map_idx, thread, true);
1564 struct evsel *counter; local
1566 counter = evlist__id2evsel(leader->evlist, v->id);
1567 if (!counter)
1573 evsel__set_count(counter, cpu_map_idx, thread, v->value, ena, run, lost);
2904 * counter, which is always available even if no PMU support.
/linux-master/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c140 * Insert val into the dictionary and decrement the reference counter.
1668 process_stat(struct evsel *counter, struct perf_cpu cpu, int thread, u64 tstamp, argument
1680 counter);
1705 struct evsel *counter, u64 tstamp)
1707 struct perf_thread_map *threads = counter->core.threads;
1708 struct perf_cpu_map *cpus = counter->core.cpus;
1715 process_stat(counter, cpu,
1717 perf_counts(counter->counts, idx, thread));
1704 python_process_stat(struct perf_stat_config *config, struct evsel *counter, u64 tstamp) argument

Completed in 710 milliseconds

<<11121314151617181920>>