| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-vp9.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <media/v4l2-vp9.h> 17 { 137, 30, 42, 148, 151, 207, 70, 52, 91 }, /*left = dc */ 18 { 92, 45, 102, 136, 116, 180, 74, 90, 100 }, /*left = v */ 19 { 73, 32, 19, 187, 222, 215, 46, 34, 100 }, /*left = h */ 20 { 91, 30, 32, 116, 121, 186, 93, 86, 94 }, /*left = d45 */ 21 { 72, 35, 36, 149, 68, 206, 68, 63, 105 }, /*left = d135*/ 22 { 73, 31, 28, 138, 57, 124, 55, 122, 151 }, /*left = d117*/ 23 { 67, 23, 21, 140, 126, 197, 40, 37, 171 }, /*left = d153*/ 24 { 86, 27, 28, 128, 154, 212, 45, 43, 53 }, /*left = d207*/ [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-axff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * - tested with an EXEQ EQ-PCU-02090 game controller. 12 * Copyright (c) 2010 Sergei Kolzun <x0r@dv-life.ru> 23 #include "hid-ids.h" 35 struct hid_report *report = axff->report; in axff_play() 37 int left, right; in axff_play() local 38 int i, j; in axff_play() local 40 left = effect->u.rumble.strong_magnitude; in axff_play() 41 right = effect->u.rumble.weak_magnitude; in axff_play() 43 dbg_hid("called with 0x%04x 0x%04x", left, right); in axff_play() [all …]
|
| H A D | hid-betopff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * - tested with BTP2185 BFM Mode. 12 * - tested with BTP2185 PC Mode. 15 * - tested with BTP2185 PC Mode with another version. 18 * - tested with BTP2171s. 31 #include "hid-ids.h" 42 __u16 left, right; in hid_betopff_play() local 44 left = effect->u.rumble.strong_magnitude; in hid_betopff_play() 45 right = effect->u.rumble.weak_magnitude; in hid_betopff_play() 47 betopff->report->field[2]->value[0] = left / 256; in hid_betopff_play() [all …]
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_vout_vrfb.c | 17 #include <media/v4l2-device.h> 33 int i, j; in omap_vout_allocate_vrfb_buffers() local 36 if (!vout->smsshado_virt_addr[i]) { in omap_vout_allocate_vrfb_buffers() 37 vout->smsshado_virt_addr[i] = in omap_vout_allocate_vrfb_buffers() 38 omap_vout_alloc_buffer(vout->smsshado_size, in omap_vout_allocate_vrfb_buffers() 39 &vout->smsshado_phy_addr[i]); in omap_vout_allocate_vrfb_buffers() 41 if (!vout->smsshado_virt_addr[i] && startindex != -1) { in omap_vout_allocate_vrfb_buffers() 42 if (vout->vq.memory == V4L2_MEMORY_MMAP && i >= startindex) in omap_vout_allocate_vrfb_buffers() 45 if (!vout->smsshado_virt_addr[i]) { in omap_vout_allocate_vrfb_buffers() 46 for (j = 0; j < i; j++) { in omap_vout_allocate_vrfb_buffers() [all …]
|
| /linux/net/sched/ |
| H A D | sch_mqprio_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 int left = max(a, c), right = min(b, d); in intervals_overlap() local 16 return left < right; in intervals_overlap() 24 int i, j; in mqprio_validate_queue_counts() local 26 for (i = 0; i < qopt->num_tc; i++) { in mqprio_validate_queue_counts() 27 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_validate_queue_counts() 29 if (!qopt->count[i]) { in mqprio_validate_queue_counts() 32 return -EINVAL; in mqprio_validate_queue_counts() 38 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_validate_queue_counts() 39 last > dev->real_num_tx_queues) { in mqprio_validate_queue_counts() [all …]
|
| /linux/security/tomoyo/ |
| H A D | condition.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2011 NTT DATA CORPORATION 15 * tomoyo_argv - Check argv[] in "struct linux_binbrm". 36 if (index != argv->index) in tomoyo_argv() 40 result = tomoyo_path_matches_pattern(&arg, argv->value); in tomoyo_argv() 41 if (argv->is_not) in tomoyo_argv() 50 * tomoyo_envp - Check envp[] in "struct linux_binbrm". 75 if (!tomoyo_path_matches_pattern(&name, envp->name)) in tomoyo_envp() 78 if (envp->value) { in tomoyo_envp() 80 envp->value); in tomoyo_envp() [all …]
|
| /linux/sound/pci/emu10k1/ |
| H A D | emufx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * James Courtier-Dutton <James@superbug.co.uk> 26 #if 0 /* for testing purposes - digital out -> capture */ 29 #if 0 /* for testing purposes - set S/PDIF to AC3 output */ 32 #if 0 /* for testing purposes - feed the front signal to Center/LFE outputs */ 38 MODULE_PARM_DESC(high_res_gpr_volume, "GPR mixer controls use 31-bit range."); 47 /* 0x00 */ "PCM Left", 49 /* 0x02 */ "PCM Rear Left", 51 /* 0x04 */ "MIDI Left", 55 /* 0x08 */ "PCM Front Left", [all …]
|
| /linux/fs/ntfs3/lib/ |
| H A D | decompress_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * decompress_common.c - Code shared by the XPRESS and LZX decompressors 11 * make_huffman_decode_table() - 19 * decoding of prefix-encoded symbols using read_huffsym(). 45 * by 2**(max_codeword_len - n) entries in this table. The 0-based index 47 * when zero-padded on the left to 'max_codeword_len' binary digits. 52 * - For many compression formats, the maximum codeword length is too 60 * bit-by-bit decoding of the remainder of the codeword. Child nodes 62 * contain symbols. Note that the long-codeword case is, in general, 66 * - When we decode a symbol using a direct lookup of the table, we still [all …]
|
| /linux/sound/soc/sdw_utils/ |
| H A D | soc_sdw_maxim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 // soc_sdw_maxim - Helpers to handle maxim codecs 13 #include <sound/soc-acpi.h> 14 #include <sound/soc-dapm.h> 22 { "Left Spk", NULL, "Left BE_OUT" }, 28 struct snd_soc_card *card = rtd->car in asoc_sdw_maxim_spk_rtd_init() 45 int j; asoc_sdw_mx8373_enable_spk_pin() local [all...] |
| H A D | soc_sdw_utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * soc-sdw-utils.c - common SoundWire machine driver helper functions 39 SND_SOC_DAPM_SPK("Left Spk", NULL), 44 SND_SOC_DAPM_SPK("Left Spk", NULL), 46 SND_SOC_DAPM_SPK("Left Spk 1077 int i, j; asoc_sdw_find_codec_info_dai() local 1439 int j; asoc_sdw_mc_find_codec_dai_used() local 1457 int i, j; asoc_sdw_mc_dailink_exit_loop() local 1711 int i, j; asoc_sdw_parse_sdw_endpoints() local [all...] |
| /linux/fs/unicode/ |
| H A D | mkutf8data.c | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 30 /* Default names of the in- and output files. */ 65 /* ------------------------------------------------------------------ */ 80 #define UNICODE_MAJ_MAX ((unsigned short)-1) 81 #define UNICODE_MIN_MAX ((unsigned char)-1) 82 #define UNICODE_REV_MAX ((unsigned char)-1) 106 /* ------------------------------------------------------------------ */ 111 * A compact binary tree, used to decode UTF-8 characters. 116 * NEXTBYTE - flag - advance to next byte if set 117 * BITNUM - 3 bit field - the bit number to tested [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | reg.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 12 #define ATH11K_2GHZ_CH01_11 REG_RULE(2412 - 10, 2462 + 10, 40, 0, 20, 0) 13 #define ATH11K_5GHZ_5150_5350 REG_RULE(5150 - 10, 5350 + 10, 80, 0, 30,\ 15 #define ATH11K_5GHZ_5725_5850 REG_RULE(5725 - 10, 5850 + 10, 80, 0, 30,\ 36 regd = rcu_dereference_rtnl(ar->hw->wiphy->regd); in ath11k_regdom_changes() 44 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath11k_regdom_changes() 52 struct ath11k *ar = hw->priv; in ath11k_reg_notifier() 55 ath11k_dbg(ar->ab, ATH11K_DBG_REG, in ath11k_reg_notifier() 58 if (request->initiator == NL80211_REGDOM_SET_BY_DRIVER) { in ath11k_reg_notifier() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | arcfb.c | 2 * linux/drivers/video/arcfb.c -- FB driver for Arc monochrome LCD board 17 * GPIO-less system, the board can be tested by connecting the respective sigs 24 * - testing with 4x4 25 * - testing with interrupt hw 28 * - User must set tuhold. It's in microseconds. According to the 108 spec, 30 * - User must set num_cols=x num_rows=y, eg: x=2 means 128 31 * - User must set arcfb_enable=1 to enable it 32 * - User must set dio_addr=0xIOADDR cio_addr=0xIOADDR 53 #define floorXres(a,xres) (a&(~(xres - 1))) 56 #define ceilXres(a,xres) (a|(xres - 1)) [all …]
|
| /linux/sound/hda/core/ |
| H A D | hdmi_chmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 * The Left/Right Surround channel _notions_ LS/RS in SMPTE 320M corresponds to 26 FL = (1 << 0), /* Front Left */ 29 FLC = (1 << 3), /* Front Left Center */ 31 RL = (1 << 5), /* Rear Left */ 34 RLC = (1 << 8), /* Rear Left Center */ 37 FLW = (1 << 11), /* Front Left Wid 221 int i, j; init_channel_allocations() local 249 int i, j; snd_hdac_print_channel_allocation() local [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | altnames.sh | 2 # SPDX-License-Identifier: GPL-2.0 23 output=$(ip -j -p link show $SHORT_NAME) 26 name=$(echo $output | jq -e -r ".[0].altnames[0]") 32 ip -j -p link show $DUMMY_DEV &>/dev/null 38 output=$(ip -j -p link show $LONG_NAME) 41 name=$(echo $output | jq -e -r ".[0].altnames[1]") 50 ip -j -p link show $SHORT_NAME &>/dev/null 53 # long name is left there on purpose to be removed alongside the device
|
| /linux/drivers/usb/atm/ |
| H A D | usbatm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * usbatm.c - Generic USB xDSL driver core 13 * 1.7+: - See the check-in logs 15 * 1.6: - No longer opens a connection if the firmware is not loaded 16 * - Added support for the speedtouch 330 17 * - Removed the limit on the number of devices 18 * - Module now autoloads on device plugin 19 * - Merged relevant parts of sarlib 20 * - Replaced the kernel thread with a tasklet 21 * - New packet transmission code [all …]
|
| /linux/drivers/usb/image/ |
| H A D | mdc800.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * copyright (C) 1999/2000 by Henning Zabel <henning@uni-paderborn.de> 8 * USB-Kernel Driver for the Mustek MDC800 Digital Camera 9 * (c) 1999/2000 Henning Zabel <henning@uni-paderborn.de> 35 * Fixed: Setting urb->dev before submitting urb. 40 * bugfix : The mdc800->state field gets set to READY after the 50 * The mdc800 driver gets assigned the USB Minor 32-47. The Registration 66 * Either with the dev->bus->ops->bulk... or with callback function. 94 #define DRIVER_AUTHOR "Henning Zabel <henning@uni-paderborn.de>" 150 int download_left; // Bytes left to download ? [all …]
|
| /linux/drivers/md/bcache/ |
| H A D | bset.c | 1 // SPDX-License-Identifier: GPL-2.0 25 for (k = i->start; k < bset_bkey_last(i); k = next) { in bch_dump_bset() 29 (unsigned int) ((u64 *) k - i->d), i->keys); in bch_dump_bset() 31 if (b->ops->key_dump) in bch_dump_bset() 32 b->ops->key_dump(b, k); in bch_dump_bset() 37 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset() 48 for (i = 0; i <= b->nsets; i++) in bch_dump_bucket() 49 bch_dump_bset(b, b->set[i].data, in bch_dump_bucket() 50 bset_sector_offset(b, b->set[i].data)); in bch_dump_bucket() 60 if (b->ops->is_extents) in __bch_count_data() [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | twl4030-madc-hwmon.rst | 1 Kernel driver twl4030-madc 8 Prefix: 'twl4030-madc' 12 J Keerthy <j-keerthy@ti.com> 15 ----------- 18 other things it contains a 10-bit A/D converter MADC. The converter has 16 42 15 VRUSB Supply/Speaker left/Speaker right polarization level
|
| /linux/arch/alpha/kernel/ |
| H A D | irq_i8259.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Started hacking from linux-2.3.30pre6/arch/i386/kernel/i8259.c. 40 i8259_update_irq_hw(d->irq, cached_irq_mask &= ~(1 << d->irq)); in i8259a_enable_irq() 54 __i8259a_disable_irq(d->irq); in i8259a_disable_irq() 61 unsigned int irq = d->irq; in i8259a_mask_and_ack_irq() 68 outb(0xE0 | (irq - 8), 0xa0); /* ack the slave */ in i8259a_mask_and_ack_irq() 76 .name = "XT-PIC", 87 outb(0xff, 0x21); /* mask all of 8259A-1 */ in init_i8259a_irqs() 88 outb(0xff, 0xA1); /* mask all of 8259A-2 */ in init_i8259a_irqs() 112 /* Note that CONFIG_ALPHA_POLARIS is intentionally left out here, since [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_txrx_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 * build_ctob - Builds the Tx descriptor (cmd, offset and type) qword 41 * i40e_update_tx_stats - Update the egress statistics for the Tx ring 50 u64_stats_update_begin(&tx_ring->syncp); in i40e_update_tx_stats() 51 tx_ring->stats.bytes += total_bytes; in i40e_update_tx_stats() 52 tx_ring->stats.packets += total_packets; in i40e_update_tx_stats() 53 u64_stats_update_end(&tx_ring->syncp); in i40e_update_tx_stats() 54 tx_ring->q_vector->tx.total_bytes += total_bytes; in i40e_update_tx_stats() 55 tx_ring->q_vector->tx.total_packets += total_packets; in i40e_update_tx_stats() 61 * i40e_arm_wb - (Possibly) arms Tx write-back [all …]
|
| /linux/drivers/input/joystick/ |
| H A D | n64joy.c | 1 // SPDX-License-Identifier: GPL-2.0 70 unsigned int left: 1; member 107 dma_cache_inv((unsigned long) priv->si_buf, 8 * 8); in n64joy_exec_pif() 111 n64joy_wait_si_dma(priv->reg_base); in n64joy_exec_pif() 114 n64joy_write_reg(priv->reg_base, SI_DRAM_REG, virt_to_phys(in)); in n64joy_exec_pif() 116 n64joy_write_reg(priv->reg_base, SI_WRITE_REG, PIF_RAM); in n64joy_exec_pif() 119 n64joy_wait_si_dma(priv->reg_base); in n64joy_exec_pif() 122 n64joy_write_reg(priv->reg_base, SI_DRAM_REG, virt_to_phys(priv->si_buf)); in n64joy_exec_pif() 124 n64joy_write_reg(priv->reg_base, SI_READ_REG, PIF_RAM); in n64joy_exec_pif() 127 n64joy_wait_si_dma(priv->reg_base); in n64joy_exec_pif() [all …]
|
| /linux/sound/pci/cs46xx/ |
| H A D | dsp_spos.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * 2002-07 Benny Sjostrand benny@hostmobility.com 48 unsigned int i = 0, j, nreallocated = 0; in shadow_and_reallocate_code() local 51 struct dsp_spos_instance * ins = chip->dsp_spos_instance; in shadow_and_reallocate_code() 54 return -EINVAL; in shadow_and_reallocate_code() 60 if (ins->code.offset > 0) { in shadow_and_reallocate_code() 69 for (j = 0;j < ARRAY_SIZE(wide_opcodes); ++j) { in shadow_and_reallocate_code() 70 if (wide_opcodes[j] == wide_op) { in shadow_and_reallocate_code() 75 dev_dbg(chip->card->dev, in shadow_and_reallocate_code() 80 address += (ins->code.offset / 2) - overlay_begin_address; in shadow_and_reallocate_code() [all …]
|
| /linux/sound/soc/intel/boards/ |
| H A D | sof_maxim_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <sound/soc-acpi.h> 10 #include <sound/soc-dai.h> 11 #include <sound/soc-dapm.h> 14 #include "../common/soc-intel-quirks.h" 21 SOC_DAPM_PIN_SWITCH("Left Sp 195 int j; max_98373_trigger() local [all...] |
| /linux/drivers/media/rc/keymaps/ |
| H A D | rc-total-media-in-hand-02.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2012 Alfredo J. Delaiti <alfredodelaiti@netscape.net> 8 #include <media/rc-map.h> 30 { 0x0011, KEY_LEFT }, /* Left arrow */ 47 { 0x0038, KEY_VIDEO }, /* TV/AV/S-Video/YPbPr */ 73 MODULE_AUTHOR(" Alfredo J. Delaiti <alfredodelaiti@netscape.net>");
|