Home
last modified time | relevance | path

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

12

/linux-2.6.39/net/netfilter/
Dxt_rateest.c28 bps1 = info->bps1 >= r->bps ? info->bps1 - r->bps : 0; in xt_rateest_mt()
31 bps1 = r->bps; in xt_rateest_mt()
43 bps2 = info->bps2 >= r->bps ? info->bps2 - r->bps : 0; in xt_rateest_mt()
46 bps2 = r->bps; in xt_rateest_mt()
/linux-2.6.39/drivers/usb/serial/
Dark3116.c117 static inline int calc_divisor(int bps) in calc_divisor() argument
124 return (12000000 + 2*bps) / (4*bps); in calc_divisor()
234 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() local
268 dbg("%s - setting bps to %d", __func__, bps); in ark3116_set_termios()
270 switch (bps) { in ark3116_set_termios()
275 if ((bps < 75) || (bps > 3000000)) in ark3116_set_termios()
276 bps = 9600; in ark3116_set_termios()
277 quot = calc_divisor(bps); in ark3116_set_termios()
281 quot = calc_divisor(bps); in ark3116_set_termios()
285 quot = calc_divisor(bps); in ark3116_set_termios()
[all …]
/linux-2.6.39/block/
Dblk-throttle.c65 uint64_t bps[2]; member
218 tg->bps[READ] = blkcg_get_read_bps(blkcg, tg->blkg.dev); in throtl_find_alloc_tg()
219 tg->bps[WRITE] = blkcg_get_write_bps(blkcg, tg->blkg.dev); in throtl_find_alloc_tg()
428 tmp = tg->bps[rw] * throtl_slice * nr_slices; in throtl_trim_slice()
520 tmp = tg->bps[rw] * jiffy_elapsed_rnd; in tg_with_in_bps_limit()
532 jiffy_wait = div64_u64(extra_bytes * HZ, tg->bps[rw]); in tg_with_in_bps_limit()
566 if (tg->bps[rw] == -1 && tg->iops[rw] == -1) { in tg_may_dispatch()
755 " riops=%u wiops=%u", tg->bps[READ], tg->bps[WRITE], in throtl_process_limit_change()
930 tg->bps[READ] = read_bps; in throtl_update_blkio_group_read_bps()
940 tg->bps[WRITE] = write_bps; in throtl_update_blkio_group_write_bps()
[all …]
Dblk-cgroup.c139 static inline void blkio_update_group_bps(struct blkio_group *blkg, u64 bps, in blkio_update_group_bps() argument
153 blkg, bps); in blkio_update_group_bps()
158 blkg, bps); in blkio_update_group_bps()
674 u64 bps, iops; in blkio_policy_parse_and_set() local
736 ret = strict_strtoull(s[1], 10, &bps); in blkio_policy_parse_and_set()
742 newpn->val.bps = bps; in blkio_policy_parse_and_set()
787 return pn->val.bps; in blkcg_get_read_bps()
798 return pn->val.bps; in blkcg_get_write_bps()
838 if (pn->val.bps == 0) in blkio_delete_rule_command()
865 oldpn->val.bps = newpn->val.bps; in blkio_update_policy_rule()
[all …]
/linux-2.6.39/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.h128 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dmsm_serial_hs.c503 unsigned int bps) in msm_hs_set_bps_locked() argument
509 switch (bps) { in msm_hs_set_bps_locked()
586 bps = 9600; in msm_hs_set_bps_locked()
590 if (bps > 460800) in msm_hs_set_bps_locked()
591 uport->uartclk = bps * 16; in msm_hs_set_bps_locked()
616 unsigned int bps; in msm_hs_set_termios() local
626 bps = uart_get_baud_rate(uport, termios, oldtermios, 200, 4000000); in msm_hs_set_termios()
629 if (bps == 200) in msm_hs_set_termios()
630 bps = 3200000; in msm_hs_set_termios()
632 msm_hs_set_bps_locked(uport, bps); in msm_hs_set_termios()
[all …]
Dsh-sci.c1463 static unsigned int sci_scbrr_calc(unsigned int algo_id, unsigned int bps, in sci_scbrr_calc() argument
1468 return ((freq + 16 * bps) / (16 * bps) - 1); in sci_scbrr_calc()
1470 return ((freq + 16 * bps) / (32 * bps) - 1); in sci_scbrr_calc()
1472 return (((freq * 2) + 16 * bps) / (16 * bps) - 1); in sci_scbrr_calc()
1474 return (((freq * 2) + 16 * bps) / (32 * bps) - 1); in sci_scbrr_calc()
1476 return (((freq * 1000 / 32) / bps) - 1); in sci_scbrr_calc()
1482 return ((freq + 16 * bps) / (32 * bps) - 1); in sci_scbrr_calc()
/linux-2.6.39/drivers/gpu/drm/radeon/
Dr600_audio.c127 int bps = r600_audio_bits_per_sample(rdev); in r600_audio_update_hdmi() local
136 changes |= bps != rdev->audio_bits_per_sample; in r600_audio_update_hdmi()
143 rdev->audio_bits_per_sample = bps; in r600_audio_update_hdmi()
Dr600_hdmi.c360 int bps = r600_audio_bits_per_sample(rdev); in r600_hdmi_update_audio_settings() local
371 channels, rate, bps); in r600_hdmi_update_audio_settings()
400 switch (bps) { in r600_hdmi_update_audio_settings()
/linux-2.6.39/drivers/net/wan/
Dz85230.h18 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dcycx_x25.c193 static u8 bps_to_speed_code(u32 bps);
251 cfg.speed = bps_to_speed_code(conf->bps); in cycx_x25_wan_init()
329 card->wandev.bps = conf->bps; in cycx_x25_wan_init()
1503 static u8 bps_to_speed_code(u32 bps) in bps_to_speed_code() argument
1507 if (bps >= 512000) number = 8; in bps_to_speed_code()
1508 else if (bps >= 256000) number = 7; in bps_to_speed_code()
1509 else if (bps >= 64000) number = 6; in bps_to_speed_code()
1510 else if (bps >= 38400) number = 5; in bps_to_speed_code()
1511 else if (bps >= 19200) number = 4; in bps_to_speed_code()
1512 else if (bps >= 9600) number = 3; in bps_to_speed_code()
[all …]
Ddscc4.c1262 static int dscc4_set_clock(struct net_device *dev, u32 *bps, u32 *state) in dscc4_set_clock() argument
1269 if (*bps) { /* Clock generated - required for DCE */ in dscc4_set_clock()
1278 divider = xtal / *bps; in dscc4_set_clock()
1300 *bps = xtal / divider; in dscc4_set_clock()
1380 u32 bps, state; in dscc4_clock_setting() local
1382 bps = settings->clock_rate; in dscc4_clock_setting()
1384 if (dscc4_set_clock(dev, &bps, &state) < 0) in dscc4_clock_setting()
1386 if (bps) { /* DCE */ in dscc4_clock_setting()
1388 if (settings->clock_rate != bps) { in dscc4_clock_setting()
1390 dev->name, settings->clock_rate, bps); in dscc4_clock_setting()
[all …]
/linux-2.6.39/include/linux/
Dwanrouter.h212 unsigned bps; /* data transfer rate */ member
427 unsigned bps; /* data transfer rate */ member
476 unsigned bps; /* data transfer rate */ member
Dgen_stats.h36 __u32 bps; member
/linux-2.6.39/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()
989 bc->cfg.bps = simple_strtoul(cp+4, NULL, 0); in baycom_setmode()
990 if (bc->cfg.bps < 1000) in baycom_setmode()
991 bc->cfg.bps = 1000; in baycom_setmode()
992 if (bc->cfg.bps > 1500000) in baycom_setmode()
993 bc->cfg.bps = 1500000; in baycom_setmode()
1080 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_ioctl()
1189 bc->cfg.bps = 9600; in baycom_epp_dev_setup()
/linux-2.6.39/fs/xfs/
Dxfs_da_btree.c92 STATIC xfs_dabuf_t *xfs_da_buf_make(int nbuf, xfs_buf_t **bps, inst_t *ra);
2102 trace_xfs_da_btree_corrupt(rbp->bps[0], _RET_IP_); in xfs_da_do_buf()
2248 xfs_da_buf_make(int nbuf, xfs_buf_t **bps, inst_t *ra) in xfs_da_buf_make() argument
2262 dabuf->target = XFS_BUF_TARGET(bps[0]); in xfs_da_buf_make()
2263 dabuf->blkno = XFS_BUF_ADDR(bps[0]); in xfs_da_buf_make()
2267 bp = bps[0]; in xfs_da_buf_make()
2270 dabuf->bps[0] = bp; in xfs_da_buf_make()
2274 dabuf->bps[i] = bp = bps[i]; in xfs_da_buf_make()
2279 bp = bps[i]; in xfs_da_buf_make()
2319 bp = dabuf->bps[i]; in xfs_da_buf_clean()
[all …]
/linux-2.6.39/net/core/
Dgen_stats.c151 d->tc_stats.bps = r->bps; in gnet_stats_copy_rate_est()
Dgen_estimator.c134 e->rate_est->bps = (e->avbps+0xF)>>5; in est_timer()
231 est->avbps = rate_est->bps<<5; in gen_new_estimator()
/linux-2.6.39/drivers/tty/
Dtty_port.c355 unsigned int bps = tty_get_baud_rate(tty); in tty_port_close_start() local
358 if (bps > 1200) in tty_port_close_start()
360 (HZ * 10 * port->drain_delay) / bps, HZ / 10); in tty_port_close_start()
/linux-2.6.39/Documentation/serial/
Dcomputone.txt212 38,400 bps (extb) to 57,600 bps, 115,200 bps, or a custom speed.
214 use the custom speed setting to select the highest speeds: 153,600 bps,
215 230,400 bps, 307,200 bps, 460,800bps and 921,600 bps. The base for
220 the custom rate is 921600/18 = 51200 bps. See the setserial man page for
/linux-2.6.39/net/mac80211/
Drc80211_minstrel_ht.c27 #define MCS_NSYMS(bps) ((MCS_NBITS + (bps) - 1) / (bps)) argument
37 #define MCS_DURATION(streams, sgi, bps) MCS_SYMBOL_TIME(sgi, MCS_NSYMS((streams) * (bps))) argument
/linux-2.6.39/Documentation/i2c/busses/
Di2c-taos-evm45 to operate at 1200 bps. However, I don't think this is a big concern in

12