Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ras.c1769 kfree(bps); in amdgpu_ras_sysfs_badpages_read()
2727 if (!bps) { in amdgpu_ras_realloc_eh_data_space()
2732 memcpy(bps, data->bps, in amdgpu_ras_realloc_eh_data_space()
2737 data->bps = bps; in amdgpu_ras_realloc_eh_data_space()
2827 memcpy(&data->bps[data->count], &(bps[j]), in __amdgpu_ras_restore_bad_pages()
2971 if ((bps[i].address == bps[i + 1].address) && in amdgpu_ras_add_bad_pages()
2972 (bps[i].mem_channel == bps[i + 1].mem_channel)) { in amdgpu_ras_add_bad_pages()
3086 if (!bps) in amdgpu_ras_load_bad_pages()
3100 if ((bps[i].address == bps[i + 1].address) && in amdgpu_ras_load_bad_pages()
3101 (bps[i].mem_channel == bps[i + 1].mem_channel)) { in amdgpu_ras_load_bad_pages()
[all …]
A Damdgpu_virt.c280 void *bps = NULL; in amdgpu_virt_init_ras_err_handler_data() local
287 bps = kmalloc_array(align_space, sizeof(*(*data)->bps), GFP_KERNEL); in amdgpu_virt_init_ras_err_handler_data()
288 if (!bps) in amdgpu_virt_init_ras_err_handler_data()
295 (*data)->bps = bps; in amdgpu_virt_init_ras_err_handler_data()
305 kfree(bps); in amdgpu_virt_init_ras_err_handler_data()
344 kfree(data->bps); in amdgpu_virt_release_ras_err_handler_data()
351 struct eeprom_table_record *bps, int pages) in amdgpu_virt_ras_add_bps() argument
359 memcpy(&data->bps[data->count], bps, pages * sizeof(*data->bps)); in amdgpu_virt_ras_add_bps()
377 bp = data->bps[i].retired_page; in amdgpu_virt_ras_reserve_bps()
412 if (retired_page == data->bps[i].retired_page) in amdgpu_virt_ras_check_bad_page()
A Damdgpu_ras.h608 struct eeprom_table_record *bps; member
757 struct eeprom_table_record *bps, int pages, bool from_rom);
/drivers/usb/serial/
A 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
218 dev_dbg(&port->dev, "%s - setting bps to %d\n", __func__, bps); in ark3116_set_termios()
220 switch (bps) { in ark3116_set_termios()
225 if ((bps < 75) || (bps > 3000000)) in ark3116_set_termios()
226 bps = 9600; in ark3116_set_termios()
227 quot = calc_divisor(bps); in ark3116_set_termios()
231 quot = calc_divisor(bps); in ark3116_set_termios()
235 quot = calc_divisor(bps); in ark3116_set_termios()
[all …]
A Dgeneric.c270 unsigned int bps; in usb_serial_generic_wait_until_sent() local
274 bps = tty_get_baud_rate(tty); in usb_serial_generic_wait_until_sent()
275 if (!bps) in usb_serial_generic_wait_until_sent()
276 bps = 9600; /* B0 */ in usb_serial_generic_wait_until_sent()
281 period = max_t(unsigned long, (10 * HZ / bps), 1); in usb_serial_generic_wait_until_sent()
/drivers/soundwire/
A Dgeneric_bandwidth_allocation.c40 unsigned int rate, bps, ch = 0; in sdw_compute_slave_ports() local
48 bps = m_rt->stream->params.bps; in sdw_compute_slave_ports()
67 p_rt->num, bps, in sdw_compute_slave_ports()
71 port_bo += bps * ch; in sdw_compute_slave_ports()
141 unsigned int rate, bps, ch; in sdw_compute_master_ports() local
144 bps = m_rt->stream->params.bps; in sdw_compute_master_ports()
165 p_rt->num, bps, in sdw_compute_master_ports()
173 (*port_bo) += bps * ch; in sdw_compute_master_ports()
181 (*port_bo) += bps * ch; in sdw_compute_master_ports()
230 unsigned int rate, bps, ch; in sdw_compute_group_params() local
[all …]
A Dbus.h211 int port_num, int bps, in sdw_fill_port_params() argument
215 params->bps = bps; in sdw_fill_port_params()
A Dstream.c190 ret = sdw_write_no_pm(s_rt->slave, addr2, (p_params->bps - 1)); in sdw_program_slave_port_params()
1356 if (stream->params.bps && in sdw_config_stream()
1357 stream->params.bps != stream_config->bps) { in sdw_config_stream()
1364 stream->params.bps = stream_config->bps; in sdw_config_stream()
1478 m_rt->ch_count * m_rt->stream->params.bps; in _sdw_prepare_stream()
1772 m_rt->stream->params.bps; in _sdw_deprepare_stream()
1779 bandwidth = m_rt->stream->params.rate * m_rt->ch_count * m_rt->stream->params.bps; in _sdw_deprepare_stream()
A Damd_manager.c445 unsigned int rate, bps; in amd_sdw_compute_params() local
455 bps = m_rt->stream->params.bps; in amd_sdw_compute_params()
467 p_rt->num, bps, in amd_sdw_compute_params()
512 u32p_replace_bits(&dpn_frame_fmt, p_params->bps - 1, AMD_DPN_FRAME_FMT_WORD_LEN); in amd_sdw_port_params()
718 sconfig.bps = snd_pcm_format_width(params_format(params)); in amd_sdw_hw_params()
A Dintel_ace2x.c33 sconfig.bps = 32; /* this is required for BPT/BRA */ in sdw_slave_bpt_stream_add()
113 sconfig.bps = 32; /* this is required for BPT/BRA */ in intel_ace2x_bpt_open_stream()
673 sconfig.bps = snd_pcm_format_width(params_format(params)); in intel_hw_params()
/drivers/acpi/
A Dnhlt.c141 u16 ch, u32 rate, u16 vbps, u16 bps) in acpi_nhlt_endpoint_find_fmtcfg() argument
151 wav->bits_per_sample == bps && in acpi_nhlt_endpoint_find_fmtcfg()
182 u16 ch, u32 rate, u16 vbps, u16 bps) in acpi_nhlt_tb_find_fmtcfg() argument
191 fmt = acpi_nhlt_endpoint_find_fmtcfg(ep, ch, rate, vbps, bps); in acpi_nhlt_tb_find_fmtcfg()
220 u16 ch, u32 rate, u16 vbps, u16 bps) in acpi_nhlt_find_fmtcfg() argument
224 ch, rate, vbps, bps); in acpi_nhlt_find_fmtcfg()
/drivers/tty/vt/
A Dselection.c409 const char *bps = bp ? bracketed_paste_start : NULL; in paste_selection() local
437 if (bps) { in paste_selection()
438 bps += tty_ldisc_receive_buf(ld, bps, NULL, strlen(bps)); in paste_selection()
439 if (*bps != '\0') in paste_selection()
441 bps = NULL; in paste_selection()
/drivers/tty/serial/
A Dzs.h53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
A Dip22zilog.h32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
A Dsunzilog.h24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
A Dpmac_zilog.h108 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
A Dsh-sci.c2328 static int sci_sck_calc(struct sci_port *s, unsigned int bps, in sci_sck_calc() argument
2339 err = DIV_ROUND_CLOSEST(freq, sr) - bps; in sci_sck_calc()
2350 dev_dbg(s->port.dev, "SCK: %u%+d bps using SR %u\n", bps, min_err, in sci_sck_calc()
2355 static int sci_brg_calc(struct sci_port *s, unsigned int bps, in sci_brg_calc() argument
2366 dl = DIV_ROUND_CLOSEST(freq, sr * bps); in sci_brg_calc()
2369 err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps; in sci_brg_calc()
2381 dev_dbg(s->port.dev, "BRG: %u%+d bps using DL %u SR %u\n", bps, in sci_brg_calc()
2387 static int sci_scbrr_calc(struct sci_port *s, unsigned int bps, in sci_scbrr_calc() argument
2427 if (bps > UINT_MAX / prediv) in sci_scbrr_calc()
2430 scrate = prediv * bps; in sci_scbrr_calc()
[all …]
/drivers/slimbus/
A Dstream.c223 rt->bps = cfg->bps; in slim_stream_prepare()
289 wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; in slim_define_channel_content()
322 wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS; in slim_define_channel()
324 wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS + 1; in slim_define_channel()
A Dslimbus.h339 unsigned int bps; member
/drivers/net/hamradio/
A 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()
991 bc->cfg.bps = simple_strtoul(cp+4, NULL, 0); in baycom_setmode()
992 if (bc->cfg.bps < 1000) in baycom_setmode()
993 bc->cfg.bps = 1000; in baycom_setmode()
994 if (bc->cfg.bps > 1500000) in baycom_setmode()
995 bc->cfg.bps = 1500000; in baycom_setmode()
1083 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_siocdevprivate()
1207 bc->cfg.bps = 9600; in baycom_epp_dev_setup()
/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835-vchiq.c275 unsigned int bps) in bcm2835_audio_set_params() argument
281 .config.bps = bps, in bcm2835_audio_set_params()
A Dvc_vchi_audioserv_defs.h37 u32 bps; member
A Dbcm2835.h101 unsigned int bps);
/drivers/tty/
A Dtty_port.c577 unsigned int bps = tty_get_baud_rate(tty); in tty_port_drain_delay() local
580 if (bps > 1200) { in tty_port_drain_delay()
581 timeout = (HZ * 10 * port->drain_delay) / bps; in tty_port_drain_delay()
/drivers/net/ethernet/netronome/nfp/flower/
A Dqos_conf.c650 meter_entry->bps = true; in nfp_flower_setup_meter_entry()
654 meter_entry->bps = false; in nfp_flower_setup_meter_entry()
775 pps = !meter_entry->bps; in nfp_act_remove_actions()

Completed in 825 milliseconds

12