| /linux/drivers/net/can/dev/ |
| H A D | bittiming.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2005 Marc Kleine-Budde, Pengutronix 4 * Copyright (C) 2008-2009 Wolfgang Grandegger <wg@grandegger.com> 11 if (bt->sjw) in can_sjw_set_default() 15 bt->sjw = max(1U, min(bt->phase_seg1, bt->phase_seg2 / 2)); in can_sjw_set_default() 21 if (bt->sjw > btc->sjw_max) { in can_sjw_check() 22 NL_SET_ERR_MSG_FMT(extack, "sjw: %u greater than max sjw: %u", in can_sjw_check() 23 bt->sjw, btc->sjw_max); in can_sjw_check() 24 return -EINVAL; in can_sjw_check() 27 if (bt->sjw > bt->phase_seg1) { in can_sjw_check() [all …]
|
| /linux/drivers/media/platform/st/sti/hva/ |
| H A D | hva-debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "hva-hw.h" 15 struct hva_streaminfo *stream = &ctx->streaminfo; in format_ctx() 16 struct hva_frameinfo *frame = &ctx->frameinfo; in format_ctx() 17 struct hva_controls *ctrls = &ctx->ctrls; in format_ctx() 18 struct hva_ctx_dbg *dbg = &ctx->dbg; in format_ctx() 21 seq_printf(s, "|-%s\n |\n", ctx->name); in format_ctx() 23 seq_printf(s, " |-[%sframe info]\n", in format_ctx() 24 ctx->flags & HVA_FLAG_FRAMEINFO ? "" : "default "); in format_ctx() 25 seq_printf(s, " | |- pixel format=%4.4s\n" in format_ctx() [all …]
|
| H A D | hva-h264.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include "hva-hw.h" 15 /* video max size*/ 32 /* source buffer copy in YUV 420 MB-tiled format with size=16*256*3/2 */ 41 /* factor for bitrate and cpb buffer size max values if profile >= high */ 44 /* factor for bitrate and cpb buffer size max values if profile < high */ 200 * @brc_type: selects the bit-rate control algorithm 205 * @non_VCL_NALU_Size: size of non-VCL NALUs (SPS, PPS, filler), 208 * @bit_rate: target bitrate, for BRC 210 * @qp_max: max QP threshold [all …]
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | xmit.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 38 b43_tx_legacy_rate_phy_ctl_ent(u8 bitrate) in b43_tx_legacy_rate_phy_ctl_ent() argument 45 if (e->bitrate == bitrate) in b43_tx_legacy_rate_phy_ctl_ent() 53 /* Extract the bitrate index out of a CCK PLCP header. */ 56 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck() 66 return -1; in b43_plcp_get_bitrate_idx_cck() 69 /* Extract the bitrate index out of an OFDM PLCP header. */ 75 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm() 93 return -1; in b43_plcp_get_bitrate_idx_ofdm() [all …]
|
| /linux/drivers/net/can/rockchip/ |
| H A D | rockchip_canfd-timestamp.c | 1 // SPDX-License-Identifier: GPL-2.0 4 // Marc Kleine-Budde <kernel@pengutronix.de> 24 ns = timecounter_cyc2time(&priv->tc, timestamp); in rkcanfd_skb_set_timestamp() 26 hwtstamps->hwtstamp = ns_to_ktime(ns); in rkcanfd_skb_set_timestamp() 35 timecounter_read(&priv->tc); in rkcanfd_timestamp_work() 37 schedule_delayed_work(&priv->timestamp, priv->work_delay_jiffies); in rkcanfd_timestamp_work() 42 const struct can_bittiming *dbt = &priv->can.fd.data_bittiming; in rkcanfd_timestamp_init() 43 const struct can_bittiming *bt = &priv->can.bittiming; in rkcanfd_timestamp_init() 44 struct cyclecounter *cc = &priv->cc; in rkcanfd_timestamp_init() 45 u32 bitrate, div, reg, rate; in rkcanfd_timestamp_init() local [all …]
|
| /linux/drivers/media/usb/hdpvr/ |
| H A D | hdpvr.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 14 #include <media/v4l2-device.h> 15 #include <media/v4l2-ctrls.h> 16 #include <media/i2c/ir-kbd-i2c.h> 29 #define UNSET (-1U) 50 u8 bitrate; /* in 100kbps */ member 70 /* v4l2-device unused */ 72 struct { /* video mode/bitrate control cluster */ 80 /* the max packet size of the bulk endpoint */ 117 /* For passing data to ir-kbd-i2c */ [all …]
|
| /linux/Documentation/devicetree/bindings/phy/ |
| H A D | ti,tcan104x-can.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/ti,tcan104x-can.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Aswath Govindraju <a-govindraju@ti.com> 14 pattern: "^can-phy" 18 - items: 19 - enum: 20 - microchip,ata6561 21 - ti,tcan1051 [all …]
|
| /linux/drivers/net/wireless/intersil/p54/ |
| H A D | eeprom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2007-2009, Christian Lamparter <chunkeey@web.de> 10 * - the islsm (softmac prism54) driver, which is: 11 * Copyright 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al. 12 * - stlc45xx driver 13 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). 22 #include <linux/crc-ccitt.h> 30 { .bitrate = 10, .hw_value = 0, }, 31 { .bitrate = 20, .hw_value = 1, .flags = IEEE80211_RATE_SHORT_PREAMBLE }, 32 { .bitrate = 55, .hw_value = 2, .flags = IEEE80211_RATE_SHORT_PREAMBLE }, [all …]
|
| /linux/drivers/phy/ |
| H A D | phy-can-transceiver.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * phy-can-transceiver.c - phy driver for CAN transceivers 5 * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com 35 if (can_transceiver_phy->mux_state) { in can_transceiver_phy_power_on() 36 ret = mux_state_select(can_transceiver_phy->mux_state); in can_transceiver_phy_power_on() 38 dev_err(&phy->dev, "Failed to select CAN mux: %d\n", ret); in can_transceiver_phy_power_on() 42 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_on() 43 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 0); in can_transceiver_phy_power_on() 44 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on() 45 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on() [all …]
|
| /linux/include/sound/ |
| H A D | hda_verbs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * HD-audio codec verbs 59 /* f10-f1a: GPIO */ 162 #define AC_WCAP_IN_AMP (1<<1) /* AMP-in present */ 163 #define AC_WCAP_OUT_AMP (1<<2) /* AMP-out present */ 164 #define AC_WCAP_AMP_OVRD (1<<3) /* AMP-parameter override */ 264 * in HD-audio specification 275 #define AC_PINCAP_VREF_HIZ (1<<0) /* Hi-Z */ 286 #define AC_AMPCAP_STEP_SIZE (0x7f<<16) /* step size 0-32dB 293 /* driver-specific amp-caps: using bits 24-30 */ [all …]
|
| /linux/arch/arm64/boot/dts/renesas/ |
| H A D | renesas-smarc2.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 * Device Tree Source for the RZ SMARC Carrier-II Board. 13 * 0 - SMARC SDIO signal is connected to uSD1 14 * 1 - SMARC SDIO signal is connected to M.2 Key E connector 20 * 0 - Connect to GPIO8 PMOD (default) 21 * 1 - Connect to CAN0 transceiver STB pin 24 * 0 - Connect to GPIO9 PMOD (default) 25 * 1 - Connect to CAN1 transceiver STB pin 32 model = "Renesas RZ SMARC Carrier-II Board"; 33 compatible = "renesas,smarc2-evk"; [all …]
|
| H A D | white-hawk-common.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 9 #include "white-hawk-csi-dsi.dtsi" 10 #include "white-hawk-ethernet.dtsi" 13 can_transceiver0: can-phy0 { 15 #phy-cells = <0>; 16 enable-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; 17 max-bitrate = <5000000>; 22 clock-frequency = <40000000>; 26 pinctrl-0 = <&canfd0_pins>, <&canfd1_pins>, <&can_clk_pins>; 27 pinctrl-names = "default"; [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-lx2160a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 // Copyright 2018-2020 NXP 7 /dts-v1/; 9 #include "fsl-lx2160a.dtsi" 13 compatible = "fsl,lx2160a-rdb", "fsl,lx2160a"; 23 stdout-path = "serial0:115200n8"; 26 sb_3v3: regulator-sb3v3 { 27 compatible = "regulator-fixed"; 28 regulator-name = "MC34717-3.3VSB"; 29 regulator-min-microvolt = <3300000>; [all …]
|
| H A D | imx95-libra-rdk-fpsc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/leds/leds-pca9532.h> 9 #include <dt-bindings/pwm/pwm.h> 11 #include "imx95-phycore-fpsc.dtsi" 14 compatible = "phytec,imx95-libra-rdk-fpsc", 15 "phytec,imx95-phycore-fpsc", "fsl,imx95"; 27 stdout-path = &lpuart7; 31 compatible = "pwm-backlight"; 32 pinctrl-0 = <&pinctrl_lvds0>; [all …]
|
| H A D | fsl-ls1028a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2018-2021 NXP 11 /dts-v1/; 12 #include "fsl-ls1028a.dtsi" 16 compatible = "fsl,ls1028a-rdb", "fsl,ls1028a"; 38 stdout-path = "serial0:115200n8"; 46 sys_mclk: clock-mclk { 47 compatible = "fixed-clock"; 48 #clock-cells = <0>; 49 clock-frequency = <25000000>; [all …]
|
| /linux/sound/spi/ |
| H A D | at73c213.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for AT73C213 16-bit stereo DAC connected to Atmel SSC 5 * Copyright (C) 2006-2007 Atmel Norway 14 #include <linux/dma-mapping.h> 27 #include <linux/atmel-ssc.h> 41 0x00, /* 00 - CTRL */ 42 0x05, /* 01 - LLI 68 unsigned long bitrate; global() member [all...] |
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am68-phyboard-izar.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 6 * https://www.phytec.eu/en/produkte/development-kits/phyboard-izar/ 9 /dts-v1/; 11 #include <dt-bindings/leds/leds-pca9532.h> 12 #include <dt-bindings/net/ti-dp83867.h> 13 #include <dt-bindings/phy/phy-cadence.h> 14 #include <dt-bindings/phy/phy.h> 15 #include "k3-am68-phycore-som.dtsi" 17 #include "k3-serdes.h" 20 compatible = "phytec,am68-phyboard-izar", [all …]
|
| H A D | k3-am642-hummingboard-t.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2023 Josua Mayer <josua@solid-run.com> 5 * DTS for SolidRun AM642 HummingBoard-T, 10 /dts-v1/; 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/phy/phy.h> 15 #include "k3-am642.dtsi" 16 #include "k3-am642-sr-som.dtsi" 19 model = "SolidRun AM642 HummingBoard-T"; 20 compatible = "solidrun,am642-hummingboard-t", "solidrun,am642-sr-som", "ti,am642"; [all …]
|
| H A D | k3-j721e-common-proc-board.dts | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Copyright (C) 2019-2024 Texas Instruments Incorporated - https://www.ti.com/ 8 /dts-v1/; 10 #include "k3-j721e-som-p0.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/net/ti-dp83867.h> 14 #include <dt-bindings/phy/phy-cadence.h> 17 compatible = "ti,j721e-evm", "ti,j721e"; 33 stdout-path = "serial2:115200n8"; [all …]
|
| /linux/Documentation/devicetree/bindings/net/can/ |
| H A D | can-transceiver.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/can/can-transceiver.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Rob Herring <robh@kernel.org> 15 max-bitrate: 17 description: a positive non 0 value that determines the max speed that CAN/CAN-FD can run.
|
| /linux/drivers/net/can/slcan/ |
| H A D | slcan-core.c | 2 * slcan.c - serial line CAN interface driver (using tty line discipline) 11 * can327.c Author : Max Staudt <max-linux@enpas.org> 123 return !!test_bit(CF_ERR_RST, &sl->cmd_flags); in slcan_err_rst_on_open() 131 return -EBUSY; in slcan_enable_err_rst_on_open() 134 set_bit(CF_ERR_RST, &sl->cmd_flags); in slcan_enable_err_rst_on_open() 136 clear_bit(CF_ERR_RST, &sl->cmd_flags); in slcan_enable_err_rst_on_open() 149 * RTR-bit is set. This causes another ECU to send a CAN frame with the 156 * RTR frames are defined as 'r' types - normal frames have 't' type: 163 * The <dlc> is a one byte ASCII number ('0' - '8') 186 char *cmd = sl->rbuff; in slcan_bump_frame() [all …]
|
| /linux/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_mac80211.c | 107 { .bitrate = STD_RATE_01 * 5, .hw_value = RSI_RATE_1 }, 108 { .bitrate = STD_RATE_02 * 5, .hw_value = RSI_RATE_2 }, 109 { .bitrate = STD_RATE_5_5 * 5, .hw_value = RSI_RATE_5_5 }, 110 { .bitrate = STD_RATE_11 * 5, .hw_value = RSI_RATE_11 }, 111 { .bitrate = STD_RATE_06 * 5, .hw_value = RSI_RATE_6 }, 112 { .bitrate = STD_RATE_09 * 5, .hw_value = RSI_RATE_9 }, 113 { .bitrate = STD_RATE_12 * 5, .hw_value = RSI_RATE_12 }, 114 { .bitrate = STD_RATE_18 * 5, .hw_value = RSI_RATE_18 }, 115 { .bitrate = STD_RATE_24 * 5, .hw_value = RSI_RATE_24 }, 116 { .bitrate = STD_RATE_36 * 5, .hw_value = RSI_RATE_36 }, [all …]
|
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-g723.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com> 26 #include "solo6x10-tw28.h" 33 /* Sets up channels 16-19 for decoding and 0-15 for encoding */ 37 #define BITRATE 25 macro 43 #define G723_INTR_ORDER 4 /* 0 - 4 */ 57 clk_div = (solo_dev->clock_mhz * 1000000) in solo_g723_config() 58 / (SAMPLERATE * (BITRATE * 2) * 2); in solo_g723_config() 61 SOLO_AUDIO_BITRATE(BITRATE) in solo_g723_config() 79 &solo_dev->snd_pcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in solo_g723_isr() [all …]
|
| /linux/net/wireless/ |
| H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2007-2009 Johannes Berg <johannes@sipsolutions.net> 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2018-2023, 2025 Intel Corporation 24 #include "rdev-ops.h" 29 u32 basic_rates, int bitrate) in ieee80211_get_response_rate() argument 31 struct ieee80211_rate *result = &sband->bitrates[0]; in ieee80211_get_response_rate() 34 for (i = 0; i < sband->n_bitrate in ieee80211_get_response_rate() 1315 int modulation, streams, bitrate; cfg80211_calculate_bitrate_ht() local 1499 u32 bitrate; cfg80211_calculate_bitrate_vht() local 1815 u32 bitrate; cfg80211_calculate_bitrate_s1g() local [all...] |
| /linux/drivers/net/wireless/ath/ar5523/ |
| H A D | ar5523.c | 5 * Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org> 23 * OpenBSD, who did black-box analysis of the Windows binary driver to find 54 dlen = be32_to_cpu(hdr->len) - sizeof(*hdr); in ar5523_read_reply() 61 ar5523_dbg(ar, "Code = %d len = %d\n", be32_to_cpu(hdr->code) & 0xff, in ar5523_read_reply() 67 dlen -= sizeof(u32); in ar5523_read_reply() 75 if (cmd->odata) { in ar5523_read_reply() 76 if (cmd->olen < olen) { in ar5523_read_reply() 78 cmd->olen, olen); in ar5523_read_reply() 79 cmd->olen = 0; in ar5523_read_reply() 80 cmd->res = -EOVERFLOW; in ar5523_read_reply() [all …]
|