Searched refs:bps (Results 1 - 19 of 19) sorted by relevance

/drivers/usb/serial/
H A Dark3116.c117 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 Dzs.h52 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
H A Dip22zilog.h31 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
H A Dsunzilog.h23 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
H A Dpmac_zilog.h117 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
H A Dmsm_serial_hs.c504 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 Dsh-sci.c1748 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 Dr600_audio.c127 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 Dr600_hdmi.c367 int bps = r600_audio_bits_per_sample(rdev); local
378 channels, rate, bps);
407 switch (bps) {
/drivers/net/wan/
H A Dz85230.h18 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
353 * to read the bps rate the chip has currently
H A Dcycx_x25.c195 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 Ddscc4.c1258 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 Dtty_port.c357 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 Dbaycom_epp.c183 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 Dmt9m001.c606 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 Dmt9v022.c706 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 Dbe_cmds.c2184 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 Dbe_cmds.h1660 extern int be_cmd_set_qos(struct be_adapter *adapter, u32 bps, u32 domain);
/drivers/gpu/drm/i915/
H A Dintel_display.c5827 u32 bps = target_clock * intel_crtc->bpp * 21 / 20; local
5828 lane = bps / (link_bw * 8) + 1;

Completed in 413 milliseconds