/third_party/rust/crates/rustix/src/backend/linux_raw/termios/ |
H A D | syscalls.rs | 175 pub(crate) fn cfsetospeed(termios: &mut Termios, speed: u32) -> io::Result<()> { 176 if (speed & !CBAUD) != 0 { 180 termios.c_cflag |= speed; 185 pub(crate) fn cfsetispeed(termios: &mut Termios, speed: u32) -> io::Result<()> { 186 if speed == 0 { 189 if (speed & !CBAUD) != 0 { 193 termios.c_cflag |= speed; 198 pub(crate) fn cfsetspeed(termios: &mut Termios, speed: u32) -> io::Result<()> { 199 if (speed & !CBAUD) != 0 { 203 termios.c_cflag |= speed; [all...] |
/third_party/musl/porting/liteos_a/user/src/termios/ |
H A D | cfsetospeed.c | 7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed() argument 10 if (speed & ~CBAUD) { in cfsetospeed() 15 tio->c_cflag |= speed; in cfsetospeed() 19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed() argument 22 return speed ? cfsetospeed(tio, speed) : 0; in cfsetispeed()
|
/third_party/musl/src/termios/ |
H A D | cfsetospeed.c | 7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed() argument 10 if (speed & ~CBAUD) { in cfsetospeed() 15 tio->c_cflag |= speed; in cfsetospeed() 19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed() argument 22 return speed ? cfsetospeed(tio, speed) : 0; in cfsetispeed()
|
/third_party/pulseaudio/sonic/ |
H A D | Sonic.java | 15 /* This is used to down-sample some inputs to improve speed */ 22 private float speed; field in Sonic 96 // Get the speed of the stream. 99 return speed; in getSpeed() 102 // Set the speed of the stream. 104 float speed) in setSpeed() 106 this.speed = speed; in setSpeed() 128 // Set the playback rate of the stream. This scales pitch and speed at the same time. 204 speed in Sonic() 103 setSpeed( float speed) setSpeed() argument 805 skipPitchPeriod( short samples[], int position, float speed, int period) skipPitchPeriod() argument 827 insertPitchPeriod( short samples[], int position, float speed, int period) insertPitchPeriod() argument 851 changeSpeed( float speed) changeSpeed() argument 946 changeFloatSpeed( float samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) changeFloatSpeed() argument 972 sonicChangeShortSpeed( short samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument [all...] |
H A D | sonic.c | 26 float speed; member 87 /* Get the speed of the stream. */ 91 return stream->speed; in sonicGetSpeed() 94 /* Set the speed of the stream. */ 97 float speed) in sonicSetSpeed() 99 stream->speed = speed; in sonicSetSpeed() 124 /* Set the playback rate of the stream. This scales pitch and speed at the same time. */ 264 stream->speed = 1.0f; in sonicCreateStream() 551 float speed in sonicFlushStream() local 95 sonicSetSpeed( sonicStream stream, float speed) sonicSetSpeed() argument 956 skipPitchPeriod( sonicStream stream, short *samples, float speed, int period) skipPitchPeriod() argument 981 insertPitchPeriod( sonicStream stream, short *samples, float speed, int period) insertPitchPeriod() argument 1010 changeSpeed( sonicStream stream, float speed) changeSpeed() argument 1051 float speed = stream->speed/stream->pitch; processStreamInput() local 1124 sonicChangeFloatSpeed( float *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) sonicChangeFloatSpeed() argument 1151 sonicChangeShortSpeed( short *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument [all...] |
H A D | main.c | 5 useful utility on it's own, which can speed up or slow down wav files, change 20 float speed, in runSonic() 33 sonicSetSpeed(stream, speed); in runSonic() 64 " -q -- Disable speed-up heuristics. May increase quality.\n" in usage() 66 " -s speed -- Set speed up factor. 2.0 means 2X faster.\n" in usage() 77 float speed = 1.0f; in main() local 98 printf("Disabling speed-up heuristics\n"); in main() 108 speed = atof(argv[xArg]); in main() 109 printf("Setting speed t in main() 17 runSonic( waveFile inFile, waveFile outFile, float speed, float pitch, float rate, float volume, int emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() argument [all...] |
/third_party/rust/crates/rustix/src/termios/ |
H A D | cf.rs | 24 /// `cfsetospeed(termios, speed)` 26 pub fn cfsetospeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetospeed() 27 backend::termios::syscalls::cfsetospeed(termios, speed) in cfsetospeed() 30 /// `cfsetispeed(termios, speed)` 32 pub fn cfsetispeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetispeed() 33 backend::termios::syscalls::cfsetispeed(termios, speed) in cfsetispeed() 36 /// `cfsetspeed(termios, speed)` 38 pub fn cfsetspeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetspeed() 39 backend::termios::syscalls::cfsetspeed(termios, speed) in cfsetspeed()
|
/third_party/toybox/lib/ |
H A D | tty.c | 64 void xsetspeed(struct termios *tio, int speed) in xsetspeed() argument 71 // Find speed in table, adjust to constant in xsetspeed() 72 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in xsetspeed() 73 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in xsetspeed() 79 int set_terminal(int fd, int raw, int speed, struct termios *old) in set_terminal() argument 99 // Leave serial port speed alone in set_terminal() 111 if (speed) { in set_terminal() 117 // Find speed in table, adjust to constant in set_terminal() 118 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) brea in set_terminal() 126 xset_terminal(int fd, int raw, int speed, struct termios *old) xset_terminal() argument [all...] |
/third_party/skia/tools/skpbench/ |
H A D | _hardware_android.py | 129 speed = freqs[int((len(freqs)-1) * self.desiredClock)] 132 echo {speed} > /sys/devices/system/cpu/cpu{id}/cpufreq/scaling_max_freq 133 echo {speed} > /sys/devices/system/cpu/cpu{id}/cpufreq/scaling_min_freq 134 echo {speed} > /sys/devices/system/cpu/cpu{id}/cpufreq/scaling_setspeed'''.format(id=i, speed=speed)) 150 speed = freqs[int((len(freqs)-1) * self.desiredClock)] 155 echo {speed} > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq 156 echo {speed} > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq'''.format(speed [all...] |
/third_party/skia/tools/viewer/ |
H A D | TouchGesture.cpp | 18 static SkScalar pin_max_fling(SkScalar speed) { in pin_max_fling() argument 19 if (speed > MAX_FLING_SPEED) { in pin_max_fling() 20 speed = MAX_FLING_SPEED; in pin_max_fling() 22 return speed; in pin_max_fling() 58 // printf("---- speed %g dir %g %g\n", fSpeed0, fDirection.fX, fDirection.fY); in reset() 70 const float speed = fSpeed0 * (sk_float_exp(- K0 * t) - K1); in evaluateMatrix() local 71 if (speed <= MIN_SPEED) { in evaluateMatrix() 75 float dist = (fSpeed0 - speed) / K0; in evaluateMatrix() 77 // printf("---- time %g speed %g dist %g\n", t, speed, dis in evaluateMatrix() 302 SkScalar speed; isFling() local [all...] |
/third_party/toybox/toys/pending/ |
H A D | getty.c | 51 long speed; member 83 // Find speed from mapper array 87 long speed = atolx(s); in encode() local 89 if (!speed) return 0; in encode() 90 for (sp = speedtab; sp->speed; sp++) if (sp->speed == speed) return sp->code; in encode() 101 if (TT.speeds[TT.sc] < 0) perror_exit("bad speed"); in get_speed() 182 speed_t speed; in sense_baud() local 192 speed in sense_baud() [all...] |
/third_party/toybox/toys/net/ |
H A D | microcom.c | 39 int i, speed; in microcom_main() local 41 if (!TT.s) speed = 115200; in microcom_main() 42 else speed = atoi(TT.s); in microcom_main() 50 xset_terminal(TT.fd, 1, speed, &TT.original_fd_state); in microcom_main()
|
/drivers/peripheral/audio/test/hal_mock/ |
H A D | audio_render_mock.c | 57 static int32_t SetSpeed(struct IAudioRenderVdi* render, float speed)
in SetSpeed() argument 63 (void)speed;
in SetSpeed() 68 static int32_t GetSpeed(struct IAudioRenderVdi* render, float *speed)
in GetSpeed() argument 70 if (render == NULL || speed == NULL) {
in GetSpeed() 74 *speed == 1.0;
in GetSpeed() 81 if (render == NULL || speed == NULL) {
in RegCallback() 85 *speed == 1.0;
in RegCallback() 92 if (render == NULL || speed == NULL) {
in SetChannelMode() 103 if (render == NULL || speed == NULL) {
in GetChannelMode()
|
/third_party/pulseaudio/src/modules/oss/ |
H A D | oss-util.c | 159 int format, channels, speed, reqformat; in pa_oss_auto_format() local 224 speed = (int) ss->rate; in pa_oss_auto_format() 225 if (ioctl(fd, SNDCTL_DSP_SPEED, &speed) < 0) { in pa_oss_auto_format() 229 pa_assert(speed > 0); in pa_oss_auto_format() 231 if (ss->rate != (unsigned) speed) { in pa_oss_auto_format() 232 pa_log_warn("device doesn't support %i Hz, changed to %i Hz.", ss->rate, speed); in pa_oss_auto_format() 235 if (speed < ss->rate*.95 || speed > ss->rate*1.05) in pa_oss_auto_format() 236 ss->rate = (uint32_t) speed; in pa_oss_auto_format()
|
/drivers/peripheral/usb/test/unittest/hal/src/ |
H A D | usbd_device_status_test.cpp | 98 * @tc.desc: int32_t GetDeviceSpeed(const UsbDev &dev, uint8_t interfaceId, uint8_t speed);
106 uint8_t speed = 0;
in HWTEST_F() local 107 ret = g_usbInterface->GetDeviceSpeed(dev, speed);
in HWTEST_F() 108 HDF_LOGI("UsbdGetDeviceSpeed001 %{public}d GetDeviceSpeed=%{public}d, speed=%{public}d", __LINE__, ret, speed);
in HWTEST_F() 115 * @tc.desc: int32_t GetDeviceSpeed(const UsbDev &dev, uint8_t interfaceId, uint8_t speed);
123 uint8_t speed = 0;
in HWTEST_F() local 124 auto ret = g_usbInterface->GetDeviceSpeed(dev, speed);
in HWTEST_F() 125 HDF_LOGI("UsbdGetDeviceSpeed002 %{public}d ret=%{public}d, speed=%{public}d", __LINE__, ret, speed);
in HWTEST_F() 140 uint8_t speed = 0; HWTEST_F() local 155 uint8_t speed = 0; HWTEST_F() local [all...] |
/test/xts/hats/hdf/usb/deviceStatusTest/common/ |
H A D | usbd_device_status_test.cpp | 97 * @tc.desc: int32_t GetDeviceSpeed(const UsbDev &dev, uint8_t interfaceId, uint8_t speed);
105 uint8_t speed = 0;
in HWTEST_F() local 106 ret = g_usbInterface->GetDeviceSpeed(dev, speed);
in HWTEST_F() 107 HDF_LOGI("UsbdGetDeviceSpeed001 %{public}d GetDeviceSpeed=%{public}d, speed=%{public}d", __LINE__, ret, speed);
in HWTEST_F() 114 * @tc.desc: int32_t GetDeviceSpeed(const UsbDev &dev, uint8_t interfaceId, uint8_t speed);
122 uint8_t speed = 0;
in HWTEST_F() local 123 auto ret = g_usbInterface->GetDeviceSpeed(dev, speed);
in HWTEST_F() 124 HDF_LOGI("UsbdGetDeviceSpeed002 %{public}d ret=%{public}d, speed=%{public}d", __LINE__, ret, speed);
in HWTEST_F() 139 uint8_t speed = 0; HWTEST_F() local 154 uint8_t speed = 0; HWTEST_F() local [all...] |
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_hub.c | 272 (udev->speed != USB_SPEED_HIGH) || in uhub_tt_buffer_reset_async_locked() 273 ((child->speed != USB_SPEED_LOW) && in uhub_tt_buffer_reset_async_locked() 274 (child->speed != USB_SPEED_FULL)) || in uhub_tt_buffer_reset_async_locked() 373 * This function counts the number of active ports at the given speed. 376 uhub_count_active_host_ports(struct usb_device *udev, enum usb_dev_speed speed) in uhub_count_active_host_ports() argument 399 (child->speed == speed)) in uhub_count_active_host_ports() 658 enum usb_dev_speed speed; in uhub_reattach_port() local 720 switch (udev->speed) { in uhub_reattach_port() 798 * Figure out the device speed in uhub_reattach_port() 1929 enum usb_dev_speed speed; usb_hs_bandwidth_adjust() local 1987 uint8_t speed; usb_hs_bandwidth_alloc() local [all...] |
/drivers/hdf_core/adapter/platform/can/ |
H A D | can_virtual.c | 118 uint32_t speed; member 153 static int32_t VirtualCanSetBitRate(struct VirtualCanCntlr *virtualCan, uint32_t speed) in VirtualCanSetBitRate() argument 159 if (g_speedMaps[i].speed == speed) { in VirtualCanSetBitRate() 165 HDF_LOGE("%s: speed: %u not support", __func__, speed); in VirtualCanSetBitRate() 174 virtualCan->bitRate = speed; in VirtualCanSetBitRate() 200 ret = VirtualCanSetBitRate(virtualCan, cfg->speed); in VirtualCanSetCfg() 202 HDF_LOGE("%s: set speed failed", __func__); in VirtualCanSetCfg() 226 cfg->speed in VirtualCanGetCfg() [all...] |
/third_party/ffmpeg/libavcodec/tests/ |
H A D | dct.c | 180 static int dct_error(const struct algo *dct, int test, int is_idct, int speed, const int bits) in dct_error() argument 266 if (!speed) in dct_error() 269 /* speed test */ in dct_error() 379 int speed) in idct248_error() 432 if (!speed) in idct248_error() 461 "-t speed test\n"); in help() 473 int speed = 0; in main() local 491 speed = 1; in main() 507 idct248_error("SIMPLE-C", ff_simple_idct248_put, speed); in main() 512 err |= dct_error(&idct_tab[i], test, test_idct, speed, bit in main() 375 idct248_error(const char *name, void (*idct248_put)(uint8_t *dest, ptrdiff_t line_size, int16_t *block), int speed) idct248_error() argument [all...] |
/third_party/curl/tests/unit/ |
H A D | unit1606.c | 52 curl_off_t speed, in runawhile() 65 /* fake the current transfer speed */ in runawhile() 66 easy->progress.current_speed = speed; in runawhile() 72 speed -= dec; in runawhile() 82 "wrong low speed timeout"); 84 "wrong low speed timeout"); 86 "wrong log speed timeout"); 88 "wrong log speed timeout"); 50 runawhile(long time_limit, long speed_limit, curl_off_t speed, int dec) runawhile() argument
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_ioctl.cpp | 41 int speed = cfgetospeed(&ttydev); in Bm_function_Ioctl_baudrate() local 51 cfsetospeed(&ttydev, speed); in Bm_function_Ioctl_baudrate() 52 cfsetispeed(&ttydev, speed); in Bm_function_Ioctl_baudrate()
|
/third_party/skia/samplecode/ |
H A D | SampleCusp.cpp | 33 static SkPath cusp(const SkPoint P[4], SkPoint PP[7], bool& split, int speed, SkScalar phase) { in cusp() argument 36 SkScalar t = (curTime % speed) / SkIntToFloat(speed); in cusp() 54 static SkScalar linearToLoop(int speed, SkScalar phase, SkScalar scale) { in linearToLoop() argument 56 SkScalar linear = (curTime % speed) / SkIntToFloat(speed); // 0 to 1 in linearToLoop()
|
/drivers/peripheral/sensor/chipset/ppg/ |
H A D | ppg_cs1262_spi.c | 105 .speed = g_busCfg->spiCfg.spi.maxSpeedHz, in Cs1262ReadFifoReg() 113 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadFifoReg() 151 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadRegs() 159 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262ReadRegs() 205 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteRegs() 213 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteRegs() 240 .speed = g_busCfg->spiCfg.spi.maxSpeedHz in Cs1262WriteData()
|
/drivers/peripheral/usb/sample/device/linux/ |
H A D | acm_speed_read.c | 48 float speed; in GetTempSpeed() local 57 if (!HdfSbufReadFloat(g_reply, &speed)) { in GetTempSpeed() 61 if (speed > 0) { in GetTempSpeed() 62 printf("speed : %f MB/s\n", speed); in GetTempSpeed()
|
/drivers/peripheral/usb/sample/device/liteos/ |
H A D | acm_speed_read.c | 71 uint32_t speed = 0; in GetTempSpeed() local 80 if (!HdfSbufReadUint32(g_reply, &speed)) { in GetTempSpeed() 84 if (speed > 0) { in GetTempSpeed() 85 printf("speed : %f MB/s\n", (float)speed / calc); in GetTempSpeed()
|