/linux-4.19.296/drivers/isdn/mISDN/ |
D | dsp_audio.c | 105 static unsigned char linear2ulaw(short sample) in linear2ulaw() argument 128 sign = (sample >> 8) & 0x80; /* set aside the sign */ in linear2ulaw() 130 sample = -sample; /* get magnitude */ in linear2ulaw() 133 sample = sample + BIAS; in linear2ulaw() 134 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw() 135 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw() 242 s32 sample; in dsp_audio_generate_mix_table() local 248 sample = dsp_audio_law_to_s32[i]; in dsp_audio_generate_mix_table() 249 sample += dsp_audio_law_to_s32[j]; in dsp_audio_generate_mix_table() 250 if (sample > 32767) in dsp_audio_generate_mix_table() [all …]
|
D | l1oip_codec.c | 324 int i1, i2, c, sample; in l1oip_4bit_alloc() local 357 sample = _4bit_to_ulaw[i1]; in l1oip_4bit_alloc() 359 sample = _4bit_to_alaw[i1]; in l1oip_4bit_alloc() 362 table_dec[(i1 << 4) | i2] |= (sample << 8); in l1oip_4bit_alloc() 363 table_dec[(i2 << 4) | i1] |= sample; in l1oip_4bit_alloc()
|
D | dsp_cmx.c | 1313 register s32 sample; local 1492 sample = dsp_audio_law_to_s32[p[t]] + 1495 if (sample < -32768) 1496 sample = -32768; 1497 else if (sample > 32767) 1498 sample = 32767; 1499 *d++ = dsp_audio_s16_to_law[sample & 0xffff]; 1522 sample = dsp_audio_law_to_s32[p[t]] + *c++ - 1524 if (sample < -32768) 1525 sample = -32768; [all …]
|
D | dsp_biquad.h | 53 static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample) in biquad2() argument 58 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2()
|
/linux-4.19.296/drivers/oprofile/ |
D | cpu_buffer.c | 148 size * sizeof(entry->sample->data[0])); in op_cpu_buffer_write_reserve() 151 entry->sample = ring_buffer_event_data(entry->event); in op_cpu_buffer_write_reserve() 153 entry->data = entry->sample->data; in op_cpu_buffer_write_reserve() 155 return entry->sample; in op_cpu_buffer_write_reserve() 171 entry->sample = ring_buffer_event_data(e); in op_cpu_buffer_read_entry() 173 / sizeof(entry->sample->data[0]); in op_cpu_buffer_read_entry() 174 entry->data = entry->sample->data; in op_cpu_buffer_read_entry() 175 return entry->sample; in op_cpu_buffer_read_entry() 188 struct op_sample *sample; in op_add_code() local 221 sample = op_cpu_buffer_write_reserve(&entry, size); in op_add_code() [all …]
|
D | buffer_sync.c | 506 struct op_sample *sample; in sync_buffer() local 516 sample = op_cpu_buffer_read_entry(&entry, cpu); in sync_buffer() 517 if (!sample) in sync_buffer() 520 if (is_code(sample->eip)) { in sync_buffer() 521 flags = sample->event; in sync_buffer() 553 if (add_sample(mm, sample, in_kernel)) in sync_buffer()
|
/linux-4.19.296/drivers/iio/resolver/ |
D | ad2s1200.c | 45 struct gpio_desc *sample; member 78 gpiod_set_value(st->sample, 0); in ad2s1200_read_raw() 82 gpiod_set_value(st->sample, 1); in ad2s1200_read_raw() 150 st->sample = devm_gpiod_get(&spi->dev, "adi,sample", GPIOD_OUT_LOW); in ad2s1200_probe() 151 if (IS_ERR(st->sample)) { in ad2s1200_probe() 153 PTR_ERR(st->sample)); in ad2s1200_probe() 154 return PTR_ERR(st->sample); in ad2s1200_probe()
|
/linux-4.19.296/drivers/cpufreq/ |
D | intel_pstate.c | 117 struct sample { struct 249 struct sample sample; member 1500 cpu->last_update = cpu->sample.time; in intel_pstate_hwp_boost_up() 1509 expired = time_after64(cpu->sample.time, cpu->last_update + in intel_pstate_hwp_boost_down() 1516 cpu->last_update = cpu->sample.time; in intel_pstate_hwp_boost_down() 1522 cpu->sample.time = time; in intel_pstate_update_util_hwp_local() 1561 struct sample *sample = &cpu->sample; in intel_pstate_calc_avg_perf() local 1563 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_calc_avg_perf() 1582 cpu->last_sample_time = cpu->sample.time; in intel_pstate_sample() 1583 cpu->sample.time = time; in intel_pstate_sample() [all …]
|
/linux-4.19.296/drivers/isdn/i4l/ |
D | isdn_audio.c | 242 isdn_audio_linear2ulaw(int sample) in isdn_audio_linear2ulaw() argument 269 sign = (sample >> 8) & 0x80; /* set aside the sign */ in isdn_audio_linear2ulaw() 271 sample = -sample; /* get magnitude */ in isdn_audio_linear2ulaw() 272 if (sample > CLIP) in isdn_audio_linear2ulaw() 273 sample = CLIP; /* clip the magnitude */ in isdn_audio_linear2ulaw() 276 sample = sample + BIAS; in isdn_audio_linear2ulaw() 277 exponent = exp_lut[(sample >> 7) & 0xFF]; in isdn_audio_linear2ulaw() 278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw() 448 isdn_audio_goertzel(int *sample, modem_info *info) in isdn_audio_goertzel() argument 469 sk = sample[n] + ((cos2pik[k] * sk1) >> 15) - sk2; in isdn_audio_goertzel()
|
/linux-4.19.296/drivers/misc/echo/ |
D | fir.h | 103 static inline int16_t fir16(struct fir16_state_t *fir, int16_t sample) in fir16() argument 110 fir->history[fir->curr_pos] = sample; in fir16() 145 static inline int16_t fir32(struct fir32_state_t *fir, int16_t sample) in fir32() argument 152 fir->history[fir->curr_pos] = sample; in fir32()
|
/linux-4.19.296/drivers/iio/imu/bmi160/ |
D | bmi160_core.c | 332 __le16 sample; in bmi160_get_data() local 335 reg = bmi160_regs[t].data + (axis - IIO_MOD_X) * sizeof(sample); in bmi160_get_data() 337 ret = regmap_bulk_read(data->regmap, reg, &sample, sizeof(sample)); in bmi160_get_data() 341 *val = sign_extend32(le16_to_cpu(sample), 15); in bmi160_get_data() 396 __le16 sample; in bmi160_trigger_handler() local 400 ret = regmap_bulk_read(data->regmap, base + i * sizeof(sample), in bmi160_trigger_handler() 401 &sample, sizeof(sample)); in bmi160_trigger_handler() 404 data->buf[j++] = sample; in bmi160_trigger_handler()
|
/linux-4.19.296/drivers/media/rc/ |
D | bpf-lirc.c | 17 BPF_CALL_1(bpf_rc_repeat, u32*, sample) in BPF_CALL_1() argument 21 ctrl = container_of(sample, struct ir_raw_event_ctrl, bpf_sample); in BPF_CALL_1() 40 BPF_CALL_4(bpf_rc_keydown, u32*, sample, u32, protocol, u64, scancode, in BPF_CALL_4() argument 45 ctrl = container_of(sample, struct ir_raw_event_ctrl, bpf_sample); in BPF_CALL_4() 183 void lirc_bpf_run(struct rc_dev *rcdev, u32 sample) in lirc_bpf_run() argument 187 raw->bpf_sample = sample; in lirc_bpf_run()
|
D | fintek-cir.c | 286 u8 sample; in fintek_process_rx_ir_data() local 291 sample = fintek->buf[i]; in fintek_process_rx_ir_data() 294 fintek->cmd = sample; in fintek_process_rx_ir_data() 309 fintek->rem = fintek_cmdsize(fintek->cmd, sample); in fintek_process_rx_ir_data() 318 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in fintek_process_rx_ir_data() 319 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data() 347 u8 sample, status; in fintek_get_rx_ir_data() local 357 sample = fintek_cir_reg_read(fintek, CIR_RX_DATA); in fintek_get_rx_ir_data() 358 fit_dbg("%s: sample: 0x%02x", __func__, sample); in fintek_get_rx_ir_data() 360 fintek->buf[fintek->pkts] = sample; in fintek_get_rx_ir_data()
|
D | lirc_dev.c | 52 int sample; in ir_lirc_raw_event() local 63 sample = LIRC_SPACE(LIRC_VALUE_MASK); in ir_lirc_raw_event() 68 sample = LIRC_FREQUENCY(ev.carrier); in ir_lirc_raw_event() 69 dev_dbg(&dev->dev, "carrier report (freq: %d)\n", sample); in ir_lirc_raw_event() 80 sample = LIRC_TIMEOUT(ev.duration / 1000); in ir_lirc_raw_event() 81 dev_dbg(&dev->dev, "timeout report (duration: %d)\n", sample); in ir_lirc_raw_event() 102 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : in ir_lirc_raw_event() 112 lirc_bpf_run(dev, sample); in ir_lirc_raw_event() 116 if (LIRC_IS_TIMEOUT(sample) && !fh->send_timeout_reports) in ir_lirc_raw_event() 118 if (kfifo_put(&fh->rawir, sample)) in ir_lirc_raw_event()
|
D | rc-core-priv.h | 323 void lirc_bpf_run(struct rc_dev *dev, u32 sample); 326 static inline void lirc_bpf_run(struct rc_dev *dev, u32 sample) { } in lirc_bpf_run() argument
|
/linux-4.19.296/drivers/iio/adc/ |
D | ad7266.c | 47 __be16 sample[2]; member 55 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup() 61 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown() 90 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler() 143 *val = be16_to_cpu(st->data.sample[address % 2]); in ad7266_read_single() 450 st->single_xfer[0].rx_buf = &st->data.sample[0]; in ad7266_probe() 454 st->single_xfer[1].rx_buf = st->data.sample; in ad7266_probe() 458 st->single_xfer[2].tx_buf = &st->data.sample[0]; in ad7266_probe()
|
D | ad_sigma_delta.c | 283 unsigned int sample, raw_sample; in ad_sigma_delta_single_conversion() local 328 sample = raw_sample >> chan->scan_type.shift; in ad_sigma_delta_single_conversion() 329 sample &= (1 << chan->scan_type.realbits) - 1; in ad_sigma_delta_single_conversion() 330 *val = sample; in ad_sigma_delta_single_conversion()
|
/linux-4.19.296/include/linux/ |
D | uwb.h | 779 void stats_add_sample(struct stats *stats, s8 sample) in stats_add_sample() argument 794 if (sample < min) /* compute new values */ in stats_add_sample() 795 min = sample; in stats_add_sample() 796 else if (sample > max) in stats_add_sample() 797 max = sample; in stats_add_sample() 798 sigma += sample; in stats_add_sample()
|
D | oprofile.h | 184 struct op_sample *sample; member
|
/linux-4.19.296/include/uapi/sound/ |
D | sfnt_info.h | 118 unsigned short sample; /* sample id */ member 163 unsigned short sample; /* sample id */ member
|
/linux-4.19.296/drivers/isdn/hardware/eicon/ |
D | capidtmf.c | 185 static void capidtmf_goertzel_loop(long *buffer, long *coeffs, short *sample, long count) in capidtmf_goertzel_loop() argument 200 … q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15); in capidtmf_goertzel_loop() 211 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15)); in capidtmf_goertzel_loop() 226 …q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >>… in capidtmf_goertzel_loop() 237 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >… in capidtmf_goertzel_loop()
|
/linux-4.19.296/include/sound/ |
D | soundfont.h | 40 struct snd_sf_sample *sample; /* Link to sample */ member
|
/linux-4.19.296/include/net/ |
D | gen_stats.h | 72 struct gnet_stats_rate_est64 *sample);
|
/linux-4.19.296/fs/btrfs/ |
D | compression.c | 747 u8 *sample; member 762 kvfree(workspace->sample); in free_heuristic_ws() 776 ws->sample = kvmalloc(MAX_SAMPLE_SIZE, GFP_KERNEL); in alloc_heuristic_ws() 777 if (!ws->sample) in alloc_heuristic_ws() 1464 const u8 *data = ws->sample; in sample_repeated_patterns() 1506 memcpy(&ws->sample[curr_sample_pos], &in_data[i], in heuristic_collect_sample() 1556 byte = ws->sample[i]; in btrfs_compress_heuristic()
|
/linux-4.19.296/drivers/iio/pressure/ |
D | zpa2326.c | 593 } sample; in zpa2326_fill_sample_buffer() local 598 err = zpa2326_dequeue_pressure(indio_dev, &sample.pressure); in zpa2326_fill_sample_buffer() 609 &sample.temperature, 2); in zpa2326_fill_sample_buffer() 626 iio_push_to_buffers_with_timestamp(indio_dev, &sample, in zpa2326_fill_sample_buffer()
|