• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/IOSerialFamily-74/tests/

Lines Matching refs:speed

14 int _testIOSSIOSPEEDIoctl(int fd, speed_t speed);
20 int _testIOSSIOSPEEDIoctl(int fd, speed_t speed)
27 // the input and output speed.
29 if (ioctl(fd, IOSSIOSPEED, &speed) == -1) {
30 printf("[WARN] ioctl(..., IOSSIOSPEED, %lu).\n", speed);
34 // Check that speed is properly modified
40 if (cfgetispeed(&options) != speed ||
41 cfgetospeed(&options) != speed) {
43 speed,
119 // Check that speed is 19200 baud
199 speed_t speed;
220 speed = 40000;
221 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
222 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
224 speed = 58000;
225 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
226 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
228 speed = 250000;
229 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
230 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
232 speed = 10400;
233 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
234 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
236 speed = 8192;
237 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
238 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
240 speed = 128000;
241 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
242 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
246 speed = 31250;
247 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
248 printf("[WARN] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
252 speed = 38400;
253 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
254 printf("[FAIL] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
257 speed = 115200;
258 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
259 printf("[FAIL] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);
262 speed = 19200;
263 if (_testIOSSIOSPEEDIoctl(fd, speed)) {
264 printf("[FAIL] testModifyConfig: IOSSIOSPEED ioctl with %lu failed\n", speed);