Home
last modified time | relevance | path

Searched refs:speed (Results 1 – 25 of 731) sorted by relevance

12345678910>>...30

/drivers/net/irda/
Dma600-sir.c115 static __u8 get_control_byte(__u32 speed) in get_control_byte() argument
119 switch (speed) { in get_control_byte()
173 static int ma600_change_speed(struct sir_dev *dev, unsigned speed) in ma600_change_speed() argument
178 speed, dev->speed); in ma600_change_speed()
187 byte = get_control_byte(speed); in ma600_change_speed()
200 if (byte != get_control_byte(speed)) { in ma600_change_speed()
203 (unsigned) get_control_byte(speed)); in ma600_change_speed()
217 dev->speed = speed; in ma600_change_speed()
249 dev->speed = 9600; /* That's the dongle-default */ in ma600_reset()
Dsmsc-ircc2.c129 void (*set_for_speed)(int fir_base, u32 speed);
201 static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed);
202 static void smsc_ircc_set_sir_speed(struct smsc_ircc_cb *self, u32 speed);
219 static void smsc_ircc_set_transceiver_for_speed(struct smsc_ircc_cb *self, u32 speed);
244 static void smsc_ircc_set_transceiver_toshiba_sat1800(int fir_base, u32 speed);
246 static void smsc_ircc_set_transceiver_smsc_ircc_fast_pin_select(int fir_base, u32 speed);
248 static void smsc_ircc_set_transceiver_smsc_ircc_atc(int fir_base, u32 speed);
494 if (self->io.speed > 115200) in smsc_ircc_net_xmit()
703 self->io.speed = SMSC_IRCC2_C_IRDA_FALLBACK_SPEED; in smsc_ircc_setup_io()
856 dev->name, self->io.speed); in smsc_ircc_timeout()
[all …]
Dlitelink-sir.c49 static int litelink_change_speed(struct sir_dev *dev, unsigned speed);
110 static int litelink_change_speed(struct sir_dev *dev, unsigned speed) in litelink_change_speed() argument
121 for (i = 0; baud_rates[i] != speed; i++) { in litelink_change_speed()
140 dev->speed = baud_rates[i]; in litelink_change_speed()
146 return (dev->speed == speed) ? 0 : -EINVAL; in litelink_change_speed()
183 dev->speed = 115200; in litelink_reset()
Dold_belkin-sir.c66 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed);
124 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed) in old_belkin_change_speed() argument
128 dev->speed = 9600; in old_belkin_change_speed()
129 return (speed==dev->speed) ? 0 : -EINVAL; in old_belkin_change_speed()
143 dev->speed = 9600; in old_belkin_reset()
Dactisys-sir.c163 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()
Desi-sir.c96 static int esi_change_speed(struct sir_dev *dev, unsigned speed) in esi_change_speed() argument
101 switch (speed) { in esi_change_speed()
111 speed = 9600; in esi_change_speed()
121 dev->speed = speed; in esi_change_speed()
145 dev->speed = 9600; in esi_reset()
/drivers/usb/usbip/
Dvhci_sysfs.c61 vdev->speed, vdev->devid); in status_show()
137 static int valid_args(__u32 rhport, enum usb_device_speed speed) in valid_args() argument
146 switch (speed) { in valid_args()
154 usb_speed_string(speed)); in valid_args()
178 __u32 rhport = 0, devid = 0, speed = 0; in store_attach() local
187 if (sscanf(buf, "%u %u %u %u", &rhport, &sockfd, &devid, &speed) != 4) in store_attach()
191 rhport, sockfd, devid, speed); in store_attach()
194 if (valid_args(rhport, speed) < 0) in store_attach()
222 rhport, sockfd, devid, speed, usb_speed_string(speed)); in store_attach()
225 vdev->speed = speed; in store_attach()
[all …]
/drivers/usb/core/
Ddevices.c181 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()
319 int active, int speed) in usb_dump_config_descriptor() argument
[all …]
/drivers/net/phy/
Dphy.c41 static const char *phy_speed_to_str(int speed) in phy_speed_to_str() argument
43 switch (speed) { in phy_speed_to_str()
70 phy_speed_to_str(phydev->speed), in phy_print_status()
133 int speed; member
141 .speed = SPEED_10000,
146 .speed = SPEED_10000,
151 .speed = SPEED_10000,
156 .speed = SPEED_2500,
161 .speed = SPEED_1000,
166 .speed = SPEED_1000,
[all …]
/drivers/ata/
Dpata_sis.c231 int speed = adev->pio_mode - XFER_PIO_0; in sis_old_set_piomode() local
244 t1 |= active[speed]; in sis_old_set_piomode()
245 t2 |= recovery[speed]; in sis_old_set_piomode()
267 int speed = adev->pio_mode - XFER_PIO_0; in sis_100_set_piomode() local
273 pci_write_config_byte(pdev, port, actrec[speed]); in sis_100_set_piomode()
293 int speed = adev->pio_mode - XFER_PIO_0; in sis_133_set_piomode() local
317 t1 |= timing133[speed]; in sis_133_set_piomode()
319 t1 |= timing100[speed]; in sis_133_set_piomode()
339 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_old_set_dmamode() local
352 timing |= mwdma_bits[speed]; in sis_old_set_dmamode()
[all …]
/drivers/mtd/tests/
Dspeedtest.c196 long speed; in mtd_speedtest_init() local
275 speed = calc_speed(); in mtd_speedtest_init()
276 pr_info("eraseblock write speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
290 speed = calc_speed(); in mtd_speedtest_init()
291 pr_info("eraseblock read speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
309 speed = calc_speed(); in mtd_speedtest_init()
310 pr_info("page write speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
324 speed = calc_speed(); in mtd_speedtest_init()
325 pr_info("page read speed is %ld KiB/s\n", speed); in mtd_speedtest_init()
343 speed = calc_speed(); in mtd_speedtest_init()
[all …]
/drivers/ide/
Dide-iops.c342 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 …]
Dide-timings.c70 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()
Dcs5535.c76 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()
/drivers/usb/misc/
Dtrancevibrator.c45 unsigned int speed; member
54 return sprintf(buf, "%d\n", tv->speed); in show_speed()
69 old = tv->speed; in set_speed()
70 tv->speed = temp; in set_speed()
72 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in set_speed()
78 tv->speed, /* speed value */ in set_speed()
81 tv->speed = old; in set_speed()
88 static DEVICE_ATTR(speed, S_IRUGO | S_IWUSR, show_speed, set_speed);
/drivers/hwmon/
Dgpio-fan.c45 struct gpio_fan_speed *speed; member
157 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
167 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index()
178 struct gpio_fan_speed *speed = fan_data->speed; in rpm_to_speed_index() local
182 if (speed[i].rpm >= rpm) in rpm_to_speed_index()
268 return sprintf(buf, "%d\n", fan_data->speed[0].rpm); in show_rpm_min()
277 fan_data->speed[fan_data->num_speed - 1].rpm); in show_rpm_max()
285 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in show_rpm()
380 fan_data->speed = pdata->speed; in fan_ctrl_init()
397 struct gpio_fan_speed *speed; in gpio_fan_get_of_pdata() local
[all …]
/drivers/cpufreq/
Dlonghaul.c90 static char *print_speed(int speed) in print_speed() argument
92 if (speed < 1000) { in print_speed()
93 snprintf(speedbuffer, sizeof(speedbuffer), "%dMHz", speed); in print_speed()
97 if (speed%1000 == 0) in print_speed()
99 "%dGHz", speed/1000); in print_speed()
102 "%d.%dGHz", speed/1000, (speed%1000)/100); in print_speed()
249 int speed, mult; in longhaul_setstate() local
263 speed = calc_speed(mult); in longhaul_setstate()
264 if ((speed > highest_speed) || (speed < lowest_speed)) in longhaul_setstate()
272 freqs.new = speed; in longhaul_setstate()
[all …]
Dpowernow-k7.c177 unsigned int speed; in get_ranges() local
191 speed = powernow_table[j].frequency; in get_ranges()
200 if (speed < minimum_speed) in get_ranges()
201 minimum_speed = speed; in get_ranges()
202 if (speed > maximum_speed) in get_ranges()
203 maximum_speed = speed; in get_ranges()
210 fid_codes[fid] % 10, speed/1000, vid, in get_ranges()
358 unsigned int speed, speed_mhz; in powernow_acpi_init() local
376 speed = powernow_table[i].frequency; in powernow_acpi_init()
377 speed_mhz = speed / 1000; in powernow_acpi_init()
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c37 u32 speed; in ehea_get_settings() local
48 speed = SPEED_10; in ehea_get_settings()
51 speed = SPEED_100; in ehea_get_settings()
54 speed = SPEED_1000; in ehea_get_settings()
57 speed = SPEED_10000; in ehea_get_settings()
60 speed = -1; in ehea_get_settings()
66 speed = SPEED_UNKNOWN; in ehea_get_settings()
69 ethtool_cmd_speed_set(cmd, speed); in ehea_get_settings()
71 if (cmd->speed == SPEED_10000) { in ehea_get_settings()
101 switch (cmd->speed) { in ehea_set_settings()
/drivers/pcmcia/
Dpxa2xx_base.c117 static int pxa2xx_pcmcia_set_mcmem( int sock, int speed, int clock ) in pxa2xx_pcmcia_set_mcmem() argument
121 val = ((pxa2xx_mcxx_setup(speed, clock) in pxa2xx_pcmcia_set_mcmem()
123 | ((pxa2xx_mcxx_asst(speed, clock) in pxa2xx_pcmcia_set_mcmem()
125 | ((pxa2xx_mcxx_hold(speed, clock) in pxa2xx_pcmcia_set_mcmem()
133 static int pxa2xx_pcmcia_set_mcio( int sock, int speed, int clock ) in pxa2xx_pcmcia_set_mcio() argument
137 val = ((pxa2xx_mcxx_setup(speed, clock) in pxa2xx_pcmcia_set_mcio()
139 | ((pxa2xx_mcxx_asst(speed, clock) in pxa2xx_pcmcia_set_mcio()
141 | ((pxa2xx_mcxx_hold(speed, clock) in pxa2xx_pcmcia_set_mcio()
149 static int pxa2xx_pcmcia_set_mcatt( int sock, int speed, int clock ) in pxa2xx_pcmcia_set_mcatt() argument
153 val = ((pxa2xx_mcxx_setup(speed, clock) in pxa2xx_pcmcia_set_mcatt()
[all …]
Dsoc_common.c85 unsigned short speed = 0; in calc_speed() local
89 if (speed < spds[i]) in calc_speed()
90 speed = spds[i]; in calc_speed()
91 if (speed == 0) in calc_speed()
92 speed = dflt; in calc_speed()
94 return speed; in calc_speed()
457 unsigned short speed = map->speed; in soc_common_pcmcia_set_io_map() local
460 map->map, map->speed, (unsigned long long)map->start, in soc_common_pcmcia_set_io_map()
479 if (speed == 0) in soc_common_pcmcia_set_io_map()
480 speed = SOC_PCMCIA_IO_ACCESS; in soc_common_pcmcia_set_io_map()
[all …]
/drivers/net/
Dsungem_phy.c318 phy->speed = SPEED_10; in genmii_setup_aneg()
344 static int genmii_setup_forced(struct mii_phy *phy, int speed, int fd) in genmii_setup_forced() argument
349 phy->speed = speed; in genmii_setup_forced()
360 switch(speed) { in genmii_setup_forced()
402 phy->speed = SPEED_100; in genmii_read_link()
404 phy->speed = SPEED_10; in genmii_read_link()
473 phy->speed = SPEED_10; in bcm54xx_setup_aneg()
512 static int bcm54xx_setup_forced(struct mii_phy *phy, int speed, int fd) in bcm54xx_setup_forced() argument
517 phy->speed = speed; in bcm54xx_setup_forced()
528 switch(speed) { in bcm54xx_setup_forced()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c48 ixgbe_link_speed speed,
51 ixgbe_link_speed speed,
57 ixgbe_link_speed speed,
60 ixgbe_link_speed speed,
351 ixgbe_link_speed *speed, in ixgbe_get_link_capabilities_82599() argument
363 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82599()
380 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82599()
385 *speed = IXGBE_LINK_SPEED_10GB_FULL; in ixgbe_get_link_capabilities_82599()
390 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82599()
395 *speed = IXGBE_LINK_SPEED_10GB_FULL; in ixgbe_get_link_capabilities_82599()
[all …]
/drivers/macintosh/
Dwindfarm_rm31.c249 s32 speed, temp, power, t_max = 0; in cpu_fans_tick() local
279 speed = max(sp->target, dimms_output_clamp); in cpu_fans_tick()
283 err = wf_control_set(cpu_fans[cpu][i], speed); in cpu_fans_tick()
369 int speed, dspeed, fan_min; in backside_fan_tick() local
381 err = wf_control_get(backside_fan, &speed); in backside_fan_tick()
383 backside_pid.target = speed; in backside_fan_tick()
393 speed = wf_pid_run(&backside_pid, temp); in backside_fan_tick()
396 FIX32TOPRINT(temp), speed); in backside_fan_tick()
411 speed = max(speed, fan_min); in backside_fan_tick()
413 err = wf_control_set(backside_fan, speed); in backside_fan_tick()
[all …]
/drivers/media/pci/ivtv/
Divtv-ioctl.c134 int ivtv_set_speed(struct ivtv *itv, int speed) in ivtv_set_speed() argument
137 int single_step = (speed == 1 || speed == -1); in ivtv_set_speed()
140 if (speed == 0) speed = 1000; in ivtv_set_speed()
143 if (speed == itv->speed && !single_step) in ivtv_set_speed()
146 if (single_step && (speed < 0) == (itv->speed < 0)) { in ivtv_set_speed()
149 itv->speed = speed; in ivtv_set_speed()
154 speed = speed < 0 ? -1000 : 1000; in ivtv_set_speed()
156 data[0] = (speed > 1000 || speed < -1000) ? 0x80000000 : 0; in ivtv_set_speed()
157 data[0] |= (speed > 1000 || speed < -1500) ? 0x40000000 : 0; in ivtv_set_speed()
158 data[1] = (speed < 0); in ivtv_set_speed()
[all …]

12345678910>>...30