Home
last modified time | relevance | path

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

1234

/Linux-v5.15/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()
/Linux-v5.15/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()
/Linux-v5.15/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()
1681 struct ras_badpage **bps, unsigned int *count) in amdgpu_ras_badpages_read() argument
1688 if (!con || !con->eh_data || !bps || !count) in amdgpu_ras_badpages_read()
1694 *bps = NULL; in amdgpu_ras_badpages_read()
[all …]
Damdgpu_virt.c281 void *bps = NULL; in amdgpu_virt_init_ras_err_handler_data() local
288 bps = kmalloc_array(align_space, sizeof((*data)->bps), GFP_KERNEL); in amdgpu_virt_init_ras_err_handler_data()
291 if (!bps || !bps_bo) { in amdgpu_virt_init_ras_err_handler_data()
292 kfree(bps); in amdgpu_virt_init_ras_err_handler_data()
298 (*data)->bps = bps; in amdgpu_virt_init_ras_err_handler_data()
338 kfree(data->bps); in amdgpu_virt_release_ras_err_handler_data()
345 struct eeprom_table_record *bps, int pages) in amdgpu_virt_ras_add_bps() argument
353 memcpy(&data->bps[data->count], bps, pages * sizeof(*data->bps)); in amdgpu_virt_ras_add_bps()
369 bp = data->bps[i].retired_page; in amdgpu_virt_ras_reserve_bps()
399 if (retired_page == data->bps[i].retired_page) in amdgpu_virt_ras_check_bad_page()
/Linux-v5.15/net/netfilter/
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-v5.15/sound/soc/intel/skylake/
Dskl-nhlt.c18 u8 no_ch, u32 rate, u16 bps, u8 linktype) in skl_get_specific_cfg() argument
31 if (wfmt->channels == no_ch && wfmt->bits_per_sample == bps) { in skl_get_specific_cfg()
52 u8 s_fmt, u8 num_channels, u32 s_rate, u8 dirn, u16 bps) in dump_config() argument
57 dev_dbg(dev, "bits_per_sample=%d\n", bps); in dump_config()
92 u16 bps = (s_fmt == 16) ? 16 : 32; in skl_get_ep_blob() local
95 dump_config(dev, instance, link_type, s_fmt, num_ch, s_rate, dirn, bps); in skl_get_ep_blob()
107 s_rate, bps, link_type); in skl_get_ep_blob()
206 u16 channels, bps; in skl_get_ssp_clks() local
222 bps = wav_fmt->fmt.bits_per_sample; in skl_get_ssp_clks()
240 (bps == wav_fmt->fmt.bits_per_sample)) in skl_get_ssp_clks()
[all …]
/Linux-v5.15/sound/soc/sof/intel/
Dhda-compress.c68 int bps, ret; in hda_probe_compr_set_params() local
72 bps = snd_pcm_format_physical_width(SNDRV_PCM_FORMAT_S32_LE); in hda_probe_compr_set_params()
73 if (bps < 0) in hda_probe_compr_set_params()
74 return bps; in hda_probe_compr_set_params()
75 bits = hda_dsp_get_bits(sdev, bps); in hda_probe_compr_set_params()
/Linux-v5.15/block/
Dblk-throttle.c144 uint64_t bps[2][LIMIT_CNT]; member
309 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit()
319 if (td->limit_index == LIMIT_MAX && tg->bps[rw][LIMIT_LOW] && in tg_bps_limit()
320 tg->bps[rw][LIMIT_LOW] != tg->bps[rw][LIMIT_MAX]) { in tg_bps_limit()
323 adjusted = throtl_adjusted_limit(tg->bps[rw][LIMIT_LOW], td); in tg_bps_limit()
324 ret = min(tg->bps[rw][LIMIT_MAX], adjusted); in tg_bps_limit()
343 tg->bps[rw][td->limit_index]) in tg_iops_limit()
515 tg->bps[READ][LIMIT_MAX] = U64_MAX; in throtl_pd_alloc()
516 tg->bps[WRITE][LIMIT_MAX] = U64_MAX; in throtl_pd_alloc()
604 if (tg->bps[READ][LIMIT_LOW] || tg->bps[WRITE][LIMIT_LOW] || in blk_throtl_update_limit_valid()
[all …]
/Linux-v5.15/sound/hda/
Dhdac_device.c851 unsigned int streams, bps; in snd_hdac_query_supported_pcm() local
857 bps = 0; in snd_hdac_query_supported_pcm()
861 bps = 8; in snd_hdac_query_supported_pcm()
865 bps = 16; in snd_hdac_query_supported_pcm()
873 bps = 24; in snd_hdac_query_supported_pcm()
875 bps = 20; in snd_hdac_query_supported_pcm()
880 bps = 32; in snd_hdac_query_supported_pcm()
882 bps = 24; in snd_hdac_query_supported_pcm()
884 bps = 20; in snd_hdac_query_supported_pcm()
890 if (!bps) in snd_hdac_query_supported_pcm()
[all …]
/Linux-v5.15/net/core/
Dgen_stats.c262 est.bps = min_t(u64, UINT_MAX, sample.bps); in gnet_stats_copy_rate_est()
267 d->tc_stats.bps = est.bps; in gnet_stats_copy_rate_est()
274 if (res < 0 || est.bps == sample.bps) in gnet_stats_copy_rate_est()
/Linux-v5.15/include/uapi/linux/
Dgen_stats.h37 __u32 bps; member
47 __u64 bps; member
/Linux-v5.15/drivers/tty/serial/
Dzs.h53 #define ZS_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
Dip22zilog.h32 #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
/Linux-v5.15/net/mac80211/
Dairtime.c18 #define MCS_N_KSYMS(bps) DIV_ROUND_UP(MCS_NBITS << 10, (bps)) argument
30 #define MCS_DURATION(streams, sgi, bps) \ argument
31 ((u32)MCS_SYMBOL_TIME(sgi, MCS_N_KSYMS((streams) * (bps))))
33 #define MCS_DURATION_S(shift, streams, sgi, bps) \ argument
34 ((u16)((MCS_DURATION(streams, sgi, bps) >> shift)))
51 #define HE_DURATION(streams, gi, bps) \ argument
52 ((u32)HE_SYMBOL_TIME(gi, MCS_N_KSYMS((streams) * (bps))))
54 #define HE_DURATION_S(shift, streams, gi, bps) \ argument
55 (HE_DURATION(streams, gi, bps) >> shift)
/Linux-v5.15/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()
/Linux-v5.15/drivers/net/wan/
Dz85230.h19 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
/Linux-v5.15/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()
/Linux-v5.15/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()
/Linux-v5.15/arch/powerpc/mm/ptdump/
Dhashpagetable.c184 unsigned long rpn, int bps, int aps, unsigned long lp) in dump_hpte_info() argument
198 calculate_pagesize(st, bps, "base"); in dump_hpte_info()
276 static void decode_r(int bps, unsigned long r, unsigned long *rpn, int *aps, in decode_r() argument
296 entry = mmu_psize_defs[bps]; in decode_r()
/Linux-v5.15/sound/soc/atmel/
Dmchp-spdiftx.c73 #define SPDIFTX_MR_VBPS(bps) (((bps) << 8) & SPDIFTX_MR_VBPS_MASK) argument
360 unsigned int bps = params_physical_width(params) / 8; in mchp_spdiftx_hw_params() local
388 if (bps > 2) in mchp_spdiftx_hw_params()
444 mr |= SPDIFTX_MR_BPS(bps); in mchp_spdiftx_hw_params()
/Linux-v5.15/Documentation/hwmon/
Dbel-pfe.rst12 … Datasheet: https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-pfe1100-12-054xa.pdf
20 Datasheet: https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-pfe3000-series.pdf

1234