/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | simple-card.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/sound/simple-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 14 frame-master: 15 description: Indicates dai-link frame master. 18 bitclock-master: 19 description: Indicates dai-link bit clock master 22 frame-inversion: [all …]
|
H A D | audio-graph-port.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/audio-graph-port.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 15 port-base: 16 $ref: /schemas/graph.yaml#/$defs/port-base 18 convert-rate: 19 $ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate 20 convert-channels: [all …]
|
H A D | audio-graph.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/audio-graph.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 14 $ref: /schemas/types.yaml#/definitions/phandle-array 25 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 32 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 33 convert-rate: 34 $ref: /schemas/sound/dai-params.yaml#/$defs/dai-sample-rate [all …]
|
H A D | renesas,rsnd.txt | 1 Renesas R-Car sound 7 Renesas R-Car and RZ/G sound is constructed from below modules 10 SCU : Sampling Rate Converter Unit 11 - SRC : Sampling Rate Converter 12 - CMD 13 - CTU : Channel Transfer Unit 14 - MIX : Mixer 15 - DVC : Digital Volume and Mute Function 25 Multi channel is supported by Multi-SSI, or TDM-SSI. 27 Multi-SSI : 6ch case, you can use stereo x 3 SSI [all …]
|
/openbmc/linux/sound/soc/sh/rcar/ |
H A D | src.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Renesas R-Car SRC support 9 * You can use Synchronous Sampling Rate Convert (if no DVC) 11 * amixer set "SRC Out Rate" on 13 * amixer set "SRC Out Rate" 96000 // convert rate to 96000Hz 14 * amixer set "SRC Out Rate" 22050 // convert rate to 22050Hz 35 struct rsnd_kctrl_cfg_s sen; /* sync convert enable */ 36 struct rsnd_kctrl_cfg_s sync; /* sync convert */ 42 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id) 43 #define rsnd_src_nr(priv) ((priv)->src_nr) [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | main.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 14 driver Copyright(c) 2003 - 2004 Intel Corporation. 31 /* Lightweight function to convert a frequency (in Mhz) to a channel number. */ 40 channel = (freq - 2407) / 5; in b43legacy_freq_to_channel_bg() 51 /* Lightweight function to convert a channel number to a frequency (in Mhz). */ 73 int b43legacy_is_cck_rate(int rate) in b43legacy_is_cck_rate() argument 75 return (rate == B43legacy_CCK_RATE_1MB || in b43legacy_is_cck_rate() 76 rate == B43legacy_CCK_RATE_2MB || in b43legacy_is_cck_rate() 77 rate == B43legacy_CCK_RATE_5MB || in b43legacy_is_cck_rate() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | rs.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2021-2022 Intel Corporation 8 #include "iwl-drv.h" 9 #include "iwl-config.h" 96 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK_V1; in iwl_legacy_rate_to_fw_idx() local 103 if (iwl_fw_rate_idx_to_plcp(idx) == rate) in iwl_legacy_rate_to_fw_idx() 104 return idx - offset; in iwl_legacy_rate_to_fw_idx() 115 /* convert rate */ in iwl_new_rate_from_v1() 142 /* the new rate have an additional bit to in iwl_new_rate_from_v1() 144 * bit for this purpose - as it was done in the old in iwl_new_rate_from_v1() [all …]
|
/openbmc/linux/drivers/clk/hisilicon/ |
H A D | clk-hi6220-stub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/clk-provider.h> 71 regmap_read(stub_clk->dfs_map, ACPU_DFS_CUR_FREQ, &freq); in hi6220_acpu_get_freq() 81 regmap_write(stub_clk->dfs_map, ACPU_DFS_FREQ_REQ, freq); in hi6220_acpu_set_freq() 89 mbox_send_message(stub_clk->mbox, &data); in hi6220_acpu_set_freq() 100 regmap_read(stub_clk->dfs_map, ACPU_DFS_FLAG, &limit_flag); in hi6220_acpu_round_freq() 102 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_LMT, &limit_freq); in hi6220_acpu_round_freq() 105 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq() 119 u32 rate = 0; in hi6220_stub_clk_recalc_rate() local 122 switch (stub_clk->id) { in hi6220_stub_clk_recalc_rate() [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | tty_baudrate.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * Routine which returns the baud rate of the tty 50 * Convert termios baud rate data into a speed. This should be called 53 * ->c_[io]speed directly as they are updated. 62 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 66 return termios->c_ospeed; in tty_termios_baud_rate() 80 * Convert termios baud rate data into a speed. This should be called 83 * ->c_[io]speed directly as they are updated. 90 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 97 return termios->c_ispeed; in tty_termios_input_baud_rate() [all …]
|
/openbmc/linux/include/drm/ |
H A D | drm_audio_component.h | 1 // SPDX-License-Identifier: MIT 14 * struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver 45 * @sync_audio_rate: set n/cts based on the sample rate 48 * sample rate, it will call this function to set n/cts 50 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate); 68 * struct drm_audio_component_audio_ops - Ops implemented by hda driver, called by DRM driver 85 * @pin2port: Check and convert from pin node to port number 87 * Called by HDA driver to check and convert from the pin widget node 94 * Called at binding master component, for HDA codec-specific 101 * Called at unbinding master component, for HDA codec-specific [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 18 * period of 6.4ns. In order to convert the scale counter into 30 * Period * [ 2 ^ ( MaxWidth - PeriodWidth ) ] 41 * value in order to quickly convert it into a nanosecond clock, 47 * +--------------+ +--------------+ 49 * *--------------+ +--------------+ 52 * +--------------+ +--------------+ 54 * *--------------+ +--------------+ 58 * 2^36 * 10^-9 / 60 = 1.14 minutes or 69 seconds [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | voltage.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 #include <linux/platform_data/voltage-omap.h> 32 * struct omap_vfsm_instance - per-voltage manager FSM register/bitfield 47 * struct voltagedomain - omap voltage domain global structure. 55 * @read: read-modify-write a VC/VP register 80 u32 rate; member 109 * struct omap_voltdm_pmic - PMIC specific data required by voltage driver. 110 * @slew_rate: PMIC slew rate (in uv/us) 114 * @cmd_reg_addr: command (on, on-LP, ret, off) configuration register address 115 * @i2c_high_speed: whether VC uses I2C high-speed mode to PMIC [all …]
|
/openbmc/linux/sound/soc/generic/ |
H A D | simple-card-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // simple-card-utils.c 35 if (!strcmp(data->convert_sample_format, in asoc_simple_fixup_sample_fmt() 53 /* sampling rate convert */ in asoc_simple_parse_convert() 54 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in asoc_simple_parse_convert() 55 of_property_read_u32(np, prop, &data->convert_rate); in asoc_simple_parse_convert() 58 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-channels"); in asoc_simple_parse_convert() 59 of_property_read_u32(np, prop, &data->convert_channels); in asoc_simple_parse_convert() 61 /* convert sample format */ in asoc_simple_parse_convert() 62 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-sample-format"); in asoc_simple_parse_convert() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ac100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RTC Driver for X-Powers AC100 5 * Copyright (c) 2016 Chen-Yu Tsai 7 * Chen-Yu Tsai <wens@csie.org> 11 #include <linux/clk-provider.h> 62 * the year 1900. This macro is used to convert this offset to another one 65 * The year range is 1970 - 2069. This range is selected to match Allwinner's 70 #define AC100_YEAR_OFF (AC100_YEAR_MIN - 1900) 80 #define AC100_RTC_32K_NAME "ac100-rtc-32k" 85 "ac100-cko1-rtc", [all …]
|
/openbmc/linux/sound/usb/ |
H A D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 /* convert our full speed USB rate into sampling rate in Hz */ 24 /* convert our high speed USB rate into sampling rate in Hz */ 35 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbbus_read() 36 if (!atomic_read(&chip->shutdown)) in proc_audio_usbbus_read() 37 snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); in proc_audio_usbbus_read() 42 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbid_read() 43 if (!atomic_read(&chip->shutdown)) in proc_audio_usbid_read() 45 USB_ID_VENDOR(chip->usb_id), in proc_audio_usbid_read() 46 USB_ID_PRODUCT(chip->usb_id)); in proc_audio_usbid_read() [all …]
|
/openbmc/linux/sound/soc/intel/avs/boards/ |
H A D | max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation. All rights reserved. 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 31 struct snd_interval *rate, *channels; in avs_max98357a_be_fixup() local 34 rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in avs_max98357a_be_fixup() 38 /* The ADSP will convert the FE rate to 48k, stereo */ in avs_max98357a_be_fixup() 39 rate->min = rate->max = 48000; in avs_max98357a_be_fixup() 40 channels->min = channels->max = 2; in avs_max98357a_be_fixup() 57 return -ENOMEM; in avs_create_dai_link() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | rate.h | 34 /* phy rate in kbps [20Mhz] */ 36 /* phy rate in kbps [40Mhz] */ 38 /* phy rate in kbps [20Mhz] with SGI */ 40 /* phy rate in kbps [40Mhz] with SGI */ 42 /* phy ctl byte 3, code rate, modulation type, # of streams */ 44 /* matching legacy ofdm rate in 500bkps */ 52 #define MCS_TXS_MASK 0xc0 /* num tx streams - 1 bit mask */ 53 #define MCS_TXS_SHIFT 6 /* num tx streams - 1 bit shift */ 55 /* returns num tx streams - 1 */ 75 #define BRCMS_RATE_MASK_FULL 0xff /* Rate value mask with basic rate flag */ [all …]
|
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 27 /* Produces a mask of set bits covering a range of a 32-bit value */ 30 return ((1 << width) - 1) << shift; in bitfield_mask() 49 /* Convert a divider into the scaled divisor value it represents. */ 52 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 68 combined <<= div->u.s.frac_width; in scaled_div_build() 78 return (u64)div->u.fixed; in scaled_div_min() 89 return (u64)div->u.fixed; in scaled_div_max() [all …]
|
/openbmc/u-boot/include/ |
H A D | timer.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 * dm_timer_init - initialize a timer for time keeping. On success 11 * initializes gd->timer so that lib/timer can use it for future 14 * @return - 0 on success or error number 19 * timer_conv_64 - convert 32-bit counter value to 64-bit 21 * @count: 32-bit counter value 22 * @return: 64-bit counter value 31 * @return: 0 if OK, -ve on error 44 * struct timer_ops - Driver model timer operations 54 * @count: pointer that returns the current 64-bit timer count [all …]
|
/openbmc/linux/sound/core/oss/ |
H A D | linear.c | 2 * Linear conversion Plug-In 4 * Abramo Bagnara <abramo@alsa-project.org> 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 48 memcpy(p + data->copy_ofs, src + data->src_ofs, data->copy_bytes); in do_convert() 49 if (data->cvt_endian) in do_convert() 51 tmp ^= data->flip; in do_convert() 52 memcpy(dst, p + data->dst_ofs, data->dst_bytes); in do_convert() 55 static void convert(struct snd_pcm_plugin *plugin, in convert() function 60 struct linear_priv *data = (struct linear_priv *)plugin->extra_data; in convert() 62 int nchannels = plugin->src_format.channels; in convert() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_link.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. 17 unsigned int rate; member 75 * mdss_dp_test_bit_depth_to_bpp() - convert test bit depth to bpp 104 * dp_test_bit_depth_to_bpc() - convert test bit depth to bpc 137 * dp_link_get() - get the functionalities of dp test module
|
/openbmc/linux/drivers/media/rc/img-ir/ |
H A D | img-ir-hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright 2010-2014 Imagination Technologies Ltd. 12 #include <media/rc-core.h> 18 #define IMG_IR_CODETYPE_BIPHASE 0x2 /* RC-5/6 */ 19 #define IMG_IR_CODETYPE_2BITPULSEPOS 0x3 /* RC-MM */ 25 * struct img_ir_control - Decoder control settings 53 * struct img_ir_timing_range - range of timing values 65 * struct img_ir_symbol_timing - timing data for a symbol 75 * struct img_ir_free_timing - timing data for free time symbol 88 * struct img_ir_timings - Timing values. [all …]
|
/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk-mmc-phase.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/clk-provider.h> 41 * Each fine delay is between 44ps-77ps. Assume each fine delay is 60ps to 49 unsigned long rate = clk_hw_get_rate(hw); in rockchip_mmc_get_phase() local 55 if (!rate) in rockchip_mmc_get_phase() 58 raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift); in rockchip_mmc_get_phase() 65 36 * (rate / 10000); in rockchip_mmc_get_phase() 78 unsigned long rate = clk_hw_get_rate(hw); in rockchip_mmc_set_phase() local 87 * the clock rate from its parent, namely the output clock in rockchip_mmc_set_phase() 96 if (!rate) { in rockchip_mmc_set_phase() [all …]
|
/openbmc/u-boot/board/sbc8349/ |
H A D | README | 3 U-Boot for Wind River SBC834x Boards 8 design that uses the MPC8347E or MPC8349E processor. U-Boot support 9 for this board is heavily based on the existing U-Boot support for 33 Note that U-Boot versions up to and including 2009.06 had essentially 34 two copies of U-Boot in flash; one at the very beginning, which set 39 Use of the U-Boot command "fli" will indicate what parts are in use. 40 Details for storing U-Boot to flash using a Wind River ICE can be found 41 on page 19 of the board manual (request ERG-00328-001). The following 44 - Connect ICE and establish connection to it from WorkBench/OCD. 45 - Ensure you have background mode (BKM) in the OCD terminal window. [all …]
|
/openbmc/linux/net/sched/ |
H A D | sch_pie.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 u64 local_prob = vars->prob; in pie_drop_early() 41 if (vars->burst_time > 0) in pie_drop_early() 47 if ((vars->qdelay < params->target / 2) && in pie_drop_early() 48 (vars->prob < MAX_PROB / 5)) in pie_drop_early() 51 /* If we have fewer than 2 mtu-sized packets, disable pie_drop_early, in pie_drop_early() 60 if (params->bytemode && packet_size <= mtu) in pie_drop_early() 63 local_prob = vars->prob; in pie_drop_early() 66 vars->accu_prob = 0; in pie_drop_early() 68 vars->accu_prob += local_prob; in pie_drop_early() [all …]
|