/Linux-v5.10/drivers/media/platform/sti/hva/ |
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 …]
|
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-v5.10/drivers/net/wireless/broadcom/b43/ |
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-v5.10/drivers/staging/vt6655/ |
D | channel.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 { .bitrate = 10, .hw_value = RATE_1M }, 17 { .bitrate = 20, .hw_value = RATE_2M }, 18 { .bitrate = 55, .hw_value = RATE_5M }, 19 { .bitrate = 110, .hw_value = RATE_11M }, 20 { .bitrate = 60, .hw_value = RATE_6M }, 21 { .bitrate = 90, .hw_value = RATE_9M }, 22 { .bitrate = 120, .hw_value = RATE_12M }, 23 { .bitrate = 180, .hw_value = RATE_18M }, 24 { .bitrate = 240, .hw_value = RATE_24M }, [all …]
|
/Linux-v5.10/drivers/media/usb/hdpvr/ |
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-v5.10/drivers/net/can/ |
D | dev.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> 14 #include <linux/can/can-ml.h> 40 static const u8 len2dlc[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, /* 0 - 8 */ 41 9, 9, 9, 9, /* 9 - 12 */ 42 10, 10, 10, 10, /* 13 - 16 */ 43 11, 11, 11, 11, /* 17 - 20 */ 44 12, 12, 12, 12, /* 21 - 24 */ 45 13, 13, 13, 13, 13, 13, 13, 13, /* 25 - 32 */ [all …]
|
/Linux-v5.10/drivers/net/wireless/intersil/p54/ |
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-v5.10/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-eeprom-parse.c | 8 * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved. 10 * Copyright(c) 2018 - 2019 Intel Corporation 26 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 30 * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved. 32 * Copyright(c) 2018 - 2019 Intel Corporation 64 #include "iwl-drv.h" 65 #include "iwl-modparams.h" 66 #include "iwl-eeprom-parse.h" 129 #define EEPROM_RF_CFG_TYPE_MSK(x) (x & 0x3) /* bits 0-1 */ 130 #define EEPROM_RF_CFG_STEP_MSK(x) ((x >> 2) & 0x3) /* bits 2-3 */ [all …]
|
/Linux-v5.10/include/sound/ |
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-v5.10/drivers/media/i2c/ |
D | saa6752hs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 saa6752hs - i2c-driver for the saa6752hs by Philips 7 AC-3 support: 26 #include <media/v4l2-device.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-common.h> 33 #define MPEG_PID_MAX ((1 << 14) - 1) 84 struct { /* video bitrate mode control cluster */ 113 /* ---------------------------------------------------------------------- */ 220 /* ---------------------------------------------------------------------- */ [all …]
|
/Linux-v5.10/drivers/media/platform/qcom/venus/ |
D | venc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. 12 #include <media/v4l2-mem2mem.h> 13 #include <media/videobuf2-dma-sg.h> 14 #include <media/v4l2-ioctl.h> 15 #include <media/v4l2-event.h> 16 #include <media/v4l2-ctrls.h> 30 * - the MPLANE formats allow only one plane to be used 31 * - the downstream driver use MPLANE formats too 32 * - future firmware versions could add support for >1 planes [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/net/can/ |
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-v5.10/drivers/net/wireless/intersil/orinoco/ |
D | hw.c | 26 /* This tables gives the actual meanings of the bitrate IDs returned 29 int bitrate; /* in 100s of kilobits */ member 52 if (nic_id->id < 0x8000) in determine_firmware_type() 54 else if (nic_id->id == 0x8000 && nic_id->major == 0) in determine_firmware_type() 60 /* Set priv->firmware type, determine firmware properties 64 * If non-NULL stores a firmware description in fw_name. 65 * If non-NULL stores a HW version in hw_ver 73 struct device *dev = priv->dev; in determine_fw_capabilities() 74 struct hermes *hw = &priv->hw; in determine_fw_capabilities() 101 priv->firmware_type = determine_firmware_type(&nic_id); in determine_fw_capabilities() [all …]
|
/Linux-v5.10/sound/spi/ |
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 - LLIG */ 43 0x05, /* 02 - RLIG */ 44 0x08, /* 03 - LPMG */ 45 0x08, /* 04 - RPMG */ [all …]
|
/Linux-v5.10/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 34 if (rt2x00dev->intf_sta_count) in rt2x00lib_get_bssidx() 36 return vif->addr[5] & (rt2x00dev->ops->max_ap_intf - 1); in rt2x00lib_get_bssidx() 51 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_enable_radio() 63 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_ON); in rt2x00lib_enable_radio() 67 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_IRQ_ON); in rt2x00lib_enable_radio() 72 set_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags); in rt2x00lib_enable_radio() 90 if (!test_and_clear_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_disable_radio() 108 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_OFF); in rt2x00lib_disable_radio() [all …]
|
/Linux-v5.10/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_drv.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <media/v4l2-ctrls.h> 14 #include <media/v4l2-device.h> 15 #include <media/v4l2-ioctl.h> 16 #include <media/videobuf2-core.h> 20 #define MTK_VCODEC_DEC_NAME "mtk-vcodec-dec" 21 #define MTK_VCODEC_ENC_NAME "mtk-vcodec-enc" 29 * enum mtk_hw_reg_idx - MTK hw register base index 53 * enum mtk_instance_type - The type of an MTK Vcodec instance. 61 * enum mtk_instance_state - The state of an MTK Vcodec instance. [all …]
|
/Linux-v5.10/net/wireless/ |
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-2020 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_bitrates; i++) { in ieee80211_get_response_rate() 37 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate() 39 result = &sband->bitrates[i]; in ieee80211_get_response_rate() [all …]
|
/Linux-v5.10/drivers/staging/ks7010/ |
D | ks_wlan_net.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2008 KeyStream Corp. 38 #define MIN_KEY_SIZE 5 /* 40 bits RC4 - WEP */ 41 u8 key[16]; /* 40-bit and 104-bit keys */ 62 struct iw_statistics *wstats = &priv->wstats; in ks_wlan_update_phy_information() 64 netdev_dbg(priv->net_dev, "in_interrupt = %ld\n", in_interrupt()); in ks_wlan_update_phy_information() 66 if (priv->dev_state < DEVICE_STATE_READY) in ks_wlan_update_phy_information() 67 return -EBUSY; /* not finished initialize */ in ks_wlan_update_phy_information() 70 return -EPERM; in ks_wlan_update_phy_information() 73 wstats->status = priv->reg.operation_mode; /* Operation mode */ in ks_wlan_update_phy_information() [all …]
|
/Linux-v5.10/drivers/media/v4l2-core/ |
D | v4l2-ctrls.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #define pr_fmt(fmt) "v4l2-ctrls: " fmt 15 #include <media/v4l2-ctrls.h> 16 #include <media/v4l2-dev.h> 17 #include <media/v4l2-device.h> 18 #include <media/v4l2-event.h> 19 #include <media/v4l2-fwnode.h> 20 #include <media/v4l2-ioctl.h> 23 if (!WARN_ON(!(vdev)) && ((vdev)->dev_debug & V4L2_DEV_DEBUG_CTRL)) \ 29 (master->ops && master->ops->op) [all …]
|
/Linux-v5.10/drivers/net/wireless/rsi/ |
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-v5.10/drivers/gpu/drm/amd/display/dc/dsc/ |
D | dc_dsc.c | 34 /* default DSC policy target bitrate limit is 16bpp */ 46 if (timing->flags.DSC) { in dc_dsc_bandwidth_in_kbps_from_timing() 47 kbps = (timing->pix_clk_100hz * timing->dsc_cfg.bits_per_pixel); in dc_dsc_bandwidth_in_kbps_from_timing() 52 switch (timing->display_color_depth) { in dc_dsc_bandwidth_in_kbps_from_timing() 77 kbps = timing->pix_clk_100hz / 10; in dc_dsc_bandwidth_in_kbps_from_timing() 80 if (timing->flags.Y_ONLY != 1) { in dc_dsc_bandwidth_in_kbps_from_timing() 83 if (timing->pixel_encoding == PIXEL_ENCODING_YCBCR420) in dc_dsc_bandwidth_in_kbps_from_timing() 85 else if (timing->pixel_encoding == PIXEL_ENCODING_YCBCR422) in dc_dsc_bandwidth_in_kbps_from_timing() 217 dm_error("%s: DPCD DSC bits-per-pixel increment not recognized.\n", __func__); in dsc_bpp_increment_div_from_dpcd() 234 if (!dsc->ctx->dc->debug.disable_dsc) in get_dsc_enc_caps() [all …]
|
/Linux-v5.10/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 24 #include "wmi-tlv.h" 25 #include "wmi-ops.h" 33 { .bitrate = 10, 35 { .bitrate = 20, 39 { .bitrate = 55, 43 { .bitrate = 110, [all …]
|
/Linux-v5.10/drivers/media/pci/solo6x10/ |
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-v5.10/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 156 { .bitrate = 10, 158 { .bitrate = 20, 162 { .bitrate = 55, 166 { .bitrate = 110, 171 { .bitrate = 60, .hw_value = ATH11K_HW_RATE_OFDM_6M }, 172 { .bitrate = 90, .hw_value = ATH11K_HW_RATE_OFDM_9M }, 173 { .bitrate = 120, .hw_value = ATH11K_HW_RATE_OFDM_12M }, 174 { .bitrate = 180, .hw_value = ATH11K_HW_RATE_OFDM_18M }, [all …]
|
/Linux-v5.10/drivers/net/wireless/ath/ar5523/ |
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 …]
|