Home
last modified time | relevance | path

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

12

/drivers/soundwire/
Dgeneric_bandwidth_allocation.c44 unsigned int rate, bps, ch = 0; in sdw_compute_slave_ports() local
52 bps = m_rt->stream->params.bps; in sdw_compute_slave_ports()
68 p_rt->num, bps, in sdw_compute_slave_ports()
72 port_bo += bps * ch; in sdw_compute_slave_ports()
98 unsigned int rate, bps, ch; in sdw_compute_master_ports() local
101 bps = m_rt->stream->params.bps; in sdw_compute_master_ports()
120 p_rt->num, bps, in sdw_compute_master_ports()
128 port_bo += bps * ch; in sdw_compute_master_ports()
136 port_bo += bps * ch; in sdw_compute_master_ports()
159 m_rt->stream->params.bps; in _sdw_compute_port_params()
[all …]
Dbus.h195 int port_num, int bps, in sdw_fill_port_params() argument
199 params->bps = bps; in sdw_fill_port_params()
Dstream.c176 ret = sdw_write(s_rt->slave, addr2, (p_params->bps - 1)); in sdw_program_slave_port_params()
1183 if (stream->params.bps && in sdw_config_stream()
1184 stream->params.bps != stream_config->bps) { in sdw_config_stream()
1191 stream->params.bps = stream_config->bps; in sdw_config_stream()
1538 m_rt->ch_count * m_rt->stream->params.bps; in _sdw_prepare_stream()
1816 m_rt->ch_count * m_rt->stream->params.bps; in _sdw_deprepare_stream()
Dqcom.c727 p_params->bps - 1); in qcom_swrm_port_params()
961 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports()
Dintel.c892 sconfig.bps = 1; in intel_hw_params()
894 sconfig.bps = snd_pcm_format_width(params_format(params)); in intel_hw_params()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras.c1105 struct ras_badpage **bps, unsigned int *count);
1162 struct ras_badpage *bps = NULL; in amdgpu_ras_sysfs_badpages_read() local
1167 if (amdgpu_ras_badpages_read(adev, &bps, &bps_count)) in amdgpu_ras_sysfs_badpages_read()
1173 bps[start].bp, in amdgpu_ras_sysfs_badpages_read()
1174 bps[start].size, in amdgpu_ras_sysfs_badpages_read()
1175 amdgpu_ras_badpage_flags_str(bps[start].flags)); in amdgpu_ras_sysfs_badpages_read()
1177 kfree(bps); in amdgpu_ras_sysfs_badpages_read()
1684 struct ras_badpage **bps, unsigned int *count) in amdgpu_ras_badpages_read() argument
1691 if (!con || !con->eh_data || !bps || !count) in amdgpu_ras_badpages_read()
1697 *bps = NULL; in amdgpu_ras_badpages_read()
[all …]
Damdgpu_virt.c282 void *bps = NULL; in amdgpu_virt_init_ras_err_handler_data() local
289 bps = kmalloc_array(align_space, sizeof((*data)->bps), GFP_KERNEL); in amdgpu_virt_init_ras_err_handler_data()
292 if (!bps || !bps_bo) { in amdgpu_virt_init_ras_err_handler_data()
293 kfree(bps); in amdgpu_virt_init_ras_err_handler_data()
299 (*data)->bps = bps; in amdgpu_virt_init_ras_err_handler_data()
339 kfree(data->bps); in amdgpu_virt_release_ras_err_handler_data()
346 struct eeprom_table_record *bps, int pages) in amdgpu_virt_ras_add_bps() argument
354 memcpy(&data->bps[data->count], bps, pages * sizeof(*data->bps)); in amdgpu_virt_ras_add_bps()
370 bp = data->bps[i].retired_page; in amdgpu_virt_ras_reserve_bps()
400 if (retired_page == data->bps[i].retired_page) in amdgpu_virt_ras_check_bad_page()
Damdgpu_ras.h368 struct eeprom_table_record *bps; member
503 struct eeprom_table_record *bps, int pages);
Damdgpu_virt.h206 struct eeprom_table_record *bps; member
/drivers/usb/serial/
Dark3116.c114 static inline int calc_divisor(int bps) in calc_divisor() argument
121 return (12000000 + 2*bps) / (4*bps); in calc_divisor()
198 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() local
232 dev_dbg(&port->dev, "%s - setting bps to %d\n", __func__, bps); in ark3116_set_termios()
234 switch (bps) { in ark3116_set_termios()
239 if ((bps < 75) || (bps > 3000000)) in ark3116_set_termios()
240 bps = 9600; in ark3116_set_termios()
241 quot = calc_divisor(bps); in ark3116_set_termios()
245 quot = calc_divisor(bps); in ark3116_set_termios()
249 quot = calc_divisor(bps); in ark3116_set_termios()
[all …]
Dgeneric.c271 unsigned int bps; in usb_serial_generic_wait_until_sent() local
275 bps = tty_get_baud_rate(tty); in usb_serial_generic_wait_until_sent()
276 if (!bps) in usb_serial_generic_wait_until_sent()
277 bps = 9600; /* B0 */ in usb_serial_generic_wait_until_sent()
282 period = max_t(unsigned long, (10 * HZ / bps), 1); in usb_serial_generic_wait_until_sent()
/drivers/tty/serial/
Dzs.h53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dip22zilog.h32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dsunzilog.h24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dpmac_zilog.h118 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
Dsh-sci.c2220 static int sci_sck_calc(struct sci_port *s, unsigned int bps, in sci_sck_calc() argument
2231 err = DIV_ROUND_CLOSEST(freq, sr) - bps; in sci_sck_calc()
2242 dev_dbg(s->port.dev, "SCK: %u%+d bps using SR %u\n", bps, min_err, in sci_sck_calc()
2247 static int sci_brg_calc(struct sci_port *s, unsigned int bps, in sci_brg_calc() argument
2258 dl = DIV_ROUND_CLOSEST(freq, sr * bps); in sci_brg_calc()
2261 err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps; in sci_brg_calc()
2273 dev_dbg(s->port.dev, "BRG: %u%+d bps using DL %u SR %u\n", bps, in sci_brg_calc()
2279 static int sci_scbrr_calc(struct sci_port *s, unsigned int bps, in sci_scbrr_calc() argument
2319 if (bps > UINT_MAX / prediv) in sci_scbrr_calc()
2322 scrate = prediv * bps; in sci_scbrr_calc()
[all …]
/drivers/slimbus/
Dstream.c221 rt->bps = cfg->bps; in slim_stream_prepare()
280 wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; in slim_define_channel_content()
313 wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; in slim_define_channel()
315 wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS + 1; in slim_define_channel()
Dslimbus.h339 unsigned int bps; member
/drivers/net/wan/
Dz85230.h19 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
/drivers/net/hamradio/
Dbaycom_epp.c168 unsigned int bps; member
306 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in eppconfig()
307 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), in eppconfig()
997 bc->cfg.bps = simple_strtoul(cp+4, NULL, 0); in baycom_setmode()
998 if (bc->cfg.bps < 1000) in baycom_setmode()
999 bc->cfg.bps = 1000; in baycom_setmode()
1000 if (bc->cfg.bps > 1500000) in baycom_setmode()
1001 bc->cfg.bps = 1500000; in baycom_setmode()
1089 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_siocdevprivate()
1215 bc->cfg.bps = 9600; in baycom_epp_dev_setup()
/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-vchiq.c264 unsigned int bps) in bcm2835_audio_set_params() argument
270 .config.bps = bps, in bcm2835_audio_set_params()
Dvc_vchi_audioserv_defs.h37 u32 bps; member
Dbcm2835.h101 unsigned int bps);
/drivers/tty/
Dtty_port.c551 unsigned int bps = tty_get_baud_rate(tty); in tty_port_drain_delay() local
554 if (bps > 1200) { in tty_port_drain_delay()
555 timeout = (HZ * 10 * port->drain_delay) / bps; in tty_port_drain_delay()
/drivers/media/platform/
Drenesas-ceu.c134 u8 bps; member
1022 mbus_fmt->bps = 8; in ceu_init_mbus_fmt()

12