/drivers/usb/serial/ |
H A D | ark3116.c | 117 static inline int calc_divisor(int bps) argument 124 return (12000000 + 2*bps) / (4*bps); 234 int bps = tty_get_baud_rate(tty); local 268 dbg("%s - setting bps to %d", __func__, bps); 270 switch (bps) { 275 if ((bps < 75) || (bps > 3000000)) 276 bps [all...] |
/drivers/tty/serial/ |
H A D | zs.h | 52 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
|
H A D | ip22zilog.h | 31 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
|
H A D | sunzilog.h | 23 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
|
H A D | pmac_zilog.h | 117 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
|
H A D | msm_serial_hs.c | 504 unsigned int bps) 510 switch (bps) { 587 bps = 9600; 591 if (bps > 460800) 592 uport->uartclk = bps * 16; 617 unsigned int bps; local 627 bps = uart_get_baud_rate(uport, termios, oldtermios, 200, 4000000); 630 if (bps == 200) 631 bps = 3200000; 633 msm_hs_set_bps_locked(uport, bps); 503 msm_hs_set_bps_locked(struct uart_port *uport, unsigned int bps) argument [all...] |
H A D | sh-sci.c | 1748 static unsigned int sci_scbrr_calc(unsigned int algo_id, unsigned int bps, argument 1753 return ((freq + 16 * bps) / (16 * bps) - 1); 1755 return ((freq + 16 * bps) / (32 * bps) - 1); 1757 return (((freq * 2) + 16 * bps) / (16 * bps) - 1); 1759 return (((freq * 2) + 16 * bps) / (32 * bps) - 1); 1761 return (((freq * 1000 / 32) / bps) [all...] |
/drivers/gpu/drm/radeon/ |
H A D | r600_audio.c | 127 int bps = r600_audio_bits_per_sample(rdev); local 136 changes |= bps != rdev->audio_bits_per_sample; 143 rdev->audio_bits_per_sample = bps;
|
H A D | r600_hdmi.c | 367 int bps = r600_audio_bits_per_sample(rdev); local 378 channels, rate, bps); 407 switch (bps) {
|
/drivers/net/wan/ |
H A D | z85230.h | 18 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) 353 * to read the bps rate the chip has currently
|
H A D | cycx_x25.c | 195 static u8 bps_to_speed_code(u32 bps); 253 cfg.speed = bps_to_speed_code(conf->bps); 331 card->wandev.bps = conf->bps; 1489 /* Convert line speed in bps to a number used by cyclom 2x code. */ 1490 static u8 bps_to_speed_code(u32 bps) argument 1494 if (bps >= 512000) number = 8; 1495 else if (bps >= 256000) number = 7; 1496 else if (bps >= 64000) number = 6; 1497 else if (bps > [all...] |
H A D | dscc4.c | 1258 static int dscc4_set_clock(struct net_device *dev, u32 *bps, u32 *state) argument 1265 if (*bps) { /* Clock generated - required for DCE */ 1274 divider = xtal / *bps; 1296 *bps = xtal / divider; 1375 u32 bps, state; local 1377 bps = settings->clock_rate; 1379 if (dscc4_set_clock(dev, &bps, &state) < 0) 1381 if (bps) { /* DCE */ 1383 if (settings->clock_rate != bps) { 1385 dev->name, settings->clock_rate, bps); [all...] |
/drivers/tty/ |
H A D | tty_port.c | 357 unsigned int bps = tty_get_baud_rate(tty); local 360 if (bps > 1200) 362 (HZ * 10 * port->drain_delay) / bps, HZ / 10);
|
/drivers/net/hamradio/ |
H A D | baycom_epp.c | 183 unsigned int bps; member in struct:baycom_state::__anon3035 315 sprintf(modearg, "%sclk,%smodem,fclk=%d,bps=%d,divider=%d%s,extstat", 317 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, 318 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), 988 if ((cp = strstr(modestr,"bps="))) { 989 bc->cfg.bps = simple_strtoul(cp+4, NULL, 0); 990 if (bc->cfg.bps < 1000) 991 bc->cfg.bps = 1000; 992 if (bc->cfg.bps > 150000 [all...] |
/drivers/media/video/ |
H A D | mt9m001.c | 606 unsigned int bps = soc_mbus_get_fmtdesc(mt9m001->fmt->code)->bits_per_sample; local 609 return icl->set_bus_param(icl, 1 << (bps - 1)); 615 return bps == 10 ? 0 : -EINVAL;
|
H A D | mt9v022.c | 706 unsigned int bps = soc_mbus_get_fmtdesc(mt9v022->fmt->code)->bits_per_sample; local 711 ret = icl->set_bus_param(icl, 1 << (bps - 1)); 714 } else if (bps != 10) {
|
/drivers/net/ethernet/emulex/benet/ |
H A D | be_cmds.c | 2184 int be_cmd_set_qos(struct be_adapter *adapter, u32 bps, u32 domain) argument 2205 req->max_bps_nic = cpu_to_le32(bps);
|
H A D | be_cmds.h | 1660 extern int be_cmd_set_qos(struct be_adapter *adapter, u32 bps, u32 domain);
|
/drivers/gpu/drm/i915/ |
H A D | intel_display.c | 5827 u32 bps = target_clock * intel_crtc->bpp * 21 / 20; local 5828 lane = bps / (link_bw * 8) + 1;
|