samples 105 arch/powerpc/oprofile/cell/pr_util.h void spu_sync_buffer(int spu_num, unsigned int *samples, samples 20 arch/powerpc/oprofile/cell/spu_profiler.c static u32 *samples; samples 96 arch/powerpc/oprofile/cell/spu_profiler.c samples[spu * TRACE_ARRAY_SIZE + entry] samples 98 arch/powerpc/oprofile/cell/spu_profiler.c samples[(spu + SPUS_PER_TB_ENTRY) * TRACE_ARRAY_SIZE + entry] samples 168 arch/powerpc/oprofile/cell/spu_profiler.c samples + (k * TRACE_ARRAY_SIZE), samples 209 arch/powerpc/oprofile/cell/spu_profiler.c samples = kcalloc(SPUS_PER_NODE * TRACE_ARRAY_SIZE, sizeof(u32), samples 212 arch/powerpc/oprofile/cell/spu_profiler.c if (!samples) samples 241 arch/powerpc/oprofile/cell/spu_profiler.c kfree(samples); samples 551 arch/powerpc/oprofile/cell/spu_task_sync.c void spu_sync_buffer(int spu_num, unsigned int *samples, samples 584 arch/powerpc/oprofile/cell/spu_task_sync.c unsigned int sample = *(samples+i); samples 64 arch/s390/include/asm/pci.h u32 samples; samples 97 arch/s390/pci/pci_debug.c seq_printf(m, "Samples: %u\n", zdev->fmb->samples); samples 27 arch/x86/kernel/cpu/aperfmperf.c static DEFINE_PER_CPU(struct aperfmperf_sample, samples); samples 43 arch/x86/kernel/cpu/aperfmperf.c struct aperfmperf_sample *s = this_cpu_ptr(&samples); samples 69 arch/x86/kernel/cpu/aperfmperf.c s64 time_delta = ktime_ms_delta(now, per_cpu(samples.time, cpu)); samples 93 arch/x86/kernel/cpu/aperfmperf.c return per_cpu(samples.khz, cpu); samples 131 arch/x86/kernel/cpu/aperfmperf.c return per_cpu(samples.khz, cpu); samples 136 arch/x86/kernel/cpu/aperfmperf.c return per_cpu(samples.khz, cpu); samples 1190 block/bfq-cgroup.c u64 samples = bfq_stat_read(&bfqg->stats.avg_queue_size_samples); samples 1193 block/bfq-cgroup.c if (samples) { samples 1195 block/bfq-cgroup.c v = div64_u64(v, samples); samples 432 block/bfq-iosched.c #define bfq_sample_valid(samples) ((samples) > 80) samples 186 block/blk-throttle.c int samples; samples 2060 block/blk-throttle.c tmp->samples += bucket[i].samples; samples 2062 block/blk-throttle.c bucket[i].samples = 0; samples 2065 block/blk-throttle.c if (tmp->samples >= 32) { samples 2066 block/blk-throttle.c int samples = tmp->samples; samples 2071 block/blk-throttle.c tmp->samples = 0; samples 2072 block/blk-throttle.c latency[rw] /= samples; samples 2242 block/blk-throttle.c latency[index].samples++; samples 230 block/kyber-iosched.c unsigned int bucket, samples = 0, percentile_samples; samples 233 block/kyber-iosched.c samples += buckets[bucket]; samples 235 block/kyber-iosched.c if (!samples) samples 244 block/kyber-iosched.c if (samples < 500 && samples 250 block/kyber-iosched.c percentile_samples = DIV_ROUND_UP(samples * percentile, 100); samples 260 block/kyber-iosched.c bucket + 1, 1 << KYBER_LATENCY_SHIFT, samples); samples 137 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c uint32_t samples; samples 181 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples = h_blank * 10; samples 185 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples /= 32; samples 186 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples *= crtc_info->v_active; samples 188 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples *= crtc_info->refresh_rate; samples 190 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples /= 10; samples 201 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples *= 4; samples 204 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples *= 5; samples 207 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples *= 6; samples 210 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples *= 4; samples 214 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c samples /= 4; samples 217 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c if (samples < 88200) samples 219 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c else if (samples < 96000) samples 221 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c else if (samples < 176400) samples 223 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c else if (samples < 192000) samples 144 drivers/hwmon/ina3221.c u32 samples = ina3221_avg_samples[samples_idx]; samples 147 drivers/hwmon/ina3221.c return DIV_ROUND_CLOSEST(interval * 1000 / 2, channels * samples); samples 157 drivers/hwmon/ina3221.c u32 samples = ina3221_avg_samples[samples_idx]; samples 162 drivers/hwmon/ina3221.c return channels * (vbus_ct + vsh_ct) * samples; samples 106 drivers/hwmon/mlxreg-fan.c int samples; samples 131 drivers/hwmon/mlxreg-fan.c fan->samples); samples 396 drivers/hwmon/mlxreg-fan.c fan->samples = MLXREG_FAN_TACHO_SAMPLES_PER_PULSE_DEF; samples 445 drivers/hwmon/mlxreg-fan.c fan->samples = data->mask; samples 409 drivers/hwmon/occ/common.c static u64 occ_get_powr_avg(u64 *accum, u32 *samples) samples 411 drivers/hwmon/occ/common.c u64 divisor = get_unaligned_be32(samples); samples 841 drivers/iio/accel/bmc150-accel-core.c char *buffer, int samples) samples 846 drivers/iio/accel/bmc150-accel-core.c int total_length = samples * sample_length; samples 858 drivers/iio/accel/bmc150-accel-core.c unsigned samples, bool irq) samples 911 drivers/iio/accel/bmc150-accel-core.c if (samples && count > samples) samples 912 drivers/iio/accel/bmc150-accel-core.c count = samples; samples 941 drivers/iio/accel/bmc150-accel-core.c static int bmc150_accel_fifo_flush(struct iio_dev *indio_dev, unsigned samples) samples 947 drivers/iio/accel/bmc150-accel-core.c ret = __bmc150_accel_fifo_flush(indio_dev, samples, false); samples 380 drivers/iio/adc/meson_saradc.c enum meson_sar_adc_num_samples samples) samples 385 drivers/iio/adc/meson_saradc.c val = samples << MESON_SAR_ADC_AVG_CNTL_NUM_SAMPLES_SHIFT(address); samples 124 drivers/iio/buffer/kfifo_buf.c size_t samples; samples 127 drivers/iio/buffer/kfifo_buf.c samples = kfifo_len(&kf->kf); samples 130 drivers/iio/buffer/kfifo_buf.c return samples; samples 457 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c memset(st->samples, 0, indio_dev->scan_bytes); samples 462 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c (s16 *)st->samples); samples 466 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c iio_push_to_buffers_with_timestamp(indio_dev, st->samples, samples 109 drivers/input/keyboard/qt1050.c u32 samples; samples 327 drivers/input/keyboard/qt1050.c (button->samples << 4) | (button->scale)); samples 390 drivers/input/keyboard/qt1050.c &button.samples)) { samples 391 drivers/input/keyboard/qt1050.c button.samples = 0; samples 393 drivers/input/keyboard/qt1050.c if (is_power_of_2(button.samples)) samples 394 drivers/input/keyboard/qt1050.c button.samples = ilog2(button.samples); samples 396 drivers/input/keyboard/qt1050.c button.samples = 0; samples 302 drivers/input/misc/adxl34x.c int int_stat, tap_stat, samples, orient, orient_code; samples 371 drivers/input/misc/adxl34x.c samples = ENTRIES(AC_READ(ac, FIFO_STATUS)) + 1; samples 373 drivers/input/misc/adxl34x.c samples = 1; samples 375 drivers/input/misc/adxl34x.c for (; samples > 0; samples--) { samples 391 drivers/input/misc/adxl34x.c if (ac->fifo_delay && (samples > 1)) samples 842 drivers/input/mouse/elantech.c else if (ic_version == 7 && etd->info.samples[1] == 0x2A) samples 1632 drivers/input/mouse/elantech.c if (info->send_cmd(psmouse, ETP_SAMPLE_QUERY, info->samples)) { samples 1638 drivers/input/mouse/elantech.c info->samples[0], samples 1639 drivers/input/mouse/elantech.c info->samples[1], samples 1640 drivers/input/mouse/elantech.c info->samples[2]); samples 1643 drivers/input/mouse/elantech.c if (info->samples[1] == 0x74 && info->hw_version == 0x03) { samples 140 drivers/input/mouse/elantech.h unsigned char samples[3]; samples 238 drivers/input/touchscreen/fsl-imx25-tcq.c unsigned int samples) samples 246 drivers/input/touchscreen/fsl-imx25-tcq.c for (i = 0; i < samples; i++) { samples 270 drivers/input/touchscreen/fsl-imx25-tcq.c if (samples != 0) { samples 312 drivers/input/touchscreen/fsl-imx25-tcq.c unsigned int samples; samples 322 drivers/input/touchscreen/fsl-imx25-tcq.c samples = MX25_ADCQ_SR_FDN(stats); samples 323 drivers/input/touchscreen/fsl-imx25-tcq.c samples -= samples % priv->sample_count; samples 325 drivers/input/touchscreen/fsl-imx25-tcq.c if (!samples) samples 328 drivers/input/touchscreen/fsl-imx25-tcq.c for (i = 0; i != samples; ++i) samples 331 drivers/input/touchscreen/fsl-imx25-tcq.c mx25_tcq_create_event_for_4wire(priv, sample_buf, samples); samples 134 drivers/isdn/mISDN/clock.c mISDN_clock_update(struct mISDNclock *iclock, int samples, ktime_t *timestamp) samples 152 drivers/isdn/mISDN/clock.c iclock_count += samples; samples 1161 drivers/isdn/mISDN/dsp_cmx.c showdelay(struct dsp *dsp, int samples, int delay) samples 1166 drivers/isdn/mISDN/dsp_cmx.c delaycount += samples; samples 197 drivers/isdn/mISDN/dsp_tones.c tones_samples samples[] = { samples 219 drivers/isdn/mISDN/dsp_tones.c while (samples[i].len) { samples 221 drivers/isdn/mISDN/dsp_tones.c while (j < (*samples[i].len)) { samples 222 drivers/isdn/mISDN/dsp_tones.c samples[i].data[j] = samples 223 drivers/isdn/mISDN/dsp_tones.c dsp_audio_alaw_to_ulaw[samples[i].data[j]]; samples 45 drivers/macintosh/windfarm_pid.c st->samples[i] = new_sample; samples 52 drivers/macintosh/windfarm_pid.c st->samples[st->index] = new_sample; samples 38 drivers/macintosh/windfarm_pid.h s32 samples[WF_PID_MAX_HISTORY]; /* samples history buffer */ samples 26 drivers/media/common/siano/smsir.c const s32 *samples = (const void *)buf; samples 30 drivers/media/common/siano/smsir.c .duration = abs(samples[i]) * 1000, /* Convert to ns */ samples 31 drivers/media/common/siano/smsir.c .pulse = (samples[i] > 0) ? false : true samples 198 drivers/media/dvb-frontends/rtl2832_sdr.c unsigned int samples = dev->sample - dev->sample_measured; samples 204 drivers/media/dvb-frontends/rtl2832_sdr.c src_len, samples, msecs, samples * 1000UL / msecs); samples 100 drivers/media/pci/cobalt/cobalt-alsa-pcm.c size_t samples) samples 107 drivers/media/pci/cobalt/cobalt-alsa-pcm.c int length = samples; samples 112 drivers/media/pci/cobalt/cobalt-alsa-pcm.c pcm_data, samples); samples 348 drivers/media/pci/cobalt/cobalt-alsa-pcm.c size_t samples) samples 359 drivers/media/pci/cobalt/cobalt-alsa-pcm.c pcm_data, samples); samples 380 drivers/media/pci/cobalt/cobalt-alsa-pcm.c if (samples == 0) { samples 139 drivers/media/pci/cx88/cx88-dsp.c int samples = 5; samples 147 drivers/media/pci/cx88/cx88-dsp.c freq_step = (freq_end - freq_start) / (samples - 1); samples 149 drivers/media/pci/cx88/cx88-dsp.c for (i = 0; i < samples; i++) { samples 154 drivers/media/pci/cx88/cx88-dsp.c return (u32)int_sqrt(sum / samples); samples 240 drivers/media/pci/cx88/cx88-dsp.c s16 *samples; samples 255 drivers/media/pci/cx88/cx88-dsp.c samples = kmalloc_array(sample_count, sizeof(*samples), GFP_KERNEL); samples 256 drivers/media/pci/cx88/cx88-dsp.c if (!samples) samples 263 drivers/media/pci/cx88/cx88-dsp.c samples[i] = cx_read(srch->fifo_start + offset); samples 267 drivers/media/pci/cx88/cx88-dsp.c dprintk(2, "RDS samples dump: %*ph\n", sample_count, samples); samples 269 drivers/media/pci/cx88/cx88-dsp.c return samples; samples 274 drivers/media/pci/cx88/cx88-dsp.c s16 *samples; samples 288 drivers/media/pci/cx88/cx88-dsp.c samples = read_rds_samples(core, &N); samples 290 drivers/media/pci/cx88/cx88-dsp.c if (!samples) samples 298 drivers/media/pci/cx88/cx88-dsp.c ret = detect_a2_a2m_eiaj(core, samples, N); samples 301 drivers/media/pci/cx88/cx88-dsp.c ret = detect_btsc(core, samples, N); samples 312 drivers/media/pci/cx88/cx88-dsp.c kfree(samples); samples 527 drivers/media/pci/cx88/cx88-input.c u32 samples; samples 539 drivers/media/pci/cx88/cx88-input.c samples = cx_read(MO_SAMPLE_IO); samples 541 drivers/media/pci/cx88/cx88-input.c if (samples == 0xff && ir->dev->idle) samples 545 drivers/media/pci/cx88/cx88-input.c ev.pulse = samples & 0x80000000 ? false : true; samples 546 drivers/media/pci/cx88/cx88-input.c bits = min(todo, 32U - fls(ev.pulse ? samples : ~samples)); samples 549 drivers/media/pci/cx88/cx88-input.c samples <<= bits; samples 248 drivers/media/usb/airspy/airspy.c unsigned int samples = s->sample - s->sample_measured; samples 253 drivers/media/usb/airspy/airspy.c src_len, samples, msecs, samples 254 drivers/media/usb/airspy/airspy.c samples * 1000UL / msecs); samples 464 drivers/media/usb/hackrf/hackrf.c unsigned int samples = dev->sample - dev->sample_measured; samples 469 drivers/media/usb/hackrf/hackrf.c src_len, samples, msecs, samples 470 drivers/media/usb/hackrf/hackrf.c samples * 1000UL / msecs); samples 347 drivers/media/usb/msi2500/msi2500.c unsigned int samples = dev->next_sample - dev->sample; samples 352 drivers/media/usb/msi2500/msi2500.c src_len, samples, msecs, samples 353 drivers/media/usb/msi2500/msi2500.c samples * 1000UL / msecs); samples 519 drivers/media/usb/uvc/uvc_video.c sample = &stream->clock.samples[stream->clock.head]; samples 551 drivers/media/usb/uvc/uvc_video.c clock->samples = kmalloc_array(clock->size, sizeof(*clock->samples), samples 553 drivers/media/usb/uvc/uvc_video.c if (clock->samples == NULL) samples 563 drivers/media/usb/uvc/uvc_video.c kfree(stream->clock.samples); samples 564 drivers/media/usb/uvc/uvc_video.c stream->clock.samples = NULL; samples 679 drivers/media/usb/uvc/uvc_video.c if (!clock->samples) samples 687 drivers/media/usb/uvc/uvc_video.c first = &clock->samples[clock->head]; samples 688 drivers/media/usb/uvc/uvc_video.c last = &clock->samples[(clock->head - 1) % clock->size]; samples 604 drivers/media/usb/uvc/uvcvideo.h } *samples; samples 691 drivers/net/wireless/broadcom/b43/b43.h s8 samples[8][4]; samples 1452 drivers/net/wireless/broadcom/b43/main.c dev->noisecalc.samples[i][0] = phy->nrssi_lt[noise[0]]; samples 1453 drivers/net/wireless/broadcom/b43/main.c dev->noisecalc.samples[i][1] = phy->nrssi_lt[noise[1]]; samples 1454 drivers/net/wireless/broadcom/b43/main.c dev->noisecalc.samples[i][2] = phy->nrssi_lt[noise[2]]; samples 1455 drivers/net/wireless/broadcom/b43/main.c dev->noisecalc.samples[i][3] = phy->nrssi_lt[noise[3]]; samples 1462 drivers/net/wireless/broadcom/b43/main.c average += dev->noisecalc.samples[i][j]; samples 987 drivers/net/wireless/broadcom/b43/phy_lp.c static bool lpphy_rx_iq_est(struct b43_wldev *dev, u16 samples, u8 time, samples 993 drivers/net/wireless/broadcom/b43/phy_lp.c b43_phy_write(dev, B43_LPPHY_IQ_NUM_SMPLS_ADDR, samples); samples 1697 drivers/net/wireless/broadcom/b43/phy_lp.c static int lpphy_calc_rx_iq_comp(struct b43_wldev *dev, u16 samples) samples 1710 drivers/net/wireless/broadcom/b43/phy_lp.c ret = lpphy_rx_iq_est(dev, samples, 32, &iq_est); samples 1754 drivers/net/wireless/broadcom/b43/phy_lp.c static void lpphy_run_samples(struct b43_wldev *dev, u16 samples, u16 loops, samples 1758 drivers/net/wireless/broadcom/b43/phy_lp.c 0xFFC0, samples - 1); samples 1771 drivers/net/wireless/broadcom/b43/phy_lp.c int i, samples = 0, theta = 0; samples 1779 drivers/net/wireless/broadcom/b43/phy_lp.c for (i = 1; samples * abs(freq) != 20000 * i; i++) { samples 1780 drivers/net/wireless/broadcom/b43/phy_lp.c samples = (20000 * i) / abs(freq); samples 1781 drivers/net/wireless/broadcom/b43/phy_lp.c if(B43_WARN_ON(samples > 63)) samples 1785 drivers/net/wireless/broadcom/b43/phy_lp.c samples = 2; samples 1788 drivers/net/wireless/broadcom/b43/phy_lp.c for (i = 0; i < samples; i++) { samples 1795 drivers/net/wireless/broadcom/b43/phy_lp.c b43_lptab_write_bulk(dev, B43_LPTAB16(5, 0), samples, buf); samples 1797 drivers/net/wireless/broadcom/b43/phy_lp.c lpphy_run_samples(dev, samples, 0xFFFF, 0); samples 1504 drivers/net/wireless/broadcom/b43/phy_n.c struct cordic_iq *samples, u16 len) { samples 1518 drivers/net/wireless/broadcom/b43/phy_n.c data[i] = (samples[i].i & 0x3FF << 10); samples 1519 drivers/net/wireless/broadcom/b43/phy_n.c data[i] |= samples[i].q & 0x3FF; samples 1535 drivers/net/wireless/broadcom/b43/phy_n.c struct cordic_iq *samples; samples 1552 drivers/net/wireless/broadcom/b43/phy_n.c samples = kcalloc(len, sizeof(struct cordic_iq), GFP_KERNEL); samples 1553 drivers/net/wireless/broadcom/b43/phy_n.c if (!samples) { samples 1561 drivers/net/wireless/broadcom/b43/phy_n.c samples[i] = cordic_calc_iq(CORDIC_FIXED(angle)); samples 1563 drivers/net/wireless/broadcom/b43/phy_n.c samples[i].q = CORDIC_FLOAT(samples[i].q * max); samples 1564 drivers/net/wireless/broadcom/b43/phy_n.c samples[i].i = CORDIC_FLOAT(samples[i].i * max); samples 1567 drivers/net/wireless/broadcom/b43/phy_n.c i = b43_nphy_load_samples(dev, samples, len); samples 1568 drivers/net/wireless/broadcom/b43/phy_n.c kfree(samples); samples 549 drivers/net/wireless/broadcom/b43legacy/b43legacy.h s8 samples[8][4]; samples 818 drivers/net/wireless/broadcom/b43legacy/main.c dev->noisecalc.samples[i][0] = phy->nrssi_lt[noise[0]]; samples 819 drivers/net/wireless/broadcom/b43legacy/main.c dev->noisecalc.samples[i][1] = phy->nrssi_lt[noise[1]]; samples 820 drivers/net/wireless/broadcom/b43legacy/main.c dev->noisecalc.samples[i][2] = phy->nrssi_lt[noise[2]]; samples 821 drivers/net/wireless/broadcom/b43legacy/main.c dev->noisecalc.samples[i][3] = phy->nrssi_lt[noise[3]]; samples 828 drivers/net/wireless/broadcom/b43legacy/main.c average += dev->noisecalc.samples[i][j]; samples 1930 drivers/net/wireless/intel/iwlegacy/3945.c const struct il3945_eeprom_txpower_sample *samples; samples 1936 drivers/net/wireless/intel/iwlegacy/3945.c samples = chnl_grp->samples; samples 1938 drivers/net/wireless/intel/iwlegacy/3945.c if (power == samples[i].power) { samples 1939 drivers/net/wireless/intel/iwlegacy/3945.c *new_idx = samples[i].gain_idx; samples 1944 drivers/net/wireless/intel/iwlegacy/3945.c if (power > samples[1].power) { samples 1947 drivers/net/wireless/intel/iwlegacy/3945.c } else if (power > samples[2].power) { samples 1950 drivers/net/wireless/intel/iwlegacy/3945.c } else if (power > samples[3].power) { samples 1958 drivers/net/wireless/intel/iwlegacy/3945.c denominator = (s32) samples[idx1].power - (s32) samples[idx0].power; samples 1961 drivers/net/wireless/intel/iwlegacy/3945.c gains0 = (s32) samples[idx0].gain_idx * (1 << 19); samples 1962 drivers/net/wireless/intel/iwlegacy/3945.c gains1 = (s32) samples[idx1].gain_idx * (1 << 19); samples 1965 drivers/net/wireless/intel/iwlegacy/3945.c (s32) samples[idx0].power) / samples 288 drivers/net/wireless/intel/iwlegacy/3945.h struct il3945_eeprom_txpower_sample samples[5]; /* 5 power levels */ samples 1417 drivers/phy/phy-xgene.c static int xgene_phy_get_avg(int accum, int samples) samples 1419 drivers/phy/phy-xgene.c return (accum + (samples / 2)) / samples; samples 108 drivers/power/supply/ab8500_fg.c int samples[NBR_AVG_SAMPLES]; samples 386 drivers/power/supply/ab8500_fg.c avg->sum += sample - avg->samples[avg->pos]; samples 387 drivers/power/supply/ab8500_fg.c avg->samples[avg->pos] = sample; samples 425 drivers/power/supply/ab8500_fg.c avg->samples[i] = 0; samples 446 drivers/power/supply/ab8500_fg.c avg->samples[i] = sample; samples 412 drivers/staging/comedi/drivers/adl_pci9111.c unsigned int samples; samples 414 drivers/staging/comedi/drivers/adl_pci9111.c samples = comedi_nsamples_left(s, PCI9111_FIFO_HALF_SIZE); samples 415 drivers/staging/comedi/drivers/adl_pci9111.c insw(dev->iobase + PCI9111_AI_FIFO_REG, buf, samples); samples 418 drivers/staging/comedi/drivers/adl_pci9111.c comedi_buf_write_samples(s, buf, samples); samples 423 drivers/staging/comedi/drivers/adl_pci9111.c while (pos < samples) { samples 428 drivers/staging/comedi/drivers/adl_pci9111.c if (to_read > samples - pos) samples 429 drivers/staging/comedi/drivers/adl_pci9111.c to_read = samples - pos; samples 436 drivers/staging/comedi/drivers/adl_pci9111.c if (to_read > samples - pos) samples 437 drivers/staging/comedi/drivers/adl_pci9111.c to_read = samples - pos; samples 752 drivers/staging/comedi/drivers/das1800.c unsigned int samples; samples 754 drivers/staging/comedi/drivers/das1800.c samples = max_samples; samples 760 drivers/staging/comedi/drivers/das1800.c samples = ns / cmd->convert_arg; samples 763 drivers/staging/comedi/drivers/das1800.c samples = ns / (cmd->scan_begin_arg * cmd->chanlist_len); samples 768 drivers/staging/comedi/drivers/das1800.c samples = comedi_nsamples_left(s, samples); samples 770 drivers/staging/comedi/drivers/das1800.c if (samples > max_samples) samples 771 drivers/staging/comedi/drivers/das1800.c samples = max_samples; samples 772 drivers/staging/comedi/drivers/das1800.c if (samples < 1) samples 773 drivers/staging/comedi/drivers/das1800.c samples = 1; samples 775 drivers/staging/comedi/drivers/das1800.c return comedi_samples_to_bytes(s, samples); samples 754 drivers/staging/uwb/uwb.h atomic_t samples; samples 760 drivers/staging/uwb/uwb.h atomic_set(&stats->samples, 0); samples 769 drivers/staging/uwb/uwb.h unsigned samples = atomic_read(&stats->samples); samples 770 drivers/staging/uwb/uwb.h if (samples == 0) { /* it was zero before, so we initialize */ samples 789 drivers/staging/uwb/uwb.h if (atomic_add_return(1, &stats->samples) > 255) { samples 792 drivers/staging/uwb/uwb.h atomic_set(&stats->samples, 1); samples 799 drivers/staging/uwb/uwb.h int samples = atomic_read(&stats->samples); samples 800 drivers/staging/uwb/uwb.h if (samples == 0) samples 805 drivers/staging/uwb/uwb.h avg = stats->sigma / samples; samples 71 include/linux/iio/common/cros_ec_sensors_core.h u8 samples[CROS_EC_SAMPLE_SIZE]; samples 64 include/linux/sched/cputime.h void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples); samples 1050 include/sound/pcm.h ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples); samples 51 include/sound/soundfont.h struct snd_sf_sample *samples; /* The sample headers */ samples 18 include/trace/events/kyber.h unsigned int denominator, unsigned int samples), samples 20 include/trace/events/kyber.h TP_ARGS(q, domain, type, percentile, numerator, denominator, samples), samples 29 include/trace/events/kyber.h __field( unsigned int, samples ) samples 39 include/trace/events/kyber.h __entry->samples = samples; samples 45 include/trace/events/kyber.h __entry->denominator, __entry->samples) samples 336 include/uapi/sound/emu10k1.h unsigned int *samples; /* pointer to samples (20-bit) */ samples 58 kernel/time/itimer.c u64 t, samples[CPUCLOCK_MAX]; samples 60 kernel/time/itimer.c thread_group_sample_cputime(tsk, samples); samples 61 kernel/time/itimer.c t = samples[clock_id]; samples 217 kernel/time/posix-cpu-timers.c static inline void store_samples(u64 *samples, u64 stime, u64 utime, u64 rtime) samples 219 kernel/time/posix-cpu-timers.c samples[CPUCLOCK_PROF] = stime + utime; samples 220 kernel/time/posix-cpu-timers.c samples[CPUCLOCK_VIRT] = utime; samples 221 kernel/time/posix-cpu-timers.c samples[CPUCLOCK_SCHED] = rtime; samples 224 kernel/time/posix-cpu-timers.c static void task_sample_cputime(struct task_struct *p, u64 *samples) samples 229 kernel/time/posix-cpu-timers.c store_samples(samples, stime, utime, p->se.sum_exec_runtime); samples 233 kernel/time/posix-cpu-timers.c u64 *samples) samples 240 kernel/time/posix-cpu-timers.c store_samples(samples, stime, utime, rtime); samples 277 kernel/time/posix-cpu-timers.c void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) samples 284 kernel/time/posix-cpu-timers.c proc_sample_cputime_atomic(&cputimer->cputime_atomic, samples); samples 299 kernel/time/posix-cpu-timers.c static void thread_group_start_cputime(struct task_struct *tsk, u64 *samples) samples 325 kernel/time/posix-cpu-timers.c proc_sample_cputime_atomic(&cputimer->cputime_atomic, samples); samples 328 kernel/time/posix-cpu-timers.c static void __thread_group_cputime(struct task_struct *tsk, u64 *samples) samples 333 kernel/time/posix-cpu-timers.c store_samples(samples, ct.stime, ct.utime, ct.sum_exec_runtime); samples 348 kernel/time/posix-cpu-timers.c u64 samples[CPUCLOCK_MAX]; samples 352 kernel/time/posix-cpu-timers.c thread_group_start_cputime(p, samples); samples 354 kernel/time/posix-cpu-timers.c __thread_group_cputime(p, samples); samples 356 kernel/time/posix-cpu-timers.c proc_sample_cputime_atomic(&cputimer->cputime_atomic, samples); samples 359 kernel/time/posix-cpu-timers.c return samples[clkid]; samples 787 kernel/time/posix-cpu-timers.c static void collect_posix_cputimers(struct posix_cputimers *pct, u64 *samples, samples 795 kernel/time/posix-cpu-timers.c samples[i]); samples 830 kernel/time/posix-cpu-timers.c u64 samples[CPUCLOCK_MAX]; samples 839 kernel/time/posix-cpu-timers.c task_sample_cputime(tsk, samples); samples 840 kernel/time/posix-cpu-timers.c collect_posix_cputimers(pct, samples, firing); samples 908 kernel/time/posix-cpu-timers.c u64 samples[CPUCLOCK_MAX]; samples 929 kernel/time/posix-cpu-timers.c proc_sample_cputime_atomic(&sig->cputimer.cputime_atomic, samples); samples 930 kernel/time/posix-cpu-timers.c collect_posix_cputimers(pct, samples, firing); samples 937 kernel/time/posix-cpu-timers.c samples[CPUCLOCK_PROF], SIGPROF); samples 940 kernel/time/posix-cpu-timers.c samples[CPUCLOCK_VIRT], SIGVTALRM); samples 946 kernel/time/posix-cpu-timers.c u64 ptime = samples[CPUCLOCK_PROF]; samples 1041 kernel/time/posix-cpu-timers.c task_cputimers_expired(const u64 *samples, struct posix_cputimers *pct) samples 1046 kernel/time/posix-cpu-timers.c if (samples[i] >= pct->bases[i].nextevt) samples 1068 kernel/time/posix-cpu-timers.c u64 samples[CPUCLOCK_MAX]; samples 1070 kernel/time/posix-cpu-timers.c task_sample_cputime(tsk, samples); samples 1071 kernel/time/posix-cpu-timers.c if (task_cputimers_expired(samples, pct)) samples 1093 kernel/time/posix-cpu-timers.c u64 samples[CPUCLOCK_MAX]; samples 1096 kernel/time/posix-cpu-timers.c samples); samples 1098 kernel/time/posix-cpu-timers.c if (task_cputimers_expired(samples, pct)) samples 688 sound/core/oss/pcm_plugin.c size_t samples, snd_pcm_format_t format) samples 702 sound/core/oss/pcm_plugin.c return snd_pcm_format_set_silence(format, dst, samples); samples 711 sound/core/oss/pcm_plugin.c while (samples-- > 0) { samples 725 sound/core/oss/pcm_plugin.c while (samples-- > 0) { samples 735 sound/core/oss/pcm_plugin.c size_t samples, snd_pcm_format_t format) samples 743 sound/core/oss/pcm_plugin.c return snd_pcm_area_silence(dst_area, dst_offset, samples, format); samples 752 sound/core/oss/pcm_plugin.c size_t bytes = samples * width / 8; samples 764 sound/core/oss/pcm_plugin.c while (samples-- > 0) { samples 789 sound/core/oss/pcm_plugin.c while (samples-- > 0) { samples 135 sound/core/oss/pcm_plugin.h size_t samples, snd_pcm_format_t format); samples 140 sound/core/oss/pcm_plugin.h size_t samples, snd_pcm_format_t format); samples 380 sound/core/pcm_misc.c ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) samples 385 sound/core/pcm_misc.c return samples * phys_width / 8; samples 415 sound/core/pcm_misc.c int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) samples 422 sound/core/pcm_misc.c if (samples == 0) samples 430 sound/core/pcm_misc.c unsigned int bytes = samples * width / 8; samples 438 sound/core/pcm_misc.c while (samples--) { samples 446 sound/core/pcm_misc.c while (samples--) { samples 452 sound/core/pcm_misc.c while (samples--) { samples 458 sound/core/pcm_misc.c while (samples--) { samples 464 sound/core/pcm_misc.c while (samples--) { samples 75 sound/firewire/isight.c __be16 samples[2 * MAX_FRAMES_PER_PACKET]; samples 109 sound/firewire/isight.c const __be16 *samples, unsigned int count) samples 120 sound/firewire/isight.c samples, count * 4); samples 124 sound/firewire/isight.c samples, count1 * 4); samples 125 sound/firewire/isight.c samples += count1 * 2; samples 126 sound/firewire/isight.c memcpy(runtime->dma_area, samples, (count - count1) * 4); samples 191 sound/firewire/isight.c isight_samples(isight, payload->samples, count); samples 42 sound/soc/codecs/tlv320dac33.c #define SAMPLES_TO_US(rate, samples) \ samples 43 sound/soc/codecs/tlv320dac33.c (1000000000 / (((rate) * 1000) / (samples))) samples 48 sound/soc/codecs/tlv320dac33.c #define UTHR_FROM_PERIOD_SIZE(samples, playrate, burstrate) \ samples 49 sound/soc/codecs/tlv320dac33.c (((samples)*5000) / (((burstrate)*5000) / ((burstrate) - (playrate)))) samples 1144 sound/soc/codecs/tlv320dac33.c int samples_out, samples_in, samples; samples 1191 sound/soc/codecs/tlv320dac33.c samples = dac33->alarm_threshold; samples 1192 sound/soc/codecs/tlv320dac33.c samples += (samples_in - samples_out); samples 1194 sound/soc/codecs/tlv320dac33.c if (likely(samples > 0)) samples 1195 sound/soc/codecs/tlv320dac33.c delay = samples; samples 1209 sound/soc/codecs/tlv320dac33.c samples = dac33->alarm_threshold; samples 1210 sound/soc/codecs/tlv320dac33.c samples += (samples_in - samples_out); samples 1212 sound/soc/codecs/tlv320dac33.c if (likely(samples > 0)) samples 1213 sound/soc/codecs/tlv320dac33.c delay = samples > dac33->fifo_size ? samples 1214 sound/soc/codecs/tlv320dac33.c dac33->fifo_size : samples; samples 722 sound/soc/intel/haswell/sst-haswell-pcm.c ssize_t samples; samples 742 sound/soc/intel/haswell/sst-haswell-pcm.c samples = SST_SAMPLES(runtime, position - old_position); samples 746 sound/soc/intel/haswell/sst-haswell-pcm.c samples); samples 751 sound/soc/intel/haswell/sst-haswell-pcm.c samples = SST_SAMPLES(runtime, samples 756 sound/soc/intel/haswell/sst-haswell-pcm.c samples); samples 760 sound/soc/intel/haswell/sst-haswell-pcm.c samples = SST_SAMPLES(runtime, position); samples 762 sound/soc/intel/haswell/sst-haswell-pcm.c dma_area, samples); samples 448 sound/soc/sh/fsi.c static int fsi_sample2frame(struct fsi_priv *fsi, int samples) samples 450 sound/soc/sh/fsi.c return samples / fsi->chan_num; samples 1054 sound/soc/sh/fsi.c static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) samples 1066 sound/soc/sh/fsi.c for (i = 0; i < samples / 2; i++) samples 1072 sound/soc/sh/fsi.c for (i = 0; i < samples; i++) samples 1077 sound/soc/sh/fsi.c static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) samples 1082 sound/soc/sh/fsi.c for (i = 0; i < samples; i++) samples 1086 sound/soc/sh/fsi.c static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) samples 1091 sound/soc/sh/fsi.c for (i = 0; i < samples; i++) samples 1095 sound/soc/sh/fsi.c static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) samples 1100 sound/soc/sh/fsi.c for (i = 0; i < samples; i++) samples 1113 sound/soc/sh/fsi.c void (*run16)(struct fsi_priv *fsi, u8 *buf, int samples), samples 1114 sound/soc/sh/fsi.c void (*run32)(struct fsi_priv *fsi, u8 *buf, int samples), samples 1115 sound/soc/sh/fsi.c int samples) samples 1126 sound/soc/sh/fsi.c run16(fsi, buf, samples); samples 1129 sound/soc/sh/fsi.c run32(fsi, buf, samples); samples 1135 sound/soc/sh/fsi.c fsi_pointer_update(io, samples); samples 1144 sound/soc/sh/fsi.c int samples; samples 1149 sound/soc/sh/fsi.c samples = min(sample_residues, sample_space); samples 1154 sound/soc/sh/fsi.c samples); samples 1161 sound/soc/sh/fsi.c int samples; samples 1167 sound/soc/sh/fsi.c samples = min(sample_residues, sample_space); samples 1172 sound/soc/sh/fsi.c samples); samples 283 sound/synth/emux/soundfont.c sf->samples = NULL; samples 387 sound/synth/emux/soundfont.c sp->next = sf->samples; samples 388 sound/synth/emux/soundfont.c sf->samples = sp; samples 403 sound/synth/emux/soundfont.c if (sp == sf->samples) { samples 404 sound/synth/emux/soundfont.c sf->samples = sp->next; samples 680 sound/synth/emux/soundfont.c for (p = sf->samples; p; p = p->next) { samples 1367 sound/synth/emux/soundfont.c for (sp = sf->samples; sp; sp = nextsp) { samples 1466 sound/synth/emux/soundfont.c for (sp = sf->samples; sp; sp = nextsp) { samples 1470 sound/synth/emux/soundfont.c sf->samples = nextsp; samples 46 tools/perf/builtin-inject.c struct list_head samples; samples 476 tools/perf/builtin-inject.c list_for_each_entry(ent, &inject->samples, node) { samples 507 tools/perf/builtin-inject.c list_add(&ent->node, &inject->samples); samples 523 tools/perf/builtin-inject.c list_for_each_entry(ent, &inject->samples, node) { samples 773 tools/perf/builtin-inject.c .samples = LIST_HEAD_INIT(inject.samples), samples 92 tools/perf/builtin-record.c unsigned long long samples; samples 321 tools/perf/builtin-record.c rec->samples++; samples 495 tools/perf/builtin-record.c rec->samples++; samples 579 tools/perf/builtin-record.c rec->samples++; samples 596 tools/perf/builtin-record.c rec->samples++; samples 837 tools/perf/builtin-record.c rec->samples++; samples 1124 tools/perf/builtin-record.c rec->samples = 0; samples 1546 tools/perf/builtin-record.c unsigned long long hits = rec->samples; samples 1615 tools/perf/builtin-record.c if (hits == rec->samples) { samples 1691 tools/perf/builtin-record.c rec->samples = 0; samples 1708 tools/perf/builtin-record.c char samples[128]; samples 1712 tools/perf/builtin-record.c if (rec->samples && !rec->opts.full_auxtrace) samples 1713 tools/perf/builtin-record.c scnprintf(samples, sizeof(samples), samples 1714 tools/perf/builtin-record.c " (%" PRIu64 " samples)", rec->samples); samples 1716 tools/perf/builtin-record.c samples[0] = '\0'; samples 1720 tools/perf/builtin-record.c data->path, postfix, samples); samples 257 tools/perf/builtin-script.c u64 samples; samples 303 tools/perf/builtin-script.c st.st_size / 1024.0 / 1024.0, es->filename, es->samples); samples 1825 tools/perf/builtin-script.c ++es->samples; samples 123 tools/perf/builtin-timechart.c struct cpu_sample *samples; samples 290 tools/perf/builtin-timechart.c sample->next = c->samples; samples 293 tools/perf/builtin-timechart.c c->samples = sample; samples 1112 tools/perf/builtin-timechart.c sample = c->samples; samples 1266 tools/perf/builtin-timechart.c sample = c->samples; samples 1154 tools/perf/builtin-top.c ++top->samples; samples 1316 tools/perf/builtin-top.c u64 hits = top->samples; samples 1320 tools/perf/builtin-top.c if (opts->overwrite || (hits == top->samples)) samples 129 tools/perf/tests/hists_link.c static int find_sample(struct sample *samples, size_t nr_samples, samples 133 tools/perf/tests/hists_link.c if (samples->thread == t && samples->map == m && samples 134 tools/perf/tests/hists_link.c samples->sym == s) samples 136 tools/perf/tests/hists_link.c samples++; samples 375 tools/perf/ui/hist.c HPP_RAW_FNS(samples, nr_events) samples 446 tools/perf/ui/hist.c HPP__PRINT_FNS("Samples", samples, SAMPLES), samples 32 tools/perf/util/top.c if (top->samples) { samples 33 tools/perf/util/top.c samples_per_sec = top->samples / top->delay_secs; samples 35 tools/perf/util/top.c esamples_percent = (100.0 * top->exact_samples) / top->samples; samples 115 tools/perf/util/top.c top->samples = top->us_samples = top->kernel_samples = samples 29 tools/perf/util/top.h u64 samples, lost, lost_total, drop, drop_total; samples 212 tools/testing/selftests/bpf/progs/strobemeta.h } samples SEC(".maps"); samples 529 tools/testing/selftests/bpf/progs/strobemeta.h bpf_perf_event_output(ctx, &samples, 0, sample, 1 + sample_size); samples 19 tools/testing/selftests/seccomp/seccomp_benchmark.c unsigned long long timing(clockid_t clk_id, unsigned long long samples) samples 27 tools/testing/selftests/seccomp/seccomp_benchmark.c for (i = 0; i < samples; i++) { samples 52 tools/testing/selftests/seccomp/seccomp_benchmark.c unsigned long long samples = 1 << i; samples 55 tools/testing/selftests/seccomp/seccomp_benchmark.c if (timing(CLOCK_REALTIME, samples) / 1000000000ULL > 5) samples 56 tools/testing/selftests/seccomp/seccomp_benchmark.c return samples; samples 70 tools/testing/selftests/seccomp/seccomp_benchmark.c unsigned long long samples; samples 74 tools/testing/selftests/seccomp/seccomp_benchmark.c samples = strtoull(argv[1], NULL, 0); samples 76 tools/testing/selftests/seccomp/seccomp_benchmark.c samples = calibrate(); samples 78 tools/testing/selftests/seccomp/seccomp_benchmark.c printf("Benchmarking %llu samples...\n", samples); samples 80 tools/testing/selftests/seccomp/seccomp_benchmark.c native = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; samples 89 tools/testing/selftests/seccomp/seccomp_benchmark.c filtered = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; samples 111 tools/testing/selftests/timers/freq-step.c static void regress(struct sample *samples, int n, double *intercept, samples 120 tools/testing/selftests/timers/freq-step.c x = samples[i].time; samples 121 tools/testing/selftests/timers/freq-step.c y = samples[i].offset; samples 135 tools/testing/selftests/timers/freq-step.c x = samples[i].time; samples 136 tools/testing/selftests/timers/freq-step.c y = samples[i].offset; samples 148 tools/testing/selftests/timers/freq-step.c struct sample samples[SAMPLES]; samples 169 tools/testing/selftests/timers/freq-step.c get_sample(&samples[i]); samples 173 tools/testing/selftests/timers/freq-step.c regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); samples 180 tools/testing/selftests/timers/freq-step.c regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); samples 184 tools/testing/selftests/timers/freq-step.c regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, samples 482 tools/thermal/tmon/sysfs.c static unsigned long samples; samples 494 tools/thermal/tmon/sysfs.c fprintf(tmon_log, "%lu ", ++samples);