/linux/drivers/md/persistent-data/ |
H A D | dm-btree-remove.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include "dm-btree.h" 9 #include "dm-btree-internal.h" 10 #include "dm-transaction-manager.h" 13 #include <linux/device-mapper.h> 29 * Each node may have a left or right sibling. When decending the spine, 36 * [B] No left sibling 40 * ==> rebalance(left sibling, node) 42 * [D] Both siblings, total_entries(left, node, right) <= DEL_THRESHOLD 43 * ==> delete node adding it's contents to left and right [all …]
|
/linux/drivers/video/fbdev/core/ |
H A D | syscopyarea.c | 32 int const shift = dst_idx-src_idx; in bitcpy() local 33 int left, right; in bitcpy() local 38 if (!shift) { in bitcpy() 52 n -= bits - dst_idx; in bitcpy() 66 n -= 8; in bitcpy() 68 while (n--) in bitcpy() 80 right = shift & (bits - 1); in bitcpy() 81 left = -shift & (bits - 1); in bitcpy() 87 if (shift > 0) { in bitcpy() 89 *dst = comp(*src << left, *dst, first); in bitcpy() [all …]
|
H A D | cfbcopyarea.c | 4 * Copyright (C) 1999-2005 James Simmons <jsimmons@www.infradead.org> 51 int const shift = dst_idx-src_idx; in bitcpy() local 58 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8, in bitcpy() 59 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy() 66 if (!shift) { in bitcpy() 82 n -= bits - dst_idx; in bitcpy() 96 n -= 8; in bitcpy() 98 while (n--) in bitcpy() 110 int const left = shift & (bits - 1); in bitcpy() local 111 int const right = -shift & (bits - 1); in bitcpy() [all …]
|
/linux/arch/parisc/math-emu/ |
H A D | sfsub.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 42 register unsigned int left, right, result, extent; in sgl_fsub() local 50 left = *leftptr; in sgl_fsub() 55 Sgl_xortointp1(left,right,/*to*/save); in sgl_fsub() 60 if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT) in sgl_fsub() 62 if (Sgl_iszero_mantissa(left)) in sgl_fsub() 80 *dstptr = left; in sgl_fsub() [all …]
|
H A D | sfadd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 42 register unsigned int left, right, result, extent; in sgl_fadd() local 52 left = *leftptr; in sgl_fadd() 57 Sgl_xortointp1(left,right,/*to*/save); in sgl_fadd() 62 if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT) in sgl_fadd() 64 if (Sgl_iszero_mantissa(left)) in sgl_fadd() 82 *dstptr = left; in sgl_fadd() [all …]
|
H A D | dbl_float.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 9 PA header file -- do not include this header file for non-PA builds. 12 /* 32-bit word grabbing functions */ 40 Dallp1(srcdst) &= Dmantissap1((unsigned int)-1) 43 * included in the shift. Here we need to generate two double width 48 * This is very difficult to model with C expressions since the shift amount 53 Dallp2(srcdstB) = Dallp1(srcdstA) >> (varamount-32); \ [all …]
|
H A D | sgl_float.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 10 PA header file -- do not include this header file for non-PA builds. 13 /* 32-bit word grabbing functions */ 50 #define Sgl_leftshiftby1_withextent(left,right,result) \ argument 51 Shiftdouble(Sall(left),Extall(right),31,Sall(result)) 53 #define Sgl_rightshiftby1_withextent(left,right,dst) \ argument 54 Shiftdouble(Sall(left),Extall(right),1,Extall(right)) [all …]
|
H A D | dfsub.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 117 } /* End left NaN or Infinity processing */ in dbl_fsub() 157 /* Set the left operand to the larger one by XOR swap * in dbl_fsub() 165 /* Invariant: left is not smaller than right. */ in dbl_fsub() 188 /* Left is not a zero and must be the result. Trapped in dbl_fsub() 189 * underflows are signaled if left is denormalized. Result in dbl_fsub() 266 diff_exponent = result_exponent - right_exponent; in dbl_fsub() [all …]
|
H A D | dfadd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 117 } /* End left NaN or Infinity processing */ in dbl_fadd() 156 /* Set the left operand to the larger one by XOR swap * in dbl_fadd() 163 /* Invariant: left is not smaller than right. */ in dbl_fadd() 185 /* Left is not a zero and must be the result. Trapped in dbl_fadd() 186 * underflows are signaled if left is denormalized. Result in dbl_fadd() 263 diff_exponent = result_exponent - right_exponent; in dbl_fadd() [all …]
|
H A D | fcnvxf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 15 * Single Fixed-point to Single Floating-point 16 * Single Fixed-point to Double Floating-point 17 * Double Fixed-point to Single Floating-point 18 * Double Fixed-point to Double Floating-point 41 * Convert single fixed-point to single floating-point format 78 * between -1 and 30. in sgl_to_sgl_fcnvxf() [all …]
|
/linux/arch/x86/math-emu/ |
H A D | round_Xsig.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /*---------------------------------------------------------------------------+ 7 | Australia. E-mail billm@jacobi.maths.monash.edu.au | 17 | Each function returns the size of the shift (nr of bits). | 19 +---------------------------------------------------------------------------*/ 39 movl $0,-4(%ebp) 43 jnz L_shift_1 /* Shift left 1 - 31 bits */ 48 movl $-32,-4(%ebp) 50 /* We need to shift left by 1 - 31 bits */ 52 bsrl %edx,%ecx /* get the required shift in %ecx */ [all …]
|
H A D | reg_norm.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /*---------------------------------------------------------------------------+ 7 | Australia. E-mail billm@suburbia.net | 16 | Return value is the tag of the answer, or-ed with FPU_Exception if | 17 | one was raised, or -1 on internal error. | 19 +---------------------------------------------------------------------------*/ 37 jnz L_shift_1 /* Shift left 1 - 31 bits */ 46 /* We need to shift left by 1 - 31 bits */ 48 bsrl %edx,%ecx /* get the required shift in %ecx */ 115 jnz L_nuo_shift_1 /* Shift left 1 - 31 bits */ [all …]
|
H A D | reg_u_sub.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /*---------------------------------------------------------------------------+ 10 | E-mail billm@suburbia.net | 15 | Return value is the tag of the answer, or-ed with FPU_Exception if | 16 | one was raised, or -1 on internal error. | 18 +---------------------------------------------------------------------------*/ 47 subl PARAM7,%ecx /* exp1 - exp2 */ 60 /*--------------------------------------+ 63 +--------------------------------------*/ 73 /*--------------------------------------+ [all …]
|
/linux/sound/soc/codecs/ |
H A D | wm9712.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9712.c -- ALSA Soc WM9712 codec support 5 * Copyright 2006-12 Wolfson Microelectronics PLC. 100 static const char *wm9712_alc_select[] = {"None", "Left", "Right", "Stereo"}; 101 static const char *wm9712_alc_mux[] = {"Stereo", "Left", "Right", "None"}; 102 static const char *wm9712_out3_src[] = {"Left", "VREF", "Left + Right", 105 static const char *wm9712_rec_adc[] = {"Stereo", "Left", "Right", "Mute"}; 115 static const DECLARE_TLV_DB_SCALE(main_tlv, -3450, 150, 0); 181 SOC_SINGLE("3D Upper Cut-off Switch", AC97_3D_CONTROL, 5, 1, 1), 182 SOC_SINGLE("3D Lower Cut-off Switch", AC97_3D_CONTROL, 4, 1, 1), [all …]
|
H A D | wm9713.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9713.c -- ALSA Soc WM9713 codec support 5 * Copyright 2006-10 Wolfson Microelectronics PLC. 8 * Features:- 47 static const char *wm9713_rec_mux[] = {"Stereo", "Left", "Right", "Mute"}; 52 static const char *wm9713_alc_select[] = {"None", "Left", "Right", "Stereo"}; 62 {"Off", "Mono", "Speaker", "Left Headphone", "Right Headphone", 73 SOC_ENUM_SINGLE(AC97_VIDEO, 3, 8, wm9713_rec_src), /* record mux left 3 */ 78 SOC_ENUM_SINGLE(AC97_REC_GAIN, 11, 8, wm9713_spk_pga), /* speaker left input select 8 */ 80 SOC_ENUM_SINGLE(AC97_REC_GAIN, 6, 3, wm9713_hp_pga), /* headphone left input 10 */ [all …]
|
H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include <linux/mfd/twl4030-audio.h> 67 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 79 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 89 return -EIO; in twl4030_read() 98 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 116 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 124 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 128 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
/linux/include/linux/ |
H A D | bitops.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * Defined here because those may be needed by architecture-specific static 29 #include <asm-generic/bitops/generic-non-atomic.h> 32 * Many architecture-specific non-atomic bitops contain inline asm code and due 33 * to that the compiler can't optimize them to compile-time expressions or 40 * The casts to `uintptr_t` are needed to mitigate `-Waddress` warnings when 41 * passing a bitmap from .bss or .data (-> `!!addr` is always true). 51 * The following macros are non-atomic versions of their non-underscored 92 return order; /* We could be slightly more clever with -1 here... */ in get_bitmask_order() 101 * rol64 - rotate a 64-bit value left [all …]
|
/linux/sound/pci/ |
H A D | ak4531_codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 idx, ak4531->regs[idx]); 46 #define AK4531_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 50 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) } 51 #define AK4531_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument 57 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \ 62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single() 64 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4531_info_single() 65 uinfo->count = 1; in snd_ak4531_info_single() 66 uinfo->value.integer.min = 0; in snd_ak4531_info_single() [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | tcp_metrics.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 5 protocol: genetlink-legacy 10 c-family-name: tcp-metrics-genl-name 11 c-version-name: tcp-metrics-genl-version 12 max-by-define: true 13 kernel-policy: global 16 - 17 name: tcp-fastopen-cookie-max 21 attribute-sets: 22 - [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
H A D | phy_qmath.c | 1 // SPDX-License-Identifier: ISC 81 s32 temp = (s32) op1 - (s32) op2; in qm_sub16() 93 * Description: This function make a 32 bit saturated left shift when the 94 * specified shift is +ve. This function will make a 32 bit right shift when 95 * the specified shift is -ve. This function return the result after shifting 98 s32 qm_shl32(s32 op, int shift) in qm_shl32() argument 103 if (shift > 31) in qm_shl32() 104 shift = 31; in qm_shl32() 105 else if (shift < -31) in qm_shl32() 106 shift = -31; in qm_shl32() [all …]
|
/linux/sound/isa/gus/ |
H A D | gus_mixer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #define GF1_SINGLE(xname, xindex, shift, invert) \ argument 21 .private_value = shift | (invert << 8) } 28 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() local 29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() 31 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single() 33 ucontrol->value.integer.value[0] ^= 1; in snd_gf1_get_single() 41 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() local 42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() 46 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() [all …]
|
/linux/drivers/accessibility/speakup/ |
H A D | DefaultKeyAssignments | 7 shift key. Well, actually as an altgr key. So in the following list 8 InsKeyPad-period means hold down the insert key like a shift key and 11 KeyPad-8 Say current Line 12 InsKeyPad-8 say from top of screen to reading cursor. 13 KeyPad-7 Say Previous Line (UP one line) 14 KeyPad-9 Say Next Line (down one line) 15 KeyPad-5 Say Current Word 16 InsKeyPad-5 Spell Current Word 17 KeyPad-4 Say Previous Word (left one word) 18 InsKeyPad-4 say from left edge of line to reading cursor. [all …]
|
/linux/fs/reiserfs/ |
H A D | fix_node.c | 15 * will shift to left/right neighbor, or to a new node, where new item 22 * calculating what we can shift to neighbors and how many nodes we 23 * have to have if we do not any shiftings, if we shift to left/right 39 "vs-8005: for INSERT mode and item number of inserted item"); in old_item_num() 41 return new_num - 1; in old_item_num() 45 "vs-8010: old_item_num: mode must be M_DELETE (mode = \'%c\'", in old_item_num() 54 struct virtual_node *vn = tb->tb_vn; in create_virtual_node() 56 struct buffer_head *Sh; /* this comes from tb->S[h] */ in create_virtual_node() 58 Sh = PATH_H_PBUFFER(tb->tb_path, h); in create_virtual_node() 61 vn->vn_size = in create_virtual_node() [all …]
|
/linux/arch/parisc/include/asm/ |
H A D | hash.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * HP-PA only implements integer multiply in the FPU. However, for 7 * integer multiplies by constant, it has a number of shift-and-add 8 * (but no shift-and-subtract, sigh!) instructions that a compiler 20 * PA7100 pairing rules. This is an in-order 2-way superscalar processor. 21 * Only one instruction in a pair may be a shift (by more than 3 bits), 22 * but other than that, simple ALU ops (including shift-and-add by up 25 * PA8xxx processors also dual-issue ALU instructions, although with 28 * This 6-step sequence was found by Yevgen Voronenko's implementation 43 /* Phase 2: Return (b<<11) + (c<<6) + (a<<3) - c */ in __hash_32() [all …]
|
/linux/fs/orangefs/ |
H A D | orangefs-bufmap.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * See COPYING in top-level directory. 8 #include "orangefs-kernel.h" 9 #include "orangefs-bufmap.h" 19 .c = -1, 23 .c = -1, 30 spin_lock(&m->q.lock); in install() 31 m->c = m->count = count; in install() 32 m->map = map; in install() 33 wake_up_all_locked(&m->q); in install() [all …]
|