/linux-3.4.99/sound/oss/ |
D | sb_audio.c | 285 static int sb1_audio_set_speed(int dev, int speed) in sb1_audio_set_speed() argument 294 if (speed > 0) in sb1_audio_set_speed() 296 if (speed < 4000) in sb1_audio_set_speed() 297 speed = 4000; in sb1_audio_set_speed() 299 if (speed > max_speed) in sb1_audio_set_speed() 300 speed = max_speed; in sb1_audio_set_speed() 302 devc->tconst = (256 - ((1000000 + speed / 2) / speed)) & 0xff; in sb1_audio_set_speed() 304 speed = (1000000 + tmp / 2) / tmp; in sb1_audio_set_speed() 306 devc->speed = speed; in sb1_audio_set_speed() 308 return devc->speed; in sb1_audio_set_speed() [all …]
|
/linux-3.4.99/drivers/net/irda/ |
D | ma600-sir.c | 117 static __u8 get_control_byte(__u32 speed) in get_control_byte() argument 121 switch (speed) { in get_control_byte() 175 static int ma600_change_speed(struct sir_dev *dev, unsigned speed) in ma600_change_speed() argument 180 speed, dev->speed); in ma600_change_speed() 189 byte = get_control_byte(speed); in ma600_change_speed() 202 if (byte != get_control_byte(speed)) { in ma600_change_speed() 205 (unsigned) get_control_byte(speed)); in ma600_change_speed() 219 dev->speed = speed; in ma600_change_speed() 251 dev->speed = 9600; /* That's the dongle-default */ in ma600_reset()
|
D | old_belkin-sir.c | 68 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed); 126 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed) in old_belkin_change_speed() argument 130 dev->speed = 9600; in old_belkin_change_speed() 131 return (speed==dev->speed) ? 0 : -EINVAL; in old_belkin_change_speed() 145 dev->speed = 9600; in old_belkin_reset()
|
D | litelink-sir.c | 51 static int litelink_change_speed(struct sir_dev *dev, unsigned speed); 112 static int litelink_change_speed(struct sir_dev *dev, unsigned speed) in litelink_change_speed() argument 123 for (i = 0; baud_rates[i] != speed; i++) { in litelink_change_speed() 142 dev->speed = baud_rates[i]; in litelink_change_speed() 148 return (dev->speed == speed) ? 0 : -EINVAL; in litelink_change_speed() 185 dev->speed = 115200; in litelink_reset()
|
D | actisys-sir.c | 163 static int actisys_change_speed(struct sir_dev *dev, unsigned speed) in actisys_change_speed() argument 169 speed, dev->speed); in actisys_change_speed() 180 if (speed == baud_rates[i]) { in actisys_change_speed() 181 dev->speed = speed; in actisys_change_speed() 234 dev->speed = 9600; /* That's the default */ in actisys_reset()
|
D | esi-sir.c | 98 static int esi_change_speed(struct sir_dev *dev, unsigned speed) in esi_change_speed() argument 103 switch (speed) { in esi_change_speed() 113 speed = 9600; in esi_change_speed() 123 dev->speed = speed; in esi_change_speed() 147 dev->speed = 9600; in esi_reset()
|
/linux-3.4.99/crypto/ |
D | xor.c | 65 int speed; in do_xor_speed() local 92 speed = max * (HZ * BENCH_SIZE / 1024); in do_xor_speed() 93 tmpl->speed = speed; in do_xor_speed() 96 speed / 1000, speed % 1000); in do_xor_speed() 140 if (f->speed > fastest->speed) in calibrate_xor_blocks() 145 fastest->name, fastest->speed / 1000, fastest->speed % 1000); in calibrate_xor_blocks()
|
/linux-3.4.99/arch/mips/cavium-octeon/executive/ |
D | cvmx-helper-board.c | 233 result.s.speed = 1000; in __cvmx_helper_board_link_get() 243 result.s.speed = 1000; in __cvmx_helper_board_link_get() 253 result.s.speed = 1000; in __cvmx_helper_board_link_get() 268 result.s.speed = 1000; in __cvmx_helper_board_link_get() 292 result.s.speed = 10; in __cvmx_helper_board_link_get() 297 result.s.speed = 10; in __cvmx_helper_board_link_get() 302 result.s.speed = 100; in __cvmx_helper_board_link_get() 307 result.s.speed = 100; in __cvmx_helper_board_link_get() 312 result.s.speed = 100; in __cvmx_helper_board_link_get() 317 result.s.speed = 1000; in __cvmx_helper_board_link_get() [all …]
|
D | cvmx-helper-spi.c | 156 result.s.speed = 10000; in __cvmx_helper_spi_link_get() 162 switch (inband.s.speed) { in __cvmx_helper_spi_link_get() 164 result.s.speed = 10; in __cvmx_helper_spi_link_get() 167 result.s.speed = 100; in __cvmx_helper_spi_link_get() 170 result.s.speed = 1000; in __cvmx_helper_spi_link_get() 173 result.s.speed = 0; in __cvmx_helper_spi_link_get() 182 result.s.speed = 10000; in __cvmx_helper_spi_link_get()
|
/linux-3.4.99/drivers/net/phy/ |
D | phy.c | 50 printk(KERN_CONT " - %d/%s", phydev->speed, in phy_print_status() 117 int speed; member 125 .speed = 10000, 130 .speed = SPEED_1000, 135 .speed = SPEED_1000, 140 .speed = SPEED_100, 145 .speed = SPEED_100, 150 .speed = SPEED_10, 155 .speed = SPEED_10, 173 static inline int phy_find_setting(int speed, int duplex) in phy_find_setting() argument [all …]
|
/linux-3.4.99/drivers/staging/usbip/ |
D | vhci_sysfs.c | 60 vdev->speed, vdev->devid); in show_status() 135 static int valid_args(__u32 rhport, enum usb_device_speed speed) in valid_args() argument 144 switch (speed) { in valid_args() 151 pr_err("speed %d\n", speed); in valid_args() 175 __u32 rhport = 0, devid = 0, speed = 0; in store_attach() local 183 sscanf(buf, "%u %u %u %u", &rhport, &sockfd, &devid, &speed); in store_attach() 186 rhport, sockfd, devid, speed); in store_attach() 189 if (valid_args(rhport, speed) < 0) in store_attach() 214 rhport, sockfd, devid, speed); in store_attach() 217 vdev->speed = speed; in store_attach() [all …]
|
/linux-3.4.99/sound/oss/dmasound/ |
D | dmasound_q40.c | 126 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_law() 162 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_s8() 199 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_u8() 236 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_law() 275 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_s8() 314 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_u8() 404 u_char speed; in Q40PlayNextFrame() local 419 speed=(dmasound.hard.speed==10000 ? 0 : 1); in Q40PlayNextFrame() 432 master_outb( speed, SAMPLE_RATE_REG); in Q40PlayNextFrame() 516 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) <= catchRadius) in Q40Init() [all …]
|
D | dmasound_atari.c | 392 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_law() 452 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s8() 506 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u8() 562 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16be() 618 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16be() 676 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16le() 734 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16le() 918 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in TTInit() 921 dmasound.soft.speed = freq[idx]; in TTInit() 929 if (dmasound.hard.speed > 50066) { in TTInit() [all …]
|
/linux-3.4.99/Documentation/ABI/testing/ |
D | sysfs-bus-pci-drivers-ehci_hcd | 7 PCI-based EHCI USB controllers (i.e., high-speed USB-2.0 9 "companion" full/low-speed USB-1.1 controllers. When a 10 high-speed device is plugged in, the connection is routed 11 to the EHCI controller; when a full- or low-speed device 15 Sometimes you want to force a high-speed device to connect 16 at full speed, which can be accomplished by forcing the 23 For example: To force the high-speed device attached to 24 port 4 on bus 2 to run at full speed: 28 To return the port to high-speed operation: 39 cannot be used to force a port on a high-speed hub to [all …]
|
/linux-3.4.99/drivers/usb/ |
D | usb-common.c | 18 const char *usb_speed_string(enum usb_device_speed speed) in usb_speed_string() argument 29 if (speed < 0 || speed >= ARRAY_SIZE(names)) in usb_speed_string() 30 speed = USB_SPEED_UNKNOWN; in usb_speed_string() 31 return names[speed]; in usb_speed_string()
|
/linux-3.4.99/Documentation/hwmon/ |
D | g760a | 16 and performs closed-loop control of the fan speed. 18 The fan speed is programmed by setting the period via 'pwm1' of two 19 consecutive speed pulses. The period is defined in terms of clock 23 fan to maximum speed. 25 The measured fan rotation speed returned via 'fan1_input' is derived 26 from the measured speed pulse period by assuming again a 32kHz clock 31 speed differs more than 20% with respect to the programmed fan speed; 32 bit 1 is set when fan speed is below 1920 RPM.
|
/linux-3.4.99/drivers/ata/ |
D | pata_sis.c | 232 int speed = adev->pio_mode - XFER_PIO_0; in sis_old_set_piomode() local 245 t1 |= active[speed]; in sis_old_set_piomode() 246 t2 |= recovery[speed]; in sis_old_set_piomode() 268 int speed = adev->pio_mode - XFER_PIO_0; in sis_100_set_piomode() local 274 pci_write_config_byte(pdev, port, actrec[speed]); in sis_100_set_piomode() 294 int speed = adev->pio_mode - XFER_PIO_0; in sis_133_set_piomode() local 318 t1 |= timing133[speed]; in sis_133_set_piomode() 320 t1 |= timing100[speed]; in sis_133_set_piomode() 340 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_old_set_dmamode() local 353 timing |= mwdma_bits[speed]; in sis_old_set_dmamode() [all …]
|
/linux-3.4.99/drivers/ide/ |
D | ide-timings.c | 70 struct ide_timing *ide_timing_find_mode(u8 speed) in ide_timing_find_mode() argument 74 for (t = ide_timing; t->mode != speed; t++) in ide_timing_find_mode() 144 int ide_timing_compute(ide_drive_t *drive, u8 speed, in ide_timing_compute() argument 153 s = ide_timing_find_mode(speed); in ide_timing_compute() 169 if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { in ide_timing_compute() 170 if (speed <= XFER_PIO_2) in ide_timing_compute() 172 else if ((speed <= XFER_PIO_4) || in ide_timing_compute() 173 (speed == XFER_PIO_5 && !ata_id_is_cfa(id))) in ide_timing_compute() 175 } else if (speed >= XFER_MW_DMA_0 && speed <= XFER_MW_DMA_2) in ide_timing_compute() 191 if (speed >= XFER_SW_DMA_0) { in ide_timing_compute()
|
D | ide-iops.c | 342 int ide_config_drive_speed(ide_drive_t *drive, u8 speed) in ide_config_drive_speed() argument 357 if ((speed & 0xf8) == XFER_PIO_0 && ata_id_has_iordy(drive->id) == 0) in ide_config_drive_speed() 375 tf.nsect = speed; in ide_config_drive_speed() 395 if (speed >= XFER_SW_DMA_0) { in ide_config_drive_speed() 406 if (speed >= XFER_SW_DMA_0 && (drive->dev_flags & IDE_DFLAG_USING_DMA)) in ide_config_drive_speed() 412 if (speed >= XFER_UDMA_0) { in ide_config_drive_speed() 413 i = 1 << (speed - XFER_UDMA_0); in ide_config_drive_speed() 415 } else if (ata_id_is_cfa(id) && speed >= XFER_MW_DMA_3) { in ide_config_drive_speed() 416 i = speed - XFER_MW_DMA_2; in ide_config_drive_speed() 418 } else if (speed >= XFER_MW_DMA_0) { in ide_config_drive_speed() [all …]
|
D | cs5535.c | 76 static void cs5535_set_speed(ide_drive_t *drive, const u8 speed) in cs5535_set_speed() argument 82 if (speed < XFER_SW_DMA_0) { in cs5535_set_speed() 86 cmd = pioa = speed - XFER_PIO_0; in cs5535_set_speed() 119 if (speed >= XFER_UDMA_0 && speed <= XFER_UDMA_4) in cs5535_set_speed() 120 reg |= cs5535_udma_timings[speed - XFER_UDMA_0]; in cs5535_set_speed() 121 else if (speed >= XFER_MW_DMA_0 && speed <= XFER_MW_DMA_2) in cs5535_set_speed() 122 reg |= cs5535_mwdma_timings[speed - XFER_MW_DMA_0]; in cs5535_set_speed()
|
/linux-3.4.99/drivers/usb/core/ |
D | devices.c | 181 static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end, in usb_dump_endpoint_descriptor() argument 192 if (speed == USB_SPEED_HIGH) { in usb_dump_endpoint_descriptor() 205 if (speed == USB_SPEED_HIGH) /* uframes per NAK */ in usb_dump_endpoint_descriptor() 217 if (speed == USB_SPEED_HIGH && dir == 'O') /* uframes per NAK */ in usb_dump_endpoint_descriptor() 224 if (speed == USB_SPEED_HIGH || speed == USB_SPEED_SUPER) in usb_dump_endpoint_descriptor() 232 interval *= (speed == USB_SPEED_HIGH || in usb_dump_endpoint_descriptor() 233 speed == USB_SPEED_SUPER) ? 125 : 1000; in usb_dump_endpoint_descriptor() 280 static char *usb_dump_interface(int speed, char *start, char *end, in usb_dump_interface() argument 291 start = usb_dump_endpoint_descriptor(speed, in usb_dump_interface() 333 static char *usb_dump_config(int speed, char *start, char *end, in usb_dump_config() argument [all …]
|
/linux-3.4.99/drivers/usb/misc/ |
D | trancevibrator.c | 46 unsigned int speed; member 55 return sprintf(buf, "%d\n", tv->speed); in show_speed() 70 old = tv->speed; in set_speed() 71 tv->speed = temp; in set_speed() 73 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in set_speed() 79 tv->speed, /* speed value */ in set_speed() 82 tv->speed = old; in set_speed() 89 static DEVICE_ATTR(speed, S_IRUGO | S_IWUSR, show_speed, set_speed);
|
/linux-3.4.99/drivers/cpufreq/ |
D | speedstep-ich.c | 234 unsigned int *speed = _speed; in get_freq_data() local 236 *speed = speedstep_get_frequency(speedstep_processor); in get_freq_data() 241 unsigned int speed; in speedstep_get() local 244 if (smp_call_function_single(cpu, get_freq_data, &speed, 1) != 0) in speedstep_get() 247 pr_debug("detected %u kHz as current frequency\n", speed); in speedstep_get() 248 return speed; in speedstep_get() 332 unsigned int policy_cpu, speed; in speedstep_cpu_init() local 348 speed = speedstep_get(policy_cpu); in speedstep_cpu_init() 349 if (!speed) in speedstep_cpu_init() 353 (speed == speedstep_freqs[SPEEDSTEP_LOW].frequency) in speedstep_cpu_init() [all …]
|
/linux-3.4.99/Documentation/spi/ |
D | spidev_test.c | 35 static uint32_t speed = 500000; variable 56 .speed_hz = speed, in transfer() 118 speed = atoi(optarg); in parse_opts() 193 ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed); in main() 197 ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed); in main() 203 printf("max speed: %d Hz (%d KHz)\n", speed, speed/1000); in main()
|
/linux-3.4.99/include/net/irda/ |
D | qos.h | 88 __u32 irlap_max_line_capacity(__u32 speed, __u32 max_turn_time); 95 #define irlap_min_turn_time_in_bytes(speed, min_turn_time) ( \ argument 96 speed * min_turn_time / 10000000 \ 98 #define irlap_xbofs_in_usec(speed, xbofs) ( \ argument 99 xbofs * 10000000 / speed \
|