Home
last modified time | relevance | path

Searched refs:bps (Results 1 – 18 of 18) sorted by relevance

/drivers/usb/serial/
Dark3116.c115 static inline int calc_divisor(int bps) in calc_divisor() argument
122 return (12000000 + 2*bps) / (4*bps); in calc_divisor()
232 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() local
266 dev_dbg(&port->dev, "%s - setting bps to %d\n", __func__, bps); in ark3116_set_termios()
268 switch (bps) { in ark3116_set_termios()
273 if ((bps < 75) || (bps > 3000000)) in ark3116_set_termios()
274 bps = 9600; in ark3116_set_termios()
275 quot = calc_divisor(bps); in ark3116_set_termios()
279 quot = calc_divisor(bps); in ark3116_set_termios()
283 quot = calc_divisor(bps); in ark3116_set_termios()
[all …]
Dgeneric.c249 unsigned int bps; in usb_serial_generic_wait_until_sent() local
253 bps = tty_get_baud_rate(tty); in usb_serial_generic_wait_until_sent()
254 if (!bps) in usb_serial_generic_wait_until_sent()
255 bps = 9600; /* B0 */ in usb_serial_generic_wait_until_sent()
260 period = max_t(unsigned long, (10 * HZ / bps), 1); in usb_serial_generic_wait_until_sent()
/drivers/tty/serial/
Dzs.h52 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dip22zilog.h31 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dsunzilog.h23 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dpmac_zilog.h117 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dsh-sci.c1853 static unsigned int sci_scbrr_calc(struct sci_port *s, unsigned int bps, in sci_scbrr_calc() argument
1857 return DIV_ROUND_CLOSEST(freq, s->sampling_rate * bps) - 1; in sci_scbrr_calc()
1862 return ((freq + 16 * bps) / (32 * bps) - 1); in sci_scbrr_calc()
1882 static void sci_baud_calc_hscif(unsigned int bps, unsigned long freq, in sci_baud_calc_hscif() argument
1896 (1 << (2 * c + 1)) * bps)) - 1; in sci_baud_calc_hscif()
1898 err = DIV_ROUND_CLOSEST(freq, ((br + 1) * bps * sr * in sci_baud_calc_hscif()
/drivers/net/hamradio/
Dbaycom_epp.c183 unsigned int bps; member
317 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in eppconfig()
318 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), in eppconfig()
992 bc->cfg.bps = simple_strtoul(cp+4, NULL, 0); in baycom_setmode()
993 if (bc->cfg.bps < 1000) in baycom_setmode()
994 bc->cfg.bps = 1000; in baycom_setmode()
995 if (bc->cfg.bps > 1500000) in baycom_setmode()
996 bc->cfg.bps = 1500000; in baycom_setmode()
1083 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_ioctl()
1192 bc->cfg.bps = 9600; in baycom_epp_dev_setup()
/drivers/net/wan/
Dz85230.h18 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Ddscc4.c1253 static int dscc4_set_clock(struct net_device *dev, u32 *bps, u32 *state) in dscc4_set_clock() argument
1260 if (*bps) { /* Clock generated - required for DCE */ in dscc4_set_clock()
1269 divider = xtal / *bps; in dscc4_set_clock()
1291 *bps = xtal / divider; in dscc4_set_clock()
1370 u32 bps, state; in dscc4_clock_setting() local
1372 bps = settings->clock_rate; in dscc4_clock_setting()
1374 if (dscc4_set_clock(dev, &bps, &state) < 0) in dscc4_clock_setting()
1376 if (bps) { /* DCE */ in dscc4_clock_setting()
1378 if (settings->clock_rate != bps) { in dscc4_clock_setting()
1380 dev->name, settings->clock_rate, bps); in dscc4_clock_setting()
[all …]
/drivers/tty/
Dtty_port.c442 unsigned int bps = tty_get_baud_rate(tty); in tty_port_drain_delay() local
445 if (bps > 1200) { in tty_port_drain_delay()
446 timeout = (HZ * 10 * port->drain_delay) / bps; in tty_port_drain_delay()
/drivers/media/i2c/soc_camera/
Dmt9m001.c614 unsigned int bps = soc_mbus_get_fmtdesc(mt9m001->fmt->code)->bits_per_sample; in mt9m001_s_mbus_config() local
617 return ssdd->set_bus_param(ssdd, 1 << (bps - 1)); in mt9m001_s_mbus_config()
623 return bps == 10 ? 0 : -EINVAL; in mt9m001_s_mbus_config()
Dmt9v022.c812 unsigned int bps = soc_mbus_get_fmtdesc(mt9v022->fmt->code)->bits_per_sample; in mt9v022_s_mbus_config() local
817 ret = ssdd->set_bus_param(ssdd, 1 << (bps - 1)); in mt9v022_s_mbus_config()
820 } else if (bps != 10) { in mt9v022_s_mbus_config()
/drivers/net/irda/
DKconfig16 connection to 115200 bps (IrDA SIR mode).
208 dongle supports SIR speed only (9600 bps).
222 dongle supports SIR speeds only (9600 through 115200 bps).
236 dongle supports SIR speeds only (9600 through 57600 bps).
/drivers/media/i2c/
Dtc358743.c681 u32 bps = bt->width * bt->height * fps(bt) * bits_pr_pixel; in tc358743_num_csi_lanes_needed() local
684 return DIV_ROUND_UP(bps, bps_pr_lane); in tc358743_num_csi_lanes_needed()
/drivers/staging/comedi/
Dcomedi_fops.c2286 unsigned int bps = comedi_bytes_per_sample(s); in comedi_poll() local
2292 comedi_buf_write_n_available(s) >= bps) in comedi_poll()
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c2825 static int be_cmd_set_qos(struct be_adapter *adapter, u32 bps, u32 domain) in be_cmd_set_qos() argument
2846 req->max_bps_nic = cpu_to_le32(bps); in be_cmd_set_qos()
/drivers/gpu/drm/i915/
Dintel_display.c8828 u32 bps = target_clock * bpp * 21 / 20; in ironlake_get_lanes_required() local
8829 return DIV_ROUND_UP(bps, link_bw * 8); in ironlake_get_lanes_required()