| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | sndio.c | 38 obps = par->bps; in encode() 40 oshift = 32 - (par->msb ? par->bps * 8 : par->bits); in encode() 45 odata += par->bps - 1; in encode() 47 osnext = 2 * par->bps; in encode() 69 ibps = par->bps; in decode() 71 ishift = 32 - (par->msb ? par->bps * 8 : par->bits); in decode() 73 idata += par->bps - 1; in decode() 75 isnext = 2 * par->bps; in decode() 132 reqpar.bps = (reqpar.bits + 7) / 8; in startany() 146 ft->encoding.bits_per_sample = p->par.bps * 8; in startany() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soundwire/ |
| H A 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, no_ch; in sdw_compute_master_ports() local 101 bps = m_rt->stream->params.bps; in sdw_compute_master_ports() 121 p_rt->num, bps, in sdw_compute_master_ports() 129 port_bo += bps * ch; in sdw_compute_master_ports() 137 port_bo += bps * ch; in sdw_compute_master_ports() 160 m_rt->stream->params.bps; in _sdw_compute_port_params() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/serial/ |
| H A D | serial_sh.h | 744 #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(16*bps)-1) argument 753 #define SCBRR_VALUE(bps, clk) (((clk*2)+16*bps)/(32*bps)-1) argument 756 static inline int scbrr_calc(struct uart_port *port, int bps, int clk) in scbrr_calc() argument 759 return (clk+16*bps)/(32*bps)-1; in scbrr_calc() 761 return ((clk*2)+16*bps)/(16*bps)-1; in scbrr_calc() 763 #define SCBRR_VALUE(bps, clk) scbrr_calc(port, bps, clk) argument 765 #define SCBRR_VALUE(bps, clk) (((clk*1000/32)/bps)-1) argument 768 #define DL_VALUE(bps, clk) (clk / bps / 16) /* External Clock */ argument 770 #define SCBRR_VALUE(bps, clk) (clk / bps / 16 - 1) /* Internal Clock */ argument 772 #define SCBRR_VALUE(bps, clk) (clk / bps / 32 - 1) /* Internal Clock */ argument [all …]
|
| H A D | serial_sti_asc.c | 48 #define BAUDRATE_VAL_M0(bps) (PCLK / (16 * (bps))) argument 49 #define BAUDRATE_VAL_M1(bps) ((bps * (1 << 14)) + (1<<13)) / (PCLK/(1 << 6)) argument
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/libtiff/tiff/ |
| H A D | 0002-tiffcrop-fix-issue-380-and-382-heap-buffer-overflow-.patch | 79 - img_rowsize = ((img_width * bps + 7) / 8) * spp; 80 - full_bytes = (sect_width * spp * bps) / 8; /* number of COMPLETE bytes per row in section */ 81 - trailing_bits = (sect_width * bps) % 8; 87 + img_rowsize = (((img_width * spp * bps) + 7) / 8); /* row size in full bytes of source imag… 88 + full_bytes = (sect_width * spp * bps) / 8; /* number of COMPLETE bytes per row in s… 89 + trailing_bits = (sect_width * spp * bps) % 8; /* trailing bits within the last byte of… 95 if ((bps % 8) == 0) 97 - col_offset = first_col * spp * bps / 8; 98 + col_offset = (first_col * spp * bps) / 8; 101 - /* row_offset = row * img_width * spp * bps / 8; */ [all …]
|
| H A D | 0006-fix-heap-buffer-overflow-in-tiffcp-278.patch | 22 + uint16_t bps = 0, bytes_per_sample; 29 + (void) TIFFGetField(out, TIFFTAG_BITSPERSAMPLE, &bps); 30 + if( bps == 0 ) 36 + if( (bps % 8) != 0 ) 42 + bytes_per_sample = bps/8;
|
| H A D | 0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch | 138 - hmargin = (uint32_t)(page->hmargin * scale * page->hres * ((image->bps + 7) / 8)); 139 - vmargin = (uint32_t)(page->vmargin * scale * page->vres * ((image->bps + 7) / 8)); 140 + hmargin = _TIFFClampDoubleToUInt32(page->hmargin * scale * page->hres * ((image->bps + 7) / … 141 + vmargin = _TIFFClampDoubleToUInt32(page->vmargin * scale * page->vres * ((image->bps + 7) / … 145 - hmargin = (uint32_t)(page->hmargin * scale * ((image->bps + 7) / 8)); 146 - vmargin = (uint32_t)(page->vmargin * scale * ((image->bps + 7) / 8)); 147 + hmargin = _TIFFClampDoubleToUInt32(page->hmargin * scale * ((image->bps + 7) / 8)); 148 + vmargin = _TIFFClampDoubleToUInt32(page->vmargin * scale * ((image->bps + 7) / 8));
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ras.c | 944 struct ras_badpage **bps, unsigned int *count); 1001 struct ras_badpage *bps = NULL; in amdgpu_ras_sysfs_badpages_read() local 1006 if (amdgpu_ras_badpages_read(adev, &bps, &bps_count)) in amdgpu_ras_sysfs_badpages_read() 1012 bps[start].bp, in amdgpu_ras_sysfs_badpages_read() 1013 bps[start].size, in amdgpu_ras_sysfs_badpages_read() 1014 amdgpu_ras_badpage_flags_str(bps[start].flags)); in amdgpu_ras_sysfs_badpages_read() 1016 kfree(bps); in amdgpu_ras_sysfs_badpages_read() 1521 struct ras_badpage **bps, unsigned int *count) in amdgpu_ras_badpages_read() argument 1528 if (!con || !con->eh_data || !bps || !count) in amdgpu_ras_badpages_read() 1534 *bps = NULL; in amdgpu_ras_badpages_read() [all …]
|
| H A D | amdgpu_virt.c | 276 void *bps = NULL; in amdgpu_virt_init_ras_err_handler_data() local 283 bps = kmalloc(align_space * sizeof((*data)->bps), GFP_KERNEL); in amdgpu_virt_init_ras_err_handler_data() 286 if (!bps || !bps_bo) { in amdgpu_virt_init_ras_err_handler_data() 287 kfree(bps); in amdgpu_virt_init_ras_err_handler_data() 293 (*data)->bps = bps; in amdgpu_virt_init_ras_err_handler_data() 333 kfree(data->bps); in amdgpu_virt_release_ras_err_handler_data() 340 struct eeprom_table_record *bps, int pages) in amdgpu_virt_ras_add_bps() argument 348 memcpy(&data->bps[data->count], bps, pages * sizeof(*data->bps)); in amdgpu_virt_ras_add_bps() 364 bp = data->bps[i].retired_page; in amdgpu_virt_ras_reserve_bps() 394 if (retired_page == data->bps[i].retired_page) in amdgpu_virt_ras_check_bad_page()
|
| /OK3568_Linux_fs/kernel/drivers/usb/serial/ |
| H A 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() 200 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() local 234 dev_dbg(&port->dev, "%s - setting bps to %d\n", __func__, bps); in ark3116_set_termios() 236 switch (bps) { in ark3116_set_termios() 241 if ((bps < 75) || (bps > 3000000)) in ark3116_set_termios() 242 bps = 9600; in ark3116_set_termios() 243 quot = calc_divisor(bps); in ark3116_set_termios() 247 quot = calc_divisor(bps); in ark3116_set_termios() 251 quot = calc_divisor(bps); in ark3116_set_termios() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/skylake/ |
| H A D | skl-nhlt.c | 18 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() 205 u16 channels, bps; in skl_get_ssp_clks() local 224 bps = wav_fmt->fmt.bits_per_sample; in skl_get_ssp_clks() 243 (bps == wav_fmt->fmt.bits_per_sample)) { in skl_get_ssp_clks() [all …]
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | xt_rateest.c | 25 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()
|
| /OK3568_Linux_fs/kernel/sound/soc/sof/intel/ |
| H A D | hda-compress.c | 68 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()
|
| /OK3568_Linux_fs/kernel/block/ |
| H A D | blk-throttle.c | 144 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() 603 if (tg->bps[READ][LIMIT_LOW] || tg->bps[WRITE][LIMIT_LOW] || in blk_throtl_update_limit_valid() [all …]
|
| /OK3568_Linux_fs/kernel/sound/hda/ |
| H A D | hdac_device.c | 852 unsigned int streams, bps; in snd_hdac_query_supported_pcm() local 858 bps = 0; in snd_hdac_query_supported_pcm() 862 bps = 8; in snd_hdac_query_supported_pcm() 866 bps = 16; in snd_hdac_query_supported_pcm() 874 bps = 24; in snd_hdac_query_supported_pcm() 876 bps = 20; in snd_hdac_query_supported_pcm() 881 bps = 32; in snd_hdac_query_supported_pcm() 883 bps = 24; in snd_hdac_query_supported_pcm() 885 bps = 20; in snd_hdac_query_supported_pcm() 891 if (!bps) in snd_hdac_query_supported_pcm() [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/ |
| H A D | mpp_encoder.cpp | 34 if (!enc_params.bps) in InitParams() 35 …enc_params.bps = enc_params.width * enc_params.height / 8 * (enc_params.fps_out_num / enc_params.f… in InitParams() 112 if (!enc_params.bps) in SetupEncCfg() 113 …enc_params.bps = enc_params.width * enc_params.height / 8 * (enc_params.fps_out_num / enc_params.f… in SetupEncCfg() 138 mpp_enc_cfg_set_s32(cfg, "rc:bps_target", enc_params.bps); in SetupEncCfg() 145 …cfg_set_s32(cfg, "rc:bps_max", enc_params.bps_max ? enc_params.bps_max : enc_params.bps * 17 / 16); in SetupEncCfg() 146 …cfg_set_s32(cfg, "rc:bps_min", enc_params.bps_min ? enc_params.bps_min : enc_params.bps * 15 / 16); in SetupEncCfg() 151 …cfg_set_s32(cfg, "rc:bps_max", enc_params.bps_max ? enc_params.bps_max : enc_params.bps * 17 / 16); in SetupEncCfg() 152 …_cfg_set_s32(cfg, "rc:bps_min", enc_params.bps_min ? enc_params.bps_min : enc_params.bps * 1 / 16); in SetupEncCfg() 156 …cfg_set_s32(cfg, "rc:bps_max", enc_params.bps_max ? enc_params.bps_max : enc_params.bps * 17 / 16); in SetupEncCfg() [all …]
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | gen_stats.c | 262 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()
|
| /OK3568_Linux_fs/external/gstreamer-rockchip/gst/rockchipmpp/ |
| H A D | gstmppenc.c | 243 guint bps = g_value_get_uint (value); in gst_mpp_enc_set_property() local 244 if (self->bps == bps) in gst_mpp_enc_set_property() 247 self->bps = bps; in gst_mpp_enc_set_property() 333 g_value_set_uint (value, self->bps); in gst_mpp_enc_get_property() 385 if (!self->bps) in gst_mpp_enc_apply_properties() 386 self->bps = in gst_mpp_enc_apply_properties() 389 if (!self->bps || self->rc_mode == MPP_ENC_RC_MODE_FIXQP) { in gst_mpp_enc_apply_properties() 393 mpp_enc_cfg_set_s32 (self->mpp_cfg, "rc:bps_target", self->bps); in gst_mpp_enc_apply_properties() 395 self->bps_max ? : self->bps * 17 / 16); in gst_mpp_enc_apply_properties() 397 self->bps_min ? : self->bps * 15 / 16); in gst_mpp_enc_apply_properties() [all …]
|
| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H A D | airtime.c | 18 #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)
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | zs.h | 53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
| H A D | sunzilog.h | 24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
| H A D | ip22zilog.h | 32 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) argument
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | gen_stats.h | 37 __u32 bps; member 47 __u64 bps; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | gen_stats.h | 40 __u32 bps; member 50 __u64 bps; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | gen_stats.h | 40 __u32 bps; member 50 __u64 bps; member
|