/drivers/md/ |
D | faulty.c | 87 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/ |
D | keyhelp.c | 64 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/ |
D | qib_fs.c | 147 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/ |
D | edac_device.c | 659 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()
|
D | edac_core.h | 188 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
|
D | edac_pci_sysfs.c | 64 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()
|
D | edac_device_sysfs.c | 322 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/ |
D | ipath_fs.c | 113 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/ |
D | bnx2x_stats.c | 810 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/ |
D | ni_tio.c | 322 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()
|
D | ni_tio.h | 128 struct ni_gpct *counters; member
|
D | ni_660x.c | 1146 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()
|
D | ni_mio_common.c | 575 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/ |
D | drm_ioctl.c | 250 for (i = 0; i < dev->counters; i++) { in drm_getstats() 259 stats->count = dev->counters; in drm_getstats()
|
D | drm_stub.c | 283 dev->counters = 6; in drm_fill_in_dev()
|
/drivers/net/ethernet/realtek/ |
D | r8169.c | 742 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/ |
D | main.c | 1221 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()
|
D | mlx4_ib.h | 204 int counters[MLX4_MAX_PORTS]; member
|
D | mad.c | 320 u32 inmod = dev->counters[port_num - 1] & 0xffff; in iboe_process_mad()
|
D | qp.c | 1091 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/ |
D | Kconfig | 76 It reads PPMU counters of memory controllers and adjusts
|
/drivers/gpu/drm/mga/ |
D | mga_dma.c | 411 dev->counters += 3; in mga_driver_load()
|
/drivers/gpu/drm/i810/ |
D | i810_dma.c | 1202 dev->counters += 4; in i810_driver_load()
|
/drivers/staging/comedi/ |
D | Kconfig | 1318 Enable support for National Instruments general purpose counters. 1321 to provide support for NI's general purpose counters.
|
/drivers/net/wireless/bcmdhd/include/ |
D | wlioctl.h | 4495 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
|