Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 25 of 27) sorted by relevance

12

/drivers/md/
Dfaulty.c87 atomic_t counters[Modes]; member
97 atomic_read(&conf->counters[mode]) <= 0) in check_mode()
101 if (atomic_dec_and_test(&conf->counters[mode])) { in check_mode()
103 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode()
180 if (atomic_read(&conf->counters[WriteAll])) { in make_request()
231 if ((n=atomic_read(&conf->counters[WriteTransient])) != 0) in status()
235 if ((n=atomic_read(&conf->counters[ReadTransient])) != 0) in status()
239 if ((n=atomic_read(&conf->counters[WritePersistent])) != 0) in status()
243 if ((n=atomic_read(&conf->counters[ReadPersistent])) != 0) in status()
248 if ((n=atomic_read(&conf->counters[ReadFixable])) != 0) in status()
[all …]
/drivers/staging/speakup/
Dkeyhelp.c64 u_char *kp, counters[MAXFUNCS], ch, ch1; in build_key_data() local
68 memset(counters, 0, sizeof(counters)); in build_key_data()
78 counters[*kp]++; in build_key_data()
82 if (counters[i] == 0) in build_key_data()
85 offset += (counters[i]+1); in build_key_data()
102 counters[ch1]--; in build_key_data()
106 p_key = key_data + offset + counters[ch1]; in build_key_data()
/drivers/infiniband/hw/qib/
Dqib_fs.c147 u64 *counters; in dev_counters_read() local
151 avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters); in dev_counters_read()
152 return simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read()
193 u64 *counters; in portcntrs_1_read() local
197 avail = dd->f_read_portcntrs(dd, *ppos, 0, NULL, &counters); in portcntrs_1_read()
198 return simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_1_read()
205 u64 *counters; in portcntrs_2_read() local
209 avail = dd->f_read_portcntrs(dd, *ppos, 1, NULL, &counters); in portcntrs_2_read()
210 return simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_2_read()
/drivers/edac/
Dedac_device.c659 block->counters.ce_count++; in edac_device_handle_ce()
663 instance->counters.ce_count++; in edac_device_handle_ce()
664 edac_dev->counters.ce_count++; in edac_device_handle_ce()
705 block->counters.ue_count++; in edac_device_handle_ue()
709 instance->counters.ue_count++; in edac_device_handle_ue()
710 edac_dev->counters.ue_count++; in edac_device_handle_ue()
Dedac_core.h188 struct edac_device_counter counters; /* basic UE and CE counters */ member
204 struct edac_device_counter counters; /* instance counters */ member
288 struct edac_device_counter counters; member
380 struct edac_pci_counter counters; member
Dedac_pci_sysfs.c64 return sprintf(data, "%u\n", atomic_read(&pci->counters.pe_count)); in instance_pe_count_show()
70 return sprintf(data, "%u\n", atomic_read(&pci->counters.npe_count)); in instance_npe_count_show()
720 atomic_inc(&pci->counters.pe_count); in edac_pci_handle_pe()
745 atomic_inc(&pci->counters.npe_count); in edac_pci_handle_npe()
Dedac_device_sysfs.c322 return sprintf(data, "%u\n", instance->counters.ue_count); in instance_ue_count_show()
328 return sprintf(data, "%u\n", instance->counters.ce_count); in instance_ce_count_show()
429 return sprintf(data, "%u\n", block->counters.ue_count); in block_ue_count_show()
437 return sprintf(data, "%u\n", block->counters.ce_count); in block_ce_count_show()
/drivers/infiniband/hw/ipath/
Dipath_fs.c113 struct infinipath_counters counters; in atomic_counters_read() local
117 dd->ipath_f_read_counters(dd, &counters); in atomic_counters_read()
119 return simple_read_from_buffer(buf, count, ppos, &counters, in atomic_counters_read()
120 sizeof counters); in atomic_counters_read()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c810 struct stats_counter *counters = &bp->fw_stats_data->storm_counters; in bnx2x_storm_stats_update() local
822 if (le16_to_cpu(counters->xstats_counter) != cur_stats_counter) { in bnx2x_storm_stats_update()
825 le16_to_cpu(counters->xstats_counter), bp->stats_counter); in bnx2x_storm_stats_update()
829 if (le16_to_cpu(counters->ustats_counter) != cur_stats_counter) { in bnx2x_storm_stats_update()
832 le16_to_cpu(counters->ustats_counter), bp->stats_counter); in bnx2x_storm_stats_update()
836 if (le16_to_cpu(counters->cstats_counter) != cur_stats_counter) { in bnx2x_storm_stats_update()
839 le16_to_cpu(counters->cstats_counter), bp->stats_counter); in bnx2x_storm_stats_update()
843 if (le16_to_cpu(counters->tstats_counter) != cur_stats_counter) { in bnx2x_storm_stats_update()
846 le16_to_cpu(counters->tstats_counter), bp->stats_counter); in bnx2x_storm_stats_update()
/drivers/staging/comedi/drivers/
Dni_tio.c322 counter_dev->counters = in ni_gpct_device_construct()
324 if (counter_dev->counters == NULL) { in ni_gpct_device_construct()
329 counter_dev->counters[i].counter_dev = counter_dev; in ni_gpct_device_construct()
330 spin_lock_init(&counter_dev->counters[i].lock); in ni_gpct_device_construct()
339 if (counter_dev->counters == NULL) in ni_gpct_device_destroy()
341 kfree(counter_dev->counters); in ni_gpct_device_destroy()
Dni_tio.h128 struct ni_gpct *counters; member
Dni_660x.c1146 s->private = &private(dev)->counter_dev->counters[i]; in ni_660x_attach()
1148 private(dev)->counter_dev->counters[i].chip_index = in ni_660x_attach()
1150 private(dev)->counter_dev->counters[i].counter_index = in ni_660x_attach()
1160 ni_tio_init_counter(&private(dev)->counter_dev->counters[i]); in ni_660x_attach()
Dni_mio_common.c575 BUG_ON(devpriv->counter_dev->counters[gpct_index].mite_chan); in ni_request_gpct_mite_channel()
586 ni_tio_set_mite_channel(&devpriv->counter_dev->counters[gpct_index], in ni_request_gpct_mite_channel()
655 if (devpriv->counter_dev->counters[gpct_index].mite_chan) { in ni_release_gpct_mite_channel()
657 devpriv->counter_dev->counters[gpct_index].mite_chan; in ni_release_gpct_mite_channel()
661 counter_dev->counters[gpct_index], in ni_release_gpct_mite_channel()
990 ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index], in handle_gpct_interrupt()
4654 s->private = &devpriv->counter_dev->counters[j];
4656 devpriv->counter_dev->counters[j].chip_index = 0;
4657 devpriv->counter_dev->counters[j].counter_index = j;
4658 ni_tio_init_counter(&devpriv->counter_dev->counters[j]);
/drivers/gpu/drm/
Ddrm_ioctl.c250 for (i = 0; i < dev->counters; i++) { in drm_getstats()
259 stats->count = dev->counters; in drm_getstats()
Ddrm_stub.c283 dev->counters = 6; in drm_fill_in_dev()
/drivers/net/ethernet/realtek/
Dr8169.c742 struct rtl8169_counters counters; member
1793 struct rtl8169_counters *counters; in rtl8169_update_counters() local
1805 counters = dma_alloc_coherent(d, sizeof(*counters), &paddr, GFP_KERNEL); in rtl8169_update_counters()
1806 if (!counters) in rtl8169_update_counters()
1816 memcpy(&tp->counters, counters, sizeof(*counters)); in rtl8169_update_counters()
1825 dma_free_coherent(d, sizeof(*counters), counters, paddr); in rtl8169_update_counters()
1837 data[0] = le64_to_cpu(tp->counters.tx_packets); in rtl8169_get_ethtool_stats()
1838 data[1] = le64_to_cpu(tp->counters.rx_packets); in rtl8169_get_ethtool_stats()
1839 data[2] = le64_to_cpu(tp->counters.tx_errors); in rtl8169_get_ethtool_stats()
1840 data[3] = le32_to_cpu(tp->counters.rx_errors); in rtl8169_get_ethtool_stats()
[all …]
/drivers/infiniband/hw/mlx4/
Dmain.c1221 err = mlx4_counter_alloc(ibdev->dev, &ibdev->counters[i]); in mlx4_ib_add()
1223 ibdev->counters[i] = -1; in mlx4_ib_add()
1225 ibdev->counters[i] = -1; in mlx4_ib_add()
1264 if (ibdev->counters[i - 1] != -1) in mlx4_ib_add()
1265 mlx4_counter_free(ibdev->dev, ibdev->counters[i - 1]); in mlx4_ib_add()
1296 if (ibdev->counters[p] != -1) in mlx4_ib_remove()
1297 mlx4_counter_free(ibdev->dev, ibdev->counters[p]); in mlx4_ib_remove()
Dmlx4_ib.h204 int counters[MLX4_MAX_PORTS]; member
Dmad.c320 u32 inmod = dev->counters[port_num - 1] & 0xffff; in iboe_process_mad()
Dqp.c1091 if (dev->counters[qp->port - 1] != -1) { in __mlx4_ib_modify_qp()
1093 dev->counters[qp->port - 1]; in __mlx4_ib_modify_qp()
/drivers/devfreq/
DKconfig76 It reads PPMU counters of memory controllers and adjusts
/drivers/gpu/drm/mga/
Dmga_dma.c411 dev->counters += 3; in mga_driver_load()
/drivers/gpu/drm/i810/
Di810_dma.c1202 dev->counters += 4; in i810_driver_load()
/drivers/staging/comedi/
DKconfig1318 Enable support for National Instruments general purpose counters.
1321 to provide support for NI's general purpose counters.
/drivers/net/wireless/bcmdhd/include/
Dwlioctl.h4495 pktq_log_counters_v01_t counters[WL_IOV_MAC_PARAM_LEN][WL_IOV_PKTQ_LOG_PRECS]; member
4501 pktq_log_counters_v02_t counters[WL_IOV_MAC_PARAM_LEN][WL_IOV_PKTQ_LOG_PRECS]; member

12