/drivers/net/irda/ |
H A D | ma600-sir.c | 115 static __u8 get_control_byte(__u32 speed) argument 119 switch (speed) { 145 * Function ma600_change_speed (dev, speed) 147 * Set the speed for the MA600 type dongle. 154 * Function ma600_change_speed (dev, speed) 156 * Set the speed for the MA600 type dongle. 173 static int ma600_change_speed(struct sir_dev *dev, unsigned speed) argument 177 IRDA_DEBUG(2, "%s(), speed=%d (was %d)\n", __func__, 178 speed, dev->speed); [all...] |
H A D | esi-sir.c | 92 * Set the speed for the Extended Systems JetEye PC ESI-9680 type dongle 96 static int esi_change_speed(struct sir_dev *dev, unsigned speed) argument 101 switch (speed) { 111 speed = 9600; 119 /* Change speed of dongle */ 121 dev->speed = speed; 137 * the following speed change to repower. This might work for 140 * well-known state because speed change might write to registers. 145 dev->speed [all...] |
H A D | old_belkin-sir.c | 56 * prevent Linux-IrDA to use any other speed than 9600 b/s ;-) This 66 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed); 122 * With only one speed available, not much to do... 124 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed) argument 128 dev->speed = 9600; 129 return (speed==dev->speed) ? 0 : -EINVAL; 142 /* This dongles speed "defaults" to 9600 bps ;-) */ 143 dev->speed = 9600;
|
H A D | litelink-sir.c | 49 static int litelink_change_speed(struct sir_dev *dev, unsigned speed); 107 * Change speed of the Litelink dongle. To cycle through the available 110 static int litelink_change_speed(struct sir_dev *dev, unsigned speed) argument 116 /* dongle already reset by irda-thread - current speed (dongle and 117 * port) is the default speed (115200 for litelink!) 121 for (i = 0; baud_rates[i] != speed; i++) { 123 /* end-of-list reached due to invalid speed request */ 140 dev->speed = baud_rates[i]; 146 return (dev->speed == speed) [all...] |
H A D | actisys-sir.c | 35 * o New procedure the change speed : much faster and simpler 53 * to toggle speeds). Basically, the limit here is the propagation speed of 149 * Change speed of the ACTiSYS IR-220L and IR-220L+ type IrDA dongles. 154 * The dongle allow us to pulse quite fast, se we can set speed in one go, 157 * Note that even if the new speed is the same as the current speed, 158 * we reassert the speed. This make sure that things are all right, 161 * because the additional speed is at the end of the sequence... 163 static int actisys_change_speed(struct sir_dev *dev, unsigned speed) argument 168 IRDA_DEBUG(4, "%s(), speed [all...] |
H A D | mcp2120-sir.c | 32 static int mcp2120_change_speed(struct sir_dev *dev, unsigned speed); 90 * Function mcp2120_change_speed (dev, speed) 92 * Set the speed for the MCP2120. 98 static int mcp2120_change_speed(struct sir_dev *dev, unsigned speed) argument 114 switch (speed) { 116 speed = 9600; 144 dev->speed = speed;
|
H A D | tekram-sir.c | 104 * Function tekram_change_speed (dev, state, speed) 106 * Set the speed for the Tekram IRMate 210 type dongle. Warning, this 126 static int tekram_change_speed(struct sir_dev *dev, unsigned speed) argument 138 switch (speed) { 140 speed = 9600; 169 dev->speed = speed; 221 dev->speed = 9600;
|
H A D | toim3232-sir.c | 44 * high again. The initial speed for the TOIMx323 after RESET is 73 * high-nibble of the command byte (when setting speed and pulse length). 105 * easily change speed by entering command mode without having to 222 * Function toim3232change_speed (dev, state, speed) 224 * Set the speed for the TOIM3232 based dongle. Warning, this 238 static int toim3232_change_speed(struct sir_dev *dev, unsigned speed) argument 251 switch (speed) { 256 speed = 9600; 285 dev->speed = speed; [all...] |
H A D | act200l-sir.c | 32 static int act200l_change_speed(struct sir_dev *dev, unsigned speed); 136 * Function act200l_change_speed (dev, speed) 138 * Set the speed for the ACTiSYS ACT-IR200L type dongle. 141 static int act200l_change_speed(struct sir_dev *dev, unsigned speed) argument 151 switch (speed) { 185 dev->speed = speed; 240 dev->speed = 9600;
|
H A D | girbil-sir.c | 36 static int girbil_change_speed(struct sir_dev *dev, unsigned speed); 114 * Function girbil_change_speed (dev, speed) 116 * Set the speed for the Girbil type dongle. 122 static int girbil_change_speed(struct sir_dev *dev, unsigned speed) argument 131 /* dongle alread reset - port and dongle at default speed */ 143 switch (speed) { 168 dev->speed = speed; 240 dev->speed = 9600;
|
/drivers/usb/usbip/ |
H A D | vhci_sysfs.c | 61 vdev->speed, vdev->devid); 137 static int valid_args(__u32 rhport, enum usb_device_speed speed) argument 145 /* check speed */ 146 switch (speed) { 153 pr_err("Failed attach request for unsupported USB speed: %s\n", 154 usb_speed_string(speed)); 167 * @speed. @devid is embedded into a request to specify the remote device in a 178 __u32 rhport = 0, devid = 0, speed = 0; local 185 * @speed: usb device speed i [all...] |
/drivers/usb/misc/ |
H A D | trancevibrator.c | 45 unsigned int speed; member in struct:trancevibrator 54 return sprintf(buf, "%d\n", tv->speed); 69 old = tv->speed; 70 tv->speed = temp; 72 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); 74 /* Set speed */ 76 0x01, /* vendor request: set speed */ 78 tv->speed, /* speed valu [all...] |
/drivers/usb/common/ |
H A D | common.c | 48 [USB_SPEED_LOW] = "low-speed", 49 [USB_SPEED_FULL] = "full-speed", 50 [USB_SPEED_HIGH] = "high-speed", 52 [USB_SPEED_SUPER] = "super-speed", 55 const char *usb_speed_string(enum usb_device_speed speed) argument 57 if (speed < 0 || speed >= ARRAY_SIZE(speed_names)) 58 speed = USB_SPEED_UNKNOWN; 59 return speed_names[speed]; 117 * of_usb_get_maximum_speed - Get maximum requested speed fo [all...] |
/drivers/usb/core/ |
H A D | devices.c | 181 static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end, argument 192 if (speed == USB_SPEED_HIGH) { 205 if (speed == USB_SPEED_HIGH) /* uframes per NAK */ 217 if (speed == USB_SPEED_HIGH && dir == 'O') /* uframes per NAK */ 224 if (speed == USB_SPEED_HIGH || speed == USB_SPEED_SUPER) 232 interval *= (speed == USB_SPEED_HIGH || 233 speed == USB_SPEED_SUPER) ? 125 : 1000; 280 static char *usb_dump_interface(int speed, char *start, char *end, argument 291 start = usb_dump_endpoint_descriptor(speed, 317 usb_dump_config_descriptor(char *start, char *end, const struct usb_config_descriptor *desc, int active, int speed) argument 339 usb_dump_config(int speed, char *start, char *end, const struct usb_host_config *config, int active) argument 503 char *pages_start, *data_end, *speed; local [all...] |
/drivers/ide/ |
H A D | cs5535.c | 70 * cs5535_set_speed - Configure the chipset to the new speed 72 * @speed: desired speed 74 * cs5535_set_speed() configures the chipset to a new speed. 76 static void cs5535_set_speed(ide_drive_t *drive, const u8 speed) argument 82 if (speed < XFER_SW_DMA_0) { 86 cmd = pioa = speed - XFER_PIO_0; 95 /* Write the speed of the current drive */ 100 /* And if nessesary - change the speed of the other drive */ 119 if (speed > [all...] |
H A D | ide-timings.c | 70 struct ide_timing *ide_timing_find_mode(u8 speed) argument 74 for (t = ide_timing; t->mode != speed; t++) 144 int ide_timing_compute(ide_drive_t *drive, u8 speed, argument 153 s = ide_timing_find_mode(speed); 169 if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { 170 if (speed <= XFER_PIO_2) 172 else if ((speed <= XFER_PIO_4) || 173 (speed == XFER_PIO_5 && !ata_id_is_cfa(id))) 175 } else if (speed > [all...] |
H A D | ide-iops.c | 277 "limiting max speed to UDMA33\n", 342 int ide_config_drive_speed(ide_drive_t *drive, u8 speed) argument 357 if ((speed & 0xf8) == XFER_PIO_0 && ata_id_has_iordy(drive->id) == 0) 375 tf.nsect = speed; 395 if (speed >= XFER_SW_DMA_0) { 406 if (speed >= XFER_SW_DMA_0 && (drive->dev_flags & IDE_DFLAG_USING_DMA)) 412 if (speed >= XFER_UDMA_0) { 413 i = 1 << (speed - XFER_UDMA_0); 415 } else if (ata_id_is_cfa(id) && speed >= XFER_MW_DMA_3) { 416 i = speed [all...] |
/drivers/mtd/tests/ |
H A D | speedtest.c | 17 * Test read and write speed of a MTD device. 196 long speed; local 264 pr_info("testing eraseblock write speed\n"); 275 speed = calc_speed(); 276 pr_info("eraseblock write speed is %ld KiB/s\n", speed); 279 pr_info("testing eraseblock read speed\n"); 290 speed = calc_speed(); 291 pr_info("eraseblock read speed is %ld KiB/s\n", speed); [all...] |
/drivers/net/ethernet/ibm/emac/ |
H A D | phy.h | 36 int (*setup_forced) (struct mii_phy * phy, int speed, int fd); 47 int magic_aneg; /* Autoneg does all speed test for us */ 65 /* forced speed & duplex (no autoneg) 66 * partner speed & duplex & pause (autoneg) 68 int speed; member in struct:mii_phy
|
/drivers/net/phy/ |
H A D | et1011c.c | 70 static int speed; local 73 if (speed != phydev->speed) { 74 speed = phydev->speed;
|
/drivers/ata/ |
H A D | pata_sis.c | 22 * Check MWDMA on drives that don't support MWDMA speed pio cycles ? 231 int speed = adev->pio_mode - XFER_PIO_0; local 244 t1 |= active[speed]; 245 t2 |= recovery[speed]; 267 int speed = adev->pio_mode - XFER_PIO_0; local 273 pci_write_config_byte(pdev, port, actrec[speed]); 293 int speed = adev->pio_mode - XFER_PIO_0; local 317 t1 |= timing133[speed]; 319 t1 |= timing100[speed]; 339 int speed local 378 int speed = adev->dma_mode - XFER_MW_DMA_0; local 417 int speed = adev->dma_mode - XFER_MW_DMA_0; local 451 int speed = adev->dma_mode - XFER_MW_DMA_0; local 494 int speed = adev->dma_mode - XFER_MW_DMA_0; local 507 int speed = adev->dma_mode - XFER_UDMA_0; local [all...] |
/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_ethtool.c | 37 u32 speed; local 48 speed = SPEED_10; 51 speed = SPEED_100; 54 speed = SPEED_1000; 57 speed = SPEED_10000; 60 speed = -1; 66 speed = SPEED_UNKNOWN; 69 ethtool_cmd_speed_set(cmd, speed); 71 if (cmd->speed == SPEED_10000) { 101 switch (cmd->speed) { [all...] |
/drivers/cpufreq/ |
H A D | speedstep-ich.c | 234 unsigned int *speed = _speed; local 236 *speed = speedstep_get_frequency(speedstep_processor); 241 unsigned int speed; local 244 if (smp_call_function_single(cpu, get_freq_data, &speed, 1) != 0) 247 pr_debug("detected %u kHz as current frequency\n", speed); 248 return speed;
|
/drivers/input/misc/ |
H A D | pm8xxx-vibrator.c | 38 * @speed: speed of vibration set from userland 47 int speed; member in struct:pm8xxx_vib 94 if (vib->speed) { 96 vib->level = ((VIB_MAX_LEVELS * vib->speed) / MAX_FF_SPEED) + 135 vib->speed = effect->u.rumble.strong_magnitude >> 8; 136 if (!vib->speed) 137 vib->speed = effect->u.rumble.weak_magnitude >> 9;
|
/drivers/pcmcia/ |
H A D | pxa2xx_base.c | 117 static int pxa2xx_pcmcia_set_mcmem( int sock, int speed, int clock ) argument 121 val = ((pxa2xx_mcxx_setup(speed, clock) 123 | ((pxa2xx_mcxx_asst(speed, clock) 125 | ((pxa2xx_mcxx_hold(speed, clock) 133 static int pxa2xx_pcmcia_set_mcio( int sock, int speed, int clock ) argument 137 val = ((pxa2xx_mcxx_setup(speed, clock) 139 | ((pxa2xx_mcxx_asst(speed, clock) 141 | ((pxa2xx_mcxx_hold(speed, clock) 149 static int pxa2xx_pcmcia_set_mcatt( int sock, int speed, int clock ) argument 153 val = ((pxa2xx_mcxx_setup(speed, cloc [all...] |