/drivers/soundwire/ |
D | generic_bandwidth_allocation.c | 44 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 …]
|
D | bus.h | 195 int port_num, int bps, in sdw_fill_port_params() argument 199 params->bps = bps; in sdw_fill_port_params()
|
D | stream.c | 176 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()
|
D | qcom.c | 727 p_params->bps - 1); in qcom_swrm_port_params() 961 sconfig.bps = 1; in qcom_swrm_stream_alloc_ports()
|
D | intel.c | 892 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/ |
D | amdgpu_ras.c | 1105 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 …]
|
D | amdgpu_virt.c | 282 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()
|
D | amdgpu_ras.h | 368 struct eeprom_table_record *bps; member 503 struct eeprom_table_record *bps, int pages);
|
D | amdgpu_virt.h | 206 struct eeprom_table_record *bps; member
|
/drivers/usb/serial/ |
D | ark3116.c | 114 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 …]
|
D | generic.c | 271 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/ |
D | zs.h | 53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
D | ip22zilog.h | 32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
D | sunzilog.h | 24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
D | pmac_zilog.h | 118 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
D | sh-sci.c | 2220 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/ |
D | stream.c | 221 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()
|
D | slimbus.h | 339 unsigned int bps; member
|
/drivers/net/wan/ |
D | z85230.h | 19 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
/drivers/net/hamradio/ |
D | baycom_epp.c | 168 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/ |
D | bcm2835-vchiq.c | 264 unsigned int bps) in bcm2835_audio_set_params() argument 270 .config.bps = bps, in bcm2835_audio_set_params()
|
D | vc_vchi_audioserv_defs.h | 37 u32 bps; member
|
D | bcm2835.h | 101 unsigned int bps);
|
/drivers/tty/ |
D | tty_port.c | 551 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/ |
D | renesas-ceu.c | 134 u8 bps; member 1022 mbus_fmt->bps = 8; in ceu_init_mbus_fmt()
|