Home
last modified time | relevance | path

Searched +full:msb +full:- +full:- (Results 1 – 25 of 702) sorted by relevance

12345678910>>...29

/linux/drivers/memstick/core/
H A Dmspro_block.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/blk-mq.h>
27 #define MSPRO_BLOCK_MAX_PAGES ((2 << 16) - 1)
182 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_free_disk() local
189 kfree(msb); in mspro_block_bd_free_disk()
195 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_getgeo() local
197 geo->heads = msb->heads; in mspro_block_bd_getgeo()
198 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo()
199 geo->cylinders = msb->cylinders; in mspro_block_bd_getgeo()
257 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default()
[all …]
/linux/arch/arm64/tools/
H A Dgen-sysreg.awk1 #!/bin/awk -f
2 # SPDX-License-Identifier: GPL-2.0
3 # gen-sysreg.awk: arm64 sysreg header generator
5 # Usage: awk -f gen-sysreg.awk sysregs.txt
35 __current_block_depth--;
48 printf "%-56s%s\n", "#define " name, val
52 function define_field(reg, field, msb, lsb) {
53 define(reg "_" field, "GENMASK(" msb ", " lsb ")")
54 define(reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")")
56 define(reg "_" field "_WIDTH", msb - lsb + 1)
[all …]
/linux/drivers/hwmon/
H A Dasc7621.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * asc7621.c - Part of lm_sensors, Linux kernel modules for hardware monitoring
13 #include <linux/hwmon-sysfs.h>
107 u8 msb[3]; member
125 dev_err(&client->dev, in read_byte()
136 dev_err(&client->dev, in write_byte()
169 return sprintf(buf, "%u\n", data->reg[param->msb[0]]); in show_u8()
179 return -EINVAL; in store_u8()
183 mutex_lock(&data->update_lock); in store_u8()
184 data->reg[param->msb[0]] = reqval; in store_u8()
[all …]
H A Dtmp401.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * Copyright (c) 2013 Guenter Roeck <linux@roeck-us.net>
129 case 0: /* local temp msb */ in tmp401_regmap_is_volatile()
130 case 1: /* remote temp msb */ in tmp401_regmap_is_volatile()
135 case 0x23 ... 0x24: /* remote temp 2 msb / lsb */ in tmp401_regmap_is_volatile()
146 struct i2c_client *client = data->client; in tmp401_reg_read()
150 case 0: /* local temp msb */ in tmp401_reg_read()
151 case 1: /* remote temp msb */ in tmp401_reg_read()
152 case 5: /* local temp high limit msb */ in tmp401_reg_read()
153 case 6: /* local temp low limit msb */ in tmp401_reg_read()
[all …]
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-rds-gen.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * vivid-rds-gen.c - rds (radio data system) generator support functions.
13 #include "vivid-rds-gen.h"
19 return (rds->dyn_pty << 2) | (grp & 3); in vivid_get_di()
21 return (rds->compressed << 2) | (grp & 3); in vivid_get_di()
23 return (rds->art_head << 2) | (grp & 3); in vivid_get_di()
25 return (rds->mono_stereo << 2) | (grp & 3); in vivid_get_di()
32 * Groups 0-3, 22-25 and 44-47 (spaced 22 groups apart) are filled with a
35 * Groups 4-19 and 26-41 use group 2A for the radio text.
44 struct v4l2_rds_data *data = rds->data; in vivid_rds_generate()
[all …]
/linux/drivers/dma/dw-edma/
H A Ddw-edma-v0-regs.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
35 u32 msb; /* 0x0010 */ member
42 u32 msb; /* 0x0018 */ member
49 u32 msb; /* 0x0020 */ member
69 u32 msb; /* 0x010c */ member
77 u32 msb; /* 0x0124 */ member
119 u32 msb; /* 0x001c */ member
130 u32 msb; /* 0x003c */ member
144 u32 msb; /* 0x0064 */ member
[all …]
H A Ddw-hdma-v0-regs.h1 /* SPDX-License-Identifier: GPL-2.0 */
36 u32 msb; /* 0x0014 */ member
45 u32 msb; /* 0x0024 */ member
52 u32 msb; /* 0x002c */ member
68 u32 msb; /* 0x0094 */ member
75 u32 msb; /* 0x009c */ member
82 u32 msb; /* 0x00a4 */ member
105 u32 msb; member
112 u32 msb; member
124 u32 msb; member
H A Ddw-edma-v0-debugfs.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
12 #include "dw-edma-v0-debugfs.h"
13 #include "dw-edma-v0-regs.h"
14 #include "dw-edma-core.h"
18 struct dw_edma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \
20 (void __iomem *)&__regs->name; \
27 if ((dw)->chip->mf == EDMA_MF_EDMA_LEGACY) \
34 (void __iomem *)&__ch_regs->name; \
74 struct dw_edma *dw = entry->dw; in dw_edma_debugfs_u32_get()
[all …]
H A Ddw-hdma-v0-debugfs.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "dw-hdma-v0-debugfs.h"
13 #include "dw-hdma-v0-regs.h"
14 #include "dw-edma-core.h"
18 struct dw_hdma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \
20 (void __iomem *)&__regs->name; \
32 (void __iomem *)&__ch_regs->name; \
51 void __iomem *reg = entry->reg; in dw_hdma_debugfs_u32_get()
66 entries = devm_kcalloc(dw->chip->dev, nr_entries, sizeof(*entries), in dw_hdma_debugfs_create_x32()
88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
[all …]
/linux/drivers/comedi/drivers/
H A Ddas08.c1 // SPDX-License-Identifier: GPL-2.0+
6 * COMEDI - Linux Control and Measurement Device Interface
23 * das08_encode12 : DATA[11..4] = MSB[7..0], DATA[3..0] = LSB[7..4].
24 * das08_pcm_encode12 : DATA[11..8] = MSB[3..0], DATA[7..9] = LSB[7..0].
25 * das08_encode16 : SIGN = MSB[7], MAGNITUDE[14..8] = MSB[6..0],
29 * complete, MSB[7] is an "over-range" bit.
161 status = inb(dev->iobase + DAS08_STATUS_REG); in das08_ai_eoc()
164 return -EBUSY; in das08_ai_eoc()
171 const struct das08_board_struct *board = dev->board_ptr; in das08_ai_insn_read()
172 struct das08_private_struct *devpriv = dev->private; in das08_ai_insn_read()
[all …]
/linux/include/linux/
H A Dcount_zeros.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
14 * count_leading_zeros - Count the number of zeros from the MSB back
17 * Count the number of leading zeros from the MSB going towards the LSB in @x.
19 * If the MSB of @x is set, the result is 0.
20 * If only the LSB of @x is set, then the result is BITS_PER_LONG-1.
26 return BITS_PER_LONG - fls(x); in count_leading_zeros()
28 return BITS_PER_LONG - fls64(x); in count_leading_zeros()
34 * count_trailing_zeros - Count the number of zeros from the LSB forwards
37 * Count the number of trailing zeros from the LSB going towards the MSB in @x.
40 * If only the MSB of @x is set, then the result is BITS_PER_LONG-1.
[all …]
/linux/drivers/pci/controller/dwc/
H A Dpcie-designware-debugfs.c1 // SPDX-License-Identifier: GPL-2.0
13 #include "pcie-designware.h"
48 * struct dwc_pcie_rasdes_info - Stores controller common information
62 * struct dwc_pcie_rasdes_priv - Stores file specific private data information
74 * struct dwc_pcie_err_inj - Store details about each error injection
130 * struct dwc_pcie_event_counter - Store details about each event counter
136 * Group 0: 0 - 10
137 * Group 1: 5 - 13
138 * Group 2: 0 - 7
139 * Group 3: 0 - 5
[all …]
/linux/arch/m68k/hp300/
H A Dtime.c1 // SPDX-License-Identifier: GPL-2.0
7 * This file contains the HP300-specific time handling code.
56 #define INTVAL (HP300_TIMER_CYCLES - 1)
80 unsigned char lsb, msb, msb_new; in hp300_read_clk() local
85 msb = in_8(CLOCKBASE + CLKMSB1); in hp300_read_clk()
87 if ((in_8(CLOCKBASE + CLKSR) & CLKSR_INT1) && msb > 0) in hp300_read_clk()
91 if (msb_new != msb) { in hp300_read_clk()
92 msb = msb_new; in hp300_read_clk()
96 ticks = INTVAL - ((msb << 8) | lsb); in hp300_read_clk()
/linux/drivers/watchdog/
H A Dpcwd_usb.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Berkshire USB-PC Watchdog Card Driver
5 * (c) Copyright 2004-2007 Wim Van Sebroeck <wim@iguana.be>.
12 * Greg Kroah-Hartman <greg@kroah.com>
16 * provided "AS-IS" and at no charge.
28 #include <linux/errno.h> /* For the -ENODEV/... values */
47 #define DRIVER_DESC "Berkshire USB-PC Watchdog driver"
55 delay-time from dip-switches */
59 "(0<heartbeat<65536 or 0=delay-time from dip-switches, default="
67 /* The vendor and product id's for the USB-PC Watchdog card */
[all …]
H A Dpcwd_pci.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Berkshire PCI-PC Watchdog Card Driver
5 * (c) Copyright 2003-2007 Wim Van Sebroeck <wim@iguana.be>.
16 * provided "AS-IS" and at no charge.
36 #include <linux/errno.h> /* For the -ENODEV/... values */
46 #include <linux/ioport.h> /* For io-port access */
53 #define WATCHDOG_DRIVER_NAME "PCI-PC Watchdog"
68 * PCI-PC Watchdog card.
76 #define WD_PCI_R2DS 0x40 /* Relay 2 Disable Temperature-trip /
98 5, /* OFF-OFF-OFF = 5 Sec */
[all …]
/linux/Documentation/sound/soc/
H A Ddai.rst35 I2S has several different operating modes:-
38 MSB is transmitted on the falling edge of the first BCLK after LRC
42 MSB is transmitted on transition of LRC.
45 MSB is transmitted sample size BCLKs before LRC transition.
58 Common PCM operating modes:-
61 MSB is transmitted on falling edge of first BCLK after FRAME/SYNC.
64 MSB is transmitted on rising edge of FRAME/SYNC.
/linux/Documentation/devicetree/bindings/gpio/
H A Dlacie,netxbig-gpio-ext.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/lacie,netxbig-gpio-ext.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Simon Guinot <simon.guinot@sequanux.org>
19 - const: lacie,netxbig-gpio-ext
21 addr-gpios:
22 description: GPIOs representing the address register (LSB->MSB).
24 - description: bit 0 (LSB)
25 - description: bit 1
[all …]
/linux/arch/parisc/math-emu/
H A Dfcnvuf.c1 // 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 * Fixed point to Floating-point Converts
38 * Fixed point to Floating-point Converts *
42 * Convert Single Unsigned Fixed to Single Floating-point format
70 * between -1 and 30. in sgl_to_sgl_fcnvuf()
73 /* left justify source, with msb at bit position 0 */ in sgl_to_sgl_fcnvuf()
76 Sgl_set_exponent(result, 30+SGL_BIAS - dst_exponent); in sgl_to_sgl_fcnvuf()
[all …]
H A Dfcnvxf.c1 // 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/drivers/scsi/qla2xxx/
H A Dqla_def.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (c) 2003-2014 QLogic Corporation
15 #include <linux/dma-mapping.h>
141 #define MSB(x) ((uint8_t)((uint16_t)(x) >> 8)) macro
234 /* 83XX: Macros defining 8200 AEN Error-levels */
248 /* 83XX: Macros for defining IDC-Control bits */
257 /* 83XX: Macros for defining class in DEV-Partition Info register */
263 /* 83XX: Macros for IDC Lock-Recovery stages */
265 * lock-recovery
267 #define IDC_LOCK_RECOVERY_STAGE2 0x2 /* Stage2: Perform lock-recovery */
[all …]
/linux/lib/math/
H A Dint_log.c1 // SPDX-License-Identifier: LGPL-2.1-or-later
3 * Provides fixed-point logarithm operations.
57 unsigned int msb; in intlog2() local
67 /* first detect the msb (count begins at 0) */ in intlog2()
68 msb = fls(value) - 1; in intlog2()
74 * where x = msb and therefore 1 <= y < 2 in intlog2()
76 * so that msb is bit 31 in intlog2()
77 * 0x00231f56 -> 0x8C7D5800 in intlog2()
78 * the result is y * 2^31 -> "significand" in intlog2()
84 significand = value << (31 - msb); in intlog2()
[all …]
/linux/arch/sparc/lib/
H A Dudivdi3.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
12 save %sp,-104,%sp
24 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
25 sub %i0,%o3,%i0 ! this kills msb of n
31 addxcc %o1,%o1,%o1 ! shift n1n0 and a q-bit in lsb
33 sub %i0,%o3,%i0 ! this kills msb of n
40 addcc %o1,%o1,%o1 ! shift n1n0 and a 0-bit in lsb
62 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
63 sub %o4,%o3,%o4 ! this kills msb of n
69 addxcc %o2,%o2,%o2 ! shift n1n0 and a q-bit in lsb
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dhw.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc.
13 #include "wmi-ops.h"
216 .msb = 0x00000010,
222 .msb = 0x00000012,
228 .msb = 0x00000000,
270 .msb = 0x00000000,
276 .msb = 0x0000000f,
295 .msb = 0x0000000f,
348 .msb = 0x00000010,
[all …]
/linux/drivers/power/supply/
H A Dds2780_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * 1-wire client/driver for the Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC
7 * Author: Clifton Barnes <cabarnes@indesign-llc.com>
23 /* Current unit measurement in uA for a 1 milli-ohm sense resistor */
25 /* Charge unit measurement in uAh for a 1 milli-ohm sense resistor */
28 #define DS2780_USER_EEPROM_SIZE (DS2780_EEPROM_BLOCK0_END - \
31 #define DS2780_PARAM_EEPROM_SIZE (DS2780_EEPROM_BLOCK1_END - \
58 return w1_ds2780_io(dev_info->w1_dev, buf, addr, count, io); in ds2780_battery_io()
108 ret = ds2780_store_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom()
112 ret = ds2780_recall_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom()
[all …]
H A Dds2781_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * 1-wire client/driver for the Maxim/Dallas DS2781 Stand-Alone Fuel Gauge IC
21 /* Current unit measurement in uA for a 1 milli-ohm sense resistor */
23 /* Charge unit measurement in uAh for a 1 milli-ohm sense resistor */
26 #define DS2781_USER_EEPROM_SIZE (DS2781_EEPROM_BLOCK0_END - \
29 #define DS2781_PARAM_EEPROM_SIZE (DS2781_EEPROM_BLOCK1_END - \
56 return w1_ds2781_io(dev_info->w1_dev, buf, addr, count, io); in ds2781_battery_io()
112 ret = ds2781_store_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom()
116 ret = ds2781_recall_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom()
170 * The voltage value is located in 10 bits across the voltage MSB in ds2781_get_voltage()
[all …]

12345678910>>...29