Home
last modified time | relevance | path

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

1234

/linux/drivers/gpu/drm/amd/ras/rascore/
H A Dras_umc.c323 if ((data->bps[i].retired_row_pfn == record->retired_row_pfn) && in ras_umc_check_retired_record()
324 (data->bps[i].cur_nps_retired_row_pfn == record->cur_nps_retired_row_pfn)) in ras_umc_check_retired_record()
338 void *bps = kzalloc(align_space * sizeof(*data->bps), GFP_KERNEL); in ras_umc_realloc_err_data_space() local
340 if (!bps) in ras_umc_realloc_err_data_space()
343 if (data->bps) { in ras_umc_realloc_err_data_space()
344 memcpy(bps, data->bps, in ras_umc_realloc_err_data_space()
345 data->count * sizeof(*data->bps)); in ras_umc_realloc_err_data_space()
346 kfree(data->bps); in ras_umc_realloc_err_data_space()
349 data->bps = bps; in ras_umc_realloc_err_data_space()
355 struct eeprom_umc_record *bps) in ras_umc_update_eeprom_rom_data() argument
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ras.c1841 struct ras_badpage *bps, uint32_t count, uint32_t start);
1843 struct ras_badpage *bps, uint32_t count, uint32_t start);
1900 struct ras_badpage *bps = NULL; in amdgpu_ras_sysfs_badpages_read() local
1907 bps = kmalloc_objs(*bps, bps_count); in amdgpu_ras_sysfs_badpages_read()
1908 if (!bps) in amdgpu_ras_sysfs_badpages_read()
1911 memset(bps, 0, sizeof(*bps) * bps_count); in amdgpu_ras_sysfs_badpages_read()
1914 bps_count = amdgpu_uniras_badpages_read(adev, bps, bps_count, start); in amdgpu_ras_sysfs_badpages_read()
1916 bps_count = amdgpu_ras_badpages_read(adev, bps, bps_count, start); in amdgpu_ras_sysfs_badpages_read()
1919 kfree(bps); in amdgpu_ras_sysfs_badpages_read()
1924 address = ((uint64_t)bps[i].bp) << AMDGPU_GPU_PAGE_SHIFT; in amdgpu_ras_sysfs_badpages_read()
[all …]
/linux/drivers/usb/serial/
H 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 …]
H 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()
/linux/drivers/soundwire/
H 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()
144 unsigned int rate, bps, ch; in sdw_compute_master_ports() local
147 bps = m_rt->stream->params.bps; in sdw_compute_master_ports()
168 p_rt->num, bps, in sdw_compute_master_ports()
176 (*port_bo) += bps * ch; in sdw_compute_master_ports()
184 (*port_bo) += bps * ch; in sdw_compute_master_ports()
233 unsigned int rate, bps, ch; in sdw_compute_group_params() local
[all …]
H A Dbus.h221 int port_num, int bps, in sdw_fill_port_params() argument
225 params->bps = bps; in sdw_fill_port_params()
/linux/include/acpi/
H A Dnhlt.h111 u16 ch, u32 rate, u16 vbps, u16 bps);
115 u16 ch, u32 rate, u16 vpbs, u16 bps);
118 u16 ch, u32 rate, u16 vpbs, u16 bps);
148 u16 ch, u32 rate, u16 vbps, u16 bps) in acpi_nhlt_endpoint_find_fmtcfg() argument
156 u16 ch, u32 rate, u16 vpbs, u16 bps) in acpi_nhlt_tb_find_fmtcfg() argument
174 u16 ch, u32 rate, u16 vpbs, u16 bps) in acpi_nhlt_find_fmtcfg() argument
/linux/net/netfilter/
H A Dxt_rateest.c25 bps1 = info->bps1 >= sample.bps ? info->bps1 - sample.bps : 0; in xt_rateest_mt()
28 bps1 = sample.bps; in xt_rateest_mt()
39 bps2 = info->bps2 >= sample.bps ? info->bps2 - sample.bps : 0; in xt_rateest_mt()
42 bps2 = sample.bps; in xt_rateest_mt()
/linux/sound/soc/intel/avs/
H A Dprobes.c17 static int avs_dsp_init_probe(struct avs_dev *adev, struct snd_compr_params *params, int bps, in avs_dsp_init_probe() argument
37 cfg.base.audio_fmt.bit_depth = bps; in avs_dsp_init_probe()
39 cfg.base.audio_fmt.valid_bit_depth = bps; in avs_dsp_init_probe()
136 int bps, ret; in avs_probe_compr_set_params() local
147 bps = snd_pcm_format_physical_width(params->codec.format); in avs_probe_compr_set_params()
148 if (bps < 0) in avs_probe_compr_set_params()
149 return bps; in avs_probe_compr_set_params()
150 format_val = snd_hdac_stream_format(params->codec.ch_out, bps, params->codec.sample_rate); in avs_probe_compr_set_params()
171 ret = avs_dsp_init_probe(adev, params, bps, node_id, rtd->dma_bytes); in avs_probe_compr_set_params()
/linux/drivers/acpi/
H 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()
/linux/sound/soc/sof/intel/
H A Dhda-probes.c79 int bps, ret; in hda_probes_compr_set_params() local
83 bps = snd_pcm_format_physical_width(SNDRV_PCM_FORMAT_S32_LE); in hda_probes_compr_set_params()
84 if (bps < 0) in hda_probes_compr_set_params()
85 return bps; in hda_probes_compr_set_params()
86 bits = hda_dsp_get_bits(sdev, bps); in hda_probes_compr_set_params()
/linux/sound/hda/core/
H A Dintel-nhlt.c241 u32 rate, u8 vbps, u8 bps, bool ignore_vbps) in nhlt_get_specific_cfg() argument
263 (ignore_vbps || vbps == _vbps) && bps == _bps) in nhlt_get_specific_cfg()
291 u32 bus_id, u8 link_type, u8 vbps, u8 bps, in intel_nhlt_get_endpoint_blob() argument
306 if (link_type == NHLT_LINK_DMIC && bps == 32 && (vbps == 24 || vbps == 32)) { in intel_nhlt_get_endpoint_blob()
321 num_ch, bps, rate); in intel_nhlt_get_endpoint_blob()
324 dev_dbg(dev, " ch=%d fmt=%d/%d rate=%d\n", num_ch, vbps, bps, rate); in intel_nhlt_get_endpoint_blob()
335 vbps, bps, ignore_vbps); in intel_nhlt_get_endpoint_blob()
H A Ddevice.c914 unsigned int streams, bps; in snd_hdac_query_supported_pcm() local
922 bps = 0; in snd_hdac_query_supported_pcm()
926 bps = 8; in snd_hdac_query_supported_pcm()
930 bps = 16; in snd_hdac_query_supported_pcm()
935 bps = 20; in snd_hdac_query_supported_pcm()
940 bps = 24; in snd_hdac_query_supported_pcm()
948 bps = 32; in snd_hdac_query_supported_pcm()
955 if (!bps) in snd_hdac_query_supported_pcm()
956 bps = 32; in snd_hdac_query_supported_pcm()
965 bps = 8; in snd_hdac_query_supported_pcm()
[all …]
/linux/drivers/tty/vt/
H A Dselection.c403 const char *bps = bp ? bracketed_paste_start : NULL; in paste_selection() local
430 if (bps) { in paste_selection()
431 bps += tty_ldisc_receive_buf(ld, bps, NULL, strlen(bps)); in paste_selection()
432 if (*bps != '\0') in paste_selection()
434 bps = NULL; in paste_selection()
/linux/net/mac80211/
H A Dairtime.c19 #define MCS_N_KSYMS(bps) DIV_ROUND_UP(MCS_NBITS << 10, (bps)) argument
31 #define MCS_DURATION(streams, sgi, bps) \ argument
32 ((u32)MCS_SYMBOL_TIME(sgi, MCS_N_KSYMS((streams) * (bps))))
34 #define MCS_DURATION_S(shift, streams, sgi, bps) \ argument
35 ((u16)((MCS_DURATION(streams, sgi, bps) >> shift)))
52 #define HE_DURATION(streams, gi, bps) \ argument
53 ((u32)HE_SYMBOL_TIME(gi, MCS_N_KSYMS((streams) * (bps))))
55 #define HE_DURATION_S(shift, streams, gi, bps) \ argument
56 (HE_DURATION(streams, gi, bps) >> shift)
63 #define EHT_DURATION(streams, gi, bps) \ argument
[all …]
/linux/net/core/
H A Dgen_stats.c317 est.bps = min_t(u64, UINT_MAX, sample.bps); in gnet_stats_copy_rate_est()
322 d->tc_stats.bps = est.bps; in gnet_stats_copy_rate_est()
329 if (res < 0 || est.bps == sample.bps) in gnet_stats_copy_rate_est()
/linux/drivers/tty/serial/
H A Dzs.h53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
H A Dsunzilog.h24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
H A Dip22zilog.h32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
H A Dpmac_zilog.h108 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
/linux/include/uapi/linux/
H A Dgen_stats.h37 __u32 bps; member
47 __u64 bps; member
/linux/Documentation/misc-devices/
H A Doxsemi-tornado.rst16 determine the actual baud rate used. Baud rates from 15625000bps down
17 to 0.933bps can be obtained this way.
37 By using these parameters rates from 15625000bps down to 1bps can be
90 below 300bps become unavailable in the regular way, e.g. the rate of
91 200bps requires the baud base to be divided by 78125 and that is beyond
/linux/drivers/slimbus/
H 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()
/linux/block/
H A Dblk-throttle.c91 return tg->bps[rw]; in tg_bps_limit()
285 tg->bps[READ] = U64_MAX; in throtl_pd_alloc()
286 tg->bps[WRITE] = U64_MAX; in throtl_pd_alloc()
1430 .private = offsetof(struct throtl_grp, bps[READ]),
1436 .private = offsetof(struct throtl_grp, bps[WRITE]),
1489 if (tg->bps[READ] == bps_dft && in tg_prfill_limit()
1490 tg->bps[WRITE] == bps_dft && in tg_prfill_limit()
1496 if (tg->bps[READ] == U64_MAX) in tg_prfill_limit()
1499 seq_printf(sf, " rbps=%llu", tg->bps[READ]); in tg_prfill_limit()
1501 if (tg->bps[WRITE] == U64_MAX) in tg_prfill_limit()
[all …]
/linux/drivers/net/hamradio/
H 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()

1234